questions and answers
Aeden is a developer for a company that manufactures various products and has divisions
throughout the world. He is tasked with creating a Web page that will allow team members in
training to drag pictures of company products to the correct company division that creates each
product. What HTML5 API can Aeden use to provide this functionality?
A) The Drag-and-Drop API
B) The File API
C) The Geolocation API
D) The AppCache API - ANSWERS The Drag-and-Drop API
Ahmed is creating an intranet site for his company that may be viewed using several different
browsers. What can he do to help ensure that his Web pages render appropriately, regardless of
the browser used to render them?
A) Follow W3C standards carefully.
B) Use more than one version of a language to ensure backward-compatibility.
C) Validate the markup code using a W3C-approved code validation service.
D) Use HTML5 markup code exclusively. - ANSWERS Follow W3C standards carefully.
An object-oriented program is:
A) a collection of individual objects that perform different functions.
B) a collection of methods that trigger a specific function.
C) a collection of events that trigger a specific function.
D) a sequence of statements that define the user agents in which the program will function. -
ANSWERS a collection of individual objects that perform different functions.
,As a page developer, how do you use a grid in Responsive Web Design?
A) Its invisible guidelines help you place page elements to accommodate various screen sizes.
B) You use it as a template or boilerplate for all the components in a responsive page design.
C) It keeps your images from exceeding the screen width by sizing with pixels instead of
percentages.
D) You use it to check the type of device used to view the page, then limit the range of the page
design. - ANSWERS Its invisible guidelines help you place page elements to accommodate
various screen sizes.
Bella wants to simplify Web page creation so that she need only make on simple change to
affect all like elements across the site simultaneously. To accomplish this, Bella should use:
A) Cascading Style Sheets (CSS).
B) the Document Object Model (DOM).
C) HTML5 structure tags.
D) HTML5 APIs. - ANSWERS Cascading Style Sheets (CSS).
Consider the following code:
alert("Good morning," + prompt("What is your name?", "") + "!");
What does this snippet of code accomplish?
A) It concatenates two methods to display a message, then request and capture user input.
B) It displays a message to the user when a Web page loads, prompting him or her to supply a
name for use in a form.
C) It compares two strings of text and returns a value of true or false, depending on the name a
user supplies.
, D) It assigns the name supplied by a user as a value to the alert variable. - ANSWERS It
concatenates two methods to display a message, then request and capture user input.
Consider the following code:
p style="text-align: center; margin-right: 12px;" /
This code is an example of:
A) an inline CSS style attribute.
B) a linked external style sheet attribute.
C) an internal style sheet attribute.
D) an embedded style sheet attribute. - ANSWERS an inline CSS style attribute.
Consider the following code:
script
var v1 = "Blue";
function f()
{
var v1 = "Green";
alert (v1);
}
f();
alert(v1);
/script
What is the expected result when this script is run in the browser?