WGU C777 WEB DEVELOPMENT APPLICATIONS PA AND OA
EXAM BANK 2025/2026 WITH COMPLETE QUESTIONS AND
VERIFIED ANSWERS |ALREADY GRADED A+|
Which code segment declares a variable and assigns a Boolean
value to it?
A) var enabled = 'true';
B) bool enabled = true;
C) var enabled = true;
D) bool enabled = 'true'; - ANSWER-var enabled = true;
Which code segment contains a logical expression?
A) if (total > 250){discount = true;}
B) placeOrderAndShip(discount, total);
C) var total = get(discount) + 100;
D) discount = total * 0.75 + 1000; - ANSWER-if (total >
250){discount = true;}
Which code segment contains a logical expression?
A) var discount = CalculateDiscount(total);
B) var discount = total > 250;
C) var discount = (total > 250) ? true : false;
D) var discount = total; - ANSWER-var discount = (total > 250) ?
true : false;
, Page |2
A user's information defaults onto a form. Which event triggers if
the user keys in a new value in the First Name field?
A) change
B) reset
C) unload
D) abort - ANSWER-change
Which JavaScript event handler is associated with the form
object?
A) onclick
B) onchange
C) onselect
D) onreset - ANSWER-onreset
What are variables that are passed to a function called?
A) Arguments
B) Statements
C) Keywords
D) Prompts - ANSWER-Arguments
What must follow the name of a function in a JavaScript function
declaration?
, Page |3
A) Script block
B) Curly braces
C) Calling statement
D) Parenthesis - ANSWER-Parenthesis
Which method should a developer use to create a message and
request user input in a text field?
A) confirm
B) prompt
C) alert
D) write - ANSWER-prompt
Given the following JavaScript:
var name = "student";
Which code statement modifies the name variable so that all
characters are uppercase?
A) name = name.toUpperCase;
B) name.toUpperCase();
C) name = name.toUpperCase();
D) name.toUpperCase; - ANSWER-name = name.toUpperCase();
Which variable name format does JavaScript use?
A) #address