WGU C777 Web
Development Applications –
Original Practice Questions
with Answers and Rationales
Pass Guaranteed (GRADED
A+)
Question 1
Which HTML element is used to create the largest heading on a
webpage?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Answer: C. <h1>
Rationale: The <h1> element represents the highest-level
heading in HTML and is typically displayed as the largest
heading by browsers.
,Question 2
Which CSS property is used to change the text color of an
element?
A. font-style
B. color
C. background-color
D. text-decoration
Answer: B. color
Rationale: The color property controls the foreground text
color of an element.
Question 3
What is the primary purpose of JavaScript in web development?
A. Structuring webpage content
B. Styling webpage elements
C. Adding interactivity and dynamic behavior
D. Managing database storage
Answer: C. Adding interactivity and dynamic behavior
Rationale: JavaScript enables dynamic content, event handling,
form validation, animations, and user interaction within
webpages.
Question 4
Which HTML attribute provides alternative text for an image?
A. title
B. src
,C. alt
D. href
Answer: C. alt
Rationale: The alt attribute supplies alternative text that
improves accessibility and displays when an image cannot be
loaded.
Question 5
Which CSS selector targets all elements with the class name
"menu"?
A. #menu
B. menu
C. .menu
D. *menu
Answer: C. .menu
Rationale: A period (.) is used to target elements by class name
in CSS.
Question 6
What is the purpose of the HTML <form> element?
A. To display images
B. To collect user input
C. To create hyperlinks
D. To define page metadata
Answer: B. To collect user input
, Rationale: The <form> element contains controls such as text
fields, checkboxes, and buttons that gather information from
users.
Question 7
Which JavaScript keyword is used to declare a block-scoped
variable?
A. variable
B. var
C. define
D. let
Answer: D. let
Rationale: The let keyword creates variables that are limited
to the block in which they are declared.
Question 8
Which HTTP status code indicates that a requested page was not
found?
A. 200
B. 301
C. 404
D. 500
Answer: C. 404
Rationale: A 404 status code means the server could not locate
the requested resource.
Development Applications –
Original Practice Questions
with Answers and Rationales
Pass Guaranteed (GRADED
A+)
Question 1
Which HTML element is used to create the largest heading on a
webpage?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Answer: C. <h1>
Rationale: The <h1> element represents the highest-level
heading in HTML and is typically displayed as the largest
heading by browsers.
,Question 2
Which CSS property is used to change the text color of an
element?
A. font-style
B. color
C. background-color
D. text-decoration
Answer: B. color
Rationale: The color property controls the foreground text
color of an element.
Question 3
What is the primary purpose of JavaScript in web development?
A. Structuring webpage content
B. Styling webpage elements
C. Adding interactivity and dynamic behavior
D. Managing database storage
Answer: C. Adding interactivity and dynamic behavior
Rationale: JavaScript enables dynamic content, event handling,
form validation, animations, and user interaction within
webpages.
Question 4
Which HTML attribute provides alternative text for an image?
A. title
B. src
,C. alt
D. href
Answer: C. alt
Rationale: The alt attribute supplies alternative text that
improves accessibility and displays when an image cannot be
loaded.
Question 5
Which CSS selector targets all elements with the class name
"menu"?
A. #menu
B. menu
C. .menu
D. *menu
Answer: C. .menu
Rationale: A period (.) is used to target elements by class name
in CSS.
Question 6
What is the purpose of the HTML <form> element?
A. To display images
B. To collect user input
C. To create hyperlinks
D. To define page metadata
Answer: B. To collect user input
, Rationale: The <form> element contains controls such as text
fields, checkboxes, and buttons that gather information from
users.
Question 7
Which JavaScript keyword is used to declare a block-scoped
variable?
A. variable
B. var
C. define
D. let
Answer: D. let
Rationale: The let keyword creates variables that are limited
to the block in which they are declared.
Question 8
Which HTTP status code indicates that a requested page was not
found?
A. 200
B. 301
C. 404
D. 500
Answer: C. 404
Rationale: A 404 status code means the server could not locate
the requested resource.