WGU C777 Web Development
Applications Practice Nurse OA Practice
Exam Questions and Answers 2026.
Advanced Nclex-Style 100 MCQs with
Rationales
Q1
A web developer wants to ensure that a webpage displays properly on mobile devices. Which
HTML element should be included in the <head> section?
A. <meta charset="UTF-8">
B. <meta name="viewport" content="width=device-width, initial-scale=1.0">
C. <title>Mobile Page</title>
D. <link rel="stylesheet">
Answer: B
Rationale: The viewport meta tag instructs browsers to scale content appropriately on different
screen sizes, a key component of responsive design.
Q2
Which HTML5 semantic element is most appropriate for the primary navigation links of a
website?
A. <section>
B. <article>
C. <nav>
D. <aside>
Answer: C
Rationale: The <nav> element identifies navigation areas, improving accessibility and semantic
structure.
, WGU C777 Web Development Applications
Q3
A developer wants to apply the same CSS style to multiple elements. Which selector should be
used?
A. ID selector
B. Class selector
C. Universal selector
D. Element selector
Answer: B
Rationale: Class selectors can be reused across multiple elements, while IDs should be unique.
Q4
Which CSS property controls the space outside an element's border?
A. Padding
B. Margin
C. Border-spacing
D. Width
Answer: B
Rationale: Margin defines the external space around an element.
Q5
A user reports that a button changes color when hovered over. Which CSS pseudo-class is
responsible?
A. :active
B. :focus
C. :hover
D. :visited
Answer: C
Rationale: The :hover pseudo-class applies styles when the pointer is over an element.
, WGU C777 Web Development Applications
Q6
Which JavaScript keyword declares a block-scoped variable?
A. var
B. define
C. let
D. static
Answer: C
Rationale: let creates a block-scoped variable, unlike var, which is function-scoped.
Q7
What will the following code output?
console.log(typeof "42");
A. number
B. integer
C. string
D. object
Answer: C
Rationale: The value "42" is enclosed in quotes and is therefore a string.
Q8
Which HTTP status code indicates a successful request?
A. 200
B. 301
C. 404
D. 500
Answer: A
Rationale: HTTP 200 means the request was processed successfully.
, WGU C777 Web Development Applications
Q9
Which HTML attribute provides alternative text for an image?
A. src
B. title
C. alt
D. href
Answer: C
Rationale: Alternative text improves accessibility and appears if the image fails to load.
Q10
A webpage should adjust its layout automatically based on screen size. This is known as:
A. Progressive enhancement
B. Responsive design
C. Client-side scripting
D. Semantic markup
Answer: B
Rationale: Responsive design adapts content to different devices and screen sizes.
Q11
Which CSS layout model is primarily one-dimensional?
A. Grid
B. Flexbox
C. Float
D. Position
Answer: B
Rationale: Flexbox manages layout along a single row or column.
Q12