WGU C777 - Practice Test A
The terms "HTML family" and "Web development trifecta" are sometimes used to refer to which
combination of Web technologies?
A) HTML5, CSS3 and Javascript
B) HTML5, XML and CSS3
C) HTML5, JavaScript and Flash
D) HTML5, Flash and XML Ans- HTML5, CSS3 and Javascript
Moishe wants to develop mobile apps using the technologies contained in the "HTML5 family." Which
language in the family should Moishe use to create dynamic, interactive capabilities for his apps?
A) JavaScript
B) HTML5
C) Cascading Style Sheets (CSS)
D) Document Object Model (DOM) Ans- JavaScript
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. Ans- Cascading Style Sheets (CSS).
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. Ans- Follow W3C standards carefully.
Pieter wants to make his Web pages HTML5-compliant and eliminate the need for site visitors to
download plug-ins such as Apple iTunes, Apple QuickTime, Adobe Flash or Microsoft Silverlight to listen
to audio. What can Pieter do to accomplish this?
A) Incorporate the audio element in his Web pages
B) Incorporate the video element in his Web pages
C) Incorporate the canvas element in his Web pages
D) Incorporate the movie element in his Web pages Ans- Incorporate the audio element in his Web
pages
What can be considered an advantage of using HTML5 APIs to create mobile apps?
A) HTML5 APIs use fewer resources than plug-ins do.
B) HTML5 APIs can be used in mobile browsers that otherwise do not support HTML5-compliant code.
C) The use of proprietary plug-ins is made easier by embedding them within HTML5 APIs.
D) You need not provide alternative content or controls within HTML5 APIs. Ans- HTML5 APIs use fewer
resources than plug-ins do.
You are the new Web site designer for your company and want to establish a set of conventions for
publishing. Which of the following will help you standardize documents from diffferent departments
throughout the company to achieve this goal?
A) Style sheet
B) Style guide
C) W3C markup validator
D) Cascading style sheet Ans- Style guide
Which of the following is the best example of good coding practice?
A) h1 {
font-family: arial, sans-serif;
color: #FFFFFF;
font-size: 36px;
}
B) h1 {font-family: arial, sans-serif;color: #FFFFFF;font-size: 36px;}
C) h1 {
font-family: arial, sans-serif;color: #FFFFFF;font-size: 36px;
}
D)h1{
font-family: arial, sans-serif;
color: #FFFFFF;
font-size: 36px;} Ans- h1 {
font-family: arial, sans-serif;
color: #FFFFFF;
font-size: 36px;
}
Hector has created a CSS style sheet to ensure visual and formatting consistency across the HTML
documents on his company's intranet. Unbeknownst to Hector, not all computers in the company have a
particular font that Hector included in the style sheet. What will occur when users whose computers do
not have the font try to view the intranet?
A) The users' browsers will display the content to which the font is applied in a default font face.
B) The users' browsers will render invisible the content to which the font is applied.
C) The users' browsers will automatically download the font from the company's font repository.
D) The users' browsers will not open the HTML page containing the font. Ans- The users' browsers will
display the content to which the font is applied in a default font face.
Why is it important to limit words to clear, necessary verbiage on your Web pages, especially on the
home page?
A) Because most users simply scan pages quickly looking for specific information or links to it
B) Because navigation aids should occupy most of the space on Web pages
C) Because you need to leave room for the comments you placed in the code
D) Because you need to leave room for tangential information that elaborates on the main topics AnsBecause most users simply scan pages quickly looking for specific information or links to it
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. Ans- an inline CSS style attribute.
If you wannt a particular block-level element to always appear at the upper-right corner of the browser
window, no matter how far down a user scrolls on the page, which type of CSS positioning should you
apply?
A) Fixed
B) Static
C) Relative
D) Absolute Ans- Fixed
Which of the following was introduced to CSS before CSS version 3?
A) Margins
B) Transformations
C) Transitions
D) Animations Ans- Margins
Jacoby wants to use CSS3 to apply a border to the bottom of the last paragraph in each section element
on a Web page. Which selector should he use?
A) section p:last-of-type
B) section p:last-in-container
C) section p[last]
D) section p~last Ans- section p:last-of-type
Which value of the CSS3 box-shadow property specifies the shadow's size, but is optional?
A) spread
B) inset
C) v-shadow
D) blur Ans- spread
Consider the following style rule:
p {
border: 1px solid #000;
width: 10em;
word-wrap: break-word;
}
A) Long words will wrap to the next line, without a hyphen.
B) Long words will be hyphenated and wrapped to the next line.
C) Long words will expand the width of the paragraph.
D) Long words will extend past the border of the paragraph. Ans- Long words will wrap to the next line,
without a hyphen.
The CSS3 matrix3d transform method defines a 3D transformation using a 4x4 matrix. How many values
are required for this method?
A) 16 values
B) 4 values
C) 8 values
D) 2 values Ans- 16 values
What is the purpose of the CSS3 @keyframes rule?
A) It defines an animation and its position, and it is required.
B) It specifies an animation's position on the page, and it is optional.
C) It lists properties of an animation, such as its name and duration.
D) It specifies when the animation will begin and how much of it will play. Ans- It defines an animation
and its position, and it is required.
The CSS3 box-sizing property forces elements to fit an area in a certain way, such as allowing the border
and padding to fit within the defined width of an element instead of expanding it. Which of the
following values are used with this property?
A) content-box and border-box
B) padding-box and margin-box
C) border-box and padding-box
D) margin-box and content-box Ans- content-box and border-box
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. Ans- a
collection of individual objects that perform different functions.
What is advantageous about the fact that JavaScript is not compiled to any specific hardware platform
or operating system?
A) JavaScript code can be developed quickly.
B) JavaScript code can be written once and run anywhere.
C) JavaScript is event-drivern.
D) JavaScript is browser-independent. Ans- JavaScript code can be developed quickly.
Which of the following statements about JavaScript is true?
A) Mobile browsers cannot use JavaScript.
B) JavaScript runs the same on all browsers.
C) JavaScript is a compiled language.
D) JavaScript is platform-independent. Ans- JavaScript is platform-independent.
What tag is usually used by Web authors to place JavaScript code within an HTML document?
A) The script tag
B) The head tag
C) The body tag
D) The object tag Ans- The script tag
In JavaScript, what is a method?
A) An action that an object can perform
B) A technique to create an object
C) An attribute of an object
D) A user-initiated action Ans- An action that an object can perform
In JavaScript, what function does the prompt method perform?
A) It creates a pop-up box with a text field and requests the user to input information into the field.
B) It creates a pop-up box displaying a message that the user can dismiss by clicking OK.
C) It creates a pop-up box requesting that the user confirm a message by clicking OK (yes) or Cancel (no).
D) It causes a message specified by the developer to be written to the Web page. Ans- It creates a popup box with a text field and requests the user to input information into the field.
Consider the following code:
var userName = "Titan";
What component of JavaScript is "Titan" in this example?
A) The variable's value
B) The assignment operator
C) The variable's name
D) The assignment expression Ans- The variable's value
In JavaScript, what is an expression?
A) A part of a statement that is evaluated as a value
B) A symbol character used to instruct a program how to store or manipulate a value
C) A piece of data that is operated upon or manipulated in some manner
D) A container that holds a value, which you can then access repeatedly in your script Ans- A part of a
statement that is evaluated as a value
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. Ans- It concatenates two
methods to display a message, then request and capture user input
Vista previa del contenido
WGU C777 - Practice Test A
The terms "HTML family" and "Web development trifecta" are sometimes used to refer to which
combination of Web technologies?
A) HTML5, CSS3 and Javascript
B) HTML5, XML and CSS3
C) HTML5, JavaScript and Flash
D) HTML5, Flash and XML Ans- HTML5, CSS3 and Javascript
Moishe wants to develop mobile apps using the technologies contained in the "HTML5 family." Which
language in the family should Moishe use to create dynamic, interactive capabilities for his apps?
A) JavaScript
B) HTML5
C) Cascading Style Sheets (CSS)
D) Document Object Model (DOM) Ans- JavaScript
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. Ans- Cascading Style Sheets (CSS).
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. Ans- Follow W3C standards carefully.
, Pieter wants to make his Web pages HTML5-compliant and eliminate the need for site visitors to
download plug-ins such as Apple iTunes, Apple QuickTime, Adobe Flash or Microsoft Silverlight to listen
to audio. What can Pieter do to accomplish this?
A) Incorporate the audio element in his Web pages
B) Incorporate the video element in his Web pages
C) Incorporate the canvas element in his Web pages
D) Incorporate the movie element in his Web pages Ans- Incorporate the audio element in his Web
pages
What can be considered an advantage of using HTML5 APIs to create mobile apps?
A) HTML5 APIs use fewer resources than plug-ins do.
B) HTML5 APIs can be used in mobile browsers that otherwise do not support HTML5-compliant code.
C) The use of proprietary plug-ins is made easier by embedding them within HTML5 APIs.
D) You need not provide alternative content or controls within HTML5 APIs. Ans- HTML5 APIs use fewer
resources than plug-ins do.
You are the new Web site designer for your company and want to establish a set of conventions for
publishing. Which of the following will help you standardize documents from diffferent departments
throughout the company to achieve this goal?
A) Style sheet
B) Style guide
C) W3C markup validator
D) Cascading style sheet Ans- Style guide
Which of the following is the best example of good coding practice?
A) h1 {
font-family: arial, sans-serif;
color: #FFFFFF;
font-size: 36px;
}
B) h1 {font-family: arial, sans-serif;color: #FFFFFF;font-size: 36px;}