WGU C777 Unit 3: JavaScript Test Questions 2025. Exam
Revision Questions and Correct Answers | Graded A+ | 2025
Update |
Which method convert a string value to uppercase letters? - Answer -toUpperCase()
Which event occurs when the loading of an image is terminated? - Answer -abort
Which event occurs when a user clicks the mouse button outside of a particular input field? -
Answer -
blur
Which event occurs when the user clicks on a link or form element? - Answer -click
Which event occurs when a user modifies the value of a form field? - Answer -change
Which event occurs when there is a problem loading an external image or resource? - Answer -
error
Which event occurs when a user clicks into a form field? - Answer -focus
Which event occurs when a page is opened? - Answer -load
Which event occurs when the user moves the mouse pointer over a link, image or other visible
element
on a page? - Answer -mouseOver
Which event occurs when the mouse pointer leaves a link, image or other visible element on a
page? -
Answer -mouseOut
Which event occurs when a form's Reset button is clicked? - Answer -reset
Which event occurs when the user highlights the text in a form field? - Answer -select
Which event occurs when a form's Submit button is clicked? - Answer -submit
Which event occurs when a page closed? - Answer -unload
What are attributes of an object, such as height, color, font size, sentence length and so forth? -
Answer -
properties
What are actions that an object can be made to perform? - Answer -methods
, Which method creates a pop-up box with the specified message string, which the user can dismiss
by
clicking a button in the box? - Answer -alert()
Which method creates a pop-up box with the specified message string and requests user input into
a
text field in the box? - Answer -prompt()
Which method creates a pop-up box with the specified message string and requests user
confirmation
by clicking the OK or Cancel button in the box? - Answer -confirm()
Which method writes the specified message string in the page? - Answer -document.write()
What is a named space of memory? - Answer -variable
Which operator is used to assign values? - Answer -=
Which data type holds any numeric value used for mathematical operations? - Answer -number
Which data type holds any string of alphanumeric characters used for words or for numbered
phrases
that are not mathematically manipulated? - Answer -string
Which expression creates a string value? - Answer -var birthYear = "1956"
Which expression creates an integer value? - Answer -var birthYear = 1956
Which data type holds True or False values only? - Answer -Boolean
Which value indicates that a user enters nothing in a text box then submits the form? - Answer -
null
Which value indicates that a variable has no value assigned yet? - Answer -undefined
What is a part of a statement that is evaluated as a value? - Answer -expression
What is a symbol or character used in expressions to store or evaluate a value? - Answer -operator
Which type of operator assigns a value to a variable using the equal symbol?
Example: myNumber = 25 - Answer -Assignment
Which type of operator evaluates to a number?
Example: 25 + 75 - Answer -Arithmetic
Which type of operator will evaluate to true or false?
Example: 25 < 75 - Answer -Logical
Revision Questions and Correct Answers | Graded A+ | 2025
Update |
Which method convert a string value to uppercase letters? - Answer -toUpperCase()
Which event occurs when the loading of an image is terminated? - Answer -abort
Which event occurs when a user clicks the mouse button outside of a particular input field? -
Answer -
blur
Which event occurs when the user clicks on a link or form element? - Answer -click
Which event occurs when a user modifies the value of a form field? - Answer -change
Which event occurs when there is a problem loading an external image or resource? - Answer -
error
Which event occurs when a user clicks into a form field? - Answer -focus
Which event occurs when a page is opened? - Answer -load
Which event occurs when the user moves the mouse pointer over a link, image or other visible
element
on a page? - Answer -mouseOver
Which event occurs when the mouse pointer leaves a link, image or other visible element on a
page? -
Answer -mouseOut
Which event occurs when a form's Reset button is clicked? - Answer -reset
Which event occurs when the user highlights the text in a form field? - Answer -select
Which event occurs when a form's Submit button is clicked? - Answer -submit
Which event occurs when a page closed? - Answer -unload
What are attributes of an object, such as height, color, font size, sentence length and so forth? -
Answer -
properties
What are actions that an object can be made to perform? - Answer -methods
, Which method creates a pop-up box with the specified message string, which the user can dismiss
by
clicking a button in the box? - Answer -alert()
Which method creates a pop-up box with the specified message string and requests user input into
a
text field in the box? - Answer -prompt()
Which method creates a pop-up box with the specified message string and requests user
confirmation
by clicking the OK or Cancel button in the box? - Answer -confirm()
Which method writes the specified message string in the page? - Answer -document.write()
What is a named space of memory? - Answer -variable
Which operator is used to assign values? - Answer -=
Which data type holds any numeric value used for mathematical operations? - Answer -number
Which data type holds any string of alphanumeric characters used for words or for numbered
phrases
that are not mathematically manipulated? - Answer -string
Which expression creates a string value? - Answer -var birthYear = "1956"
Which expression creates an integer value? - Answer -var birthYear = 1956
Which data type holds True or False values only? - Answer -Boolean
Which value indicates that a user enters nothing in a text box then submits the form? - Answer -
null
Which value indicates that a variable has no value assigned yet? - Answer -undefined
What is a part of a statement that is evaluated as a value? - Answer -expression
What is a symbol or character used in expressions to store or evaluate a value? - Answer -operator
Which type of operator assigns a value to a variable using the equal symbol?
Example: myNumber = 25 - Answer -Assignment
Which type of operator evaluates to a number?
Example: 25 + 75 - Answer -Arithmetic
Which type of operator will evaluate to true or false?
Example: 25 < 75 - Answer -Logical