1|Page
WGU C777 OBJECTIVE ASSESSMENT – PRACTICE EXAM
WITH 200 QUESTIONS & ANSWERS
A web developer is creating a page that must remain usable when
viewed on smartphones, tablets, and desktop monitors. Which
approach BEST supports this requirement?
A. Use fixed-width containers measured in pixels
B. Use responsive design with flexible layouts and media queries
C. Create a separate HTML file for every screen size
D. Prevent the page from resizing when the viewport changes
Answer: B
Which HTML element is MOST appropriate for containing the primary
navigation links for a website?
A. <footer>
B. <article>
C. <nav>
D. <aside>
Answer: C
,2|Page
A developer wants to apply the same formatting rules to multiple pages
of a website. Which method is MOST appropriate?
A. External CSS stylesheet
B. Inline styles on every element
C. HTML comments
D. JavaScript variables
Answer: A
Which CSS declaration changes the text color of an element?
A. font-style: red;
B. background: red;
C. text-decoration: red;
D. color: red;
Answer: D
A developer writes the following CSS:
.container {
,3|Page
width: 80%;
max-width: 1200px;
margin: 0 auto;
}
What is the PRIMARY purpose of margin: 0 auto in this example?
A. To vertically center the container
B. To horizontally center the container when it has a constrained width
C. To increase the container's maximum width
D. To remove all spacing inside the container
Answer: B
Which HTML attribute provides alternative text for an image and is
especially important for users who rely on screen readers?
A. title
B. src
C. alt
D. name
, 4|Page
Answer: C
Which HTTP status code indicates that a requested resource was
successfully returned?
A. 200
B. 301
C. 404
D. 500
Answer: A
A website uses the URL
https://www.example.com/products/index.html. What does https
primarily indicate?
A. The website is hosted on a private network
B. The connection uses encrypted HTTP communication
C. The server is using a local file system
D. The page contains only secure HTML elements
Answer: B
WGU C777 OBJECTIVE ASSESSMENT – PRACTICE EXAM
WITH 200 QUESTIONS & ANSWERS
A web developer is creating a page that must remain usable when
viewed on smartphones, tablets, and desktop monitors. Which
approach BEST supports this requirement?
A. Use fixed-width containers measured in pixels
B. Use responsive design with flexible layouts and media queries
C. Create a separate HTML file for every screen size
D. Prevent the page from resizing when the viewport changes
Answer: B
Which HTML element is MOST appropriate for containing the primary
navigation links for a website?
A. <footer>
B. <article>
C. <nav>
D. <aside>
Answer: C
,2|Page
A developer wants to apply the same formatting rules to multiple pages
of a website. Which method is MOST appropriate?
A. External CSS stylesheet
B. Inline styles on every element
C. HTML comments
D. JavaScript variables
Answer: A
Which CSS declaration changes the text color of an element?
A. font-style: red;
B. background: red;
C. text-decoration: red;
D. color: red;
Answer: D
A developer writes the following CSS:
.container {
,3|Page
width: 80%;
max-width: 1200px;
margin: 0 auto;
}
What is the PRIMARY purpose of margin: 0 auto in this example?
A. To vertically center the container
B. To horizontally center the container when it has a constrained width
C. To increase the container's maximum width
D. To remove all spacing inside the container
Answer: B
Which HTML attribute provides alternative text for an image and is
especially important for users who rely on screen readers?
A. title
B. src
C. alt
D. name
, 4|Page
Answer: C
Which HTTP status code indicates that a requested resource was
successfully returned?
A. 200
B. 301
C. 404
D. 500
Answer: A
A website uses the URL
https://www.example.com/products/index.html. What does https
primarily indicate?
A. The website is hosted on a private network
B. The connection uses encrypted HTTP communication
C. The server is using a local file system
D. The page contains only secure HTML elements
Answer: B