- HTML5 Tutorial
- HTML5 - Home
- HTML5 - Overview
- HTML5 - Syntax
- HTML5 - Attributes
- HTML5 - Events
- HTML5 - Web Forms 2.0
- HTML5 - SVG
- HTML5 - MathML
- HTML5 - Web Storage
- HTML5 - Web SQL Database
- HTML5 - Server-Sent Events
- HTML5 - WebSocket
- HTML5 - Canvas
- HTML5 - Audio & Video
- HTML5 - Geolocation
- HTML5 - Microdata
- HTML5 - Drag & drop
- HTML5 - Web Workers
- HTML5 - IndexedDB
- HTML5 - Web Messaging
- HTML5 - Web CORS
- HTML5 - Web RTC
- HTML5 Demo
- HTML5 - Web Storage
- HTML5 - Server Sent Events
- HTML5 - Canvas
- HTML5 - Audio Players
- HTML5 - Video Players
- HTML5 - Geo-Location
- HTML5 - Drag and Drop
- HTML5 - Web Worker
- HTML5 - Web slide Desk
- HTML5 Tools
- HTML5 - SVG Generator
- HTML5 - MathML
- HTML5 - Velocity Draw
- HTML5 - QR Code
- HTML5 - Validator.nu Validation
- HTML5 - Modernizr
- HTML5 - Validation
- HTML5 - Online Editor
- HTML5 - Color Code Builder
- HTML5 Useful References
- HTML5 - Quick Guide
- HTML5 - Color Names
- HTML5 - Fonts Reference
- HTML5 - URL Encoding
- HTML5 - Entities
- HTML5 - Char Encodings
- HTML5 Tag Reference
- HTML5 - Question and Answers
- HTML5 - Tags Reference
- HTML5 - Deprecated Tags
- HTML5 - New Tags
- HTML5 Resources
- HTML5 - Useful Resources
- HTML5 - Discussion
HTML5 Mock Test
This section presents you various set of Mock Tests related to HTML5 Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
HTML5 Mock Test II
Q 1 - Which of the following input control represents a date consisting of a year and a week number encoded according to ISO 8601 in Web Form 2.0?
Answer : A
Explanation
'week' input control represents a date consisting of a year and a week number encoded according to ISO 8601.
Q 2 - Which of the following input control represents a time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601 in Web Form 2.0?
Answer : B
Explanation
'time' input control represents a time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601.
Q 3 - Which of the following input control accepts only numerical value in Web Form 2.0?
Answer : C
Explanation
'number' input control accepts only numerical value. The step attribute specifies the precision, defaulting to 1.
Q 4 - Which of the following input control is used for input fields that should contain a value from a range of numbers in Web Form 2.0?
Answer : D
Explanation
'range' input control is used for input fields that should contain a value from a range of numbers.
Q 5 - Which of the following input control is used for input fields that should contain an e-mail address in Web Form 2.0?
Answer : A
Explanation
'email' input control is used for input fields that should contain an e-mail address.
Q 6 - Which of the following input control is used for input fields that should contain an URL address in Web Form 2.0?
Answer : B
Explanation
'url' input control is used for input fields that should contain an URL address.
Q 7 - Which of the following tag is used to represent the result of different types of output in HTML5?
Answer : A
Explanation
HTML5 introduced a new element <output> which is used to represent the result of different types of output, such as output written by a script.
Q 8 - Which of the following tag provides a hint to the user of what can be entered in the field in HTML5?
Answer : B
Explanation
HTML5 introduced a new attribute called placeholder. This attribute on <input> and <textarea> elements provides a hint to the user of what can be entered in the field. The placeholder text must not contain carriage returns or line-feeds.
Q 9 - Which of the following tag automatically focus one particular form field in HTML5?
Answer : C
Explanation
This is a simple one-step pattern, easily programmed in JavaScript at the time of document load, automatically focus one particular form field.
Q 10 - Which of the following tag insists to have a value in an input control in HTML5?
Answer : D
Explanation
HTML5 introduced a new attribute called required which would insist to have a value in an input control.
Answer : A
Explanation
Yes! HTML5 allows embeding SVG directly using <svg>...</svg> tag.
Answer : A
Explanation
Yes! The HTML syntax of HTML5 allows for MathML elements to be used inside a document using <math>...</math> tags.
Q 13 - Which of the following is true about Cookies?
C - Cookies are limited to about 4 KB of data . Not enough to store required data.
Answer : D
Explanation
All of the above options are correct.
Q 14 - Which of the following is true about Session Storage in HTML5?
B - It will be accessible to any page from the same site opened in that window i.e. session.
Answer : D
Explanation
All of the above options are correct.
Q 15 - Which of the following is true about Local Storage in HTML5?
B - this local storage will be available whenever you would use that page.
Answer : C
Explanation
Both of the above options are correct.
Q 16 - When a session storage data gets deleted in HTML5?
B - If you want to clear all settings, you need to call localStorage.clear() method.
Answer : A
Explanation
The Session Storage Data would be deleted by the browsers immediately after the session gets terminated.
Q 17 - How to delete a local storage data in HTML5?
B - If you want to clear all settings, you need to call localStorage.clear() method.
Answer : C
Explanation
Both of the above options are valid.
Q 18 - Which of the following is correct about Server Side Events(SSE) in HTML5?
A - Using SSE you can push DOM events continously from your web server to the visitor's browser.
C - Server-sent events standardizes how we stream data from the server to the client.
Answer : D
Explanation
All of the above options are correct.
Q 19 - Which of the following is correct about Server Side Events(SSE) in HTML5?
Answer : D
Explanation
All of the above options are correct.
Q 20 - Which of the following is correct Content-type header that a server side script should send for SSE in HTML5?
A - Content-Type: text/event-stream
B - Content-Type: text/application-stream
Answer : A
Explanation
Server side script should send Content-type header specifying the type text/event-stream.
Q 21 - Which of the following is correct about WebSockets in HTML5?
Answer : C
Explanation
Both of the above options are correct.
Q 22 - Which value of Socket.readyState atribute of WebSocket indicates that the connection has not yet been established?
Answer : A
Explanation
A value of 0 indicates that the connection has not yet been established.
Q 23 - Which value of Socket.readyState atribute of WebSocket indicates that the connection is established and communication is possible?
Answer : B
Explanation
A value of 1 indicates that the connection is established and communication is possible.
Q 24 - Which value of Socket.readyState atribute of WebSocket indicates that the connection is going through the closing handshake?
Answer : C
Explanation
A value of 2 indicates that the connection is going through the closing handshake.
Q 25 - Which value of Socket.readyState atribute of WebSocket indicates that the connection has been closed or could not be opened?
Answer : D
Explanation
A value of 3 indicates that the connection has been closed or could not be opened.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | A |
2 | B |
3 | C |
4 | D |
5 | A |
6 | B |
7 | A |
8 | B |
9 | C |
10 | D |
11 | A |
12 | A |
13 | D |
14 | D |
15 | C |
16 | A |
17 | C |
18 | D |
19 | D |
20 | A |
21 | C |
22 | A |
23 | B |
24 | C |
25 | D |