WGU C777 – Quizzes LATEST UPDATE 2024-
2025 VERION QUESTIONS AND VERIFIED
CORRECT ANSWERS GUARANTEED A+
A JavaScript rule concerning variables states that the first character of a variable name
must be:
- a letter, the "at" symbol ( @ ) or the dollar sign ( $ ).
- a letter, the "at" symbol ( @ ) or the ampersand ( & ).
- a letter, the underscore character ( _ ) or the dollar sign ( $ ).
- a letter, the ampersand ( & ) or the dollar sign ( $ ). - CORRECT ANSWER: a letter,
the underscore character ( _ ) or the dollar sign ( $ ).
All browsers are DOM-compliant, which means that:
- you can develop Web applications that do not rely on proprietary browser plug-ins.
- you do not need to develop multiple versions of your scripts tailored for each
- you can develop Web applications "on the fly" without the need to validate your
- JavaScript is the only scripting language you can use with HTML5. - CORRECT
browser.
source code.
ANSWER: you do not need to develop multiple versions of your scripts tailored for each browser.
Although you can draw various shapes on the HTML5 Canvas, Canvas supports only one primitive shape. Which is it?
- The dot
- The rectangle
- The circle
D) The line - CORRECT ANSWER: The rectangle
Before CSS3, background image size was largely dependent on the size of the original image. What CSS3 property can you use to resize a background image?
- The background-origin property
- The background-clip property
- The background-size property
D) The background-crop property - CORRECT ANSWER: The background-size
property
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?
- Flash
- CanvasScript
- Cascading Style Sheets (CSS)
D) JavaScript - CORRECT ANSWER: JavaScript
- / 4
Code errors can be repaired, once you are aware of them. What should you do first after you have written your script code, and placed it in (or attached it to) an HTML file?
- Use a third-party add-on debugging tool to locate and fix any errors in your code.
- Test the code by running your script in multiple browsers and browser versions to
- Manually review each line of code in your script.
- Use your browser's native debugging tool to locate and fix any errors in your code. -
see if it works as intended.
CORRECT ANSWER: Test the code by running your script in multiple browsers and
browser versions to see if it works as intended.
Code validation is the process of:
- creating code that responds to user screen size.
- accessing another point in a Web page or separate Web page.
- determining how to display HTML elements in your Web page.
- checking your code to verify that it complies with the syntax rules for your chosen
standard. - CORRECT ANSWER: checking your code to verify that it complies with the syntax rules for your chosen standard.
Consider the following code (line numbers added for reference):
function makeBold(text) { var boldText = text.bold() //insert code here }
What code statement must be inserted in Line 3 to return the text in bold to the calling statement?
- makeBold = boldText;
- return true;
- return makeBold;
D) return boldText; - CORRECT ANSWER: return boldText;
Consider the following code from a CSS document:
body {background-color: #008080; color: #FFFFFF;}
This code is an example of what?
- A rule
- A value
- A declaration
D) A property - CORRECT ANSWER: A rule
Consider the following code to create a search field:
input type="search" name="search"
- / 4
What occurs if the input type of "search" is not supported by a browser?
- When text is entered into the field, the right side of the field will display an "X," which
- The search field will not display on the page.
- The search field will display on the page but will not allow any user input.
can be used to clear the text.
D) The search field will degrade to a standard text box. - CORRECT ANSWER: The
search field will degrade to a standard text box.
Consider the following code:
What does this code do?
- It formats every
element that is preceded by an
element as teal text.
- It formats every
element that is followed by a
element as teal text.
- It formats the first
element that is preceded by an
element as teal text.
- It formats the first
element that is followed by a
element as teal text. -
CORRECT ANSWER: It formats every
element that is preceded by an
element as teal text.
Consider the following code:
div {
-webkit-border-image: url(flowers.png) 80 40 round;
}
What function does the -webkit- prefix perform?
- The -webkit- prefix ensures that the CSS3 code that it precedes will render properly
- The -webkit- prefix ensures that the CSS3 code that it precedes will render properly
- The -webkit- prefix ensures that the CSS3 code that it precedes will render properly
- The -webkit- prefix ensures that the CSS3 code that it precedes will render properly
in Opera browsers.
in Firefox browsers.
in Internet Explorer browsers.
in Chrome, Safari and iOS browsers. - CORRECT ANSWER: The -webkit- prefix
ensures that the CSS3 code that it precedes will render properly in Chrome, Safari and iOS browsers.
Consider the following code:
form fieldset name="pattern_attribute" 3 / 4
legend The Pattern Attribute /legend br Date: input type="text" pattern="\d{1,2}/\d{1,2}/\d{4}" br br button type="submit" formaction="http://ss1.ciwcertified.com/cgi-bin/process.pl" Submit Form /button /fieldset /form
Which choice illustrates a valid entry for the Date field?
A) 4/1/15
B) 4/1/2015
- April 1, 2015
D) 1 April 2015 - CORRECT ANSWER: 4/1/2015
Consider the following code:
form
User name: input type="text" name="username"
Encryption: keygen name="encryption"
input type=submit /form
What does the keygen element display?
- A private key that is sent to the Web site's server to match the user's key
- A public key that is stored locally on the user's computer
- A key-pair generator field that creates a private key and a public key when the form
- A list of global attributes that you can use with other elements that define an HTML
is submitted
form - CORRECT ANSWER: A key-pair generator field that creates a private key and a public key when the form is submitted
Consider the following code:
function counter(x) { x = x + 1; }
var myVar = 0; counter(myVar);
What is the value of myVar after execution?
A) The value is: 1
B) The value is: 0
C) The value is: null
- The value is: x - CORRECT ANSWER: The value is: 0
Consider the following code:
- / 4