WGU C777, Exam Review Questions and
answers, 100% Accurate. VERIFIED.
What is the term for a piece of data that is to be operated upon or manipulated in some manner? -
Operand
Kwan is using JavaScript extensively to add interactivity to his Web site.
Contained within his script is a coun...
What is the term for a piece of data that is to be operated upon or manipulated in some manner? - ✔✔-
Operand
Kwan is using JavaScript extensively to add interactivity to his Web site.
Contained within his script is a counter object that calculates a date based on a number input by the
user.
Which term describes the action that Kwan's counter object performs? - ✔✔-Method
Which JavaScript event occurs when the mouse pointer leaves from a link, image or other visible
element on the page? - ✔✔-mouseout
Which JavaScript object can trigger the onerror event handler? - ✔✔-image
Which JavaScript object can be affec ted by the onchange event handler as value changes? - ✔✔-select
Which JavaScript object can be affected by the onabort event handler ? - ✔✔-image
Which JavaScript event handler runs when a user closes a browser window ? - ✔✔-onunload
Which JavaScript even t handler is triggered when a user clicks her mouse button outside of a particular
field after typing input there? - ✔✔-onblur
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? - ✔✔-
Because they perform specific tasks repeatedly throughout your program, as needed
1 / 2
alert("Good morning, " + prompt("What is your name?", "") + "!"); - ✔✔-It concatenates two methods to
displ ay a message, then request and capture user input.
Which of the following methods returns a value in the form of a text string ? - ✔✔-prompt()
When you define a named function in JavaScript, you must begin the function block with what? - ✔✔-
The keyword fu nction followed by the function name
What is the basic code you would need to define a named function that returns a value? - ✔✔-function
myFunction() { return value; }
When you load a page containing your JavaScript code into a browser, how can you ensure that your
functions will be available before any user event can occur that might call a function? - ✔✔-Define all
your functions in the <head> section of your HTML page .
What will occur if you define all your functions in the <body> section of your HTML page? - ✔✔-The
functions will load when the browser reaches the script point in the page or when the appropriate user
event occurs.
You are creating user -defined functi ons in your JavaScript code. What must you include immediately
after each function name? - ✔✔-Parentheses ( ) that encompass the arguments to be used in the
function
What is a user -defined function? - ✔✔-A named set of statements that performs a task or c alculates a
value
What is the term for a script block that transfers program execution to a subroutine, procedure or
another function? - ✔✔-Calling statement
When you define a named function in JavaScript, you begin the function block with the keyword fu nction
followed by the function name. The rest of the statements that form the function must be enclosed in: -
✔✔-curly brace { } characters. Powered by TCPDF (www.tcpdf.org)
2 / 2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller PassPoint02. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.49. You're not tied to anything after your purchase.