{"id":5376,"date":"2026-11-03T13:46:49","date_gmt":"2026-11-03T13:46:49","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5376"},"modified":"2026-11-03T13:46:49","modified_gmt":"2026-11-03T13:46:49","slug":"class-8th-subject-sciencech2-12","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5376","title":{"rendered":"class 8th, subject science,ch2"},"content":{"rendered":"\n<!--nextpage-->\n\n\n\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.0\">\n<title>\ud83e\udde0 Science Quiz \u2013 Decomposition and Biogas<\/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}\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 {\n    text-align: center;\n    color: #1e3c72;\n}\n\n.question {\n    font-weight: bold;\n    margin: 15px 0;\n    line-height: 1.6;\n}\n\n.options label {\n    display: block;\n    margin: 8px 0;\n    padding: 12px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n}\n\n.options label:hover {\n    background: #f0f0f0;\n}\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: 12px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n}\n\n.controls {\n    text-align: center;\n    margin-top: 15px;\n}\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 {\n    background-color: #1e3c72;\n}\n\n#scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n}\n\n#scoreboard h3 {\n    text-align: center;\n}\n\nol {\n    padding-left: 20px;\n}\n\n#userName {\n    padding: 10px;\n    width: 70%;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n}\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"quiz-container\">\n\n<h2>\ud83e\udde0 Science Quiz \u2013 Decomposition and Biogas<\/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. Decomposition kise kehte hain?\",\noptions: [\n\"A. Complex substances ka simpler substances mein break down hona\",\n\"B. Water ka ice mein change hona\",\n\"C. Plants ka sunlight se door jaana\",\n\"D. Soil ka stone mein change hona\"\n],\ncorrect: 0,\nexplanation: \"Decomposition ek process hai jisme microorganisms complex organic substances ko simpler substances mein break down karte hain.<br><br><b>Example:<\/b> Fallen leaves aur fruit peels ka dheere-dheere compost mein badalna decomposition hai.\"\n},\n\n{\nquestion: \"2. Decomposition ke baad nutrients kahan return hote hain?\",\noptions: [\n\"A. Sirf air mein\",\n\"B. Sirf plastic mein\",\n\"C. Soil mein\",\n\"D. Sirf stones mein\"\n],\ncorrect: 2,\nexplanation: \"Microorganisms dead leaves aur doosre organic waste ko decompose karte hain. Is process se nutrients soil mein return hote hain aur plants ki growth mein help karte hain.<br><br><b>Example:<\/b> Decomposed leaves se milne wale nutrients garden ke plants use kar sakte hain.\"\n},\n\n{\nquestion: \"3. Dead animals ke bodies ko decompose karne mein kaun help kar sakta hai?\",\noptions: [\n\"A. Sirf sunlight\",\n\"B. Microorganisms\",\n\"C. Sirf rocks\",\n\"D. Sirf plastic\"\n],\ncorrect: 1,\nexplanation: \"Bacteria aur fungi jaise microorganisms dead animals aur plants ke organic matter ko break down karne mein help karte hain.<br><br><b>Example:<\/b> Nature mein dead organisms samay ke saath decompose hote hain aur nutrients environment mein return hote hain.\"\n},\n\n{\nquestion: \"4. Manure formation ke liye kaunsi conditions important hain?\",\noptions: [\n\"A. Hamesha freezing temperature aur bilkul dryness\",\n\"B. Sirf bahut zyada heat\",\n\"C. Sirf salt ki high concentration\",\n\"D. Optimal temperature aur appropriate moisture\"\n],\ncorrect: 3,\nexplanation: \"Manure ya compost banane ke liye suitable temperature aur moisture important hote hain. Conditions bahut unsuitable hon, toh decomposition slow ho sakta hai.<br><br><b>Example:<\/b> Compost ko appropriate moisture par rakhna helpful hota hai; use na bahut dry aur na hi waterlogged rakhna chahiye.\"\n},\n\n{\nquestion: \"5. Biogas banane mein kaun-se microorganisms help kar sakte hain?\",\noptions: [\n\"A. Oxygen-free environment mein rehne wale kuch bacteria\",\n\"B. Sirf flowering plants\",\n\"C. Sirf insects\",\n\"D. Sirf birds\"\n],\ncorrect: 0,\nexplanation: \"Kuch bacteria oxygen-free conditions mein plant waste, animal waste aur household wastewater ke organic matter ko decompose karte hain. Is process ke dauraan biogas release ho sakti hai.<br><br><b>Example:<\/b> Biogas plant mein cow dung aur suitable organic waste se gas produce ki ja sakti hai.\"\n},\n\n{\nquestion: \"6. Biogas mein primarily kaun-se gases hote hain?\",\noptions: [\n\"A. Sirf oxygen aur hydrogen\",\n\"B. Sirf nitrogen aur oxygen\",\n\"C. Carbon dioxide aur methane\",\n\"D. Sirf helium aur neon\"\n],\ncorrect: 2,\nexplanation: \"Biogas ek mixture of gases hai. Ismein carbon dioxide hoti hai aur methane bhi high proportion mein ho sakta hai. Exact composition conditions aur waste par depend karti hai.<br><br><b>Example:<\/b> Biogas plant mein produce hone wali methane-rich gas ko fuel ke roop mein use kiya ja sakta hai.\"\n},\n\n{\nquestion: \"7. Biogas ka use kis kaam ke liye kiya ja sakta hai?\",\noptions: [\n\"A. Sirf books print karne ke liye\",\n\"B. Cooking, heating aur electricity generate karne ke liye\",\n\"C. Sirf soil ka colour change karne ke liye\",\n\"D. Sirf water ko freeze karne ke liye\"\n],\ncorrect: 1,\nexplanation: \"Biogas mein present methane ek fuel hai. Iska use cooking, heating aur electricity generation jaise kaamon mein ho sakta hai. Suitable systems mein ise vehicles ke fuel ke roop mein bhi use kiya ja sakta hai.<br><br><b>Example:<\/b> Biogas plant se milne wali gas ka use kitchen mein cooking ke liye kiya ja sakta hai.\"\n},\n\n{\nquestion: \"8. Ananda Mohan Chakrabarty ne 1971 mein kis tarah ka bacterium develop kiya tha?\",\noptions: [\n\"A. Jo plants ko metal mein badal de\",\n\"B. Jo oxygen ko completely remove kar de\",\n\"C. Jo food ko hamesha fresh rakhe\",\n\"D. Jo oil spills ko break down karne mein help kare\"\n],\ncorrect: 3,\nexplanation: \"Ananda Mohan Chakrabarty ne ek special bacterium develop kiya jo oil spills ko break down karne mein help kar sakta tha. Is discovery ne pollution control mein microorganisms ki usefulness dikhayi.<br><br><b>Example:<\/b> Sea ya coastal area mein oil spill hone par suitable oil-degrading microbes cleanup mein help kar sakte hain.\"\n},\n\n{\nquestion: \"9. Chakrabarty ki discovery ko patent kis year mein mila tha?\",\noptions: [\n\"A. 1980\",\n\"B. 1971\",\n\"C. 1990\",\n\"D. 2000\"\n],\ncorrect: 0,\nexplanation: \"Textbook ke according, Chakrabarty ki discovery ko 1980 mein patent mila. Patent inventor ko invention par specified legal rights deta hai.<br><br><b>Example:<\/b> Kisi inventor ke naye invention ko patent milne par doosre logon ke us invention ko bina permission use ya sell karne par legal restrictions ho sakti hain.\"\n},\n\n{\nquestion: \"10. Agar Earth par microorganisms na hote, toh kya problem ho sakti thi?\",\noptions: [\n\"A. Saara waste turant disappear ho jaata\",\n\"B. Soil mein nutrients hamesha badhte rehte\",\n\"C. Organic waste ka decomposition aur nutrient recycling bahut prabhavit hoti\",\n\"D. Sabhi plants bina nutrients ke better grow karte\"\n],\ncorrect: 2,\nexplanation: \"Microorganisms decomposition aur nutrient recycling mein important role play karte hain. Unke bina dead plants, animals aur organic waste ko break down karne wale natural processes bahut prabhavit hote.<br><br><b>Example:<\/b> Fallen leaves aur dead organisms ka breakdown slow ya disrupted hota, jisse nutrients ka soil mein return hona bhi prabhavit hota.\"\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 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 saveAnswer() {\n\n    const selected = document.querySelector('input[name=\"option\"]:checked');\n\n    userAnswers[currentQuestion] =\n        selected ? parseInt(selected.value) : null;\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) {\n                cls = \"correct\";\n            }\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                ${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        <h3>Percentage: ${(score \/ questions.length) * 100}%<\/h3>\n    `;\n}\n\nfunction saveScore(name, score) {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\n\n    scores.push({\n        name,\n        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>${s.name} - ${s.score}\/10 (${s.date})<\/li>`\n        ).join(\"\");\n}\n\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde0 Science Quiz \u2013 Decomposition and Biogas \ud83e\udde0 Science Quiz \u2013 Decomposition and Biogas Enter your name to start: Start Quiz Previous Next Submit \ud83c\udfc6 Scoreboard<\/p>\n","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-5376","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5376","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=5376"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5376\/revisions"}],"predecessor-version":[{"id":5377,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5376\/revisions\/5377"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}