WGU C777 WEB DEVELOPMENT UPDATED 2026
TEST QUESTIONS AND ANSWERS SURE A+
✔✔onclick - ✔✔Refers to an event handler attribute or property in JavaScript to define a
function executed when the click event occurs.
✔✔select event - ✔✔Triggers when a user selects text within an input or textarea field.
✔✔beforeunload or unload event - ✔✔Triggers when the webpage is about to be closed
or refreshed.
✔✔function definition - ✔✔A function is defined using the function keyword followed by
its name, parameters (optional), and a block of code.
✔✔function call - ✔✔A function is called by using its name followed by parentheses. If
the function accepts arguments, they are passed inside the parentheses.
✔✔function output - ✔✔A function's output is defined by the return statement. If no
return statement exists, the function returns undefined by default.
✔✔Function Declaration - ✔✔function calculate(x)
✔✔Function Block - ✔✔{ return x * 3 + 2; }
, ✔✔Parameter(s) - ✔✔x (placeholder in the function definition)
✔✔Argument(s) - ✔✔num (value passed to the function when called)
✔✔Calling Statement - ✔✔calculate(num)
✔✔Return Value - ✔✔The value returned by x * 3 + 2 (in this case, 23).
✔✔Client-side JavaScript - ✔✔Executes in the user's browser (user agent), typically for
rendering dynamic web pages and handling interactions.
✔✔Server-side JavaScript - ✔✔Executes on a server using environments like Node.js,
handling backend logic such as database queries or API processing.
✔✔Embedded Script - ✔✔A script included directly within an HTML document.
✔✔Inline Script - ✔✔A script that is executed in response to an event, such as a button
click.
✔✔External Script - ✔✔A script that is linked to an HTML document via a src attribute,
allowing for separation of JavaScript code from HTML.
✔✔Real-World Object - ✔✔An object that represents a tangible entity, such as a Car,
with properties and methods.
✔✔Properties of an Object - ✔✔Attributes that define the characteristics of an object,
such as color, make, model, and year for a Car.
✔✔Methods of an Object - ✔✔Functions that define the behaviors of an object, such as
start(), drive(), and stop() for a Car.
✔✔Variable Creation - ✔✔The process of defining a variable and assigning it a value.
✔✔String Data - ✔✔Data that is enclosed in single quotes (' '), double quotes ('
✔✔Concatenation - ✔✔Combining multiple string values into one.
✔✔Variable Assignment - ✔✔The process of assigning a value to a variable using the
equals sign (=).
✔✔Method - ✔✔A function associated with an object, used to perform actions or
retrieve information.
TEST QUESTIONS AND ANSWERS SURE A+
✔✔onclick - ✔✔Refers to an event handler attribute or property in JavaScript to define a
function executed when the click event occurs.
✔✔select event - ✔✔Triggers when a user selects text within an input or textarea field.
✔✔beforeunload or unload event - ✔✔Triggers when the webpage is about to be closed
or refreshed.
✔✔function definition - ✔✔A function is defined using the function keyword followed by
its name, parameters (optional), and a block of code.
✔✔function call - ✔✔A function is called by using its name followed by parentheses. If
the function accepts arguments, they are passed inside the parentheses.
✔✔function output - ✔✔A function's output is defined by the return statement. If no
return statement exists, the function returns undefined by default.
✔✔Function Declaration - ✔✔function calculate(x)
✔✔Function Block - ✔✔{ return x * 3 + 2; }
, ✔✔Parameter(s) - ✔✔x (placeholder in the function definition)
✔✔Argument(s) - ✔✔num (value passed to the function when called)
✔✔Calling Statement - ✔✔calculate(num)
✔✔Return Value - ✔✔The value returned by x * 3 + 2 (in this case, 23).
✔✔Client-side JavaScript - ✔✔Executes in the user's browser (user agent), typically for
rendering dynamic web pages and handling interactions.
✔✔Server-side JavaScript - ✔✔Executes on a server using environments like Node.js,
handling backend logic such as database queries or API processing.
✔✔Embedded Script - ✔✔A script included directly within an HTML document.
✔✔Inline Script - ✔✔A script that is executed in response to an event, such as a button
click.
✔✔External Script - ✔✔A script that is linked to an HTML document via a src attribute,
allowing for separation of JavaScript code from HTML.
✔✔Real-World Object - ✔✔An object that represents a tangible entity, such as a Car,
with properties and methods.
✔✔Properties of an Object - ✔✔Attributes that define the characteristics of an object,
such as color, make, model, and year for a Car.
✔✔Methods of an Object - ✔✔Functions that define the behaviors of an object, such as
start(), drive(), and stop() for a Car.
✔✔Variable Creation - ✔✔The process of defining a variable and assigning it a value.
✔✔String Data - ✔✔Data that is enclosed in single quotes (' '), double quotes ('
✔✔Concatenation - ✔✔Combining multiple string values into one.
✔✔Variable Assignment - ✔✔The process of assigning a value to a variable using the
equals sign (=).
✔✔Method - ✔✔A function associated with an object, used to perform actions or
retrieve information.