Upwork Test Answers
Tuesday, August 11, 2015
Tuesday, August 4, 2015
Upwork html5 test answers 2015
Looking for pass oDesk
or Upwork html5 test? Don't worry just visit this article and read then you can
easily pass upwork html5 test this test answers 2015
1.
Which of the following is NOT a valid value for the < iframe
> sandbox attribute in HTML 5.0?
Options:
url
B. allow-scripts
C. allow-same-origin
D. allow-forms
Options:
url
B. allow-scripts
C. allow-same-origin
D. allow-forms
2.
What is the output when you use the HTML 5.0 code snippet shown
below?
< body onload=”alert(this)” >
Options:
It will alert saying “[object HTMLBodyElement]” when the document is loaded.
B.It will alert saying “[object Window]” when the document is loaded.
C. It will alert saying “[this]” when the document is loaded.
D. The alert message is not properly defined in the body element and an error will be generated when the document is loaded.
< body onload=”alert(this)” >
Options:
It will alert saying “[object HTMLBodyElement]” when the document is loaded.
B.It will alert saying “[object Window]” when the document is loaded.
C. It will alert saying “[this]” when the document is loaded.
D. The alert message is not properly defined in the body element and an error will be generated when the document is loaded.
3.
How does a button created by the < button > tag differ
from the one created by an < input > tag?
Options:
An input tag button can be a reset button too.
B. A button tag button can be a reset button too.
C. An input tag button can include images as well.
D. A button tag can include images as well.
Options:
An input tag button can be a reset button too.
B. A button tag button can be a reset button too.
C. An input tag button can include images as well.
D. A button tag can include images as well.
4.
How will you change the value of the cookies and items in the
Storage objects of the localStorage attributes in HTML 5.0?
Options:
By invoking the window.dialogArguments() API method.
B.By invoking the window. navigator.yieldForStorageUpdates() API method.
C. By invoking the window.navigator.appName API method.
Options:
By invoking the window.dialogArguments() API method.
B.By invoking the window. navigator.yieldForStorageUpdates() API method.
C. By invoking the window.navigator.appName API method.
5.
What is the default background color for the canvas element in
HTML 5.0?
Options:
Black
B. White
Options:
Black
B. White
6.
Transparent
D. Gray
D. Gray
7.
Which of the following values would be passed on by clicking the
submit button on selecting Item 2 from the list?
89
B. 90
C. Item 1
D. Item 2
89
B. 90
C. Item 1
D. Item 2
8.
Which of the following statements is correct if you allow the
user to select only one radio button from a group of radio buttons?
Options:
The name of the input tag must be the same for all the radio buttons.
B. The value of the input tag must be the same for all the radio buttons.
C. The display text of the input tag must be the same for all the radio buttons.
D. All the radio buttons must be added to the same group using thetag.
Options:
The name of the input tag must be the same for all the radio buttons.
B. The value of the input tag must be the same for all the radio buttons.
C. The display text of the input tag must be the same for all the radio buttons.
D. All the radio buttons must be added to the same group using thetag.
9.
When is the window onstorage event triggered in the HTML
document?
Options:
It is triggered when the window is resized.
B. It is triggered when a document loads.
C. It is triggered when a document performs an undo function.
D. It is triggered when the window becomes visible.
Options:
It is triggered when the window is resized.
B. It is triggered when a document loads.
C. It is triggered when a document performs an undo function.
D. It is triggered when the window becomes visible.
10.
Which of the following video file formats are currently
supported by the < video > element of HTML 5.0?
Options:
CCTV
B.MPEG 4
C. Ogg
D. 3GPP
Options:
CCTV
B.MPEG 4
C. Ogg
D. 3GPP
11.
Which of the following < iframe > attributes are NOT
supported in HTML 5.0?
Options:
height
B.marginheight
C. sandbox
D. scrolling
Options:
height
B.marginheight
C. sandbox
D. scrolling
12.
What is the function of the history traversal task source in
HTML 5.0?
Options:
It is used for features that react to user interaction, for example, keyboard or mouse input.
B. It is used for features that react to DOM manipulations, for example, the things that happen asynchronously when an element is inserted in the document.
C.It is used to queue calls to history.back() and similar APIs.
D. All of the above.
Options:
It is used for features that react to user interaction, for example, keyboard or mouse input.
B. It is used for features that react to DOM manipulations, for example, the things that happen asynchronously when an element is inserted in the document.
C.It is used to queue calls to history.back() and similar APIs.
D. All of the above.
13.
A computer programming book has to go online. Which of the
following tags is ideal for displaying the program snippets?
Options:
< emp >
B.< code >
C. < dfn >
D. < cite >
Options:
< emp >
B.< code >
C. < dfn >
D. < cite >
14.
Which of the following are valid HTML 5.0 elements?
Options:
< canvas >
B. < summary >
C. < aside >
D. < video >
E.All are correct
Options:
< canvas >
B. < summary >
C. < aside >
D. < video >
E.All are correct
15.
What does the icon attribute of the HTML 5.0 command tag define?
< command icon=”?” >Click Me!< /command >
Options:
It is used to define the url of an image to display as the command.
B. It is used to define the name of the radiogroup this command belongs to.
< command icon=”?” >Click Me!< /command >
Options:
It is used to define the url of an image to display as the command.
B. It is used to define the name of the radiogroup this command belongs to.
16.
How will you return a reference to the parent of the current
window or subframe in an HTML 5.0 web application?
Options:
window.top
B.window.parent
C. window.frameElement
D. None of the above
Options:
window.top
B.window.parent
C. window.frameElement
D. None of the above
17.
Which of the following are valid mouse events in HTML 5.0?
Options:
ondblclick
B. ondragstart
C. ondragenter
D. onscroll
E. ondrop
F.All are correct
Options:
ondblclick
B. ondragstart
C. ondragenter
D. onscroll
E. ondrop
F.All are correct
18.
Which of the following is NOT a valid attribute for the <
link > element in HTML 5.0?
Options:
hreflang
B. rel
C. http-equiv
D. media
Options:
hreflang
B. rel
C. http-equiv
D. media
19.
Which media event is triggered when there is an error in
fetching media data in HTML 5.0?
Options:
onstalled
B. onwaiting
C. onsuspend
D. oninvalid
Options:
onstalled
B. onwaiting
C. onsuspend
D. oninvalid
20.
Which of the following is NOT a valid syntax for the < h1
> element in HTML 5.0?
Options:
< h1 > This is header 1< /h1 >
B. < h1 align=”center” > This is header 1< /h1 >
C. < h1 onClick=”dothis(‘sc1′)” >This is header < /h1 >
D. < h1 style=”cursor:auto;” >This is header < /h1 >
Options:
< h1 > This is header 1< /h1 >
B. < h1 align=”center” > This is header 1< /h1 >
C. < h1 onClick=”dothis(‘sc1′)” >This is header < /h1 >
D. < h1 style=”cursor:auto;” >This is header < /h1 >
21.
Whichtag event is fired when the user leaves the document?
Options:
onunload
B. onundo
C. onredo
D. onerror
Options:
onunload
B. onundo
C. onredo
D. onerror
22.
Consider the above code. What will be the impact upon the
contents of the element if both the style sheets define the same class?
This question is based upon the figure shown below:
This question is based upon the figure shown below:
23.
Options:
The contents of the element will be of red color and will inherit all the effects of style.css.
B.The contents of the element will be of blue color and will inherit all the effects of style1.css.
C. The contents of the element will be of white color and will inherit all the effects of style.css and style1.css.
D. None of the style effects will be applied to the contents of the element.
The contents of the element will be of red color and will inherit all the effects of style.css.
B.The contents of the element will be of blue color and will inherit all the effects of style1.css.
C. The contents of the element will be of white color and will inherit all the effects of style.css and style1.css.
D. None of the style effects will be applied to the contents of the element.
24.
The following link is placed on an HTML webpage.
< a href=”http://msdn.com/” target=”_blank” < /a >
What do you infer from it?
Options:
It will open the site msdn.com in the same window.
B. It will open the site msdn.com in a new window.
C. It will open the site msdn.com in a frame below.
D.It will not be clickable as it is not formed correctly.
< a href=”http://msdn.com/” target=”_blank” < /a >
What do you infer from it?
Options:
It will open the site msdn.com in the same window.
B. It will open the site msdn.com in a new window.
C. It will open the site msdn.com in a frame below.
D.It will not be clickable as it is not formed correctly.
25.
Which form event is fired on the click of a button using a
button tag with its type attribute value equal to submit?
Options:
onload
B.onsubmit
C. onunload
D. onreset
Options:
onload
B.onsubmit
C. onunload
D. onreset
26.
What is the function of onobsolete, an application cache API
method in HTML 5.0?
Options:
It reflows the HTML document using updated cached content.
B.It triggers an event when the cache content has been marked as obsolete.
C. It triggers an event when the cache content has been updated.
D. It updates the cache for the current document in the background.
Options:
It reflows the HTML document using updated cached content.
B.It triggers an event when the cache content has been marked as obsolete.
C. It triggers an event when the cache content has been updated.
D. It updates the cache for the current document in the background.
27.
Which of the following is NOT a valid attribute for the <
video > element in HTML 5.0?
Options:
controls
B. autoplay
C.disabled
D. preload
Options:
controls
B. autoplay
C.disabled
D. preload
28.
Which of the following is an INVALID value for the type
attribute of command tag?
Options:
checkbox
B. radio
C.command
D. text
Options:
checkbox
B. radio
C.command
D. text
29.
Which of the following is correct with regard to the
oncanplaythrough event fired by media resources in the HTML 5.0 document?
Options:
The script will run when the media has reached the end.
B.The script will run when the media is played to the end, without stopping for buffering.
C. The script will run when media data is loaded.
D. The script will run when the length of the media is changed.
Options:
The script will run when the media has reached the end.
B.The script will run when the media is played to the end, without stopping for buffering.
C. The script will run when media data is loaded.
D. The script will run when the length of the media is changed.
30.
In HTML 5.0, which of the following is NOT a valid value for the
type attribute when used with the < command > tag shown below?
< command type=”?” >Click Me!< /command >
Options:
button
B. command
C. checkbox
D. radio
< command type=”?” >Click Me!< /command >
Options:
button
B. command
C. checkbox
D. radio
31.
Which of the following is an INVALID keyword value for
http-equiv attribute when used with the < meta > element in HTML 5.0?
Options:
content-type
B.expires
C. set-cookie
D. keywords
E. refresh
F. author
Options:
content-type
B.expires
C. set-cookie
D. keywords
E. refresh
F. author
32.
What will be the result if you use the following code to your
HTML 5.0 document?
< p >I use < del >MAC< /del > < ins >Microsoft< /ins >!< /p > /p >
Options:
I use MAC Microsoft!
B. I use MAC Microsoft!
C.I useMAC Microsoft!
D. I use MAC Microsoft!
< p >I use < del >MAC< /del > < ins >Microsoft< /ins >!< /p > /p >
Options:
I use MAC Microsoft!
B. I use MAC Microsoft!
C.I use
D. I use MAC Microsoft!
33.
What is the role of the < dfn > element in HTML 5.0?
Options:
It is used to define important text.
B. It is used to define computer code text.
C. It is used to define sample computer code.
D.It is used to define a definition term
Options:
It is used to define important text.
B. It is used to define computer code text.
C. It is used to define sample computer code.
D.It is used to define a definition term
34.
Which of the following is NOT a supported attribute of the <
ol > element in HTML 5.0?
Options:
type
B. reversed
C. start
D.compact
Options:
type
B. reversed
C. start
D.compact
35.
You want to create a link for your website allowing users to
email the webmaster. How will you implement this if the webmaster’s email
address is webmaster@xcompany.com?
Options:
< a href=”mailto:webmaster@xcompany.com” >webmaster< /a >
B. < a href=”webmaster@xcompany.com”>webmaster< /a >
C. < a http=”mail:webmaster@xcompany.com”>webmaster< /a >
D. < mail http=”send:webmaster@xcompany.com”>webmaster< /mail >
Options:
< a href=”mailto:webmaster@xcompany.com” >webmaster< /a >
B. < a href=”webmaster@xcompany.com”>webmaster< /a >
C. < a http=”mail:webmaster@xcompany.com”>webmaster< /a >
D. < mail http=”send:webmaster@xcompany.com”>webmaster< /mail >
36.
While rendering your HTML 5.0 web page, which of the following
< link > element files will get skipped by a compliant user agent if you
include the link elements shown below in your document?
< link rel=”stylesheet” href=”A” type=”text/plain” > < link rel=”stylesheet” href=”B” type=”text/css” >
Options:
A link element whose href is “B”
B.A link element whose href is “A”
C. None of the above
< link rel=”stylesheet” href=”A” type=”text/plain” > < link rel=”stylesheet” href=”B” type=”text/css” >
Options:
A link element whose href is “B”
B.A link element whose href is “A”
C. None of the above
37.
In HTML 5.0, what is the function of the sandbox attribute when
used with < iframe > as shown below?
< iframe src=”aaa ” sandbox=? >< /iframe >
Options:
It is used to define the restrictions to the frame content.
B. It is used to define the URL of the document that should appear in the iframe.
C. It is used to specify that an iframe should appear as if it is part of the document the iframe is in.
< iframe src=”aaa ” sandbox=? >< /iframe >
Options:
It is used to define the restrictions to the frame content.
B. It is used to define the URL of the document that should appear in the iframe.
C. It is used to specify that an iframe should appear as if it is part of the document the iframe is in.
38.
In HTML 5.0, how will the script be executed if you use the
script element shown below?
< script src=”script.js” type=”text/javascript” defer=”defer” >< /script >
Options:
The script is fetched and executed immediately, before the user agent continues parsing the page.
B.The script will be executed when the page has finished parsing.
C. The script will be executed asynchronously, as soon as it is available.
< script src=”script.js” type=”text/javascript” defer=”defer” >< /script >
Options:
The script is fetched and executed immediately, before the user agent continues parsing the page.
B.The script will be executed when the page has finished parsing.
C. The script will be executed asynchronously, as soon as it is available.
39.
Which of the following is not a valid input type of the form
tag?
Options:
checkbox
B. image
C. hidden
D. button
E.All are valid
Options:
checkbox
B. image
C. hidden
D. button
E.All are valid
40.
Which of the following represents INVALID syntax for defining an
attribute value in an HTML 5.0 document?
Options:
< input name =’be evil’ / >
B.< input name=be evil / >
C. < input name = “be-evil” / >
D. All of the above.
Options:
< input name =’be evil’ / >
B.< input name=be evil / >
C. < input name = “be-evil” / >
D. All of the above.
41.
Which of the following attributes comes in handy when borders
have to be put between groups of columns instead of every column?
Options:
col
B.colgroup
C. rowspan
D. row
Options:
col
B.colgroup
C. rowspan
D. row
42.
Which of the following would give a yellow background to the web
page?
Note: The code used in the “correct” answer below was deprecated in HTML 4.01! Use styles instead for new code.
Options:
< body backcolor=”Yellow” >
B. < body background=”Yellow” >
C.< body bgcolor=”Yellow” >
D. < body color=”Yellow” >
Note: The code used in the “correct” answer below was deprecated in HTML 4.01! Use styles instead for new code.
Options:
< body backcolor=”Yellow” >
B. < body background=”Yellow” >
C.< body bgcolor=”Yellow” >
D. < body color=”Yellow” >
43.
Which of the following languages will you use to paint the
graphics designed using the HTML 5.0 < canvas > tag?
Options:
VB script
B.JavaScript
C. PostScript
D. None of the above
Options:
VB script
B.JavaScript
C. PostScript
D. None of the above
44.
How will you bind the datalist option (shown below) with anelement,
whose type attribute is set to url, to get the result shown in the image?
This question is based upon the figure shown below:
This question is based upon the figure shown below:
Options:
A. User should define an accept attribute to the input element whose type is url.
B. User should define multiple attribute to the input element whose type is url.
C. User should define a list attribute to the input element whose type is url.
D. User should define a placeholder attribute to the input element whose type is url.
A. User should define an accept attribute to the input element whose type is url.
B. User should define multiple attribute to the input element whose type is url.
C. User should define a list attribute to the input element whose type is url.
D. User should define a placeholder attribute to the input element whose type is url.
44.
Which of the following
video file formats are currently supported by the <video> element of HTML
5.0?
Ans: b. MPEG 4
45.
Which of the following
is NOT a valid attribute for the element in HTML 5.0?
Ans: c. http-equiv
46.
Which HTML 5.0 element
will you use to group the related options in a drop-down list?
Ans: a. optgroup
47.
Which of the following
statements is correct if you allow the user to select only one radio button
from a group of radio buttons?
Ans : a. The name of
the input tag must be the same for all the radio buttons.
48.
What will be the
result if you use the following code to your HTML 5.0 document?
Ans : a. I use MAC
Microsoft!
49.
Which of the following
is NOT a valid syntax for the <h1> element in HTML 5.0?
Ans : b. <h1
align=”center”> This is header 1</h1>
50.
Which of the following
<link> attributes are NOT supported in HTML 5.0?
Ans : d. charset
51.
When is the window
onstorage event triggered in the HTML document?
Ans : b. It is
triggered when a document loads.
52.
Which of the following
events is NOT supported in HTML 5.0?
Ans : d. onreset
53.
Which of the following
is NOT a valid value for the
Ans: a. It is used to
define the restrictions to the frame content.
54.
How does a button
created by the <button> tag differ from the one created by an
<input>tag ?
Ans: c. An input tag
button can include images as well.
55.
Which of the following
statements is correct if you invoke the window.prompt (message, default) web
application API method in HTML 5.0?
Ans d. Both b and c.
56.
How will you cancel
the timeouts that are set with the setInterval() API method identified by the handlers
in HTML 5.0?
Ans : a.
window.clearInterval (handle)
57.
How will you return a
reference to the parent of the current window or subframe in an HTML 5.0
58.
web application?
Ans : b. window.parent
59.
What will be the
browsing context if the browsing context name is _top when the HTML 5.0 web
page is loading?
Ans : b. It will load
the linked document in the topmost frame.
60.
Which <body> tag
event is fired when the user leaves the document?
Ans : a. onunload
61.
Which of the following
are valid HTML 5.0 elements?
Ans : a.
<canvas>
62.
Which of the following
statements is/are correct for a blockquote?
Ans : b. It defines
the start of a long quote.
63.
In HTML 5.0, how will
the script be executed if you use the script element shown below?
Ans : b. The script
will be executed when the page has finished parsing.
64.
Which of the following
is NOT a valid attribute for the <video> element in HTML 5.0?
Ans: b. disabled
65.
You are writing the
code for an HTML form and you want the browser to retain the form’s input
values. That is, if a user submits the form and presses the browser’s back
button, the fully populated form is displayed instead of a blank form. Which of
the following HTML 5.0 attributes will you use?
Ans: d. formtarget
66.
How does a button
created by the <button> tag differ from the one created by an
<input> tag?
Ans : c. An input tag
button can include images as well.
67.
How will you change
the value of the cookies and items in the Storage objects of the localStorage
attributes in HTML 5.0?
Ans : b. By invoking
the window. navigator.yieldForStorageUpdates() API method.
68.
Which of the following
is a valid attribute for the <colgroup> element in an HTML 5.0 document?
Ans : b. span
69.
Which of the following
languages will you use to paint the graphics designed using the HTML 5.0
<canvas> tag?
Ans : b. JavaScript
70.
Which of the following
<iframe> attributes are NOT supported in HTML 5.0?
Ans : b. marginheight
71.
Which of the following
is true of the above code?
Ans : a. Only the
Yahoo link will open in a new window.
72.
What is the purpose of
the <q> element in HTML 5.0?
Ans : c. It is used to
define the start of a short quotation.
73.
Which of the following
is NOT a supported attribute of the <ol> element in HTML 5.0?
Ans: c. compact
74.
What is the purpose of
the <keygen> element in HTML 5.0?
75.
It is used to generate
a public-private key pair in an HTML 5.0 web page.
Which event is fired
when an element loses its focus in HTML 5.0 document?
Ans: c. onblur
75.
Which of the following
is NOT a valid attribute for the <link> element in HTML 5.0?
Ans : c. http-equiv
76.
How will the target
URL open when you define the <a> element in your HTML 5.0 document as
shown below?
77.
<a
href=”http://www.yahoo.com” target=”_self”>Click here</a>
Ans : c. The target
URL will open in the same document in which it was clicked.
78.
Which of the following
is NOT a supported attribute of the <ol> element in HTML 5.0?
Ans : d. compact
79.
Which of the following
is NOT a valid syntax for the <link> element in HTML 5.0?
Ans : c. <link
rel=”alternate” type=”application/pdf” hreflang=”fr” href=”manual-fr”>
80.
In HTML 5.0, what is
the function of the sandbox attribute when used with <iframe> as shown
below?
Ans : a. It is used to
define the restrictions to the frame content.
81.
You specified a base
tag and anchors as follows:
Ans : 2. <a
href=”http://www.yahoo.com”>Yahoo</a
82.
When is the window
onstorage event triggered in the HTML document?
Ans: d. It is
triggered when a document performs an undo function.
83.
Which of the following
tags would assist in creating named groups within a select list?
Ans: c. optgroup
84.
Which of the following
is an INVALID value for the type attribute of command tag?
Ans : d. text
85.
Suppose you placed
four radio buttons on a web form. Which of the following statements is correct
for the code shown above?
Ans : c. The user can
choose only one option out of the four.
86.
What is the output
when you use the HTML 5.0 code snippet shown below?
Ans : b. It will alert
saying “[object Window]” when the document is loaded.
87.
Suppose you add the
input code given above to your HTML web page. What result will be returned by
the JavaScript function when you click the button marked as A in the image?
Ans: b. text
88.
What is the default
background color for the canvas element in HTML 5.0?
Ans : c. Transparent
89.
Which of the following
is the correct syntax to define a charset in the HTML 5 <meta> element?
Ans : b. <meta
charset=”ISO-8859-1″>
90.
When does the
ondragleave mouse event get fired in HTML 5.0?
Ans : b. It gets fired
when an element leaves a valid drop target.
91.
Which of the following
represents INVALID syntax for defining an attribute value in an HTML 5.0
document?
Ans : d. All of the
above.
92.
Which of the following
are valid values for the contenteditable attribute of theelement in HTML 5.0?
Ans: a. true
93.
Which media event is
triggered when there is an error in fetching media data in HTML 5.0?
Ans : c. onsuspend
94.
Which of the following
is the correct method to load another web page or reload the same page in HTML
5.0?
Ans : d. All of the
above
95.
What is the function
of the history traversal task source in HTML 5.0?
Ans : c. It is used to
queue calls to history.back() and similar APIs.
96.
Which of the following
is an INVALID parameter for the window.navigator.registerContentHandler API
method in an HTML 5.0 web application?
Ans : c. scheme
97.
98.
You want to display a
table listing out customer names and their contact information. The heading of
the table is shown in the given figure. What is the code for creating the first
line of the table heading?
Ans: b .<tr>
<th>Customer Name</th> <th colspan=3>Contact</th>
</tr>
99.
Which of the following
are valid values for the contenteditable attribute of the <figure>
element in HTML 5.0?
Ans : a. true
100.Which of the following would give a yellow
background to the web page?
Note: The code used in
the “correct” answer below was deprecated in HTML 4.01! Use styles instead for
new code.
Ans : c. <body
bgcolor=”Yellow”>
101.Which of the following is NOT a valid value
for the type attribute of the <input> element in HTML 5.0?
Ans : f. All of the
above are the valid values for <input> element
102.Which event is fired when the history of the
browser window changes?
Ans : a. onpopstate
103.Which of the following is correct with regard
to the oncanplaythrough event fired by media resources in the HTML 5.0
document?
Ans : b. The script
will run when the media is played to the end, without stopping for buffering.
104.A piece of text contains many blank spaces
within it. Which of the following tags would be suitable to display the text as
it was originally formatted?
Ans: d. pre
105.Which of the following <section>
elements have the correct attribute assignment as per HTML 5.0?
Ans: c. <section
id=”EXAMPLE”>…</section>
106.Which of the following elements preserves
spaces and line breaks, and displays the text in fixed-width font?
Ans : b. <pre>
107.Which <iframe> attribute is used to
define the restrictions to the frame content in HTML 5.0?
Ans : b. sandbox
108.How will the target URL open when you define
the <a> element in your HTML 5.0 document as shown below?
Ans : c. The target
URL will open in the same document in which it was clicked.
109.Which form event is fired on the click of a
button using a button tag with its type attribute value equal to submit?
Ans : b. onsubmit
110.Which of the following is an INVALID keyword
value for http-equiv attribute when used with the <meta> element in HTML
5.0?
Ans : b. expires
111.Which of the following is NOT an attribute of
the <meta> element in HTML 5.0?
Ans: d. scheme
112.Which of the following are valid mouse events
in HTML 5.0?
Ans : a. ondblclick
113.What will be the result if you use the
following code to your HTML 5.0 document?
114.
115.<bdo dir=”rtl”> Here is some text that
should be written to your document. </bdo>
Ans : a. .tnemucod
ruoy ot nettirw eb dluohs taht txet emos si ereH
116.Which media event will be fired when a media
resource element suddenly becomes empty?
Ans: d. onemptied
117.You have the following directory structure.
webroot->products->ordered->delivered
Ans : b. <a
href=”../../Products.html”> All Products </a>
118.In HTML 5.0, which of the following attributes
of the <object> element refers to the location of the object’s data?
Ans : c. data
119.The following link is placed on an HTML
webpage.
<a
href=”http://msdn.com/” target=”_blank”> MSDN </a>
What do you infer from
it?
Ans : b. It will open
the site msdn.com in a new window.
120.What will be the return value when using the
window.navigator.appName API method in an HTML 5.0 web application?
Ans : d. It will
return the name of the browser.
121.What is the role of the <dfn> element in
HTML 5.0?
Ans : d. It is used to
define a definition term
122.A computer programming book has to go online.
Which of the following tags is ideal for displaying the program snippets?
Ans : b. <code>
123.In which of the following conditions is a
browsing context A allowed to navigate a second browsing context B?
Ans : d. All of the
above
124.Which of the following statements are correct
with regard to <hr> and <br> elements of HTML 5.0?
Ans : b. <hr>
element is used to insert the horizontal line within your document and
<br> element is used to insert a single line break.
125.You want to display a table listing out
customer names and theircontact information. The heading of the table is shown
in the given figure. What is the code for creating the first line of the table
heading?
<tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
b.<tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>***Answer**
c.<tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
d.<tr>
<th>Customer Name</th>
<th cA
<tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
b.<tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>***Answer**
c.<tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
d.<tr>
<th>Customer Name</th>
<th cA
126.How will you return a reference to the parent
of the current window or subframe in an HTML 5.0web application?
window.top
b. window.parent***Answer**
c.window.frameElement
d.None of the above
window.top
b. window.parent***Answer**
c.window.frameElement
d.None of the above
127.Suppose you add the input code given above to
yourHTML web page. What result will be returned by the JavaScript function when
you click the button marked as A in the image?
number
b.text***Answer**
c.button
d.None of the aboveA
number
b.text***Answer**
c.button
d.None of the aboveA
128.What is the default backgroundcolor for
the canvas element in HTML 5.0?
Black
b.White
c.Transparent***Answer**
d.Gray
Black
b.White
c.Transparent***Answer**
d.Gray
129.Which form event is fired on the click of a
button using a button tag with its type attribute value equal to submit?
onload
b. onsubmit***Answer**
c.onunload
d.onreset
onload
b. onsubmit***Answer**
c.onunload
d.onreset
130.Which of the followingvideo file formats
are currently supported by the <video> element of HTML 5.0?
CCTV
b. MPEG 4***Answer**
c. Ogg***Answer**
d. 3GPP
CCTV
b. MPEG 4***Answer**
c. Ogg***Answer**
d. 3GPP
131.Which of the following are valid values for
the contenteditable attribute of theelement in HTML 5.0?
true***Answer**
b.false***Answer**
c.0
d.1
true***Answer**
b.false***Answer**
c.0
d.1
132.How does a button created by the
<button> tag differ from the one created by an <input>tag ?
An input tag button can be a reset button too.
b. A button tag button can be a reset button too.
c. An input tag button can include images as well.***Answer**
d. A button tag can include images as well.
An input tag button can be a reset button too.
b. A button tag button can be a reset button too.
c. An input tag button can include images as well.***Answer**
d. A button tag can include images as well.
133.Which media event is triggered when there is
an error in fetching media data in HTML 5.0?
onstalled
b. onwaiting
c. onsuspend***Answer**
d.oninvalid
onstalled
b. onwaiting
c. onsuspend***Answer**
d.oninvalid
134.Which of the following attributes comes in
handy when borders have to be put between groups of columns instead of every
column?
col
b.colgroup***Answer**
c.rowspan
d. row
col
b.colgroup***Answer**
c.rowspan
d. row
135.Which of the following is NOT a valid
attribute for the element in HTML 5.0?
hreflang
b.rel
c.http-equiv***Answer**
d.media
hreflang
b.rel
c.http-equiv***Answer**
d.media
136.Which of the following HTML 5.0 elements is
used to embed Java applets into your HTML 5.0 web page?
<applet>
b.<object>
***Answer**
c. <source>
d.<progress>
<applet>
b.<object>
***Answer**
c. <source>
d.<progress>
Subscribe to:
Comments (Atom)