{"id":5331,"date":"2026-10-31T14:13:41","date_gmt":"2026-10-31T14:13:41","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5331"},"modified":"2026-10-31T14:13:41","modified_gmt":"2026-10-31T14:13:41","slug":"class-8th-subject-science-ch1","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5331","title":{"rendered":"class 8th, subject science, ch1"},"content":{"rendered":"\n<!--nextpage-->\n\n\n\n<!--nextpage-->\n\n\n\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n<title>\ud83e\udde0 Science Quiz \u2013 Microorganisms, Electricity, Force and Pressure<\/title>\n\n<style>\nbody {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n    margin: 0;\n}\n\n.quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n}\n\nh2 { text-align: center; color: #1e3c72; }\n\n.question {\n    font-weight: bold;\n    margin: 10px 0;\n    line-height: 1.6;\n}\n\n.options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n}\n\n.options label:hover { background: #f0f0f0; }\n\n.options input { margin-right: 8px; }\n\n.correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n}\n\n.wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n}\n\n.explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n}\n\n.controls { text-align: center; margin-top: 15px; }\n\nbutton {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n}\n\nbutton:hover { background-color: #1e3c72; }\n\n#scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n}\n\n#scoreboard h3 { text-align: center; }\n\nol { padding-left: 20px; }\n\n#userName {\n    padding: 10px;\n    width: 90%;\n    max-width: 300px;\n    margin-bottom: 10px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n}\n\n@media(max-width:600px) {\n    body { padding: 10px; }\n    .quiz-container { width: 100%; padding: 15px; }\n}\n<\/style>\n\n\n\n\n<div class=\"quiz-container\">\n\n<h2>\ud83e\udde0 Science Quiz \u2013 Microorganisms, Electricity, Force and Pressure<\/h2>\n\n<div id=\"nameSection\">\n    <p><strong>Enter your name to start:<\/strong><\/p>\n    <input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    <button onclick=\"startQuiz()\">Start Quiz<\/button>\n<\/div>\n\n<div id=\"quizSection\" style=\"display:none;\">\n\n    <div id=\"questionContainer\"><\/div>\n\n    <div class=\"controls\">\n        <button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous<\/button>\n        <button onclick=\"nextQuestion()\" id=\"nextBtn\">Next<\/button>\n        <button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit<\/button>\n    <\/div>\n\n    <div id=\"result\" style=\"text-align:center; margin-top:20px;\"><\/div>\n\n    <div id=\"scoreboard\">\n        <h3>\ud83c\udfc6 Scoreboard<\/h3>\n        <ol id=\"scoreList\"><\/ol>\n    <\/div>\n\n<\/div>\n<\/div>\n\n<script>\n\nconst questions = [\n\n{\nquestion: \"1. Microorganisms kya hote hain?\",\noptions: [\n\"A. Aise organisms jo sirf naked eyes se dikhte hain\",\n\"B. Aise tiny organisms jo usually microscope se dekhe ja sakte hain\",\n\"C. Sirf bade animals\",\n\"D. Sirf flowering plants\"\n],\ncorrect: 1,\nexplanation: \"Microorganisms bahut chhote living organisms hote hain. Inhe dekhne ke liye usually microscope ki zaroorat hoti hai.\"\n},\n\n{\nquestion: \"2. Kuch microorganisms humans ke liye useful kyun hote hain?\",\noptions: [\n\"A. Woh hamesha infections cause karte hain\",\n\"B. Woh body ko exercise karne se rokte hain\",\n\"C. Woh sirf food spoil karte hain\",\n\"D. Woh digestion aur medicines banane mein help kar sakte hain\"\n],\ncorrect: 3,\nexplanation: \"Kuch microorganisms digestion mein help karte hain, jabki kuch medicines aur useful food products banane mein use hote hain.\"\n},\n\n{\nquestion: \"3. Vaccines ka main purpose kya hota hai?\",\noptions: [\n\"A. Body ke immune system ko specific infection ke against protection develop karne mein help karna\",\n\"B. Body ko nutrients dena\",\n\"C. Har disease ko turant cure karna\",\n\"D. Exercise ki zaroorat khatam karna\"\n],\ncorrect: 0,\nexplanation: \"Vaccines immune system ko kisi particular pathogen ko pehchanne aur uske against response develop karne mein help karti hain.\"\n},\n\n{\nquestion: \"4. Electric current ka heating effect kis situation mein use hota hai?\",\noptions: [\n\"A. Compass ki direction change karne mein\",\n\"B. Water ko bina energy ke freeze karne mein\",\n\"C. Electric iron mein kapde press karne ke liye heat produce karne mein\",\n\"D. Plants ko sunlight provide karne mein\"\n],\ncorrect: 2,\nexplanation: \"Jab electric current heating element se pass hota hai, toh electrical energy heat mein convert hoti hai. Electric iron isi principle par kaam karta hai.\"\n},\n\n{\nquestion: \"5. Electric motor ke working mein electric current ka kaunsa effect important role play karta hai?\",\noptions: [\n\"A. Cooling effect\",\n\"B. Magnetic effect\",\n\"C. Sound effect only\",\n\"D. Gravitational effect\"\n],\ncorrect: 1,\nexplanation: \"Electric current magnetic field produce kar sakta hai. Electric motor mein magnetic effects ki help se motion produce hota hai.\"\n},\n\n{\nquestion: \"6. Jab ek ball ko vertically upar throw kiya jata hai, toh woh wapas ground par kyun girti hai?\",\noptions: [\n\"A. Air pressure hamesha ball ko neeche dhakelta hai\",\n\"B. Ball apni mass lose kar deti hai\",\n\"C. Ball ke andar electric current flow karta hai\",\n\"D. Earth ki gravitational force ball ko neeche pull karti hai\"\n],\ncorrect: 3,\nexplanation: \"Gravity Earth ki taraf objects ko attract karti hai. Isliye upar throw ki gayi ball neeche wapas aati hai.\"\n},\n\n{\nquestion: \"7. Jab moving car ke brakes apply kiye jaate hain, toh car slow ya stop kyun hoti hai?\",\noptions: [\n\"A. Braking force motion ko oppose karti hai\",\n\"B. Car ki gravity khatam ho jaati hai\",\n\"C. Car ka mass turant zero ho jata hai\",\n\"D. Car par koi force act nahi karti\"\n],\ncorrect: 0,\nexplanation: \"Brakes aur tyres ke contact se braking force produce hoti hai, jo car ki motion ko oppose karke uski speed kam karti hai.\"\n},\n\n{\nquestion: \"8. Pressure ka correct meaning kya hai?\",\noptions: [\n\"A. Kisi object ka total mass\",\n\"B. Object ki total speed\",\n\"C. Unit area par lagne wala force\",\n\"D. Object ka total volume\"\n],\ncorrect: 2,\nexplanation: \"Pressure batata hai ki kisi surface ke har unit area par kitna force act kar raha hai. Same force chhote area par lagne se pressure zyada hota hai.\"\n},\n\n{\nquestion: \"9. Air pressure mein difference hone se wind kaise move karti hai?\",\noptions: [\n\"A. Air hamesha sirf neeche move karti hai\",\n\"B. Air generally high-pressure region se low-pressure region ki taraf move karti hai\",\n\"C. Air movement ka pressure se koi relation nahi hai\",\n\"D. Air sirf raat mein move karti hai\"\n],\ncorrect: 1,\nexplanation: \"Pressure difference air ko move karne mein help karta hai. Air movement se breeze aur winds develop hoti hain.\"\n},\n\n{\nquestion: \"10. Strong pressure differences aur suitable atmospheric conditions ke under kya develop ho sakta hai?\",\noptions: [\n\"A. Sirf light drizzle\",\n\"B. Electric motor\",\n\"C. Gravitational force\",\n\"D. Strong winds aur cyclones\"\n],\ncorrect: 3,\nexplanation: \"Atmospheric pressure differences air movement ko drive karte hain. Suitable weather conditions mein strong winds aur cyclones develop ho sakte hain. Lekin cyclone formation mein moisture, rotation aur other atmospheric conditions bhi important hote hain.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n    userName = document.getElementById(\"userName\").value.trim();\n\n    if (!userName) {\n        return alert(\"Please enter your name.\");\n    }\n\n    document.getElementById(\"nameSection\").style.display = \"none\";\n    document.getElementById(\"quizSection\").style.display = \"block\";\n\n    showQuestion();\n    loadScoreboard();\n}\n\nfunction showQuestion() {\n\n    const q = questions[currentQuestion];\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = `\n        <div class=\"question\">${q.question}<\/div>\n\n        <div class=\"options\">\n            ${q.options.map((opt, i) => `\n                <label>\n                    <input type=\"radio\" name=\"option\" value=\"${i}\"\n                    ${userAnswers[currentQuestion] === i ? \"checked\" : \"\"}>\n                    ${opt}\n                <\/label>\n            `).join(\"\")}\n        <\/div>\n\n        <div class=\"explanation\" id=\"explain${currentQuestion}\">\n            ${q.explanation}\n        <\/div>\n    `;\n\n    document.getElementById(\"prevBtn\").style.display =\n        currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"nextBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"submitBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n\n    const selected = document.querySelector('input[name=\"option\"]:checked');\n\n    userAnswers[currentQuestion] =\n        selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion < questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n    }\n}\n\nfunction prevQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n    }\n}\n\nfunction submitQuiz() {\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) => {\n        if (userAnswers[index] === q.correct) {\n            score++;\n        }\n    });\n\n    showResults();\n    saveScore(userName, score);\n    loadScoreboard();\n}\n\nfunction showResults() {\n\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = \"\";\n\n    questions.forEach((q, index) => {\n\n        const selected = userAnswers[index];\n        const correct = q.correct;\n\n        let optsHTML = q.options.map((opt, i) => {\n\n            let cls = \"\";\n\n            if (i === correct) cls = \"correct\";\n\n            if (selected === i && selected !== correct) {\n                cls = \"wrong\";\n            }\n\n            return `<label class=\"${cls}\">${opt}<\/label>`;\n\n        }).join(\"\");\n\n        container.innerHTML += `\n            <div class=\"question\">${q.question}<\/div>\n\n            <div class=\"options\">${optsHTML}<\/div>\n\n            <div class=\"explanation\" style=\"display:block;\">\n                <strong>Explanation:<\/strong> ${q.explanation}\n            <\/div>\n            <hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML = `\n        <h3>Your Score: ${score} \/ ${questions.length}<\/h3>\n        <p>\n        ${score >= 8 ? \"Excellent Work! \ud83c\udf89\" :\n          score >= 5 ? \"Good Attempt! \ud83d\udc4d\" :\n          \"Keep Practising! \ud83d\udcda\"}\n        <\/p>\n    `;\n}\n\nfunction saveScore(name, score) {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\n\n    scores.push({\n        name: name,\n        score: score,\n        date: new Date().toLocaleString()\n    });\n\n    localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\n\n    scores.sort((a, b) => b.score - a.score);\n\n    document.getElementById(\"scoreList\").innerHTML =\n        scores.map(s => `\n            <li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})<\/li>\n        `).join(\"\");\n}\n\nfunction escapeHTML(value) {\n    return String(value).replace(\/[&<>\"']\/g, char => ({\n        \"&\": \"&amp;\",\n        \"<\": \"&lt;\",\n        \">\": \"&gt;\",\n        '\"': \"&quot;\",\n        \"'\": \"&#39;\"\n    })[char]);\n}\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5331","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5331"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5331\/revisions"}],"predecessor-version":[{"id":5332,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5331\/revisions\/5332"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}