{"id":337,"date":"2025-08-22T08:20:46","date_gmt":"2025-08-22T02:50:46","guid":{"rendered":"https:\/\/myschoolnow.in\/?p=337"},"modified":"2025-08-22T08:20:46","modified_gmt":"2025-08-22T02:50:46","slug":"quiz-41","status":"publish","type":"post","link":"https:\/\/myschoolnow.in\/?p=337","title":{"rendered":"Quiz &#8211; 41"},"content":{"rendered":"\n<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\" \/>\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" \/>\n  <title>Occupations &#038; Specialists Quiz \u2014 Grade 6<\/title>\n  <style>\n    body{font-family:Arial, sans-serif;background:#fff;color:#000;margin:0;padding:0;}\n    .container{max-width:900px;margin:0 auto;padding:20px;}\n    h1{font-size:22px;margin-bottom:10px}\n    p.subtitle{color:#555;margin-bottom:20px}\n    .question{margin-bottom:20px;padding:10px;border:1px solid #ccc;border-radius:6px;background:#f9f9f9}\n    .q-text{font-weight:bold;margin-bottom:10px}\n    .options label{display:block;margin:6px 0;padding:6px;border:1px solid #ccc;border-radius:4px;cursor:pointer}\n    .options label:hover{background:#eee}\n    button{margin-top:20px;padding:10px 16px;border:none;border-radius:6px;cursor:pointer}\n    button.primary{background:#000;color:#fff}\n    #resultBox{margin-top:20px;padding:12px;border:1px solid #ccc;border-radius:6px;background:#f2f2f2;display:none}\n  <\/style>\n<\/head>\n<body>\n  <div class=\"container\">\n    <h1>Occupations &#038; Specialists Quiz \u2014 Grade 6<\/h1>\n    <p class=\"subtitle\">Choose the correct word for each description.<\/p>\n\n    <form id=\"quizForm\"><\/form>\n\n    <button id=\"submitBtn\" class=\"primary\" type=\"button\">Submit<\/button>\n    <button id=\"resetBtn\" type=\"button\">Reset<\/button>\n\n    <div id=\"resultBox\"><\/div>\n  <\/div>\n\n  <script>\n    const questions = [\n      {q:'A person who sings is a ____.', choices:['Singer','Actor','Chef'], answer:'Singer'},\n      {q:'A person who performs in plays or movies is an ____.', choices:['Actor','Painter','Vendor'], answer:'Actor'},\n      {q:'A person who cooks professionally is a ____.', choices:['Chef','Barber','Cobbler'], answer:'Chef'},\n      {q:'A person who cuts hair is a ____.', choices:['Barber','Singer','Bibliophile'], answer:'Barber'},\n      {q:'A person who makes wooden furniture is a ____.', choices:['Carpenter','Painter','Vendor'], answer:'Carpenter'},\n      {q:'A person who loves books is a ____.', choices:['Bibliophile','Chef','Chauffeur'], answer:'Bibliophile'},\n      {q:'A person who mends shoes is a ____.', choices:['Cobbler','Carpenter','Barber'], answer:'Cobbler'},\n      {q:'A person who drives a car for others is a ____.', choices:['Chauffeur','Singer','Vendor'], answer:'Chauffeur'},\n      {q:'A person who makes paintings is a ____.', choices:['Painter','Actor','Bibliophile'], answer:'Painter'},\n      {q:'A person who sells goods on the street is a ____.', choices:['Vendor','Chef','Cobbler'], answer:'Vendor'}\n    ];\n\n    const form = document.getElementById('quizForm');\n    const resultBox = document.getElementById('resultBox');\n\n    questions.forEach((q,i)=>{\n      const div = document.createElement('div');\n      div.className = 'question';\n      div.innerHTML = `<div class='q-text'>${i+1}. ${q.q}<\/div>`;\n      const opts = document.createElement('div');\n      opts.className = 'options';\n      q.choices.forEach(c=>{\n        opts.innerHTML += `<label><input type='radio' name='q${i}' value='${c}'> ${c}<\/label>`;\n      });\n      div.appendChild(opts);\n      form.appendChild(div);\n    });\n\n    document.getElementById('submitBtn').addEventListener('click',()=>{\n      let score=0;\n      let feedback=\"\";\n      questions.forEach((q,i)=>{\n        const selected = form.querySelector(`input[name=q${i}]:checked`);\n        if(selected && selected.value===q.answer){\n          score++;\n          feedback += `<p><b>${i+1}.<\/b> Correct \u2714\ufe0f (${q.answer})<\/p>`;\n        } else {\n          feedback += `<p><b>${i+1}.<\/b> Wrong \u274c Correct answer: <b>${q.answer}<\/b><\/p>`;\n        }\n      });\n      resultBox.style.display='block';\n      resultBox.innerHTML=`<b>You scored ${score} out of ${questions.length}<\/b><br><br>${feedback}`;\n    });\n\n    document.getElementById('resetBtn').addEventListener('click',()=>{\n      form.reset();\n      resultBox.style.display='none';\n      document.getElementById('submitBtn').disabled=false;\n    });\n  <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Occupations &#038; Specialists Quiz \u2014 Grade 6 Occupations &#038; Specialists Quiz \u2014 Grade 6 Choose the correct word for each description. Submit Reset<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-quiz"],"_links":{"self":[{"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337"}],"version-history":[{"count":1,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/myschoolnow.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myschoolnow.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}