WGU C777 Web Development Applications
Comprehensive Examination 2026/2027 |
Verified Questions
1. Which HTML5 element represents introductory content or navigational aids
for its nearest ancestor?
A. <section>
B. <header>
C. <main>
D. <aside>
<header> is a semantic element for introductory content, headings, or
navigation aids.
2. Which CSS property changes the text color of an element?
A. text-color
B. font-color
C. color
D. foreground
color sets the foreground text color.
3. Which JavaScript method writes text directly into the HTML document
stream?
A. console.log()
B. document.write()
C. window.alert()
D. innerHTML()
document.write() writes to the document output stream.
4. Which HTML attribute specifies the destination of a link?
A. src
B. link
C. href
,D. url
The <a> element uses href for its hyperlink destination.
5. Which CSS selector has the highest specificity?
A. div
B. .menu
C. #main
D. *
An ID selector has higher specificity than class, element, or universal selectors.
6. Which JavaScript keyword declares a block-scoped variable that cannot be
reassigned?
A. var
B. let
C. const
D. static
const creates a block-scoped binding that cannot be reassigned.
7. What is the main purpose of the HTML <head> element?
A. Display page content
B. Contain metadata about the document
C. Create the page footer
D. Store images
The <head> contains metadata such as title, links, and scripts.
8. Which CSS property creates space between an element’s content and its
border?
A. margin
B. padding
C. border-spacing
D. gap
padding is inside the border; margin is outside.
,9. What does typeof "Hello" return in JavaScript?
A. text
B. string
C. char
D. object
String values return "string" from typeof.
10. Which HTML5 element is used for scriptable graphics?
A. <svg>
B. <canvas>
C. <graphic>
D. <draw>
<canvas> provides a drawing surface controlled by JavaScript.
11. Which is a valid CSS length unit?
A. px
B. m
C. kg
D. sec
px is a valid CSS length unit.
12. How do you link an external JavaScript file?
A. <script href="app.js">
B. <script src="app.js"></script>
C. <javascript file="app.js">
D. <link rel="js" href="app.js">
External scripts use the src attribute.
13. Which CSS property makes text bold?
A. font-style: bold;
B. text-weight: bold;
C. font-weight: bold;
D. bold: true;
font-weight controls boldness.
, 14. Which HTML attribute provides alternative text for an image?
A. title
B. alt
C. caption
D. description
alt describes an image for accessibility and fallback.
15. Which JavaScript method attaches an event handler to an element?
A. element.addEvent()
B. element.addEventListener()
C. element.attachEvent()
D. element.bind()
addEventListener() registers event handlers.
16. What does box-sizing: border-box; do?
A. Includes padding and border in width/height
B. Adds a border automatically
C. Removes margins
D. Centers the box
It makes width/height include content, padding, and border.
17. How do you write a CSS comment?
A. // comment
B. <!-- comment -->
C. /* comment */
D. # comment
CSS comments use /* ... */.
18. Which HTML5 element defines a footer for a document or section?
A. <bottom>
B. <footer>
C. <end>
D. <section>
<footer> is the semantic footer element.
Comprehensive Examination 2026/2027 |
Verified Questions
1. Which HTML5 element represents introductory content or navigational aids
for its nearest ancestor?
A. <section>
B. <header>
C. <main>
D. <aside>
<header> is a semantic element for introductory content, headings, or
navigation aids.
2. Which CSS property changes the text color of an element?
A. text-color
B. font-color
C. color
D. foreground
color sets the foreground text color.
3. Which JavaScript method writes text directly into the HTML document
stream?
A. console.log()
B. document.write()
C. window.alert()
D. innerHTML()
document.write() writes to the document output stream.
4. Which HTML attribute specifies the destination of a link?
A. src
B. link
C. href
,D. url
The <a> element uses href for its hyperlink destination.
5. Which CSS selector has the highest specificity?
A. div
B. .menu
C. #main
D. *
An ID selector has higher specificity than class, element, or universal selectors.
6. Which JavaScript keyword declares a block-scoped variable that cannot be
reassigned?
A. var
B. let
C. const
D. static
const creates a block-scoped binding that cannot be reassigned.
7. What is the main purpose of the HTML <head> element?
A. Display page content
B. Contain metadata about the document
C. Create the page footer
D. Store images
The <head> contains metadata such as title, links, and scripts.
8. Which CSS property creates space between an element’s content and its
border?
A. margin
B. padding
C. border-spacing
D. gap
padding is inside the border; margin is outside.
,9. What does typeof "Hello" return in JavaScript?
A. text
B. string
C. char
D. object
String values return "string" from typeof.
10. Which HTML5 element is used for scriptable graphics?
A. <svg>
B. <canvas>
C. <graphic>
D. <draw>
<canvas> provides a drawing surface controlled by JavaScript.
11. Which is a valid CSS length unit?
A. px
B. m
C. kg
D. sec
px is a valid CSS length unit.
12. How do you link an external JavaScript file?
A. <script href="app.js">
B. <script src="app.js"></script>
C. <javascript file="app.js">
D. <link rel="js" href="app.js">
External scripts use the src attribute.
13. Which CSS property makes text bold?
A. font-style: bold;
B. text-weight: bold;
C. font-weight: bold;
D. bold: true;
font-weight controls boldness.
, 14. Which HTML attribute provides alternative text for an image?
A. title
B. alt
C. caption
D. description
alt describes an image for accessibility and fallback.
15. Which JavaScript method attaches an event handler to an element?
A. element.addEvent()
B. element.addEventListener()
C. element.attachEvent()
D. element.bind()
addEventListener() registers event handlers.
16. What does box-sizing: border-box; do?
A. Includes padding and border in width/height
B. Adds a border automatically
C. Removes margins
D. Centers the box
It makes width/height include content, padding, and border.
17. How do you write a CSS comment?
A. // comment
B. <!-- comment -->
C. /* comment */
D. # comment
CSS comments use /* ... */.
18. Which HTML5 element defines a footer for a document or section?
A. <bottom>
B. <footer>
C. <end>
D. <section>
<footer> is the semantic footer element.