Friday, September 13, 2013

oDesk HTML 5 Test Answers

HTML5 is a markup language used for structuring and presenting content for the World Wide Web and a core technology of the Internet.

Question: 01 - Which of the following iframe attributes are NOT supported in HTML 5.0?
marginheight

Question: 2 - Which tag event is fired when the user leaves the document? 
onunload

Question: 03 - Which of the following is NOT a valid value for the iframe sandbox attribute in HTML 5.0?
url

Question: 04 - Which of the following is an INVALID value for the type attribute of command tag?
command

Question: 05 - What is the function of the history traversal task source in HTML 5.0?
It is used to queue calls to history.back() and similar APIs.

Question: 06 - What will be the result if you use the following code to your HTML 5.0 document?
I use MAC Microsoft!
/p>
I use MAC Microsoft!

Question: 07 - 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?
webmaster

Question: 08 - In HTML 5.0, how will the script be executed if you use the script element shown below?

The script will be executed when the page has finished parsing.

Question: 09 - What is the output when you use the HTML 5.0 code snippet shown below?

It will alert saying “[object Window]" when the document is loaded.

Question: 10 - A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?


Question: 11 - Consider the above code. What will be the impact upon the contents of the element if both the style sheets define the same class?
The contents of the element will be of blue color and will inherit all the effects of style1.css.

Question: 12 - Which of the following are valid HTML 5.0 elements?




All are correct

Question: 13 - How does a button created by the
An input tag button can be a reset button too.

Question: 14 - Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
colgroup

Question: 15 - Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
The script will run when the media is played to the end, without stopping for buffering.

Question: 16 - The following link is placed on an HTML webpage.


What do you infer from it?
It will open the site msdn.com in a new window.

Question: 17 - While rendering your HTML 5.0 web page, which of the following element files will get skipped by a compliant user agent if you include the link elements shown below in your document?


A link element whose href is “A"

Question: 18 - What does the icon attribute of the HTML 5.0 command tag define?
Click Me!
It is used to define the url of an image to display as the command.

Question: 19 - How will you change the value of the cookies and items in the Storage objects of the localStorage attributes in HTML 5.0?
By invoking the window. navigator.yieldForStorageUpdates() API method.

Question: 20 - What is the role of the element in HTML 5.0? 
It is used to define a definition term

Question: 21 - Which of the following is not a valid input type of the form tag?
checkbox
image
hidden
button
All are valid

Question: 22 - Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
onsubmit

Question: 23 - How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?
window.parent

Question: 24 - In HTML 5.0, which of the following is NOT a valid value for the type attribute when used with the tag shown below?
Click Me!
button

Question: 25 - What is the default background color for the canvas element in HTML 5.0?
Transparent

Question: 26 - Which of the following are valid mouse events in HTML 5.0?
ondblclick
ondragstart
ondragenter
onscroll
ondrop
All are correct

Question: 27 - Which of the following languages will you use to paint the graphics designed using the HTML 5.0 tag? 
JavaScript

Question: 28 - Consider the following items of a


Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
90

Question: 29 - 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.


Question: 30 - What is the function of onobsolete, an application cache API method in HTML 5.0?
It triggers an event when the cache content has been marked as obsolete.

Question: 31 - Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?


Question: 32 - Which of the following is NOT a valid attribute for the element in HTML 5.0?
hreflang

No comments:

Post a Comment