WorksheetsWeb Programming Semester 1 Exam
Total questions: 20
Worksheet time: 11mins
Which *New* element did HTML5 introduce to play audio files natively within the browser?
<audio>
<iTunes>
<embed>
<script>
What is an advantage of using HTML5 APIs when designing Web pages for mobile devices?
HTML5 APIs use fewer resources than a proprietary browser plug-in does, such as battery power and CPU memory.
HTML5 APIs eliminate the need for Cascading Style Sheets, thereby saving battery power and CPU memory.
HTML5 APIs make Web pages non-responsive to varying user screen sizes, thereby saving battery power and CPU memory.
HTML5 APIs streamline the application of proprietary browser plug-ins when plug-ins are included in Web pages designed for mobile devices.
Which of the following is no longer necessary when you use HTML5 to develop Web pages?
Installing a third-party plug-in to include video
Validating your markup code
Applying a single W3C standard consistently throughout your document
Using a scripting language to enhance a Web page
Which technology enables you to place formatting instructions in an external text file to determine how HTML elements in a Web page will display?
HTML5 APIs
HTML5
Cascading Style Sheets
Geolocation
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?
The <article> structure element
The <aside> structure element
The <nav> structure element
The <section> structure element
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?
Cascading Style Sheets (CSS)
JavaScript
Flash
CanvasScript
What does it mean to create Web pages with "responsive design"?
Your Web pages incorporate languages and technologies such as Java, ActiveX, Microsoft Silverlight and Adobe Flash.
Your Web pages appear statically regardless of the device used to view them.
Your Web pages respond to user screen size and work in multiple environments.
Your code validates properly so that the code will be recognized by most user agents.
Code validation is the process of:
determining how to display HTML elements in your Web page.
accessing another point in a Web page or separate Web page.
creating code that responds to user screen size.
checking your code to verify that it complies with the syntax rules for your chosen standard.
For what should you use the controls attribute of the <video> element?
To identify an image to be displayed until the Play button is clicked or while the video is downloading
To identify the location and file name of the media resource
To identify the format, or MIME type, of the video
To add video controls such as the Play, Pause, Rewind and Volume controls
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?
Firefox
Chrome
Internet Explorer 10
Safari
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>
controls="default"
controls="audio"
controls="yes"
controls="controls"
Which of the following can be considered a benefit of developing Web pages using the "Web development trifecta"?
You can create Web pages without the need for hyperlinks.
You can create Web pages without the need for page structure elements to define the document structure.
You can create Web pages that easily adapt to smartphones, tablets, gaming devices and smart TVs, as well as to traditional computers.
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.
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>
The src attribute
The controls attribute
The poster attribute
The type attribute
Which of the following can be considered a benefit of Cascading Style Sheets (CSS)?
One simple change to the style sheet will change all associated elements across the site.
Web pages that are linked to a CSS document are more likely to be interpreted accurately by the majority of user agents.
Making changes to elements in the site will update the style sheet.
You can use CSS in lieu of HTML to develop Web pages.
To what does the term "app" refer?
Relatively simple Web pages that work in multiple environments
Relatively simple Web pages that respond to user screen size
Relatively small applications developed exclusively for mobile devices
Relatively small programs that enable components of an application to work together to produce a desired functionality
Which comes first in your HTML document?
<html>
<doctype>
<!DOCTYPE html>
<Title HTML>
Which of the following characters indicates an end or closing tag in an HTML tag?
/
>
#
<end>
