Pre-Assessment Exam with 55 Questions and Correct Answers
1. The HTML5 specification for the <audio> element does not require a specific audi
v v v v v v v v v v v v
o codec to be supported, but it does support three audio formats: MP3, Ogg and
v v v v v v v v v v v v v v v
WAV.
Which major browser supports all three audio formats?: Chrome
v v v v v v v v
2. You are developing pages for your company's Web site.You create an HTM
v v v v v v v v v v v v
L5 search field using the following code:
v v v v v v
<input type="search" name="search">
v v
When you test the page on various browsers, the first browser supports the new in
v v v v v v v v v v v v v v
put type and displays the search field. The second browser does not support this n
v v v v v v v v v v v v v v
ew input type and gracefully degrades. What type of field does the second browse
v v v v v v v v v v v v v
r display?: A text box
v v v v
3. Kwan is using JavaScript extensively to add interactivity to his Web site. Contai
v v v v v v v v v v v v
ned within his script is a counter object that calculates a date based on a number i
v v v v v v v v v v v v v v v v
nput by the user. v v v
1v/v
13
, Which term describes the calculation process that Kwan's counter object perform
v v v v v v v v v v
s?: Method v
4. The HTML5 File API can be used to:: create preview thumbnail images during imag
v v v v v v v v v v v v v
e uploads v
5. What is the basic code you would need to define a named function that retu
v v v v v v v v v v v v v v
rns a value?: function myFunction() { return value; }
v v v v v v v v
6. What can you use in CSS if you want to customize your own HTML element style
v v v v v v v v v v v v v v v
s?: The class and id selectors
v v v v v
7. What two keys are created by the HTML5 <keygen> element?: A private key and
v v v v v v v v v v v v v v
a public key
v v
8. What HTML5 API can you use to provide location-
v v v v v v v v
based services, such as mapping?: The Geolocation API
v v v v v v v
9. Which type of CSS effect allows an element to gradually change styles from one
v v v v v v v v v v v v v v
to another?: Transition
v v
10. You are creating a mobile Web site for your company's polling service. Users
v v v v v v v v v v v v v
will be completing polls and surveys about various topics. How can you simplify th
v v v v v v v v v v v v v
e page layout to increase this site's usability on mobile devices?: -
v v v v v v v v v v v
v Use radio buttons, check boxes and drop-
v v v v v v
2v/v
13