CORRECT ANSWERS
Because mobile devices have smaller screens, you must lay out your pages differently
than you would for a page that will be viewed primarily on larger screens. Which of the
following is a technique you can use to simplify your page design?
A) Minimize formatting such as fonts and colors.
B) Use tables or frames to organize page content.
C) Provide more links to make navigation easier.
D) Use more images and less text. - answers Minimize formatting such as fonts and
colors.
In Cascading Style Sheets (CSS), what is a rule?
A) A set of values that can be applied to a given property
B) A set of values that can be specified for a given selector
C) A format instruction that consists of a specified selector and the properties and
values applied to it
D) An HTML tag in a Web page that references the style sheet to be applied - answers
A format instruction that consists of a specified selector and the properties and values
applied to it
Tina is creating a Web form that will be used internally in her organization. She wants to
use an image of a green check box to create a Submit button on the form that will
submit user input to a server for processing. Which element can she use to create a
Submit button that uses text and images?
A <input type="submit">
B <button type="button">
C <input type="button">
D <button type="submit"> - answers <button type="submit">
Nevine wants to improve her JavaScript program's efficiency and scalability by defining
her own processes, or functions. Why are functions such an integral part of writing
JavaScript code?
A) Because they process user-generated events
B) Because they perform specific tasks repeatedly throughout your program, as needed
C) Because they generate events
D) Because they transfer program execution to subroutines, procedures or other
functions - answers Because they perform specific tasks repeatedly throughout your
program, as needed
What selector could you use to select every <a> element whose href attribute value
ends with .zip?
A) a[href*=".zip"]
B) a[href#=".zip"]
,C) a[href$=".zip"]
D) a[href^=".zip"] - answers a[href$=".zip"]
HTML comes in several versions. Which of the following includes the Transitional, Strict
and Frameset "flavors"?
A) HTML5
B) HTML 3.2
C) All HTML versions
D) HTML 4.01 - answers HTML 4.01
Tamiko wants to make her Web pages HTML5-compliant and eliminate the need for site
visitors to download plug-ins such as Adobe Flash, Microsoft Silverlight or Apple
QuickTime to view her video files. What can Tamiko do to accomplish this?
A) Incorporate the <movie> element in her Web pages
B) Incorporate the <video> element in her Web pages
C) Incorporate the <audio> element in her Web pages
D) Incorporate the <canvas> element in her Web pages - answers Incorporate the
<video> element in her Web pages
You can test your mobile site pages on a client emulator to ensure:
A) that your code complies with standards.
B) cross-browser and device compatibility.
C) that any coding errors are automatically corrected.
D) that your content does not violate copyright laws. - answers cross-browser and
device compatibility.
Much HTML5 code has backward compatibility built in that enables it to render
acceptable substitutes on the page when older browsers cannot support the newer
HTML features. Which term is used to describe this feature?
A) Cross-browser compatibility
B) Graceful degradation
C) Element deprecation
D) Semantic input type - answers Graceful degradation
A Web designer who assigns specific pixel widths to elements using the HTML
structural elements is using what page-layout method?
A) Relative-width
B) Fluid
C) Fixed-width
D) Liquid - answers Fixed-width
Which CSS3 property determines whether the page background extends into the border
or not?
A) background-origin
B) background-position
C) background-size
,D) background-clip - answers background-clip
Which statement accurately describes a key difference between mobile site design and
responsive site design?
A) A mobile site requires a separate domain and URL, and different HTML from the
main site.
B) In a mobile site, one set of HTML and one URL will work on all devices.
C) In a responsive site, the server does most of the work of optimizing the page for
smaller devices.
D) A responsive site may need to be coded to specific screen sizes, which limits client
devices. - answers A mobile site requires a separate domain and URL, and different
HTML from the main site.
Which type of CSS effect allows you to rotate an element clockwise to a new position
without animation?
A) 2D transformation
B) User interface
C) Scale
D) Transition - answers 2D transformation
Which type of JavaScript error is typically caused by improper use of commands, and
occurs after the script has loaded and is executing?
A) Logic error
B) Load-time error
C) Run-time error
D) Casting error - answers Run-time error
In JavaScript, what is a property?
A) The action that an object can be made to perform
B) The user-defined action that triggers a function
C) A descriptive characteristic of an object that the developer specifies when creating
the object
D) The specific quality that belongs to an attribute of an object - answers A descriptive
characteristic of an object that the developer specifies when creating the object
You are embedding audio in your HTML5 page and want to specify that the audio file
should automatically play immediately upon loading. Which attribute is needed to
accomplish this?
A) autoplay="autoplay"
B) loop="loop"
C) loop="autoplay"
D) autoplay="loop" - answers autoplay="autoplay"
What is the purpose of the CSS3 @font-face rule?
A) To limit the number of fonts used on any single Web page
B) To enable developers to specify custom fonts for Web page elements
, C) To specify a single font face for a page but allow various sizes and styles of it
D) To enable users to change fonts to their preferences on a Web page - answers To
enable developers to specify custom fonts for Web page elements
What is the purpose of the CSS3 transition-delay property?
A) To describe the speed of the transition
B) To describe the entrance and exit styles of the transition
C) To define when the transition will begin
D) To define the amount of time that the transition takes - answers To define when the
transition will begin
While filling out a form, Oscar neglected to enter a value in the "Middle Initial" field, and
then submitted the form. What variable data type will the "Middle Initial" field contain?
A) Object
B) Boolean
C) Null
D) Undefined - answers Null
You can use CSS to align images to text. Which of the following alignment options is the
default alignment?
A) Left
B) Right
C) Bottom
D) Top - answers Bottom
Consider the following JavaScript expression:
() * 2
What is the result of this expression?
A) The result of this expression is: 2
B) The result of this expression is: -0.25
C) The result of this expression is: -0.5
D) The result of this expression is: 8 - answers The result of this expression is: 8
Which technique keeps images from exceeding the width of the screen?
A) Screen resolution
B) Fluid image
C) Flexible frame
D) MobileOK - answers Fluid image
Experts in Web technology expect that the future of Web development will rely heavily
on:
A) Java applets.
B) HTML5 APIs.
C) Apple mobile devices.