{"id":5372,"date":"2026-11-02T14:42:49","date_gmt":"2026-11-02T14:42:49","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5372"},"modified":"2026-11-02T14:42:49","modified_gmt":"2026-11-02T14:42:49","slug":"class-8th-subject-sciencech2-11","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5372","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>Microorganisms Quiz \u2013 Decomposition and Manure<\/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: 20px;\n  min-height: 100vh;\n  margin: 0;\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}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 15px 0;\n  line-height: 1.6;\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  line-height: 1.5;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 12px;\n  margin-top: 10px;\n  margin-bottom: 15px;\n  border-left: 5px solid #2a5298;\n  border-radius: 5px;\n  line-height: 1.6;\n  display: none;\n}\n.controls {\n  text-align: center;\n  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}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#userName {\n  padding: 10px;\n  width: 65%;\n  max-width: 300px;\n  border: 1px solid #ccc;\n  border-radius: 5px;\n}\n#progress {\n  text-align: center;\n  color: #555;\n  font-weight: bold;\n}\nhr {\n  border: 0;\n  border-top: 1px solid #ddd;\n  margin: 20px 0;\n}\n@media(max-width:600px) {\n  body {\n    padding: 10px;\n  }\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n}\n<\/style>\n<\/head>\n\n<body>\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\udde0 Microorganisms Quiz \u2013 Decomposition and Natural Manure<\/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    <p id=\"progress\"><\/p>\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  <\/div>\n<\/div>\n\n<script>\nconst questions = [\n\n{\nquestion: \"1. Garden soil mein fruit aur vegetable peels daalkar kuch weeks ke liye chhodne par kya ban sakta hai?\",\noptions: [\"Plastic\", \"Natural manure\", \"Glass\", \"Metal\"],\ncorrect: 1,\nexplanation: \"Soil mein present kuch microorganisms fruit aur vegetable peels ko decompose karke dark-coloured, nutrient-rich manure banate hain.\",\nexample: \"Potato peels, banana peels aur dry leaves ko compost banane ke liye use kiya ja sakta hai.\"\n},\n\n{\nquestion: \"2. Fruit aur vegetable peels ko manure mein convert karne mein kaun help karta hai?\",\noptions: [\"Sirf sunlight\", \"Sirf stones\", \"Sirf plastic\", \"Fungi aur bacteria\"],\ncorrect: 3,\nexplanation: \"Fungi aur bacteria decomposers ki tarah kaam karte hain. Ye plant waste ko break down karke simpler substances mein convert karte hain.\",\nexample: \"Garden ki soil mein fungi aur bacteria fallen leaves ko decompose karne mein help karte hain.\"\n},\n\n{\nquestion: \"3. Activity 2.7 mein container ko kitna soil se fill karna hai?\",\noptions: [\"Halfway, yaani aadha\", \"Bilkul empty\", \"Sirf ek chammach soil\", \"Puri tarah water se\"],\ncorrect: 0,\nexplanation: \"Activity mein empty container ko halfway garden soil se fill karna hai. Usmein fruit aur vegetable peels daalkar phir unke upar soil ki layer lagani hai.\",\nexample: \"Ek container mein aadha garden soil daalo, phir peels add karke unhe soil se cover kar do.\"\n},\n\n{\nquestion: \"4. Activity mein fruit aur vegetable peels ko observe karne se pehle kitna time wait karna hai?\",\noptions: [\"2\u20133 minutes\", \"2\u20133 hours\", \"2\u20133 weeks\", \"2\u20133 seconds\"],\ncorrect: 2,\nexplanation: \"Microorganisms ko plant waste decompose karne mein time lagta hai. Isliye activity mein container ko 2\u20133 weeks ke liye chhodna hai.\",\nexample: \"Aaj peels ko soil mein daalne ke baad kuch weeks baad unmein hone wale changes observe karo.\"\n},\n\n{\nquestion: \"5. Decomposition ke baad fruit aur vegetable peels ka colour kaisa ho sakta hai?\",\noptions: [\"Bright blue\", \"Dark-coloured\", \"Shiny silver\", \"Bright pink\"],\ncorrect: 1,\nexplanation: \"Activity mein peels decompose hokar dark-coloured material mein badal sakte hain. Yeh nutrient-rich manure hota hai.\",\nexample: \"Compost mein decomposed leaves aur peels aksar dark brown material jaise dikhte hain.\"\n},\n\n{\nquestion: \"6. Manure soil ke liye kaise useful hota hai?\",\noptions: [\"Soil ko plastic banata hai\", \"Soil ke saare nutrients remove karta hai\", \"Soil ko hamesha dry rakhta hai\", \"Soil ki fertility badhane mein help karta hai\"],\ncorrect: 3,\nexplanation: \"Manure nutrients provide karta hai, jo plants ki growth aur soil fertility ke liye useful hote hain.\",\nexample: \"Farmers aur gardeners plants ki growth improve karne ke liye soil mein compost ya manure mix karte hain.\"\n},\n\n{\nquestion: \"7. Microorganisms plant waste ko kis process se simpler substances mein break down karte hain?\",\noptions: [\"Decomposition\", \"Evaporation\", \"Freezing\", \"Condensation\"],\ncorrect: 0,\nexplanation: \"Decomposition mein dead plants, leaves aur food peels jaise organic materials break down hote hain.\",\nexample: \"Dry leaves ka dheere-dheere gal kar compost mein badalna decomposition hai.\"\n},\n\n{\nquestion: \"8. Gardeners dry leaves aur plant waste ko pits mein kyon collect karte hain?\",\noptions: [\"Plastic banane ke liye\", \"Leaves ko metal mein badalne ke liye\", \"Natural manure banane ke liye\", \"Soil ko poison karne ke liye\"],\ncorrect: 2,\nexplanation: \"Pits mein collected plant waste par microorganisms act karte hain. Dheere-dheere waste decompose hokar natural manure ban sakta hai.\",\nexample: \"Garden ke dry leaves ko pit mein collect karke compost banaya ja sakta hai.\"\n},\n\n{\nquestion: \"9. Pickles aur murabbas mein high concentration of salt ya sugar ka kya effect hota hai?\",\noptions: [\"Sabhi microorganisms turant grow karne lagte hain\", \"Microorganisms ki growth ko rokne mein help milti hai\", \"Food plastic mein badal jaata hai\", \"Food ke nutrients automatically double ho jaate hain\"],\ncorrect: 1,\nexplanation: \"High salt ya sugar concentration food mein available water ko reduce karti hai, jis se kai microorganisms ki growth mushkil ho jaati hai. Isliye ye preservatives ki tarah kaam kar sakte hain.\",\nexample: \"Aam ke pickle mein salt aur spices ka use food ko preserve karne mein help karta hai.\"\n},\n\n{\nquestion: \"10. Environment ko clean rakhne mein decomposers ka main role kya hai?\",\noptions: [\"Saara waste permanently plastic mein badalna\", \"Dead leaves ko grow karne wale plants mein turant badalna\", \"Har type ke waste ko bina time ke destroy karna\", \"Organic waste ko break down karke nutrients recycle karna\"],\ncorrect: 3,\nexplanation: \"Fungi aur bacteria organic waste ko simpler substances mein break down karte hain. Isse nutrients soil mein return hote hain aur natural nutrient cycle continue rehti hai.\",\nexample: \"Fallen leaves decompose hokar soil mein nutrients add karte hain, jinhe plants phir use kar sakte hain.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\nlet submitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  userAnswers = new Array(questions.length).fill(null);\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions[currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  document.getElementById(\"progress\").textContent =\n    \"Question \" + (currentQuestion + 1) + \" of \" + questions.length;\n\n  container.innerHTML = `\n    <div class=\"question\">${q.question}<\/div>\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          ${String.fromCharCode(65 + i)}. ${opt}\n        <\/label>\n      `).join(\"\")}\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  const selected = document.querySelector('input[name=\"option\"]:checked');\n\n  userAnswers[currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion < questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (submitted) return;\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  submitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  document.getElementById(\"progress\").textContent = \"Quiz Completed\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers[index];\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i && selected !== q.correct) {\n        cls = \"wrong\";\n      }\n\n      return `\n        <label class=\"${cls}\">\n          ${String.fromCharCode(65 + i)}. ${opt}\n          ${i === q.correct ? \" \u2713 Correct Answer\" : \"\"}\n          ${selected === i && selected !== q.correct ? \" \u2717 Your Answer\" : \"\"}\n        <\/label>\n      `;\n    }).join(\"\");\n\n    container.innerHTML += `\n      <div class=\"question\">${q.question}<\/div>\n      <div class=\"options\">${optsHTML}<\/div>\n      <div class=\"explanation\" style=\"display:block;\">\n        <strong>Explanation:<\/strong> ${q.explanation}\n        <br><br>\n        <strong>Example:<\/strong> ${q.example}\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>${score >= 8 ? \"Excellent work! \ud83c\udf89\" :\n        score >= 5 ? \"Good effort! Keep practising. \ud83d\udc4d\" :\n        \"Keep learning and try again! \ud83d\udcaa\"}<\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\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  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<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Microorganisms Quiz \u2013 Decomposition and Manure \ud83e\udde0 Microorganisms Quiz \u2013 Decomposition and Natural Manure 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-5372","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5372","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=5372"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5372\/revisions"}],"predecessor-version":[{"id":5373,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5372\/revisions\/5373"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}