{"id":5388,"date":"2026-11-03T13:57:39","date_gmt":"2026-11-03T13:57:39","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5388"},"modified":"2026-11-03T13:57:39","modified_gmt":"2026-11-03T13:57:39","slug":"class-8th-subject-sciencech2-18","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5388","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 Microorganisms and Cells<\/title>\n\n  <style>\n    body {\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\n    h2 {\n      text-align: center;\n      color: #1e3c72;\n    }\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    }\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: 10px;\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\n    button {\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\n    button: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\n    ol {\n      padding-left: 20px;\n    }\n\n    input[type=\"text\"] {\n      padding: 10px;\n      width: 60%;\n      max-width: 300px;\n      border: 1px solid #ccc;\n      border-radius: 6px;\n    }\n\n    hr {\n      border: none;\n      border-top: 1px solid #ddd;\n      margin: 20px 0;\n    }\n  <\/style>\n<\/head>\n\n<body>\n\n  <div class=\"quiz-container\">\n\n    <h2>\ud83e\udde0 Science Quiz \u2013 Microorganisms and Cells<\/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  {\n    question: \"1. Microorganisms ko hum apni naked eyes se kyun nahi dekh sakte?\",\n    options: [\n      \"A. Kyunki woh non-living hote hain\",\n      \"B. Kyunki unka size bahut chhota hota hai\",\n      \"C. Kyunki unmein cells nahi hote\",\n      \"D. Kyunki woh sirf paani mein rehte hain\"\n    ],\n    correct: 1,\n    explanation: \"Microorganisms bahut small-sized organisms hote hain. Unhe clearly dekhne ke liye usually microscope ki zaroorat hoti hai.<br><br><strong>Example:<\/strong> Bacteria ko normally naked eyes se nahi dekh sakte, lekin microscope se observe kar sakte hain.\"\n  },\n\n  {\n    question: \"2. Unicellular organism kaun-sa hota hai?\",\n    options: [\n      \"A. Human\",\n      \"B. Mango tree\",\n      \"C. Bacteria\",\n      \"D. Dog\"\n    ],\n    correct: 2,\n    explanation: \"Unicellular organisms sirf ek cell se bane hote hain. Ek hi cell unke essential life functions perform karta hai.<br><br><strong>Example:<\/strong> Bacteria aur Amoeba unicellular organisms hain, jabki humans multicellular hain.\"\n  },\n\n  {\n    question: \"3. Cell ko life ki basic unit kyun kaha jata hai?\",\n    options: [\n      \"A. Kyunki sabhi cells ka colour green hota hai\",\n      \"B. Kyunki cells living organisms ki structure aur functions mein important role play karte hain\",\n      \"C. Kyunki cells sirf plants mein hote hain\",\n      \"D. Kyunki cells sirf food store karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Cell living organisms ki basic structural aur functional unit hai. Cells ke components organism ko survive karne aur life functions perform karne mein help karte hain.<br><br><strong>Example:<\/strong> Human body mein muscle cells movement aur nerve cells messages transmit karne mein help karti hain.\"\n  },\n\n  {\n    question: \"4. Typical cell ke andar kaunsa component hota hai?\",\n    options: [\n      \"A. Cytoplasm\",\n      \"B. Sirf cell wall\",\n      \"C. Sirf chloroplast\",\n      \"D. Sirf nucleoid\"\n    ],\n    correct: 0,\n    explanation: \"Typical cell mein cell membrane hoti hai, cytoplasm hota hai aur eukaryotic cells mein nucleus hota hai. Bacteria mein well-defined nucleus nahi hota.<br><br><strong>Example:<\/strong> Plant aur animal cells dono mein cytoplasm present hota hai.\"\n  },\n\n  {\n    question: \"5. Plant, fungal aur bacterial cells mein cell membrane ke bahar kaunsi extra covering ho sakti hai?\",\n    options: [\n      \"A. Nuclear membrane\",\n      \"B. Cell wall\",\n      \"C. Chloroplast\",\n      \"D. Nucleoid\"\n    ],\n    correct: 1,\n    explanation: \"Plant, fungal aur bacterial cells mein cell wall hoti hai, jo support aur protection provide karti hai. Animal cells mein cell wall nahi hoti.<br><br><strong>Example:<\/strong> Plant ki cell wall cellulose se bani hoti hai, jabki fungal cell wall mein chitin hota hai.\"\n  },\n\n  {\n    question: \"6. Bacteria ki cells ki ek important feature kya hai?\",\n    options: [\n      \"A. Har bacteria mein chloroplast hota hai\",\n      \"B. Bacteria mein well-defined nucleus nahi hota\",\n      \"C. Bacteria hamesha multicellular hote hain\",\n      \"D. Bacteria mein genetic material nahi hota\"\n    ],\n    correct: 1,\n    explanation: \"Bacteria prokaryotic organisms hain. Inka DNA nucleoid region mein hota hai, lekin uske around nuclear membrane nahi hoti.<br><br><strong>Example:<\/strong> E. coli bacteria mein DNA nucleoid region mein present hota hai.\"\n  },\n\n  {\n    question: \"7. Cells ki shape ka relation kis cheez se hota hai?\",\n    options: [\n      \"A. Sirf organism ke colour se\",\n      \"B. Sirf organism ke size se\",\n      \"C. Cell ke function se\",\n      \"D. Cell ke naam se\"\n    ],\n    correct: 2,\n    explanation: \"Different cells different functions perform karte hain. Isliye unki shape aur structure unke kaam ke according adapted ho sakte hain.<br><br><strong>Example:<\/strong> Nerve cells ki long extensions messages ko door tak transmit karne mein help karti hain.\"\n  },\n\n  {\n    question: \"8. Viruses doosre microorganisms se kis tarah different hain?\",\n    options: [\n      \"A. Viruses hamesha multicellular hote hain\",\n      \"B. Viruses sirf plants mein reproduce karte hain\",\n      \"C. Viruses reproduce karne ke liye host cell par depend karte hain\",\n      \"D. Viruses mein hamesha chloroplast hota hai\"\n    ],\n    correct: 2,\n    explanation: \"Viruses apne aap independently reproduce nahi kar sakte. Unhe kisi suitable host cell ki machinery ki zaroorat hoti hai.<br><br><strong>Example:<\/strong> Influenza virus human cells ka use karke apni copies banata hai.\"\n  },\n\n  {\n    question: \"9. Leguminous plants ki roots mein Rhizobium bacteria ka kya role hota hai?\",\n    options: [\n      \"A. Soil se saara water remove karna\",\n      \"B. Nitrogen fixation karke soil fertility badhane mein help karna\",\n      \"C. Roots ko destroy karna\",\n      \"D. Photosynthesis ko stop karna\"\n    ],\n    correct: 1,\n    explanation: \"Rhizobium leguminous plants ki roots ke nodules mein rehta hai aur atmospheric nitrogen ko usable nitrogen compounds mein convert karne mein help karta hai. Isse soil fertility improve hoti hai.<br><br><strong>Example:<\/strong> Peas, beans aur lentils ki roots mein Rhizobium bacteria mil sakte hain.\"\n  },\n\n  {\n    question: \"10. Curd formation mein kaunsa microorganism use hota hai?\",\n    options: [\n      \"A. Lactobacillus\",\n      \"B. Rhizobium\",\n      \"C. Amoeba\",\n      \"D. Bread mould\"\n    ],\n    correct: 0,\n    explanation: \"Lactobacillus bacteria milk mein lactose ko lactic acid mein convert karte hain. Is process se milk sour hota hai aur curd form hota hai.<br><br><strong>Example:<\/strong> Ghar par lukewarm milk mein thoda sa purana curd milane se Lactobacillus grow kar sakta hai aur milk ko curd mein badal deta hai.\"\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}\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}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion < questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\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}\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}\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      <div class=\"options\">${optsHTML}<\/div>\n      <div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      <\/div>\n      <hr>\n    `;\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\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}\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\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde0 Science Quiz \u2013 Microorganisms and Cells \ud83e\udde0 Science Quiz \u2013 Microorganisms and Cells 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-5388","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5388","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=5388"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5388\/revisions"}],"predecessor-version":[{"id":5389,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5388\/revisions\/5389"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}