HTML5 FOR SOFTWARE ENGINEERING
1) In case we want to implement a JavaScript fallback, we would use the
conditional statement using Modernizr.
a) True
b) False
2) ……………………… is a resource loader (CSS and JavaScript) that would specifically
to work side-by-side with Modernizr. a) HasEvent()
b) Navigation.userAgent
c) Modernizr.load
d) Modernizr.geolocation
3) ………………… is used to test whether geolocation is supported in JavaScript
a) Modernizr
b) Modernizr.geolocation
c) Navigator.userAgent
d) Modernizr.js
4) Modernizr does actually add missing functionalities to browser HTML5 tags
styling support a) True
b) False
5) ………………… allows you to add custom styles to the document ……….. element
afterwards a) HasEvent()
b) testAllProps()
c) TestProp()
d) Modernizr.testStyles()
6) ………………….. is an open source JavaScript Library that allows support for
different levels of experiences based on the capabilities of each group a)
Navigator
b) Modernizr
c) Geolocation
d) Google API
7) Some users have requested test for IE’s float double margin for position:
fixed. Which API is suitable for them?
a) mq() media Plugin API
b) addTest() Plugin API
c) TestAllProps() Plugin API
d) None of the mentioned
8) Which property is used to detect the browser’s user agent and the pertinent
cases?
a) Navigator.userAgent
b) Navigator.user
c) Navigator
d) Return
9) Which one of the following is not a step to install a library you have to
perform the compatibility browsers?
a) Download the library from the github location
b) Uncompress the file
c) Insert the following code inside the head tag
d) None of the mentioned
10) Which one of the following is an open source JavaScript library used in
styling for HTML5 elements in versions of Internet Explorer Library
a) HTML5
b) HTML5 Shiv
c) HTML5 Shim
d) HTML5 Sham
11) If your browser supports HTML5 microdata API, there will be …………… function on
the global document object. a) getItems()
b) getData()
c) getText
d) getContent()
12) The ………………… is an instruction to the web browser about the version of HTML
page a) <!DOCTYPE>
b) <DOCTYPE>
c) <TYPE>
d) <!TYPE>
13) For defining the possible line break which tag do we have to use
a) <video>
b) <track>
c) <summary>
d) <wbr> / <br>
14) …………… tag is used to specify an inline iframe
a) <jframe>
b) <frameset>
c) <iframe>
d) <frame>
15) SVG graphics do not lose quality when they are resized?
a) True
b) False
c) Can’t determine
d) None of these
16) The doctype should already be on the first line of every HTML page
a) Yes
b) No
17) Following code is used for <video width=”320” Height=”240”
control=”controls”> <source src=”test.mp4” type=”video/mp4” /> </video> a) Display
Audio
b) Display Video
c) Display Text
d) Display Image
18) Given statement is true or false: “Web worker script is dependent on his
script” a) Yes
b) No
19) In HTML5 width attribute specifies the width of the
a) Inline frame
b) Outline frame
c) Frameset
d) Table
20) Which of the following are input type attribute in HTML5?
1) Search
2) Datetime
3) Week
4) Color 5) Track
6) Placeholder
a) 1, 2, 3, 4, 6
b) 1, 2, 3, 4, 5
c) 2, 3, 4, 5, 6
d) 1, 3, 4, 5, 6
21) ………………………..property returns the URL of current audio/video.
a) CurrentSrc
b) Control
c) Ended
d) MediaGroup
22) …………….. allows you to set some element to be editable inside the browser
a) Spellcheck
b) contentEditable
c) dropzone
d) contextmenu
23) Where does web workers(s) script run?
a) In foreground
b) In background
c) Both a and b
d) Can’t determine
24) Which attribute enables a set of extra restrictions on any content by the
<iframe>? a) Src
b) Name
c) Srcdoc
d) Sandbox
25) Following method is used to get the current locations of the user in HTML5?
a) GetCurrentPosition()
b) getPosition()
c) getLocation()
d) getCurrentLocation()
26) Height attribute specifies the height of which frame?
a) Iframe
b) Jframe
c) Inline frame
d) Outline frame
27) Terminate() method in HTML5 is used for ………………….
a) Terminate everything
b) Terminate all method
c) Terminate a web worker
d) Terminate program
28) What is W3C?
a) World Wide Web Consortium
b) World Wide Web Corporation
c) World Wide Web Company
d) World Wide Web Controlling
29) Which attribute allows the inline frame to appear as though it is being
rendered as part of the containing document? a) Sandbox
b) Seamless
c) Src
d) Srcdoc
or C
30) Which of the following attribute(s) isn’t supported by HTML5?
1) Iframeborder
2) Scrolling
3) Marginwidth
4) Marginheight
a) 1 and 2
b) 3 and 4
c) All of the above
d) None of these
31) Which storage object is used for storing the data with no expiry date
a) Session storage
b) Local Storage
c) Mass Storage
d) Stack Storage
32) What is mean by DTD?
a) Document type data
b) Data type definition
c) Document type definition
d) Definition type document
33) Application cache is used for ……….. 1) Offline browsing 2) Speed 3) server
load
a) 1 and 2
b) 3 and 4
c) All of the above
d) None of these
34) How many browser sage colors are there?
a) 16 Million
b) 216
c) 256
d) Can’t determined
35) The manifest file is ………………………….
a) Text file
b) HTML file
c) XML file
d) Java file
36) Which element provides a secure way to authenticate the user?
a) <keygen>
b) <datalist>
c) <output>
d) <input>
37) ……………….. Function displays the latitude and longitude in geolocation in
HTML5.
a) ShowLocation()
b) ShowPosition()
c) Both a and b
d) showStatus()
38) Frame concept is available in HTML5
a) Yes
b) No
39) Graphics defined by SVG is in ……………………. Format.
a) HTML
b) XML
c) XHTML
d) DTD
40) Which modern browser does not support the HTML5 tag?
a) IE 8
b) Safari
c) Mozilla
d) Opera
41) The sessionStorage object stores the data for………………….
a) One session
b) Two session
c) Three session
d) Multiple session
42) What do you mean by SVG?
a) Secondary vector graphics
b) Scalable vertical graphics
c) Scalable vector graphics
d) Scalable vector graph
43) Is it possible to use HTML5 for the mobile application?
a) Yes
b) No
44) Which of the following term describes the art of making dynamic and
interactive web pages? a) DHTML
b) HTML
c) XHTML
d) XML
45) Which element is used to draw graphics images on a web page?
a) Script
b) Audio
c) Embed
d) Canvas
46) Text/HTML is called the ………………………. Of the page.
a) Content type
b) Mime type
c) Content type/Mime type
d) None of these
47) Which of the following is not a media element used in HTML5? 1)<source>
2)<audio> 3)<track> 4) <time> a) 1
b) 2
c) 4
d) 3
48) Which of the following are not a markup element in HTML5? 1) <aside> 2)
<summary> 3) <progress> 4) <embed> a) 1
b) 4
c) 2
d) 3
49) Attributes consist of a name and a value separated by ……………. Sign a) “ ”
b) ,
c) =
d) ;
50) Which of the following attribute triggers event when the document comes
online?
a) Onloadedmetadata
b) Onloadstart
c) Onmessage
d) Ononline
51) Which of the following attribute triggers event when media has reach the end?
a) Ondrop
b) Ondurationchange
c) Onemptied
d) Onended
52) Which of the following attribute triggers event before the document is
printed? a) Onbeforeprint
b) Onafterprint
c) Onprint
d) Beforeinput
53) Which of the following attribute specifies the context menu for an element?
a) Key
b) Contextcontent
c) Contextmenu
d) Context
54) Which of the following is true about ‘canvas’ tag in HTML5?
a) HTML5 element <canvas> gives you an easy and powerful way to draw graphics
using JavaScript.
b) It can be used to draw graphs, make photo compositions or do the simple (and
not so simple) animations.
c) Both of the above
d) None of the above
55) Which value of the socket.readyState attribute of WebSocket indicates that
the connection is going through the closing handshake? a) 0
b) 1
c) 2
d) 3
56) Which of the following input control is used for input fields that should
contain an e-mail address in Web Form 2.0? a) Email
b) url
c) number
d) range
57) Which of the following tag represents a section of the document intended for
navigation in HTML5? a) Footer
b) Nav
c) Section
d) Dialog
58) Which of the following is true about HTML5.0?
a) HTML5 is the next major revision of the HTML standard superseding HTML 4.01,
XHTML 1.0 and XHTML1.1.
b) HTML5 is a standard for structuring and presenting content on the World Wide
Web.
c) HTML5 is a cooperation between the World Wide Web Consortium (W3C) and Web
Hypertext Application Technology Working Group (WHATWG).
d) All of the above.
59) What is the correct HTML5 element for playing audio file?
a) <mp3>
b) <sound>
c) <audio>
60) What is the correct HTML5 element for playing video file?
a) <media>
b) <movie>
c) <video>
61) Which HTML5 element is used to specify a footer for a document or section?
a) <section>
b) <bottom>
c) <footer>
62) HTML comments start with <!- - and end with - ->
a) False
b) True
63) An iframe is used to display a web page within a web page
a) True
b) False
64) Which is the correct HTML for inserting a background image?
a) <body background=”background.gif”>
b) <background img=”background.gif”>
65) What is the correct HTML for inserting an image?
a) <img alt=”MyImage”>image.gif</img>
b) <img href=”image.gif” alt=”MyImage”>
c) <image src=”image.gif” alt=”MyImage”>
d) <img src=”image.gif” alt=”MyImage”>
66) What is the correct HTML for making a text area?
a) <textarea>
b) <input type=”textarea”>
c) <input type=”textbox”>
67) What is the correct HTML for making a drop down list?
a) <select>
b) <list>
c) <input type=”list”>
d) <input type=”dropdown”>
68) What is the correct HTML for making a text input field?
a) <textfield>
b) <textinput type=”text”>
c) <input type=”textfield”>
d) <input type=”text”>
69) What is the correct HTML for making a checkbox?
a) <input type=”check”>
b) <checkbox>
c) <input type=”checkbox”>
d) <check>
70) How can you make a bulleted list?
a) <ul>
b) <list>
c) <dl>
d) <ol>
71) How can you make a numbered list?
a) <ul>
b) <list>
c) <dl>
d) <ol>
72) Which of these elements are all <table> elements?
a) <table> <head> <tfoot>
b) <table> <tr> <td>
c) <thead> <body> <tr>
d) <table> <tr> <th>
73) How can you open a link in a new tab of a browser window?
a) <a href=”url” target=”_blank”>
b) <a href=”url” new>
c) <a href=”url” target=”new”>
74) Which character is used to indicate an end tag?
a) ^
b) <
c) /
d) *
75) What is the correct HTML for creating a hyperlink?
a) <a url=”http://www.w3schools.com” >W3schools.com</a>
b) <a href=” http://www.w3schools.com”> W3schools.com</a>
c) <a name=” http://www.w3schools.com”> W3schools.com</a>
d) <a>http://www.w3schools.com </a>
76) Choose the correct HTML element to define emphasized text?
a) <italic>
b) <em>
c) <emp>
77) Choose the correct HTML element to define important text?
a) <strong>
b) <important>
c) <i>
78) What is the correct HTML for adding a background color?
a) <body bg=”yellow”>
b) <body background-color=”yellow>
c) <background>yellow</background>
79) What is the correct HTML elements for inserting a line break?
a) <lb>
b) <break>
c) <br>
80) Choose the correct HTML element for the largest heading?
a) <heading>
b) <head>
c) <h6>
d) <h1>
81) Who is making the Web standards?
a) Mozilla
b) Google
c) Microsoft
d) The World Wide Web Consortium
82) What does HTML stand for?
a) Home Tool Markup Language
b) Hyperlinks and Text Markup Language
c) Hypertext Markup Language
83) What is the correct HTML for making a text area?
a) <input type=”textarea” />
b) <input type=”textbox” />
c) <textarea>
d) <area>
84) What is the correct HTML for creating a hyperlink?
a) <a url=”http://www.google.com” >Google</a>
b) <a href=” http://www. google.com”> Google</a>
c) <a name=” http://www. google.com”> Google</a>
85) Which character entity would you use to display extra spaces on a web
a) &
b) &alt;
c)
d) &space;
86) What is the correct HTML for making a checkbox?
a) <input type=”ckbox”/>
b) <input type=”check”/>
c) <input type=”checkbox”/>
d) <input type=”box”/>
87) What file extension should HTML files have?
a) .web
b) .page
c) .html
d) .cdr
88) To create a drop down list for a form, which syntax would you use?
a) The general <select> and <dropdown> tags.
b) The general <select> and <option> tags.
c) The general <option> and <text> tags.
d) The general <dropdown> and <text> tags.
89) To center, right or left justify text of an image, what code would I use?
a) Justify
b) Align
c) Push
d) Send
90) To creating a link a document to a section in the same document, you use an
……………… a) Suspender
b) Extra rollover
c) Bookmark
d) Anchor
91) To begin a new line without starting a new paragraph, which code would you
use? a) <i>
b) <newline>
c) <line>
d) <br>
92) Which part of the HTML document would you find your META tag information?
a) Body
b) Title
c) Form
d) Head
93) Table cells are represented by:
a) <TD></TD>
b) <TCELL></TCELL>
c) <TC></TC>
d) <CELL></CELL>
94) A table is a ……………………….
a) ARPAnet.
b) Input area on web page
c) Method used to keep web pages formatted correctly.
d) An internet activity that involves synthesis of information.
95) What is the HTML feature that divides a web into two or more scrollable
parts?
a) Split page
b) Frame
c) Form
d) Table
96) A URL is …………………………..
a) A web address
b) File format that retains format on the web
c) File format that retains format on the web
d) File format used to transfer files from one word processor to another.
97) HTML is ………………………………………………………
a) A company that provides access to the internet.
b) Common questions and answers.
c) The language of the web.
d) Common graphic format on the Web
98) Gif is a …………………………….
a) The language of the web.
b) Common graphic format on the web.
c) A company that provide access to the internet
d) Common questions and answers
99) Which set of tags looks like this? .Dog .Cats
.Birds
a) <ul></ul>
b) <u></u>
c) <ol></ol>
d) <dl></dl>
100) Between which set of tags does most of the content of your web page need to
be placed? a) <text></text>
b) <body></body>
c) <title></title>
d) <head></head>
101) Which tag makes the largest headline?
a) H1
b) H2
c) H3
d) H4
102) Which is the correct tag to make a link tag will send an email?
a) <a href=”sendmail://nicholso_p01@firn.edu”>
b) <a href=” nicholso_p01@firn.edu”>
c) <a href=”mailto: nicholso_p01@firn.edu”>
d) The picture above