{"id":5370,"date":"2026-11-02T14:39:43","date_gmt":"2026-11-02T14:39:43","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5370"},"modified":"2026-11-02T14:39:43","modified_gmt":"2026-11-02T14:39:43","slug":"class-8th-subject-sciencech2-10","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5370","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 &#8211; Occurrence and Diversity<\/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  box-sizing: border-box;\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 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 15px 0; line-height: 1.6; }\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 { background: #f0f0f0; }\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  border-left: 5px solid #2a5298;\n  border-radius: 4px;\n  line-height: 1.6;\n  display: none;\n}\n.example { margin-top: 8px; color: #333; }\n.controls { text-align: center; margin-top: 20px; }\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  font-size: 15px;\n}\nbutton:hover { background-color: #1e3c72; }\n#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n  margin: 10px 0;\n  font-size: 15px;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\n#scoreList { padding-left: 25px; line-height: 1.7; }\n#progress {\n  color: #555;\n  text-align: right;\n  font-size: 14px;\n}\n#result { text-align: center; margin-top: 20px; }\nhr { border: 0; border-top: 1px solid #ddd; margin: 25px 0; }\n\n@media(max-width: 600px) {\n  body { padding: 10px; }\n  .quiz-container { width: 100%; padding: 15px; }\n  button { padding: 10px 14px; }\n}\n<\/style>\n<\/head>\n\n<body>\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\uddeb Microorganisms Quiz \u2013 Occurrence and Diversity<\/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    <br>\n    <button onclick=\"startQuiz()\">Start Quiz<\/button>\n  <\/div>\n\n  <div id=\"quizSection\" style=\"display:none;\">\n    <div id=\"progress\"><\/div>\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\"><\/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{\n  question: \"1. Microorganisms kahan-kahan paaye ja sakte hain?\",\n  options: [\n    \"A. Sirf water mein\",\n    \"B. Sirf soil mein\",\n    \"C. Water, soil, air aur kuch food items mein\",\n    \"D. Sirf human body mein\"\n  ],\n  correct: 2,\n  explanation: \"Microorganisms bahut jagah present hote hain. Ye water, soil, air aur kuch food items mein mil sakte hain.\",\n  example: \"Pond ke water, garden ki soil aur hawa mein microorganisms ho sakte hain.\"\n},\n\n{\n  question: \"2. Lemon ya tomato ko kuch time tak bahar chhodne par usmein powdery ya cotton-like growth kyon ho sakti hai?\",\n  options: [\n    \"A. Microbes ke infection ke kaaran\",\n    \"B. Sunlight ke kaaran hi\",\n    \"C. Food ke size badhne ke kaaran\",\n    \"D. Water ke colour ke kaaran\"\n  ],\n  correct: 0,\n  explanation: \"Kuch microorganisms food par grow karte hain, jisse food rot ya spoil ho sakta hai. Unki growth powdery ya cotton-like dikh sakti hai.\",\n  example: \"Bread par safed ya greenish mould dikhna microbial growth ka example hai.\"\n},\n\n{\n  question: \"3. Microorganisms food ke contact mein kaise aa sakte hain?\",\n  options: [\n    \"A. Sirf food ke andar se\",\n    \"B. Sirf sunlight se\",\n    \"C. Sirf refrigerator se\",\n    \"D. Environment se, jaise air, water ya surfaces se\"\n  ],\n  correct: 3,\n  explanation: \"Microorganisms environment mein present hote hain aur food tak pahunch sakte hain. Suitable conditions milne par kuch microbes grow karne lagte hain.\",\n  example: \"Fruit ko bahar rakhne par uski surface par present microbes us par grow kar sakte hain.\"\n},\n\n{\n  question: \"4. Microorganisms ko dekhne aur unki structures explore karne ke liye kaunsa instrument use kiya ja sakta hai?\",\n  options: [\n    \"A. Telescope\",\n    \"B. Microscope\",\n    \"C. Thermometer\",\n    \"D. Barometer\"\n  ],\n  correct: 1,\n  explanation: \"Bahut se microorganisms itne chhote hote hain ki unhe naked eyes se clearly nahi dekha ja sakta. Microscope unhe observe karne mein help karta hai.\",\n  example: \"Microscope ki help se pond water mein present kuch microorganisms observe kiye ja sakte hain.\"\n},\n\n{\n  question: \"5. Microorganisms kin jagahon ke extreme climatic conditions mein bhi mil sakte hain?\",\n  options: [\n    \"A. Sirf gardens mein\",\n    \"B. Sirf houses mein\",\n    \"C. Hot water springs aur bahut cold snow zones mein\",\n    \"D. Sirf classrooms mein\"\n  ],\n  correct: 2,\n  explanation: \"Kuch microorganisms extreme conditions mein bhi survive kar sakte hain. Lekin har microorganism aisi conditions mein survive nahi kar sakta.\",\n  example: \"Kuch microbes hot springs mein aur kuch bahut cold environments mein paaye jaate hain.\"\n},\n\n{\n  question: \"6. Human body ke kis part mein digestion mein help karne wale many bacteria paaye jaate hain?\",\n  options: [\n    \"A. Intestine (aant)\",\n    \"B. Hair\",\n    \"C. Fingernails\",\n    \"D. Teeth ke outer surface par hi\"\n  ],\n  correct: 0,\n  explanation: \"Human intestine mein many bacteria rehte hain. Inmein se kuch digestion aur gut health mein help karte hain.\",\n  example: \"Gut bacteria food ke kuch components ko break down karne mein help kar sakte hain.\"\n},\n\n{\n  question: \"7. Microorganisms ki diversity ka kya meaning hai?\",\n  options: [\n    \"A. Sabhi microorganisms same colour ke hote hain\",\n    \"B. Sabhi microorganisms same size ke hote hain\",\n    \"C. Sabhi microorganisms sirf water mein rehte hain\",\n    \"D. Microorganisms ki shapes, sizes aur structures alag-alag hote hain\"\n  ],\n  correct: 3,\n  explanation: \"Diversity ka meaning hai variety. Microorganisms shape, size aur structure mein ek-doosre se different ho sakte hain.\",\n  example: \"Kuch bacteria rod-shaped hote hain, kuch spherical, aur Amoeba ki shape irregular hoti hai.\"\n},\n\n{\n  question: \"8. Inmein se kaunsi microorganism ki shape ho sakti hai?\",\n  options: [\n    \"A. Sirf triangular\",\n    \"B. Spherical, rod-shaped ya irregular\",\n    \"C. Sirf rectangular\",\n    \"D. Sirf cube-shaped\"\n  ],\n  correct: 1,\n  explanation: \"Different microorganisms ki different shapes hoti hain. Shape ko observe karna unki identification mein help kar sakta hai.\",\n  example: \"Kuch bacteria spherical hote hain, jabki Amoeba ki shape irregular hoti hai.\"\n},\n\n{\n  question: \"9. Environment ko clean karne mein kuch microorganisms kaise help karte hain?\",\n  options: [\n    \"A. Saare waste ko plastic mein badal kar\",\n    \"B. Soil aur water ko hamesha colourless karke\",\n    \"C. Dead plants, animals aur organic waste ko decompose karke\",\n    \"D. Har type ke waste ko turant gayab karke\"\n  ],\n  correct: 2,\n  explanation: \"Kuch microorganisms decomposers ki tarah kaam karte hain. Ye dead organisms aur organic waste ko simpler substances mein break down karte hain, jisse nutrients environment mein return hote hain.\",\n  example: \"Soil mein fungi aur bacteria fallen leaves ko decompose karne mein help kar sakte hain.\"\n},\n\n{\n  question: \"10. Food par mould dikhne par sabse safe action kya hai?\",\n  options: [\n    \"A. Food ko smell karke taste karna\",\n    \"B. Mould ko hata kar har food ko kha lena\",\n    \"C. Food ko bina check kiye doosre food ke saath mix karna\",\n    \"D. Food ko na khana aur safely discard karna\"\n  ],\n  correct: 3,\n  explanation: \"Visible mould wale food mein harmful substances ya invisible microbial growth bhi ho sakti hai. Sirf mould ko hata dena hamesha safe nahi hota.\",\n  example: \"Mouldy bread ko scrape karke khane ke bajay discard karna safer hai.\"\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  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\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      <strong>Explanation:<\/strong> ${q.explanation}\n      <div class=\"example\">\n        <strong>Example:<\/strong> ${q.example}\n      <\/div>\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  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    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i && selected !== correct) cls = \"wrong\";\n\n      return `<label class=\"${cls}\">${opt}<\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      <div class=\"question\">${q.question}<\/div>\n      <div class=\"options\">${optsHTML}<\/div>\n\n      <div class=\"explanation\" style=\"display:block;\">\n        <strong>Explanation:<\/strong> ${q.explanation}\n        <div class=\"example\">\n          <strong>Example:<\/strong> ${q.example}\n        <\/div>\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 === 10 ? \"Excellent! Perfect Score! \ud83c\udf89\" :\n      score >= 7 ? \"Very Good! Keep it up! \ud83d\udc4f\" :\n      score >= 5 ? \"Good effort! Keep practising! \ud83d\udc4d\" :\n      \"Keep learning and try again! \ud83d\udcda\"}<\/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>${s.name} - ${s.score}\/10 (${s.date})<\/li>`\n    ).join(\"\");\n}\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Microorganisms Quiz &#8211; Occurrence and Diversity \ud83e\uddeb Microorganisms Quiz \u2013 Occurrence and Diversity 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-5370","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5370","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=5370"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5370\/revisions"}],"predecessor-version":[{"id":5371,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5370\/revisions\/5371"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}