WGU C777 - Practice Test A 2 VERSIONS Latest Update 2024-2025 Actual Exam from Credible Sources with 125 Questions and Verified Correct Answers Golden Ticket to Guaranteed A+ Verified by Professor 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?
- The Drag-and-Drop API
- The File API
- The Geolocation API
D) The AppCache API - CORRECT ANSWER: 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?
- Follow W3C standards carefully.
- Use more than one version of a language to ensure backward-compatibility.
- Validate the markup code using a W3C-approved code validation service.
D) Use HTML5 markup code exclusively. - CORRECT ANSWER: Follow W3C
standards carefully.
An object-oriented program is:
- a collection of individual objects that perform different functions.
- a collection of methods that trigger a specific function.
- a collection of events that trigger a specific function.
- a sequence of statements that define the user agents in which the program will
function. - CORRECT ANSWER: a collection of individual objects that perform different functions. 1 / 4
As a page developer, how do you use a grid in Responsive Web Design?
- Its invisible guidelines help you place page elements to accommodate various screen
- You use it as a template or boilerplate for all the components in a responsive page
- It keeps your images from exceeding the screen width by sizing with pixels instead of
- You use it to check the type of device used to view the page, then limit the range of
sizes.
design.
percentages.
the page design. - CORRECT ANSWER: 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:
- Cascading Style Sheets (CSS).
- the Document Object Model (DOM).
- HTML5 structure tags.
D) HTML5 APIs. - CORRECT ANSWER: Cascading Style Sheets (CSS).
Consider the following code:
alert("Good morning," + prompt("What is your name?", "") + "!");
What does this snippet of code accomplish?
- It concatenates two methods to display a message, then request and capture user
- It displays a message to the user when a Web page loads, prompting him or her to
- It compares two strings of text and returns a value of true or false, depending on the
input.
supply a name for use in a form.
name a user supplies. 2 / 4
- It assigns the name supplied by a user as a value to the alert variable. - CORRECT
ANSWER: 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:
- an inline CSS style attribute.
- a linked external style sheet attribute.
- an internal style sheet attribute.
D) an embedded style sheet attribute. - CORRECT ANSWER: 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?
- Two alert boxes, the first displaying Green and the second displaying Blue 3 / 4
- Two alert boxes, both displaying the message Green
- Two alert boxes, the first displaying Blue and the second displaying Green
- Two alert boxes, both displaying the message Blue - CORRECT ANSWER: Two alert
boxes, the first displaying Green and the second displaying Blue
Consider the following code:
var userName = "Titan"; What component of JavaScript is "Titan" in this example?
- The variable's value
- The assignment operator
- The variable's name
D) The assignment expression - CORRECT ANSWER: The variable's value
Consider the following JavaScript expression:
"3" + "3" = "33"
This code snippet is an example of:
- concatenation performed on strings.
- mathematical precedence perfromed on numbers.
- mathematical precedence perfromed on strings.
D) concatenation performed on numbers. - CORRECT ANSWER: concatenation
performed on strings.
Consider the following style rule:
p {
border: 1px solid #000;
width: 10em;
- / 4