Web Dev for Beginners

Module 23 of 25

Module 23: Knowledge Check

4 min read704 words
What you'll learn
Test your understanding across the whole courseSpot any topics worth revisitingReinforce key ideas through active recall

"Try each question before checking — actively recalling an answer locks it into memory far better than re-reading."

Learning Objectives

By the end of this module, you will be able to:

  • Test your understanding across the whole course
  • Spot any topics worth revisiting
  • Reinforce key ideas through active recall

How to Use This Quiz

Answer all 14 first, then scroll to Answers & Explanations. Each miss points you to the module worth another look.

Try this: Say your answer out loud (or write it) before checking. Hesitating between two options tells you exactly what to review.

The Questions

1. What are the three core languages of the web?

  • A. Python, Java, C++
  • B. HTML, CSS, JavaScript
  • C. Word, Excel, PowerPoint
  • D. HTTP, URL, JSON

2. In the request/response cycle, your browser is the…

  • A. Server
  • B. Client
  • C. Database
  • D. Router

3. What is HTML responsible for?

  • A. Structure and content
  • B. Colors and layout
  • C. Interactivity
  • D. Hosting

4. In the CSS box model, padding is…

  • A. Space outside the box
  • B. Space inside the box, around the content
  • C. The border color
  • D. The font size

5. What makes a page responsive?

  • A. Using only pixels
  • B. Media queries and flexible layouts
  • C. Lots of images
  • D. A faster server

6. Which keyword is best for a value that won't change?

  • A. let
  • B. var
  • C. const
  • D. fixed

7. What does a function's return do?

  • A. Prints to the screen
  • B. Hands a value back to whoever called it
  • C. Deletes the function
  • D. Reloads the page

8. Which comparison should you use to avoid surprises?

  • A. =
  • B. ==
  • C. ===
  • D. =>

9. Array positions in JavaScript start at…

  • A. 0
  • B. 1
  • C. -1
  • D. Any number

10. What is a closure?

  • A. A closed browser tab
  • B. A function that remembers the variables around it
  • C. A type of CSS rule
  • D. A way to end a loop

11. What does an event listener do?

  • A. Styles an element
  • B. Runs code in response to a user action like a click
  • C. Loads a new page
  • D. Stores data forever

12. On a canvas game loop, motion is created by…

  • A. Moving the mouse
  • B. Redrawing at a new position each frame
  • C. Reloading the page
  • D. Adding more HTML

13. What does client-side routing let you do?

  • A. Show different "pages" instantly without a full reload
  • B. Speed up the server
  • C. Style buttons
  • D. Store passwords

14. Why keep a single source of truth for state?

  • A. It looks nicer
  • B. So different parts of the UI never disagree
  • C. To use more memory
  • D. It's required by HTML

Answers & Explanations

  1. B — HTML, CSS, and JavaScript build every page. (Module 1)
  2. B — Your browser is the client; the server responds. (Module 2)
  3. A — HTML is structure and content. (Module 5)
  4. B — Padding is space inside the box; margin is outside. (Module 6)
  5. B — Media queries + flexible layouts adapt to any screen. (Module 7)
  6. C — Use const by default; let only when it changes. (Module 8)
  7. Breturn hands a value back to the caller. (Module 9)
  8. C=== compares value and type, avoiding loose-== surprises. (Module 10)
  9. A — Arrays start at index 0. (Module 11)
  10. B — A closure is a function that remembers its surrounding variables. (Module 12)
  11. B — An event listener runs code when the user acts. (Module 13)
  12. B — Motion is redrawing at a new position each frame. (Module 17)
  13. A — Client-side routing swaps views instantly, no reload. (Module 18)
  14. B — One source of truth keeps the UI consistent. (Module 19)

How did you do?

  • 12–14: Excellent — you've got the full picture.
  • 7–11: Strong — revisit the modules behind any misses.
  • 0–6: Re-skim Modules 1, 5, 6, and 8, then try again. You'll get there.

Key Takeaway: These 14 questions span the whole course — the three languages, how the web works, HTML/CSS and responsiveness, JavaScript (variables, functions, decisions, arrays, closures), events, canvas, routing, and state. Any misses point straight to the module to revisit.