{"id":5368,"date":"2026-11-02T14:36:47","date_gmt":"2026-11-02T14:36:47","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5368"},"modified":"2026-11-02T14:36:48","modified_gmt":"2026-11-02T14:36:48","slug":"class-8th-subject-sciencech2-9","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5368","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; Fungi, Algae and Bacteria<\/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\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  line-height: 1.5;\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  border-radius: 4px;\n  line-height: 1.6;\n  display: none;\n}\n\n.example {\n  margin-top: 8px;\n  color: #333;\n}\n\n.controls {\n  text-align: center;\n  margin-top: 20px;\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  font-size: 15px;\n}\n\nbutton:hover {\n  background-color: #1e3c72;\n}\n\nbutton:disabled {\n  background: #999;\n  cursor: not-allowed;\n}\n\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\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\n#scoreList {\n  padding-left: 25px;\n  line-height: 1.7;\n}\n\n#progress {\n  color: #555;\n  text-align: right;\n  font-size: 14px;\n}\n\n#result {\n  text-align: center;\n  margin-top: 20px;\n}\n\nhr {\n  border: 0;\n  border-top: 1px solid #ddd;\n  margin: 25px 0;\n}\n\n@media(max-width: 600px) {\n  body {\n    padding: 10px;\n  }\n\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n\n  button {\n    padding: 10px 14px;\n  }\n}\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\uddeb Microorganisms Quiz \u2013 Fungi, Algae and Bacteria<\/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\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\n  <\/div>\n<\/div>\n\n<script>\n\nconst questions = [\n\n{\n  question: \"1. Bread mould kis group ka organism hai?\",\n  options: [\"A. Bacteria\", \"B. Fungi\", \"C. Protozoa\", \"D. Animals\"],\n  correct: 1,\n  explanation: \"Bread mould ek fungus hai. Yeh bread par branched, thread-like structures banata hai aur ismein chlorophyll nahi hota.\",\n  example: \"Bread par kuch din baad dikhne wali kaali ya safed fungal growth bread mould ho sakti hai.\"\n},\n\n{\n  question: \"2. Bread mould ke branched filaments mein kaunsi structure hoti hai?\",\n  options: [\"A. Brush-like structure\", \"B. Chlorophyll\", \"C. Sac-like structure\", \"D. Root-like structure\"],\n  correct: 2,\n  explanation: \"Textbook ke according, bread mould mein branched filaments hote hain jinmein sac-like structure hoti hai.\",\n  example: \"Microscope mein bread mould ko observe karte waqt branched threads aur sac-like parts dikh sakte hain.\"\n},\n\n{\n  question: \"3. Table mein brush-like structure kis organism ke liye batayi gayi hai?\",\n  options: [\"A. Mould (Fungi)\", \"B. Algae\", \"C. Bacteria\", \"D. Amoeba\"],\n  correct: 0,\n  explanation: \"Mould bhi fungi group ka organism hai. Ismein branched filaments ke saath brush-like structure hoti hai.\",\n  example: \"Kuch moulds microscope mein brush ki tarah branches wale dikhai dete hain.\"\n},\n\n{\n  question: \"4. Fungi mein chlorophyll hota hai ya nahi?\",\n  options: [\"A. Hamesha hota hai\", \"B. Sirf soil mein hota hai\", \"C. Sirf water mein hota hai\", \"D. Nahi hota\"],\n  correct: 3,\n  explanation: \"Table ke according, bread mould aur mould mein chlorophyll nahi hota. Isliye ye algae ki tarah chlorophyll ki help se photosynthesis nahi karte.\",\n  example: \"Green plants sunlight ki help se food banate hain, lekin bread mould aise food nahi banata.\"\n},\n\n{\n  question: \"5. Algae ka green colour kis pigment ke kaaran hota hai?\",\n  options: [\"A. Haemoglobin\", \"B. Chlorophyll\", \"C. Melanin\", \"D. Iodine\"],\n  correct: 1,\n  explanation: \"Chlorophyll ek green pigment hai jo light absorb karne mein help karta hai. Algae mein chlorophyll hone ke kaaran woh green dikh sakte hain.\",\n  example: \"Pond ke water mein dikhne wali green growth algae ki ho sakti hai.\"\n},\n\n{\n  question: \"6. Table mein algae ki shape kaisi batayi gayi hai?\",\n  options: [\"A. Star-shaped\", \"B. Square-shaped\", \"C. Spherical\", \"D. Triangle-shaped\"],\n  correct: 2,\n  explanation: \"Table mein observed algae ko spherical, yaani ball-like shape wala bataya gaya hai.\",\n  example: \"Spherical object ka shape chhoti ball jaisa hota hai.\"\n},\n\n{\n  question: \"7. Bacteria ki kaunsi shape ho sakti hai?\",\n  options: [\"A. Spherical, comma, spiral ya rod-shaped\", \"B. Sirf square-shaped\", \"C. Sirf star-shaped\", \"D. Sirf triangle-shaped\"],\n  correct: 0,\n  explanation: \"Bacteria ki shape alag-alag ho sakti hai. Kuch gol, kuch comma jaise, kuch spiral aur kuch rod jaise hote hain.\",\n  example: \"Rod-shaped bacteria chhoti stick jaisa dikh sakta hai.\"\n},\n\n{\n  question: \"8. Table mein bacteria ke long, hair-like structure ka kya description diya gaya hai?\",\n  options: [\"A. Do large leaves\", \"B. Ek long hair-like structure\", \"C. Ek sac-like structure\", \"D. Ek brush-like structure\"],\n  correct: 1,\n  explanation: \"Table mein bacteria ke around ek long hair-like structure aur kai small hair-like projections ka description diya gaya hai. Kuch bacteria mein flagellum movement mein help karta hai.\",\n  example: \"Flagellum ko ek chhoti whip ya poonch jaisa samajh sakte hain.\"\n},\n\n{\n  question: \"9. Bacteria ke around many small hair-like projections ka description kis organism ke liye diya gaya hai?\",\n  options: [\"A. Bread mould\", \"B. Algae\", \"C. Mould\", \"D. Bacteria\"],\n  correct: 3,\n  explanation: \"Table mein bacteria ke cell ke around many small hair-like projections bataye gaye hain. Bacteria ki surface par kuch projections attachment ya doosre functions mein help kar sakte hain.\",\n  example: \"Kuch bacteria par tiny hair-like structures hoti hain jo unhe surfaces se attach hone mein help karti hain.\"\n},\n\n{\n  question: \"10. Bread mould, mould, algae aur bacteria ko soil suspension mein observe karne ka main purpose kya hai?\",\n  options: [\"A. Soil ka colour change karna\", \"B. Soil ko garam karna\", \"C. Different microorganisms aur unki structures ko identify karna\", \"D. Soil mein salt add karna\"],\n  correct: 2,\n  explanation: \"Soil suspension mein different microorganisms ho sakte hain. Microscope ki help se unki shape aur structures observe karke unhe identify karne mein help milti hai.\",\n  example: \"Microscope mein branched filaments fungus ki taraf indicate kar sakte hain, jabki rod-shaped microscopic cells bacteria ho 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  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\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\n            type=\"radio\"\n            name=\"option\"\n            value=\"${i}\"\n            ${userAnswers[currentQuestion] === i ? \"checked\" : \"\"}\n          >\n          ${opt}\n        <\/label>\n      `).join(\"\")}\n    <\/div>\n\n    <div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n      <div class=\"example\"><strong>Example:<\/strong> ${q.example}<\/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\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\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  document.getElementById(\"progress\").textContent = \"Quiz Completed\";\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        <strong>Explanation:<\/strong> ${q.explanation}\n        <div class=\"example\">\n          <strong>Example:<\/strong> ${q.example}\n        <\/div>\n      <\/div>\n\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\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>${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>Microorganisms Quiz &#8211; Fungi, Algae and Bacteria \ud83e\uddeb Microorganisms Quiz \u2013 Fungi, Algae and Bacteria 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-5368","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5368","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=5368"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5368\/revisions"}],"predecessor-version":[{"id":5369,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5368\/revisions\/5369"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}