← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 569 · 40 questions
TalentJR

Code tip (Read it like a browser): Find the topic: HTML, CSS, JavaScript or how the web works. Read the code line by line, the way a browser would. For sums and loops, write each step down and check it again.

NameDateTime takenScore ___ / 40
  1. 1.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h3> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
  2. 2.📊 Where do <td> cells go? (a) inside a <tr> (b) inside the <head> (c) inside a <p> (d) inside a <li>
  3. 3.True or false: HTML on its own can run a game loop. (a) False (b) True
  4. 4.🎯 Which element does the selector #hero style? (a) <div id="top"> (b) <div class="hero"> (c) <div id="hero"> (d) <span class="note">
  5. 5.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Guava</td><td>Jamun</td><td>Mango</td><td>Guava</td></tr>
      <tr><td>Papaya</td><td>Guava</td><td>Litchi</td><td>Banana</td></tr>
      <tr><td>Guava</td><td>Jamun</td><td>Jamun</td><td>Mango</td></tr>
    </table>
  6. 6.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  7. 7.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) green (c) black (d) blue
  8. 8.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <h2>Rain today</h2>
    <h2>Good morning!</h2>
    <h2>Fun facts</h2>
    <p>Rain today</p>
    <p>My pets</p>
  9. 9.🔁 How many times does this code print “Welcome”?
    for (let i = 3; i <= 9; i++) {
      console.log("Welcome");
    }
  10. 10.🌈 Which colour of light is strongest in rgb(74, 94, 250)? (a) green (b) blue (c) red
  11. 11.🔍 One closing tag is missing. Which one?
    <strong>I love mangoes.</strong>
    <em>Hello, world!</em>
    <h1>Good morning!
    (a) </h1> (b) </strong> (c) </u> (d) </em>
  12. 12.♿ Does this help everyone, or make the page harder to use: tiny grey text? (a) makes it harder (b) helps everyone
  13. 13.True or false: <th> makes a heading cell. (a) True (b) False
  14. 14.📝 Which input type sends the form? (a) date (b) radio (c) email (d) submit
  15. 15.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h4>Hello, world!</h4>
    <p>Our school trip</p>
    <p>My pets</p>
  16. 16.💬 How does an HTML comment end? (a) >> (b) */ (c) --> (d) //
  17. 17.Which of these has a closing tag? (a) <meta> (b) <h1> (c) <br> (d) <hr>
  18. 18.True or false: to keep passwords secret is safe. (a) True (b) False
  19. 19.🌈 Which hex code is bright green? (a) #ff0000 (b) #00ff00 (c) #000000 (d) #ffffff
  20. 20.⚡ Which word makes a new variable? (a) put (b) make (c) let (d) give
  21. 21.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="colour"> Blue
      <input type="checkbox" name="colour"> Orange
      <input type="checkbox" name="colour"> Red
      <input type="checkbox" name="colour"> Pink
    </form>
  22. 22.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes headings and lists (c) adds space around boxes (d) makes a link
  23. 23.🚀 Which file should this code go in: <a href="a.html">Go</a> (a) index.html (b) script.js (c) style.css
  24. 24.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h2>Hello, world!</h2>
    <h2>My best friend</h2>
    <p>My best friend</p>
    <h3>I love mangoes.</h3>
  25. 25.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Banana</td><td>Mango</td><td>Banana</td></tr>
    </table>
  26. 26.⚖️ Which selector is the strongest? (a) an id selector (b) an element selector (c) a class selector
  27. 27.🌍 Which one is the page’s address? (a) the browser (b) the server (c) HTTPS (d) the URL
  28. 28.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="sport"> Kabaddi
      <input type="checkbox" name="sport"> Cricket
      <input type="checkbox" name="sport"> Football
      <input type="checkbox" name="sport"> Hockey
    </form>
  29. 29.🔁 What does i++ do? (a) adds 1 to i (b) prints i (c) doubles i (d) takes 1 from i
  30. 30.🎯 Which element does the selector li style? (a) <li class="star"> (b) <div> (c) <span class="star"> (d) <p id="main">
  31. 31.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 17; i = i + 2) {
      console.log(i);
    }
  32. 32.🖌️ What colour is behind the letters?
    p {
      font-size: 28px;
      color: black;
      background-color: green;
      text-align: right;
    }
    (a) orange (b) green (c) black
  33. 33.🧭 Which semantic tag holds copyright notes? (a) <article> (b) <header> (c) <footer> (d) <main>
  34. 34.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 22px;
      }
    }
  35. 35.Which of these is padding? (a) space inside the border (b) a solid or dotted edge (c) space outside the border (d) the line round the box
  36. 36.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 9; i++) {
      total = total + 3;
    }
    console.log(total);
  37. 37.🌈 Which colour is rgb(0, 255, 0)? (a) white (b) bright green (c) black (d) yellow
  38. 38.🌗 Is black on white easy or hard to read? (a) easy to read (b) hard to read
  39. 39.What does justify-content: flex-end do? (a) puts boxes in the middle (b) packs boxes at the start (c) equal gaps, none at ends (d) packs boxes at the end
  40. 40.🧭 Is <aside> semantic or not semantic? (a) not semantic (b) semantic

Answer key

  1. <h2>
  2. inside a <tr>
  3. False
  4. <div id="hero">
  5. 4
  6. False
  7. red
  8. 3
  9. 7
  10. blue
  11. </h1>
  12. makes it harder
  13. True
  14. submit
  15. 2
  16. -->
  17. <h1>
  18. True
  19. #00ff00
  20. let
  21. 4
  22. adds space around boxes
  23. index.html
  24. 4
  25. 3
  26. an id selector
  27. the URL
  28. 4
  29. adds 1 to i
  30. <li class="star">
  31. 16
  32. green
  33. <footer>
  34. 24
  35. space inside the border
  36. 27
  37. bright green
  38. easy to read
  39. packs boxes at the end
  40. semantic

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids