&lt;option value=”89″&gt;Item 1&lt;/option&gt;&lt;option value=”90″&gt;Item 2&lt;/option&gt;Which of the following values would be passed on by clicking the submit
button on selecting Item 2 from the list?b) 90

7.
How does a button created by the &lt;button&gt; tag differ from the one
created by an &lt;input&gt; tag?

d) A button tag can include images as well.

8.
In HTML5, 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>

a) button

9.
Once an application is offline, it remains cached until the following happens
(select all that apply):

a) The application cache is programmatically
updated.c) The manifest file is modified.d) The user clears their browser’s data
storage for the site.10 The following are valid use cases of client file/directory access in
HTML5, except:c) Use of the HTML5 File API11 The following link is placed on an HTML webpage:<a href=”http://msdn.com/&#8221;
target=”_blank”> MSDN </a>What can be inferred from it?b) It will open the site msdn.com in a new window.12 True or False:HTML5 Canvas can be used to create images.a) True13 True or false:JavaScript objects can be stored directly into localStorage.b) False14 What does P2P streaming mean when web applications establish a P2P HTTP
connection using HTML?a) It means that streaming of a voice/video
frame is direct, without using any serverbetween
them.15 What is the difference between Server-Sent Events (SSEs) and WebSockets
in HTML5?a) WebSockets can perform bi-directional
(client-server and vice versa) data transfers, while SSEs can only push data to
the client/browser.16 What is the internal/wire format of input type=”date” in HTML5?b) YYYY-MM-DD17 What is the limit to the length of HTML attributes?c) There is no limit.18 What is the purpose of the <q> element in HTML5?c) It is used to define the start of a short
quotation.19 What is the role of the <dfn> element in HTML5?d) It is used to define a definition term.20 When does the ondragleave mouse event get fired in HTML5?b) It gets fired when an element leaves a
valid drop target.21Which event is fired when an element loses its
focus in an HTML5 document?c) onblur22 Which following are valid default values for the <input
type=”date”> HTML5 element?b) 2013-05-3023 Which HTML5 doctype declarations are correct?b) <!DOCTYPE html>d) <!DOCTYPE HTML>24<pre>Which is the standard method for
clearing a canvas?</pre>a) context.clearRect ( x , y , w , h );25 Which media event is triggered when there is an error in fetching media
data in HTML5?a) onstalled26 Which media event will be fired when a media resource element suddenly
becomes empty?d) onemptied27 . Which method of HTMLCanvasElement is used to represent image of Canvas
Element?a) toDataURL()28 Which method of the HTMLCanvasElement is used to represent an image
of a canvas element?a) toDataURL29Which of the following <link> attributes are
not supported in HTML5?b) revc) charset30. Which of the following are sample use cases for HTML5 web workers?d) All of these.31Which of the following are the valid values of the
<a> element’s target attribute in HTML5?a) _blankb) _selfc) _top32. Which of the following are true about the ARIA role attribute in HTML5?a) Every HTML element can have an ARIA role
attribute specified.c) The attribute must have a value that is a
set of space-separated tokensrepresenting the
various WAI-ARIA roles that the element belongs to.33 Which of the following are valid ways to associate custom data with an
HTML5 element?a) <tr class=”foo” data-id-type=”4″>c) <tr class=”foo” data-id_type=”4″>34 Which of the following attributes gets hidden when the user clicks on the
element that it modifies? (Eg. hint text inside the fields of web forms)c) placeholder35. Which of the following code is used to prevent Webkit spin buttons from
appearing on web pages?b)
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }36. Which of the following examples contain invalid implementations of
the ampersand character in HTML5?c) foo &0; bar37.Which of the following HTML5 features is capable
of taking a screenshot of a web page?c) Canvas38. Which of the following is a possible way to get fullscreen video played
from the browser using HTML5?c) <video height=”100%” width=”100%”>39. Which of the following is not a valid attribute for the <video>
element in HTML5?c) disabled40 Which of the following is not a valid syntax for the <link>
element in HTML5?b) <link rev=”stylesheet” href=”abc.css” type=”text/css” target=”_parent”>41. Which of the following is the best method to detect HTML5 Canvas support
in web browsers?d) !!window.HTMLCanvasElemen42 Which of the following is the best method to store an array in
localStorage?b) var names = []; names[0] = prompt(“New
member name?”); localStorage[“names”] =
JSON.stringify(names); var storedNames = JSON.parse(localStorage[“names”]);43. Which of the following is the correct way to check browser support for
WebSocket?b) console.log(window.WebSocket ? ‘supported’ : ‘not supported’);44. Which of the following is the correct way to display a PDF file in the
browser?a) <object type=”application/pdf” data=”filename.pdf” width=”100%”height=”100%”/>45. Which of the following is the correct way to play an audio file in
HTML5?a) var snd = new Audio(“file.wav”); snd.play();b) <audio controls> <source src=”file.ogg”
type=”audio/ogg”> <source src=”file.mp3″
type=”audio/mpeg”> </audio>46. Which of the following is the correct way to store an object in a
localStorage?a) localStorage.setItem(‘testObject’,
JSON.stringify(testObject))47. Which of the following is the correct way to store an object in
localStorage?var obj = { ‘one': 1, ‘two': 2, ‘three': 3 };b) localStorage.setItem(‘obj’,
JSON.stringify(obj));48. Which of the following methods can be used to estimate page load times?a) Using _gaq.push([‘_trackPageLoadTime’]) with Google Analytics.b) Using the Navigation Timing JavaScript
API.49. Which of the following shows correct use of client-side data validation
in HTML5, on username and password fields in particular?a) <input name=”username” required /> <input name=”pass”
type=”password” required/>50. Which of the following statements are correct with regard to the
<hr> and <br> elements of HTML5?b) The <hr> element is used to insert
the horizontal line within the document andthe
<br> element is used to insert a single line break.51. Which of the following statements regarding WebSockets is true?d) All of the above.52. Which of the following video file formats are currently supported by the
<video> element of HTML5?b) MPEG 4c) ogg53. Which of the following video tag attributes are invalid in HTML5?d) pause54. Which of the following will detect when an HTML5 video has finished
playing?a) var video =
document.getElementsByTagName(‘video’)[0];onended = function(e) { }55. Which of the following will restrict an input element to accept only
numerical values in a text field?a) <input type=”text” pattern=”[0-9]*”
/>b) <input type=”number” />c) <input type=”text” pattern=”\d*”/>56. 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 attributes will you use?b) autofocusc) autocomplete57. 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?a) <a href=”mailto:webmaster@xcompany.com”>webmaster</a