wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Programming Semester 1 Exam

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

Which *New* element did HTML5 introduce to play audio files natively within the browser?

a)

<audio>

b)

<iTunes>

c)

<embed>

d)

<script>

2.
Which attribute provides the user with a way to control the play of the audio: start/stop, jump to any point on the audio track, mute, and adjust volume?
a)
jukebox
b)
controls
c)
playsong
d)
loop
3.
The _______ attribute lets us tell the browser to play the audio track continuously until the user stops or pauses it:
a)
repeat
b)
play
c)
controls
d)
loop
4.

What is an advantage of using HTML5 APIs when designing Web pages for mobile devices?

a)

HTML5 APIs use fewer resources than a proprietary browser plug-in does, such as battery power and CPU memory.

b)

HTML5 APIs eliminate the need for Cascading Style Sheets, thereby saving battery power and CPU memory.

c)

HTML5 APIs make Web pages non-responsive to varying user screen sizes, thereby saving battery power and CPU memory.

d)

HTML5 APIs streamline the application of proprietary browser plug-ins when plug-ins are included in Web pages designed for mobile devices.

5.

Which of the following is no longer necessary when you use HTML5 to develop Web pages?

a)

Installing a third-party plug-in to include video

b)

Validating your markup code

c)

Applying a single W3C standard consistently throughout your document

d)

Using a scripting language to enhance a Web page

6.

Which technology enables you to place formatting instructions in an external text file to determine how HTML elements in a Web page will display?

a)

HTML5 APIs

b)

HTML5

c)

Cascading Style Sheets

d)

Geolocation

7.

HTML5 has introduced specific elements to structure Web pages. In which structure element should you include hypertext menus to access/navigate various pages of the Web site?

a)

The <article> structure element

b)

The <aside> structure element

c)

The <nav> structure element

d)

The <section> structure element

8.

Canvas is an HTML5 API that provides a place on a Web page (a "canvas") where you can display graphics, animation, video and games dynamically without the need for a plug-in. Which of the following should you use to create objects on a canvas?

a)

Cascading Style Sheets (CSS)

b)

JavaScript

c)

Flash

d)

CanvasScript

9.

What does it mean to create Web pages with "responsive design"?

a)

Your Web pages incorporate languages and technologies such as Java, ActiveX, Microsoft Silverlight and Adobe Flash.

b)

Your Web pages appear statically regardless of the device used to view them.

c)

Your Web pages respond to user screen size and work in multiple environments.

d)

Your code validates properly so that the code will be recognized by most user agents.

10.

Code validation is the process of:

a)

determining how to display HTML elements in your Web page.

b)

accessing another point in a Web page or separate Web page.

c)

creating code that responds to user screen size.

d)

checking your code to verify that it complies with the syntax rules for your chosen standard.

11.

For what should you use the controls attribute of the <video> element?

a)

To identify an image to be displayed until the Play button is clicked or while the video is downloading

b)

To identify the location and file name of the media resource

c)

To identify the format, or MIME type, of the video

d)

To add video controls such as the Play, Pause, Rewind and Volume controls

12.

The HTML5 specification supports, among others, the popular MP3, Ogg and WAV audio formats. Which of the following major Web browsers supports all three of these formats?

a)

Firefox

b)

Chrome

c)

Internet Explorer 10

d)

Safari

13.

Which attribute and value must you add to the <audio> element to incorporate default audio operations such as Play, Pause, Volume, etc.?


<audio>

<source src="audio.mp3" type="audio/mpeg" />

<source src="audio.wav" type="audio/wav" />

<source src="audio.ogg" type="audio/ogg" />

Your browser does not support the HTML5 audio element.

</audio>

a)

controls="default"

b)

controls="audio"

c)

controls="yes"

d)

controls="controls"

14.

Which of the following can be considered a benefit of developing Web pages using the "Web development trifecta"?

a)

You can create Web pages without the need for hyperlinks.

b)

You can create Web pages without the need for page structure elements to define the document structure.

c)

You can create Web pages that easily adapt to smartphones, tablets, gaming devices and smart TVs, as well as to traditional computers.

d)

You can create Web pages that no longer need to be validated to an HTML standard in order to properly render in any browser or device.

15.

What attribute prevents the first frame of the video from displaying while the video is downloading?


<video width="360" height="270" controls="controls" poster="image.png">

<source src="video.mp4" type="video/mp4" />

<source src="video.webm" type="video/webm" />

<source src="video.ogg" type="video/ogg" />

Your browser does not support the HTML5 video element.

</video>

a)

The src attribute

b)

The controls attribute

c)

The poster attribute

d)

The type attribute

16.

Which of the following can be considered a benefit of Cascading Style Sheets (CSS)?

a)

One simple change to the style sheet will change all associated elements across the site.

b)

Web pages that are linked to a CSS document are more likely to be interpreted accurately by the majority of user agents.

c)

Making changes to elements in the site will update the style sheet.

d)

You can use CSS in lieu of HTML to develop Web pages.

17.

To what does the term "app" refer?

a)

Relatively simple Web pages that work in multiple environments

b)

Relatively simple Web pages that respond to user screen size

c)

Relatively small applications developed exclusively for mobile devices

d)

Relatively small programs that enable components of an application to work together to produce a desired functionality

18.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
19.

Which comes first in your HTML document?

a)

<html>

b)

<doctype>

c)

<!DOCTYPE html>

d)

<Title HTML>

20.

Which of the following characters indicates an end or closing tag in an HTML tag?

a)

/

b)

>

c)

#

d)

<end>