Assessment (OA) Exam | Complete Study Guide with Actual
Exam Questions with Verified Correct Answers and
Rationales | Latest Update 2026/2027 -Already Graded A+
Question 1
What is the purpose of a <datalist> element?
A. Define a list of options that are hidden until the user clicks a button
B. Display a read-only text field that cannot be edited by the user
C. Provide suggestions to the user for a form input field
D. Create a multi-select dropdown menu for choosing multiple items
Answer: C
Rationale: The <datalist> element provides autocomplete suggestions for an input
field, offering a list of predefined options.
Question 2
Which development phase helps ensure cross-browser compatibility through
coding standards?
A. Monitoring
B. Implementation
C. Elicitation
D. Validation
Answer: B
Rationale: Implementation involves writing code that follows standards to ensure
cross-browser compatibility.
Question 3
What is a goal of responsive web design?
A. Content on a separate site
B. Dynamic element adjustments
pg. 1
,C. Easier to isolate and update errors
D. Provides processing power
Answer: B
Rationale: Responsive design adjusts elements dynamically to fit different screen
sizes and devices.
Question 4
What is a programming API?
A. A graphical user interface for interacting with software
B. A compiler that translates high-level code into machine code
C. A set of well-defined functions which can be used to interact with a system
D. A database schema used to organize information
Answer: C
Rationale: An API (Application Programming Interface) is a set of functions that
allow software to interact with other systems.
Question 5
What is the purpose of the <output> element?
A. Display a value calculated from data entered by the user
B. Create a button that submits the form when clicked
C. Define a hidden input field that is sent with the form data
D. Display a read-only text field that cannot be edited by the user
Answer: A
Rationale: The <output> element displays the result of a calculation or user input
in a form.
Question 6
Which CSS selector defines an element with a class attribute equal to "subject"?
A. text
B. object
C. .subject
D. _address
pg. 2
,Answer: C
Rationale: In CSS, a class selector is denoted with a dot (.) followed by the class
name.
Question 7
A web developer needs to play an audio file endlessly. Which attribute should this
developer use?
A. loop
B. subject
C. array
D. poster
Answer: A
Rationale: The loop attribute makes the audio file play repeatedly in a loop.
Question 8
Which global attribute should a developer use to bind a label element to an input
element?
A. Emulator
B. for
C. var name = "Student";
D. prompt
Answer: B
Rationale: The for attribute in <label> associates it with a specific input element
by matching the input's id.
Question 9
Which text represents the event handlers in this code snippet? <button
id="magicButton" type="button" onclick="makeItRed()"
onmouseover="makeItYellow()" onmouseout="makeItGreen()">The Magic
Button</button>
A. makeItRed(), makeItYellow(), and makeItGreen()
B. onclick, onmouseover, and onmouseout
pg. 3
, C. button, id, and type
D. onclick, onmouseout
Answer: B
Rationale: Event handlers are the attributes starting with "on" (onclick,
onmouseover, onmouseout).
Question 10
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. select
B. change
C. copy
D. charge
Answer: B
Rationale: The change event fires when the user modifies the value of an input
field.
Question 11
Why is JavaScript considered a scripting language?
A. The code is compiled into machine language before execution
B. It requires a separate compiler to run
C. The code must be interpreted
D. The code is executed directly by the CPU
Answer: C
Rationale: JavaScript is interpreted at runtime rather than compiled, making it a
scripting language.
Question 12
Given the CSS code: div { transition-property: opacity, left, top, height; transition-
duration: 5s; transition-delay: 3s } Which value determines how long the transition
will last?
A. 3 seconds
pg. 4