{"id":5380,"date":"2026-11-03T13:50:09","date_gmt":"2026-11-03T13:50:09","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5380"},"modified":"2026-11-03T13:50:09","modified_gmt":"2026-11-03T13:50:09","slug":"class-8th-subject-sciencech2-14","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5380","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 Lactobacillus and Rhizobium<\/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    }\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    }\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    }\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  <\/style>\n<\/head>\n\n<body>\n\n  <div class=\"quiz-container\">\n\n    <h2>\ud83e\udde0 Science Quiz \u2013 Lactobacillus and Rhizobium<\/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\n    const questions = [\n\n      {\n        question: \"1. Milk ko curd mein convert karne mein kaunsa bacterium help karta hai?\",\n        options: [\n          \"A. Rhizobium\",\n          \"B. Lactobacillus\",\n          \"C. Amoeba\",\n          \"D. Bread mould\"\n        ],\n        correct: 1,\n        explanation: \"Lactobacillus milk mein present lactose sugar ko ferment karke lactic acid produce karta hai. Lactic acid milk ko curd mein convert karne aur sour taste dene mein help karta hai.<br><br><strong>Example:<\/strong> Lukewarm milk mein thoda curd milakar warm place par rakhne se curd ban sakta hai.\"\n      },\n\n      {\n        question: \"2. Bowl A mein curd jaldi kyon banta hai?\",\n        options: [\n          \"A. Milk mein salt add kiya gaya hai\",\n          \"B. Milk ko freeze kiya gaya hai\",\n          \"C. Warm conditions mein Lactobacillus achchhi tarah grow karta hai\",\n          \"D. Bowl A mein milk nahi hai\"\n        ],\n        correct: 2,\n        explanation: \"Lactobacillus suitable warm conditions mein grow aur multiply karta hai. Isliye bowl A mein curd formation bowl B ke comparison mein jaldi hota hai.<br><br><strong>Example:<\/strong> Milk ko lukewarm rakhkar usmein thoda curd milana curd formation ko support karta hai.\"\n      },\n\n      {\n        question: \"3. Lactobacillus milk mein kis sugar par act karta hai?\",\n        options: [\n          \"A. Lactose\",\n          \"B. Starch\",\n          \"C. Cellulose\",\n          \"D. Fructose only\"\n        ],\n        correct: 0,\n        explanation: \"Lactose milk mein naturally present sugar hai. Lactobacillus is sugar ko ferment karke lactic acid banata hai.<br><br><strong>Example:<\/strong> Milk mein lactose hota hai, jise Lactobacillus curd formation ke process mein use karta hai.\"\n      },\n\n      {\n        question: \"4. Curd ka taste thoda sour kyon hota hai?\",\n        options: [\n          \"A. Oxygen produce hone ke kaaran\",\n          \"B. Milk mein sand milne ke kaaran\",\n          \"C. Carbon dioxide hi sourness create karti hai\",\n          \"D. Lactic acid produce hone ke kaaran\"\n        ],\n        correct: 3,\n        explanation: \"Lactobacillus milk ki lactose sugar ko ferment karke lactic acid produce karta hai. Ye acid curd ko sour taste deta hai.<br><br><strong>Example:<\/strong> Fresh milk ke comparison mein curd ka taste usually thoda khatta hota hai.\"\n      },\n\n      {\n        question: \"5. Bowl B mein cold milk rakhne ka main purpose kya hai?\",\n        options: [\n          \"A. Milk ka colour green karna\",\n          \"B. Cool conditions mein curd formation ko compare karna\",\n          \"C. Milk mein sugar ki quantity badhana\",\n          \"D. Milk ko immediately boil karna\"\n        ],\n        correct: 1,\n        explanation: \"Bowl B comparison ke liye use hota hai. Cool conditions mein Lactobacillus ki activity slow ho sakti hai, isliye curd formation slow hota hai.<br><br><strong>Example:<\/strong> Refrigerator mein rakhe milk mein curd formation warm place par rakhe milk ke comparison mein slow ho sakta hai.\"\n      },\n\n      {\n        question: \"6. Rhizobium bacteria aam taur par plants ke kis part mein root nodules ke andar rehte hain?\",\n        options: [\n          \"A. Flowers\",\n          \"B. Fruits\",\n          \"C. Certain leguminous plants ki roots\",\n          \"D. Leaves ke edges\"\n        ],\n        correct: 2,\n        explanation: \"Rhizobium bacteria beans, peas aur lentils jaise leguminous plants ki roots par bane nodules mein rehte hain.<br><br><strong>Example:<\/strong> Pea plant ki roots par chhote swollen nodules mil sakte hain jinmein Rhizobium bacteria rehte hain.\"\n      },\n\n      {\n        question: \"7. Rhizobium bacteria plants ke liye kya important kaam karte hain?\",\n        options: [\n          \"A. Air ke nitrogen ko plants ke use ke suitable forms mein convert karne mein help karte hain\",\n          \"B. Plants ke saare leaves remove kar dete hain\",\n          \"C. Roots ko plastic mein badal dete hain\",\n          \"D. Soil ke saare nutrients destroy kar dete hain\"\n        ],\n        correct: 0,\n        explanation: \"Rhizobium nitrogen fixation mein help karta hai. Ye atmospheric nitrogen ko aise nitrogen compounds mein convert karta hai jinhe plants use kar sakte hain.<br><br><strong>Example:<\/strong> Pea plant ko Rhizobium ke through nitrogen milne mein help hoti hai, jo growth ke liye important nutrient hai.\"\n      },\n\n      {\n        question: \"8. Beans, peas aur lentils kis group ke plants hain?\",\n        options: [\n          \"A. Fungi\",\n          \"B. Algae\",\n          \"C. Non-living organisms\",\n          \"D. Leguminous plants\"\n        ],\n        correct: 3,\n        explanation: \"Beans, peas aur lentils leguminous plants hain. Inki roots par Rhizobium-containing nodules develop ho sakte hain.<br><br><strong>Example:<\/strong> Peas aur lentils ko crop rotation mein use karne se soil ki nitrogen fertility improve karne mein help mil sakti hai.\"\n      },\n\n      {\n        question: \"9. Farmers legumes ko doosri crops ke saath crop rotation mein kyon grow karte hain?\",\n        options: [\n          \"A. Soil ko hamesha dry rakhne ke liye\",\n          \"B. Soil mein nitrogen improve karne aur use healthy rakhne ke liye\",\n          \"C. Soil se saare nutrients remove karne ke liye\",\n          \"D. Microorganisms ko completely destroy karne ke liye\"\n        ],\n        correct: 1,\n        explanation: \"Legumes ki roots mein Rhizobium nitrogen fixation mein help karta hai. Isliye legumes ko crop rotation mein include karna soil fertility ko maintain karne mein useful ho sakta hai.<br><br><strong>Example:<\/strong> Farmer wheat crop ke baad peas grow kar sakta hai, phir next crop ke liye soil management ka benefit mil sakta hai.\"\n      },\n\n      {\n        question: \"10. Lactobacillus aur Rhizobium ke functions mein sahi difference kya hai?\",\n        options: [\n          \"A. Dono sirf bread banate hain\",\n          \"B. Lactobacillus nitrogen fix karta hai aur Rhizobium curd banata hai\",\n          \"C. Lactobacillus curd formation mein aur Rhizobium nitrogen fixation mein help karta hai\",\n          \"D. Dono non-living substances hain\"\n        ],\n        correct: 2,\n        explanation: \"Lactobacillus milk ko ferment karke curd banane mein help karta hai, jabki Rhizobium leguminous plants ki roots mein nitrogen fixation karta hai.<br><br><strong>Example:<\/strong> Dahi banane mein Lactobacillus useful hai, aur peas ki roots mein Rhizobium soil nitrogen fertility mein help karta hai.\"\n      }\n\n    ];\n\n    let currentQuestion = 0;\n    let score = 0;\n    let userAnswers = [];\n    let userName = \"\";\n\n    function 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    function 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    function nextQuestion() {\n\n      saveAnswer();\n\n      if (currentQuestion < questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n      }\n    }\n\n    function prevQuestion() {\n\n      saveAnswer();\n\n      if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n      }\n    }\n\n    function saveAnswer() {\n\n      const selected = document.querySelector('input[name=\"option\"]:checked');\n\n      userAnswers[currentQuestion] =\n        selected ? parseInt(selected.value) : null;\n    }\n\n    function 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    function 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      document.querySelector(\".controls\").style.display = \"none\";\n\n      document.getElementById(\"result\").innerHTML =\n        `<h3>Your Score: ${score} \/ ${questions.length}<\/h3>`;\n    }\n\n    function 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    function 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 Lactobacillus and Rhizobium \ud83e\udde0 Science Quiz \u2013 Lactobacillus and Rhizobium 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-5380","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5380","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=5380"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5380\/revisions"}],"predecessor-version":[{"id":5381,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5380\/revisions\/5381"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}