{"id":5427,"date":"2026-11-13T14:27:48","date_gmt":"2026-11-13T14:27:48","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5427"},"modified":"2026-11-13T14:27:49","modified_gmt":"2026-11-13T14:27:49","slug":"class-8-science-chapter-12","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5427","title":{"rendered":"class 8 science chapter 12"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch12 part1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n&lt;title>Science Quiz \u2013 Habitat and Its Components&lt;\/title>\n\n&lt;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    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  #userName {\n    padding: 10px;\n    width: 60%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83c\udf3f Science Quiz \u2013 Habitat and Its Components&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Habitat kise kehte hain?\",\n    options: &#91;\n      \"A. Sirf animals ke khane ko\",\n      \"B. Us place ko jahan koi organism rehta hai\",\n      \"C. Sirf jungle ko\",\n      \"D. Sirf paani mein rehne wali jagah ko\"\n    ],\n    correct: 1,\n    explanation: \"Habitat woh natural place hota hai jahan koi organism rehta hai aur apni survival ke liye zaroori resources paata hai.&lt;br>&lt;br>Example: Pond fish ka habitat hai, aur tree bark par rehne wale kuch insects ke liye tree bark habitat ho sakti hai.\"\n  },\n\n  {\n    question: \"2. Biotic components kya hote hain?\",\n    options: &#91;\n      \"A. Environment ki non-living cheezein\",\n      \"B. Environment ke living organisms\",\n      \"C. Sirf rocks aur soil\",\n      \"D. Sirf sunlight aur air\"\n    ],\n    correct: 1,\n    explanation: \"Environment mein present living organisms ko biotic components kehte hain. Inmein plants, animals aur microorganisms shamil hain.&lt;br>&lt;br>Example: Grass, fish, birds aur bacteria biotic components hain.\"\n  },\n\n  {\n    question: \"3. Inmein se kaunsa abiotic component hai?\",\n    options: &#91;\n      \"A. Tree\",\n      \"B. Fish\",\n      \"C. Soil\",\n      \"D. Frog\"\n    ],\n    correct: 2,\n    explanation: \"Abiotic components environment ki non-living cheezein hoti hain. Ye organisms ke survival ko affect karti hain.&lt;br>&lt;br>Example: Air, water, sunlight, soil aur temperature abiotic components hain.\"\n  },\n\n  {\n    question: \"4. Fish pond mein survive karne ke liye oxygen kahan se leti hai?\",\n    options: &#91;\n      \"A. Soil se\",\n      \"B. Water mein dissolved oxygen se\",\n      \"C. Sunlight se directly\",\n      \"D. Tree bark se\"\n    ],\n    correct: 1,\n    explanation: \"Fish apni gills ki help se water mein dissolved oxygen absorb karti hai. Oxygen respiration ke liye zaroori hai.&lt;br>&lt;br>Example: Agar pond mein dissolved oxygen bahut kam ho jaaye, toh fish ko survive karne mein difficulty ho sakti hai.\"\n  },\n\n  {\n    question: \"5. Forests kaatne se wild animals ke liye kya problem ho sakti hai?\",\n    options: &#91;\n      \"A. Unka habitat aur food kam ho sakta hai\",\n      \"B. Unhe hamesha zyada food milega\",\n      \"C. Unki water requirement khatam ho jayegi\",\n      \"D. Sabhi animals domestic animals ban jayenge\"\n    ],\n    correct: 0,\n    explanation: \"Deforestation se animals ke living places, food sources aur shelter destroy ho sakte hain. Is wajah se kuch animals human settlements ki taraf move karte hain.&lt;br>&lt;br>Example: Forest mein food kam hone par elephants nearby farms mein bananas ya sugarcane khane aa sakte hain.\"\n  },\n\n  {\n    question: \"6. Wildlife corridors ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Animals ko ek chhote cage mein rakhna\",\n      \"B. Forest habitats ko connect karke animals ko safely move karne dena\",\n      \"C. Forests mein buildings banana\",\n      \"D. Animals ko food dena band karna\"\n    ],\n    correct: 1,\n    explanation: \"Wildlife corridors aise routes hote hain jo different forest areas ko connect karte hain. Inse animals ko move karne aur human settlements ke saath conflict kam karne mein help milti hai.&lt;br>&lt;br>Example: Elephant corridor elephants ko ek forest area se doosre forest area tak travel karne mein help kar sakta hai.\"\n  },\n\n  {\n    question: \"7. Ek pond mein fish, frogs, algae aur water present hain. Inmein se kaun biotic components hain?\",\n    options: &#91;\n      \"A. Sirf water\",\n      \"B. Fish, frogs aur algae\",\n      \"C. Water aur sunlight\",\n      \"D. Sirf soil aur rocks\"\n    ],\n    correct: 1,\n    explanation: \"Fish, frogs aur algae living organisms hain, isliye ye biotic components hain. Water non-living hai, isliye abiotic component hai.&lt;br>&lt;br>Example: Pond mein algae food chain ka part ho sakti hai, jabki water fish ko rehne ka medium provide karta hai.\"\n  },\n\n  {\n    question: \"8. Different organisms ek hi habitat mein kaise coexist kar sakte hain?\",\n    options: &#91;\n      \"A. Sabhi organisms bilkul same food khate hain\",\n      \"B. Sabhi organisms sirf daytime mein active hote hain\",\n      \"C. Organisms resources ko different ways mein use kar sakte hain aur different times par active ho sakte hain\",\n      \"D. Habitat mein abiotic components nahi hote\"\n    ],\n    correct: 2,\n    explanation: \"Ek habitat mein organisms alag resources use kar sakte hain ya different times par active ho sakte hain. Isse unke beech direct competition kam ho sakta hai.&lt;br>&lt;br>Example: Ek rodent daytime mein active ho sakta hai, jabki ek snake night mein active ho sakta hai.\"\n  },\n\n  {\n    question: \"9. Rainfall aur temperature mein changes elephants ke habitat ko kaise affect kar sakte hain?\",\n    options: &#91;\n      \"A. Vegetation aur water availability change ho sakti hai\",\n      \"B. Elephants ko oxygen ki zaroorat nahi rehti\",\n      \"C. Forests hamesha bade ho jaate hain\",\n      \"D. Elephants ko food ki zaroorat khatam ho jaati hai\"\n    ],\n    correct: 0,\n    explanation: \"Rainfall aur temperature vegetation ki growth aur water availability ko affect karte hain. Food aur water ki kami hone par elephants farms ya villages ki taraf move kar sakte hain.&lt;br>&lt;br>Example: Drought ke dauraan forest ke waterholes dry ho jaane par elephants water ki search mein human settlements ke paas aa sakte hain.\"\n  },\n\n  {\n    question: \"10. Organisms ke survival ke liye habitat mein kaun-si conditions important hoti hain?\",\n    options: &#91;\n      \"A. Sirf sunlight\",\n      \"B. Sirf food\",\n      \"C. Food, water, oxygen, shelter aur suitable physical conditions\",\n      \"D. Sirf temperature\"\n    ],\n    correct: 2,\n    explanation: \"Har organism ko survive karne ke liye specific resources aur environmental conditions chahiye. Different organisms ki requirements different ho sakti hain.&lt;br>&lt;br>Example: Plants ko sunlight, water, air aur suitable soil chahiye, jabki fish ko water, dissolved oxygen aur food chahiye.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\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\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p>&lt;strong>Question ${currentQuestion + 1} of ${questions.length}&lt;\/strong>&lt;\/p>\n\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input\n            type=\"radio\"\n            name=\"option\"\n            value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}\n          >\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\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&#91;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 &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>${score === questions.length\n      ? \"Excellent! All answers are correct.\"\n      : \"Keep practicing to improve your score!\"}\n    &lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Population and Community&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Population and Community&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Population kise kehte hain?\",\n    options: &#91;\n      \"A. Different species ke organisms ke group ko\",\n      \"B. Same type ke organisms ke group ko jo ek habitat mein ek given time par rehte hain\",\n      \"C. Sirf non-living things ke group ko\",\n      \"D. Different habitats ke group ko\"\n    ],\n    correct: 1,\n    explanation: \"Population ek hi type ke organisms ka group hota hai jo ek particular habitat mein ek given time par present hote hain.&lt;br>&lt;br>Example: Ek pond mein rehne wali sabhi Rohu fish milkar Rohu fish ki population banati hain.\"\n  },\n  {\n    question: \"2. Community kya hoti hai?\",\n    options: &#91;\n      \"A. Ek hi species ke organisms ka group\",\n      \"B. Sirf plants ka group\",\n      \"C. Different populations ka group jo same habitat share karti hain\",\n      \"D. Sirf abiotic components ka group\"\n    ],\n    correct: 2,\n    explanation: \"Community mein different types ke living organisms ki populations ek hi habitat mein rehti hain aur ek-doosre ke saath interact karti hain.&lt;br>&lt;br>Example: Pond mein fish, frogs, algae aur snails ki populations milkar pond community ka part hoti hain.\"\n  },\n  {\n    question: \"3. Ek garden mein 15 rose plants hain. Rose plants ki population kitni hai?\",\n    options: &#91;\n      \"A. 5\",\n      \"B. 10\",\n      \"C. 15\",\n      \"D. 20\"\n    ],\n    correct: 2,\n    explanation: \"Population ko kisi particular area aur time par same type ke organisms ki total number se describe kiya ja sakta hai.&lt;br>&lt;br>Example: Agar garden mein 15 rose plants hain, toh us area mein rose plants ki population 15 hai.\"\n  },\n  {\n    question: \"4. Ek pond mein fish, frogs, snails aur algae rehte hain. Ye sab milkar kya form karte hain?\",\n    options: &#91;\n      \"A. Sirf ek population\",\n      \"B. Community\",\n      \"C. Ek species\",\n      \"D. Abiotic group\"\n    ],\n    correct: 1,\n    explanation: \"Ye organisms different types ke hain aur pond mein ek hi habitat share karte hain. Inki different populations milkar community banati hain.&lt;br>&lt;br>Example: Pond ki fish population aur frog population, algae ki population ke saath, pond community ka hissa hain.\"\n  },\n  {\n    question: \"5. Agar ek habitat mein sirf ek hi type ke organisms hon, toh food aur space ke liye kya ho sakta hai?\",\n    options: &#91;\n      \"A. Competition badh sakta hai\",\n      \"B. Sabhi resources unlimited ho jayenge\",\n      \"C. Organisms ko food ki zaroorat nahi hogi\",\n      \"D. Habitat mein abiotic components disappear ho jayenge\"\n    ],\n    correct: 0,\n    explanation: \"Same type ke organisms ki requirements similar ho sakti hain. Agar food, water aur space limited hain, toh unke beech competition badh sakta hai.&lt;br>&lt;br>Example: Agar ek chhote garden mein bahut saare plants hon, toh sunlight, water aur soil nutrients ke liye competition ho sakta hai.\"\n  },\n  {\n    question: \"6. Population count karte waqt area aur time specify karna kyun important hai?\",\n    options: &#91;\n      \"A. Kyunki population har jagah aur har samay same hoti hai\",\n      \"B. Kyunki organisms ki number alag areas aur times par different ho sakti hai\",\n      \"C. Kyunki sirf animals ko count kiya ja sakta hai\",\n      \"D. Kyunki plants count nahi hote\"\n    ],\n    correct: 1,\n    explanation: \"Organisms ki population births, deaths aur movement ke kaaran change ho sakti hai. Isliye accurate population record ke liye place aur time specify karna zaroori hai.&lt;br>&lt;br>Example: Ek pond mein morning ko 20 frogs dikh sakte hain, jabki evening ko 30 frogs dikhai de sakte hain.\"\n  },\n  {\n    question: \"7. Inmein se kaunsa example ek population ko represent karta hai?\",\n    options: &#91;\n      \"A. Ek forest mein deer, tiger aur trees\",\n      \"B. Ek pond mein 25 frogs of the same species\",\n      \"C. Ek garden mein rocks aur water\",\n      \"D. Ek village mein different animals aur plants\"\n    ],\n    correct: 1,\n    explanation: \"Population mein same type ke organisms ek particular habitat mein rehte hain. Different species ka group community ka part hota hai.&lt;br>&lt;br>Example: Ek field mein 40 wheat plants ek wheat plant population ko represent karte hain.\"\n  },\n  {\n    question: \"8. Community ke living organisms ek-doosre par depend kyun karte hain?\",\n    options: &#91;\n      \"A. Survival aur resources ke liye\",\n      \"B. Sirf colour change karne ke liye\",\n      \"C. Earth ki rotation rokne ke liye\",\n      \"D. Sabhi organisms ko same species banane ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Different organisms food, shelter, pollination aur other resources ke liye ek-doosre par depend kar sakte hain.&lt;br>&lt;br>Example: Bees flowers se nectar leti hain aur flowers ke pollination mein help karti hain.\"\n  },\n  {\n    question: \"9. School garden ke 1 m \u00d7 1 m area mein 20 grass plants aur 5 small plants count kiye gaye. Dono plant populations ki total number kitni hai?\",\n    options: &#91;\n      \"A. 15\",\n      \"B. 20\",\n      \"C. 25\",\n      \"D. 30\"\n    ],\n    correct: 2,\n    explanation: \"Dono types ke plants ki total number nikalne ke liye 20 aur 5 ko add karenge.&lt;br>&lt;br>Total = 20 + 5 = 25 plants.&lt;br>&lt;br>Example: Agar ek area mein 10 rose plants aur 8 sunflower plants hain, toh total plants 18 honge. Lekin rose aur sunflower ki populations alag-alag count hongi.\"\n  },\n  {\n    question: \"10. Biotic components ki populations milkar community kaise banati hain?\",\n    options: &#91;\n      \"A. Jab different living organisms same habitat share karte hain\",\n      \"B. Jab sirf soil aur water present hote hain\",\n      \"C. Jab ek organism akela rehta hai\",\n      \"D. Jab habitat mein koi living organism nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Ek habitat mein plants, animals aur microorganisms ki different populations ek community form karti hain. Ye organisms ek-doosre ke saath interact karte hain.&lt;br>&lt;br>Example: Forest mein trees, birds, insects, deer aur fungi ki populations milkar forest community ka part hoti hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Ecosystem and Interactions&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Ecosystem and Interactions&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Pond mein fish ki presence nearby plants mein seed production ko kaise affect kar sakti hai?\",\n    options: &#91;\n      \"A. Fish directly plants ko seeds banane mein help karti hain.\",\n      \"B. Fish dragonfly larvae ko khati hain, jisse pollinators ki sankhya badh sakti hai.\",\n      \"C. Fish sunlight ko increase karti hain.\",\n      \"D. Fish plants ki roots ko nutrients deti hain.\"\n    ],\n    correct: 1,\n    explanation: \"Fish dragonfly larvae ko khati hain. Isse dragonflies ki sankhya kam ho sakti hai. Dragonflies kam hone par bees aur butterflies jaise pollinators zyada ho sakte hain, jo seed production mein help karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bees ek flower ka pollen doosre flower tak le jaati hain, jisse plants seeds produce kar sakte hain.\"\n  },\n  {\n    question: \"2. Pollination mein bees aur butterflies ka kya role hota hai?\",\n    options: &#91;\n      \"A. Plants ki roots ko strong banana\",\n      \"B. Soil ko moist rakhna\",\n      \"C. Pollen ko ek flower se doosre flower tak le jaana\",\n      \"D. Plants ko oxygen dena\"\n    ],\n    correct: 2,\n    explanation: \"Bees aur butterflies flowers par visit karti hain aur pollen transfer karne mein help karti hain. Is process se plants mein reproduction aur seed formation mein help milti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bee jab ek sunflower se doosre sunflower par jaati hai, toh pollen transfer ho sakta hai.\"\n  },\n  {\n    question: \"3. Overfishing se pond ke ecosystem par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Ecosystem ka balance change ho sakta hai.\",\n      \"B. Sabhi organisms ki sankhya hamesha badhegi.\",\n      \"C. Abiotic components disappear ho jayenge.\",\n      \"D. Plants ko sunlight ki zaroorat nahi rahegi.\"\n    ],\n    correct: 0,\n    explanation: \"Overfishing se fish ki population bahut kam ho sakti hai. Isse food chain aur doosre organisms ki populations affect ho sakti hain. Ecosystem mein biotic aur abiotic components ek-doosre ko influence karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Fish kam hone par dragonfly larvae ki sankhya badh sakti hai, jo aage food chain ko affect kar sakti hai.\"\n  },\n  {\n    question: \"4. Inmein se kaunsa biotic aur abiotic components ke interaction ka example hai?\",\n    options: &#91;\n      \"A. Frog insects ko khata hai.\",\n      \"B. Water snake fish ko khata hai.\",\n      \"C. Earthworm moist soil mein rehta hai.\",\n      \"D. Bees aur butterflies flowers par visit karti hain.\"\n    ],\n    correct: 2,\n    explanation: \"Biotic components living organisms hote hain, jabki abiotic components non-living things hote hain. Earthworm living organism hai aur soil non-living component hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Plants soil se water aur nutrients absorb karte hain.\"\n  },\n  {\n    question: \"5. Frog insects ko khata hai. Yeh kis type ka interaction hai?\",\n    options: &#91;\n      \"A. Do abiotic components ke beech\",\n      \"B. Do biotic components ke beech\",\n      \"C. Biotic aur abiotic components ke beech\",\n      \"D. Sirf non-living components ke beech\"\n    ],\n    correct: 1,\n    explanation: \"Frog aur insects dono living organisms hain. Jab ek organism doosre organism ko food ke liye use karta hai, toh yeh biotic interaction hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> A water snake fish ko khata hai. Yeh bhi do biotic components ke beech interaction hai.\"\n  },\n  {\n    question: \"6. Bright sunlight ki wajah se daytime temperature high hona kis interaction ka example hai?\",\n    options: &#91;\n      \"A. Do biotic components ke beech\",\n      \"B. Biotic aur abiotic components ke beech\",\n      \"C. Do abiotic components ke beech\",\n      \"D. Predator aur prey ke beech\"\n    ],\n    correct: 2,\n    explanation: \"Sunlight aur temperature dono abiotic components hain. Sunlight ki energy se surroundings ka temperature increase ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Garmiyon mein bright sunlight ke kaaran pond ka surface water warm ho sakta hai.\"\n  },\n  {\n    question: \"7. Ecosystem kya hota hai?\",\n    options: &#91;\n      \"A. Sirf plants ka group\",\n      \"B. Sirf animals ka group\",\n      \"C. Living organisms aur non-living components ka interaction system\",\n      \"D. Sirf water aur soil ka combination\"\n    ],\n    correct: 2,\n    explanation: \"Ecosystem mein plants, animals aur microorganisms jaise biotic components, air, water, soil aur sunlight jaise abiotic components ke saath interact karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Pond ecosystem mein fish, frogs, plants, water, sunlight aur microorganisms ek-doosre se interact karte hain.\"\n  },\n  {\n    question: \"8. Inmein se kaunsa aquatic ecosystem ka example hai?\",\n    options: &#91;\n      \"A. Desert\",\n      \"B. Grassland\",\n      \"C. River\",\n      \"D. Farmland\"\n    ],\n    correct: 2,\n    explanation: \"Aquatic ecosystems water-based ecosystems hote hain. Rivers, ponds aur lakes aquatic ecosystems ke examples hain. Forests, grasslands aur farms terrestrial ecosystems hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> River mein fish, aquatic plants aur microorganisms water ke saath interact karte hain.\"\n  },\n  {\n    question: \"9. Plants ki roots soil ko erosion se kaise bachati hain?\",\n    options: &#91;\n      \"A. Roots soil ko pakad kar rakhti hain.\",\n      \"B. Roots sunlight produce karti hain.\",\n      \"C. Roots soil ko air mein uda deti hain.\",\n      \"D. Roots water ko oxygen mein convert karti hain.\"\n    ],\n    correct: 0,\n    explanation: \"Plants ki roots soil particles ko bind karke rakhti hain. Isse wind aur flowing water ke kaaran soil ke behne ya udne ka risk kam hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hills par trees ki roots rainfall ke samay soil ko behne se rokne mein help karti hain.\"\n  },\n  {\n    question: \"10. Plants photosynthesis ke dauran oxygen release karte hain. Yeh kis baat ko show karta hai?\",\n    options: &#91;\n      \"A. Abiotic components kabhi change nahi hote.\",\n      \"B. Biotic components abiotic environment ko influence karte hain.\",\n      \"C. Plants ko water ki zaroorat nahi hoti.\",\n      \"D. Sirf animals ecosystem ko affect karte hain.\"\n    ],\n    correct: 1,\n    explanation: \"Plants living organisms hain. Photosynthesis ke dauran woh oxygen release karte hain, jo environment ki air ko influence karti hai. Isse pata chalta hai ki living organisms non-living components ko bhi affect karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Plants oxygen release karte hain aur shade dekar surroundings ko cool rakhne mein help karte hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Ecosystem&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Ecosystem&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Pond mein dragonflies ki population kam hone par bees aur butterflies ki sankhya kyun badh sakti hai?\",\n    options: &#91;\n      \"A. Dragonflies bees aur butterflies ko food deti hain.\",\n      \"B. Dragonflies bees aur butterflies ko eat karti hain.\",\n      \"C. Fish flowers ko pollinate karti hain.\",\n      \"D. Plants dragonflies ko oxygen dena band kar dete hain.\"\n    ],\n    correct: 1,\n    explanation: \"Dragonflies flies, bees aur butterflies jaise insects ko kha sakti hain. Dragonflies kam hone par in insects ki population badh sakti hai.&lt;br>&lt;br>Example: Agar kisi pond mein dragonflies kam ho jaayen, toh nearby flowers par bees aur butterflies zyada dikh sakti hain.\"\n  },\n  {\n    question: \"2. Fish ki population nearby flowering plants ke seed production ko indirectly kaise affect kar sakti hai?\",\n    options: &#91;\n      \"A. Fish flowers par pollen transfer karti hain.\",\n      \"B. Fish sunlight ko block karti hain.\",\n      \"C. Fish dragonfly larvae ko khati hain, jisse pollinators ki sankhya affect ho sakti hai.\",\n      \"D. Fish soil mein nutrients produce karti hain.\"\n    ],\n    correct: 2,\n    explanation: \"Fish dragonfly larvae ko kha sakti hain. Isse dragonflies ki population kam ho sakti hai aur pollinators ko kam predators ka saamna karna pad sakta hai. Is tarah fish plants ki seed production ko indirectly affect kar sakti hain.&lt;br>&lt;br>Example: Pond mein fish ki presence bees aur butterflies ke through nearby flowers ki pollination ko affect kar sakti hai.\"\n  },\n  {\n    question: \"3. Fish aur frogs ke beech competition kab ho sakta hai?\",\n    options: &#91;\n      \"A. Jab dono same limited food resource ke liye compete karein.\",\n      \"B. Jab dono sunlight produce karein.\",\n      \"C. Jab fish soil mein roots banaye.\",\n      \"D. Jab frogs oxygen release karein.\"\n    ],\n    correct: 0,\n    explanation: \"Jab do organisms ko same limited resource ki zaroorat hoti hai, toh unke beech competition ho sakta hai.&lt;br>&lt;br>Example: Agar pond mein fish aur frogs dono small insect larvae khate hain, toh food limited hone par competition ho sakta hai.\"\n  },\n  {\n    question: \"4. Water evaporation fast hone ka ek possible reason kya hai?\",\n    options: &#91;\n      \"A. Bright sunlight\",\n      \"B. Fish ka swimming karna\",\n      \"C. Frogs ka insects khana\",\n      \"D. Bees ka flowers par jaana\"\n    ],\n    correct: 0,\n    explanation: \"Sunlight water ko heat karti hai. Temperature badhne par water evaporation generally faster ho sakta hai.&lt;br>&lt;br>Example: Dhoop mein rakhe geele kapde cloudy weather ke comparison mein jaldi sookh sakte hain.\"\n  },\n  {\n    question: \"5. Plants soil ki moisture ko maintain karne mein kaise help kar sakte hain?\",\n    options: &#91;\n      \"A. Soil ko completely remove karke\",\n      \"B. Ground ko shade dekar aur evaporation kam karne mein help karke\",\n      \"C. Saara water oxygen mein badal kar\",\n      \"D. Sunlight ko produce karke\"\n    ],\n    correct: 1,\n    explanation: \"Plants ka cover soil ko direct sunlight aur hawa se protect kar sakta hai. Isse soil ki moisture retain karne mein help mil sakti hai.&lt;br>&lt;br>Example: Trees ke neeche ki soil, open sunny ground ke comparison mein zyada moist reh sakti hai.\"\n  },\n  {\n    question: \"6. Inmein se kaunsa terrestrial ecosystem ka example hai?\",\n    options: &#91;\n      \"A. Lake\",\n      \"B. River\",\n      \"C. Pond\",\n      \"D. Forest\"\n    ],\n    correct: 3,\n    explanation: \"Terrestrial ecosystems land par hote hain, jabki aquatic ecosystems water mein hote hain.&lt;br>&lt;br>Example: Forest mein trees, birds, insects, soil, air aur sunlight milkar ecosystem banate hain.\"\n  },\n  {\n    question: \"7. Farmland ko human-made ecosystem kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Kyunki farmland mein koi living organism nahi hota.\",\n      \"B. Kyunki humans crops ugane aur land manage karne mein important role play karte hain.\",\n      \"C. Kyunki farmland mein abiotic components nahi hote.\",\n      \"D. Kyunki farmland mein sirf animals rehte hain.\"\n    ],\n    correct: 1,\n    explanation: \"Human-made ecosystems woh hote hain jinhe humans create ya manage karte hain. Farmland mein crops, soil, water, sunlight aur doosre organisms interact karte hain.&lt;br>&lt;br>Example: Wheat farm mein wheat plants, earthworms, insects, soil aur irrigation water interact karte hain.\"\n  },\n  {\n    question: \"8. Plants ko food banane ke liye kaun-se components important hain?\",\n    options: &#91;\n      \"A. Sunlight, carbon dioxide aur water\",\n      \"B. Sirf soil aur stones\",\n      \"C. Sirf oxygen aur insects\",\n      \"D. Sirf fish aur water snakes\"\n    ],\n    correct: 0,\n    explanation: \"Plants photosynthesis ke through sunlight ki energy use karke carbon dioxide aur water se food banate hain.&lt;br>&lt;br>Example: Garden mein sunlight, air se carbon dioxide aur soil se absorbed water milkar plant ko food banane mein help karte hain.\"\n  },\n  {\n    question: \"9. Earthworms soil ke liye useful kyun hote hain?\",\n    options: &#91;\n      \"A. Woh soil mein movement karke uski aeration aur structure improve karne mein help karte hain.\",\n      \"B. Woh sunlight produce karte hain.\",\n      \"C. Woh plants ki saari roots kha jaate hain.\",\n      \"D. Woh water ko disappear kar dete hain.\"\n    ],\n    correct: 0,\n    explanation: \"Earthworms soil mein tunnels banate hain, jisse air aur water ke movement mein help mil sakti hai. Woh organic matter ko break down karne mein bhi important role play karte hain.&lt;br>&lt;br>Example: Earthworms wali garden soil aksar plants ki growth ke liye achhi conditions provide karti hai.\"\n  },\n  {\n    question: \"10. Ecosystem mein living aur non-living components ke interactions important kyun hain?\",\n    options: &#91;\n      \"A. Kyunki organisms ko survival ke liye resources aur suitable conditions chahiye.\",\n      \"B. Kyunki sirf non-living components survive karte hain.\",\n      \"C. Kyunki all organisms ko same food chahiye.\",\n      \"D. Kyunki ecosystems mein changes kabhi nahi hote.\"\n    ],\n    correct: 0,\n    explanation: \"Living organisms food, water, air, sunlight aur suitable temperature jaise resources par depend karte hain. In components ke interactions ecosystem ko function karne mein help karte hain.&lt;br>&lt;br>Example: Fish ko survival ke liye water mein dissolved oxygen, food aur suitable temperature ki zaroorat hoti hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a,b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Food Chain and Food Web&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Food Chain and Food Web&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Plants ko producers ya autotrophs kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Kyunki plants sirf animals ko khate hain.\",\n      \"B. Kyunki plants apna food khud banate hain.\",\n      \"C. Kyunki plants doosre plants par depend karte hain.\",\n      \"D. Kyunki plants food nahi banate hain.\"\n    ],\n    correct: 1,\n    explanation: \"Plants photosynthesis process se sunlight, carbon dioxide aur water ka use karke apna food banate hain. Isliye unhe producers ya autotrophs kaha jaata hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass sunlight ki help se apna food banati hai aur grasshopper ko food provide karti hai.\"\n  },\n  {\n    question: \"2. Heterotrophs kise kehte hain?\",\n    options: &#91;\n      \"A. Jo apna food khud banate hain.\",\n      \"B. Jo sirf sunlight par depend karte hain.\",\n      \"C. Jo food ke liye doosre organisms par depend karte hain.\",\n      \"D. Jo sirf water consume karte hain.\"\n    ],\n    correct: 2,\n    explanation: \"Heterotrophs apna food khud produce nahi kar sakte. Woh plants ya other organisms se food obtain karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Deer grass khata hai aur eagle doosre animals ko kha sakta hai. Dono heterotrophs hain.\"\n  },\n  {\n    question: \"3. Jo animals sirf plants khate hain, unhe kya kehte hain?\",\n    options: &#91;\n      \"A. Carnivores\",\n      \"B. Herbivores\",\n      \"C. Omnivores\",\n      \"D. Producers\"\n    ],\n    correct: 1,\n    explanation: \"Herbivores woh animals hote hain jo plants ya plant parts ko food ke roop mein consume karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Deer, hare aur cow herbivores hain.\"\n  },\n  {\n    question: \"4. Inmein se kaunsa animal omnivore hai?\",\n    options: &#91;\n      \"A. Deer\",\n      \"B. Leopard\",\n      \"C. Crow\",\n      \"D. Hare\"\n    ],\n    correct: 2,\n    explanation: \"Omnivores plants aur animals dono ko food ke roop mein khaate hain. Crows grains, fruits aur insects jaise different foods kha sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bear fruits bhi kha sakta hai aur insects bhi. Isliye bear ek omnivore hai.\"\n  },\n  {\n    question: \"5. Grassland mein grass \u2192 grasshopper \u2192 frog \u2192 snake \u2192 eagle ek example hai:\",\n    options: &#91;\n      \"A. Food chain\",\n      \"B. Water cycle\",\n      \"C. Food pyramid only\",\n      \"D. Photosynthesis\"\n    ],\n    correct: 0,\n    explanation: \"Food chain organisms ki ek sequence hai jo batati hai ki kaun kise khata hai. Is chain mein energy food ke through ek organism se doosre organism tak transfer hoti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass ko grasshopper khata hai, grasshopper ko frog khata hai aur frog ko snake kha sakta hai.\"\n  },\n  {\n    question: \"6. Food chain mein first trophic level par kaun hota hai?\",\n    options: &#91;\n      \"A. Large carnivores\",\n      \"B. Herbivores\",\n      \"C. Producers\",\n      \"D. Small carnivores\"\n    ],\n    correct: 2,\n    explanation: \"Green plants food khud banate hain, isliye food chain mein producers first trophic level par hote hain. Herbivores generally second trophic level par hote hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass \u2192 Hare \u2192 Leopard. Is chain mein grass first trophic level par hai.\"\n  },\n  {\n    question: \"7. Grass \u2192 Grasshopper \u2192 Frog \u2192 Snake \u2192 Eagle food chain mein frog ka trophic level kya hai?\",\n    options: &#91;\n      \"A. First\",\n      \"B. Second\",\n      \"C. Third\",\n      \"D. Fifth\"\n    ],\n    correct: 2,\n    explanation: \"Grass producer hai aur first trophic level par hai. Grasshopper herbivore hai aur second level par hai. Grasshopper ko khane wala frog third trophic level par hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass (Level 1) \u2192 Grasshopper (Level 2) \u2192 Frog (Level 3).\"\n  },\n  {\n    question: \"8. Food web kya hota hai?\",\n    options: &#91;\n      \"A. Ek single organism ka group\",\n      \"B. Interlinked food chains ka network\",\n      \"C. Sirf plants ki list\",\n      \"D. Sirf carnivores ka group\"\n    ],\n    correct: 1,\n    explanation: \"Ek ecosystem mein multiple food chains ek-doosre se connected hoti hain. In connected food chains ke network ko food web kehte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass ko hare aur mouse dono kha sakte hain. Mouse ko owl aur eagle jaise predators kha sakte hain. Yeh relationships food web ka part hain.\"\n  },\n  {\n    question: \"9. Grassland ecosystem mein grasshopper ko kaun kha sakta hai?\",\n    options: &#91;\n      \"A. Frog\",\n      \"B. Grass\",\n      \"C. Sunlight\",\n      \"D. Soil\"\n    ],\n    correct: 0,\n    explanation: \"Frog grasshopper jaise insects ko kha sakta hai. Is tarah frog ko food milta hai aur energy food chain mein aage transfer hoti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass \u2192 Grasshopper \u2192 Frog ek simple food chain hai.\"\n  },\n  {\n    question: \"10. Food chain mein organisms ki feeding relationships ko arrows se dikhaya jaata hai. Arrow ka direction kya batata hai?\",\n    options: &#91;\n      \"A. Organism kis direction mein chalta hai\",\n      \"B. Energy aur food kis organism se kis organism tak transfer hote hain\",\n      \"C. Wind kis direction mein chalti hai\",\n      \"D. Water kis direction mein flow karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Food chain mein arrow food source se us organism ki taraf point karta hai jo use khata hai. Isse energy transfer ki direction samajh aati hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Grass \u2192 Hare \u2192 Leopard. Grass se arrow hare ki taraf hai, kyunki hare grass khata hai. Hare se arrow leopard ki taraf hai, kyunki leopard hare ko kha sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Food Chain and Food Web&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Food Chain and Food Web&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Inmein se kaunsa organism producer hai?\",\n    options: &#91;\n      \"A. Frog\",\n      \"B. Grass\",\n      \"C. Snake\",\n      \"D. Eagle\"\n    ],\n    correct: 1,\n    explanation: \"Producers apna food khud banate hain. Green plants photosynthesis ke through sunlight, carbon dioxide aur water ka use karke food banate hain.&lt;br>&lt;br>Example: Grass, wheat aur millet producers hain.\"\n  },\n  {\n    question: \"2. Leopard ko carnivore kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Kyunki woh sirf plants khata hai.\",\n      \"B. Kyunki woh plants aur animals dono khata hai.\",\n      \"C. Kyunki woh doosre animals ko khata hai.\",\n      \"D. Kyunki woh apna food khud banata hai.\"\n    ],\n    correct: 2,\n    explanation: \"Carnivores woh animals hote hain jo doosre animals ko food ke roop mein khaate hain.&lt;br>&lt;br>Example: Leopard deer ka shikaar karke use kha sakta hai.\"\n  },\n  {\n    question: \"3. Grass \u2192 Hare \u2192 Leopard food chain mein hare kaun hai?\",\n    options: &#91;\n      \"A. Producer\",\n      \"B. Herbivore\",\n      \"C. Carnivore\",\n      \"D. Autotroph\"\n    ],\n    correct: 1,\n    explanation: \"Hare grass ko khata hai. Plants khane wale animals ko herbivores kehte hain.&lt;br>&lt;br>Example: Grass \u2192 Deer \u2192 Tiger mein deer bhi herbivore hai.\"\n  },\n  {\n    question: \"4. Food chain mein grasshopper ko kaun-sa trophic level occupy karta hai?&lt;br>&lt;br>Food chain: Grass \u2192 Grasshopper \u2192 Frog \u2192 Snake\",\n    options: &#91;\n      \"A. First trophic level\",\n      \"B. Second trophic level\",\n      \"C. Third trophic level\",\n      \"D. Fourth trophic level\"\n    ],\n    correct: 1,\n    explanation: \"Grass producer hai aur first trophic level par hai. Grasshopper grass ko khata hai, isliye woh second trophic level par hai.&lt;br>&lt;br>Example: Grass (Level 1) \u2192 Grasshopper (Level 2) \u2192 Frog (Level 3).\"\n  },\n  {\n    question: \"5. Ek food chain mein agar grasshopper ki population bahut kam ho jaaye, toh frog par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Frogs ko food kam mil sakta hai.\",\n      \"B. Frogs apna food khud banana shuru kar denge.\",\n      \"C. Frogs producers ban jaayenge.\",\n      \"D. Frogs ko sunlight ki zaroorat nahi hogi.\"\n    ],\n    correct: 0,\n    explanation: \"Frogs grasshoppers jaise insects ko khaate hain. Grasshoppers ki population kam hone par frogs ko available food kam mil sakta hai.&lt;br>&lt;br>Example: Agar pond mein insects kam ho jaayen, toh insect-eating frogs ko food dhoondhne mein difficulty ho sakti hai.\"\n  },\n  {\n    question: \"6. Food web mein ek organism multiple food chains ka part kyun ho sakta hai?\",\n    options: &#91;\n      \"A. Kyunki woh multiple organisms ko food provide kar sakta hai ya multiple organisms ko kha sakta hai.\",\n      \"B. Kyunki har organism sirf ek type ka food khata hai.\",\n      \"C. Kyunki food webs mein arrows use nahi hote.\",\n      \"D. Kyunki food web mein producers nahi hote.\"\n    ],\n    correct: 0,\n    explanation: \"Ecosystem mein ek organism ke multiple feeding relationships ho sakte hain. Isi wajah se different food chains interlink hokar food web banati hain.&lt;br>&lt;br>Example: Mouse seeds kha sakta hai aur use owl ya eagle jaise predators kha sakte hain.\"\n  },\n  {\n    question: \"7. Inmein se kaunsa organism omnivore ka example hai?\",\n    options: &#91;\n      \"A. Hare\",\n      \"B. Deer\",\n      \"C. Mouse\",\n      \"D. Leopard\"\n    ],\n    correct: 2,\n    explanation: \"Omnivores plants aur animals dono ko kha sakte hain. Mice grains, seeds aur kuch insects jaise foods khaate hain.&lt;br>&lt;br>Example: Crow grains aur fruits ke saath insects bhi kha sakta hai.\"\n  },\n  {\n    question: \"8. Food chain mein eagle ka role kya ho sakta hai?&lt;br>&lt;br>Food chain: Millet \u2192 Mouse \u2192 Eagle\",\n    options: &#91;\n      \"A. Producer\",\n      \"B. Primary producer\",\n      \"C. Consumer\",\n      \"D. Autotroph\"\n    ],\n    correct: 2,\n    explanation: \"Eagle apna food khud nahi banata. Woh mouse jaise animals ko khaata hai, isliye woh consumer hai. Is food chain mein eagle third trophic level par hai.&lt;br>&lt;br>Example: Millet (Level 1) \u2192 Mouse (Level 2) \u2192 Eagle (Level 3).\"\n  },\n  {\n    question: \"9. Grassland ecosystem mein snake ko frog khane se kya milta hai?\",\n    options: &#91;\n      \"A. Sunlight directly\",\n      \"B. Food aur energy\",\n      \"C. Soil\",\n      \"D. Carbon dioxide only\"\n    ],\n    correct: 1,\n    explanation: \"Jab snake frog ko khaata hai, toh use nutrients aur energy milti hai jo uske growth aur body functions ke liye important hain.&lt;br>&lt;br>Example: Grass \u2192 Grasshopper \u2192 Frog \u2192 Snake. Is chain mein snake ko frog se food aur energy milti hai.\"\n  },\n  {\n    question: \"10. Food chain aur food web ke beech main difference kya hai?\",\n    options: &#91;\n      \"A. Food chain ek feeding sequence hai, jabki food web interlinked food chains ka network hai.\",\n      \"B. Food chain mein living organisms nahi hote.\",\n      \"C. Food web sirf plants ko show karta hai.\",\n      \"D. Food chain aur food web ka koi difference nahi hai.\"\n    ],\n    correct: 0,\n    explanation: \"Food chain ek simple sequence mein feeding relationships dikhati hai. Food web ecosystem mein multiple connected feeding relationships dikhata hai.&lt;br>&lt;br>Example: Grass \u2192 Hare \u2192 Eagle ek food chain hai. Agar grass ko hare aur mouse dono khaate hain aur inhe different predators khaate hain, toh connected relationships food web banate hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a,b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Decomposition and Migratory Birds&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Decomposition and Migratory Birds&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Decomposition kya hota hai?\",\n    options: &#91;\n      \"A. Plants ka apna food banana\",\n      \"B. Dead plants aur animals ka simpler substances mein break down hona\",\n      \"C. Animals ka food search karna\",\n      \"D. Water ka ice mein change hona\"\n    ],\n    correct: 1,\n    explanation: \"Decomposition ek process hai jisme dead plants aur animals ke complex substances simpler substances mein break down hote hain. Isse nutrients environment mein wapas aa jaate hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Gire hue dead leaves kuch time baad decompose hokar soil mein nutrients add karte hain.\"\n  },\n  {\n    question: \"2. Decomposers kise kaha jaata hai?\",\n    options: &#91;\n      \"A. Jo apna food photosynthesis se banate hain\",\n      \"B. Jo sirf living animals ko hunt karte hain\",\n      \"C. Jo dead organic matter ko break down karte hain\",\n      \"D. Jo sirf sunlight absorb karte hain\"\n    ],\n    correct: 2,\n    explanation: \"Decomposers dead plants, animals aur organic waste ko break down karte hain. Ye nutrients ko environment mein recycle karne mein help karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Fungi aur bacteria dead wood aur fallen leaves ko decompose karte hain.\"\n  },\n  {\n    question: \"3. Inmein se kaun-se organisms important decomposers hain?\",\n    options: &#91;\n      \"A. Fungi aur bacteria\",\n      \"B. Eagle aur snake\",\n      \"C. Deer aur hare\",\n      \"D. Fish aur frog\"\n    ],\n    correct: 0,\n    explanation: \"Fungi aur bacteria dead organisms ke complex substances ko simpler substances mein break down karte hain. Is process se nutrients soil mein return hote hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Rainy season mein dead tree par ugne wale mushrooms decomposition mein role play karte hain.\"\n  },\n  {\n    question: \"4. Decomposition ke through soil ko kya benefit milta hai?\",\n    options: &#91;\n      \"A. Soil ke saare nutrients destroy ho jaate hain.\",\n      \"B. Soil mein important nutrients wapas aate hain.\",\n      \"C. Soil mein sunlight store ho jaati hai.\",\n      \"D. Soil mein water ki zaroorat khatam ho jaati hai.\"\n    ],\n    correct: 1,\n    explanation: \"Decomposers dead organic matter ko break down karke nutrients environment mein return karte hain. Plants in nutrients ko growth ke liye use kar sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Compost banane par vegetable peels aur dry leaves decompose hokar nutrient-rich material banate hain.\"\n  },\n  {\n    question: \"5. Decomposers ko saprotrophs bhi kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Kyunki woh dead aur decaying organic matter se food obtain karte hain.\",\n      \"B. Kyunki woh sunlight se food banate hain.\",\n      \"C. Kyunki woh sirf fresh fruits khaate hain.\",\n      \"D. Kyunki woh doosre animals ka shikaar karte hain.\"\n    ],\n    correct: 0,\n    explanation: \"Saprotrophs dead aur decaying matter se nutrients aur food obtain karte hain. Fungi apne enzymes release karke organic matter ko break down karne mein help karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Mushroom dead wood par grow karke uske organic matter se nutrients obtain karta hai.\"\n  },\n  {\n    question: \"6. Agar ecosystem mein decomposers na hon, toh kya ho sakta hai?\",\n    options: &#91;\n      \"A. Dead organic matter ka breakdown slow ho sakta hai aur nutrient recycling disturb ho sakti hai.\",\n      \"B. Plants ko kabhi water ki zaroorat nahi hogi.\",\n      \"C. Saare animals producers ban jaayenge.\",\n      \"D. Photosynthesis completely stop ho jaayega.\"\n    ],\n    correct: 0,\n    explanation: \"Decomposers dead organisms aur organic waste ko break down karke nutrients recycle karte hain. Unke bina dead matter accumulate ho sakta hai aur soil mein nutrients ka return slow ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Forest mein dead leaves aur fallen branches ko break down karne mein fungi aur bacteria important role play karte hain.\"\n  },\n  {\n    question: \"7. Migratory birds ek habitat se doosre habitat tak kab jaate hain?\",\n    options: &#91;\n      \"A. Sirf buildings banane ke liye\",\n      \"B. Har samay bina kisi reason ke\",\n      \"C. Harsh climate se bachne aur food search karne ke liye\",\n      \"D. Soil ko decompose karne ke liye\"\n    ],\n    correct: 2,\n    explanation: \"Migratory birds season ke according ek region se doosre region mein travel karte hain. Migration ke important reasons mein suitable climate aur food ki availability shamil hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Demoiselle cranes winter ke dauran Khichan village, Rajasthan mein aati hain.\"\n  },\n  {\n    question: \"8. Migratory birds farmers ki help kaise kar sakte hain?\",\n    options: &#91;\n      \"A. Crops ko hamesha destroy karke\",\n      \"B. Insect pests ko khaakar unki population control karke\",\n      \"C. Soil ko sunlight se cover karke\",\n      \"D. Plants ki roots ko khaakar\"\n    ],\n    correct: 1,\n    explanation: \"Kuch birds crop-damaging insects ko khaate hain. Isse pest population control ho sakti hai aur crops ko protection mil sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Insect-eating birds fields mein harmful insects ki sankhya kam karne mein help kar sakte hain.\"\n  },\n  {\n    question: \"9. Birds seed dispersal mein kya role play karte hain?\",\n    options: &#91;\n      \"A. Seeds ko sirf soil ke andar destroy karte hain.\",\n      \"B. Seeds ko ek place se doosre place tak spread karne mein help karte hain.\",\n      \"C. Seeds ko sunlight mein convert karte hain.\",\n      \"D. Seeds ko oxygen mein badal dete hain.\"\n    ],\n    correct: 1,\n    explanation: \"Kuch birds fruits khaate hain aur seeds ko doosri jagah tak le ja sakte hain. Isse plants naye areas mein grow kar sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Koi bird fruit khaakar uske seeds ko doosri location par drop kar sakta hai, jahan suitable conditions milne par naya plant grow ho sakta hai.\"\n  },\n  {\n    question: \"10. Nature mein nutrient recycling kyun important hai?\",\n    options: &#91;\n      \"A. Kyunki nutrients ko environment mein reuse kiya ja sakta hai.\",\n      \"B. Kyunki plants ko nutrients ki zaroorat nahi hoti.\",\n      \"C. Kyunki decomposition se saare organisms khatam ho jaate hain.\",\n      \"D. Kyunki nutrients sirf animals ke liye hote hain.\"\n    ],\n    correct: 0,\n    explanation: \"Decomposition se nutrients soil aur environment mein wapas aate hain. Plants in nutrients ko absorb karte hain aur food chain ke through nutrients doosre organisms tak bhi pahunch sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Dead leaves \u2192 Decomposition \u2192 Soil nutrients \u2192 New plant growth.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Ecosystem Balance and Environmental Effects&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Ecosystem Balance and Environmental Effects&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Pond mein pollution ke kaaran plants marne lage, toh water mein oxygen par kya effect ho sakta hai?\",\n    options: &#91;\n      \"(a) Oxygen ki quantity badh jaayegi.\",\n      \"(b) Oxygen ki quantity kam ho sakti hai.\",\n      \"(c) Oxygen ka koi effect nahi hoga.\",\n      \"(d) Water completely disappear ho jaayega.\"\n    ],\n    correct: 1,\n    explanation: \"Aquatic plants photosynthesis ke dauran oxygen release karte hain. Agar pollution ke kaaran plants ki sankhya kam ho jaaye, toh water mein oxygen production kam ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Polluted pond mein aquatic plants kam hone se fish ke liye available oxygen kam ho sakti hai.\"\n  },\n  {\n    question: \"2. Pond mein dissolved oxygen bahut kam ho jaaye, toh fish population par kya effect ho sakta hai?\",\n    options: &#91;\n      \"(a) Fish ki population hamesha badhegi.\",\n      \"(b) Fish ko oxygen ki zaroorat nahi hogi.\",\n      \"(c) Fish ki population kam ho sakti hai.\",\n      \"(d) Fish producers ban jaayengi.\"\n    ],\n    correct: 2,\n    explanation: \"Fish respiration ke liye water mein dissolved oxygen use karti hain. Oxygen bahut kam hone par fish survive nahi kar paati hain aur unki population decrease ho sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Polluted pond mein oxygen ki kami se fish ki death ho sakti hai.\"\n  },\n  {\n    question: \"3. Agar pond mein fish ki population kam ho jaaye aur fish insects ke predators hon, toh insects ki population par kya effect ho sakta hai?\",\n    options: &#91;\n      \"(a) Insects ki population badh sakti hai.\",\n      \"(b) Saare insects producers ban jaayenge.\",\n      \"(c) Insects ko food ki zaroorat nahi hogi.\",\n      \"(d) Insects ki population hamesha zero ho jaayegi.\"\n    ],\n    correct: 0,\n    explanation: \"Fish ki population kam hone se kuch insects ya unke aquatic life stages par predation kam ho sakta hai. Isse unki population badh sakti hai, agar doosre environmental factors bhi favourable hon.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar kisi pond mein insects ko khane wali fish kam ho jaaye, toh kuch insect populations increase kar sakti hain.\"\n  },\n  {\n    question: \"4. Farmers pesticides ka use kyun badha sakte hain jab agricultural pests ki population increase ho jaati hai?\",\n    options: &#91;\n      \"(a) Crops ko pests se protect karne ke liye\",\n      \"(b) Soil mein oxygen produce karne ke liye\",\n      \"(c) Plants ko carnivores banane ke liye\",\n      \"(d) Water ko clean karne ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Agricultural pests crops ko damage karte hain. Farmers pests ko control karne ke liye pesticides use kar sakte hain, lekin excessive use environment ko harm kar sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Insects agar wheat plants ki leaves ko damage kar rahe hon, toh farmer pest control ke liye pesticide use kar sakta hai.\"\n  },\n  {\n    question: \"5. Excessive pesticide use ka environment par kya harmful effect ho sakta hai?\",\n    options: &#91;\n      \"(a) Soil aur water quality kharab ho sakti hai.\",\n      \"(b) Har type ke organism ko benefit hoga.\",\n      \"(c) Pollution hamesha completely khatam ho jaayega.\",\n      \"(d) Ecosystem mein koi change nahi hoga.\"\n    ],\n    correct: 0,\n    explanation: \"Pesticides ka excessive ya improper use soil aur water ko contaminate kar sakta hai. Isse non-target organisms aur human health bhi affect ho sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Rainwater fields se pesticides ko nearby ponds mein le ja sakta hai, jisse aquatic organisms ko harm ho sakta hai.\"\n  },\n  {\n    question: \"6. India mein frog legs ke large-scale harvesting se kya problem hui thi?\",\n    options: &#91;\n      \"(a) Frog population increase hui thi.\",\n      \"(b) Frog population decline hui thi.\",\n      \"(c) Agricultural pests completely disappear ho gaye the.\",\n      \"(d) Pond pollution hamesha ke liye khatam ho gaya tha.\"\n    ],\n    correct: 1,\n    explanation: \"1980s mein frog legs ke large-scale harvesting se frogs ki population kam hui. Frogs insects ko khaate hain, isliye frogs ki kami se agricultural pests badh sakte the.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar fields mein frogs kam ho jaayen, toh kuch insects ko control karne wale natural predators bhi kam ho jaate hain.\"\n  },\n  {\n    question: \"7. Frogs agricultural ecosystem mein farmers ki help kaise karte hain?\",\n    options: &#91;\n      \"(a) Crops ko uproot karke\",\n      \"(b) Insects aur agricultural pests ko khaakar\",\n      \"(c) Pesticides produce karke\",\n      \"(d) Plants ki photosynthesis rok kar\"\n    ],\n    correct: 1,\n    explanation: \"Frogs kai insects ko food ke roop mein khaate hain. Isse kuch pest populations naturally control ho sakti hain aur farmers ko help mil sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Frog field mein harmful insects ko kha sakta hai, jisse crops ko hone wala damage kam ho sakta hai.\"\n  },\n  {\n    question: \"8. Government of India ne frog legs ke export par ban kyun lagaya tha?\",\n    options: &#91;\n      \"(a) Frogs ko plants mein convert karne ke liye\",\n      \"(b) Frogs ki population aur ecosystem ko further damage se protect karne ke liye\",\n      \"(c) Insects ki population badhane ke liye\",\n      \"(d) Farmers ko pesticides zyada use karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Large-scale frog harvesting se frog populations decline hui aur agricultural pests badhne ka risk hua. Export ban ka purpose further ecological damage ko rokna tha.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Kisi important predator ki population protect karne se ecosystem ke natural balance ko maintain karne mein help mil sakti hai.\"\n  },\n  {\n    question: \"9. Ecosystem ka balance dynamic hone ka kya meaning hai?\",\n    options: &#91;\n      \"(a) Ecosystem mein kabhi koi change nahi hota.\",\n      \"(b) Ecosystem ki populations aur resources time ke saath change hote rehte hain.\",\n      \"(c) Ecosystem mein sirf plants rehte hain.\",\n      \"(d) Ecosystem mein sirf abiotic components hote hain.\"\n    ],\n    correct: 1,\n    explanation: \"Ecosystem ka balance fixed nahi hota. Organisms ki population, food availability, temperature aur water conditions change ho sakti hain. Ecosystem in changes ke response mein adjust karta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Winter mein migratory birds kisi region mein aa sakte hain aur summer mein doosre region mein chale jaate hain.\"\n  },\n  {\n    question: \"10. Nature mein ek small change cascading effects kaise create kar sakta hai?\",\n    options: &#91;\n      \"(a) Ek change sirf ek organism ko affect karta hai.\",\n      \"(b) Ek change food chain ke through multiple organisms aur environment ko affect kar sakta hai.\",\n      \"(c) Ek change ka doosre organisms se koi relation nahi hota.\",\n      \"(d) Har change ecosystem ko improve hi karta hai.\"\n    ],\n    correct: 1,\n    explanation: \"Ecosystem mein organisms ek-doosre par depend karte hain. Ek organism ki population change hone se food availability aur doosre organisms ki population bhi change ho sakti hai. Aise effects aage tak spread ho sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Frogs kam \u2192 kuch insect pests zyada \u2192 crops ko zyada damage \u2192 pesticide use badhne ka risk \u2192 soil aur water pollution ka risk.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Ecosystem Interactions Quiz&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Ecosystem Interactions Quiz \u2013 Competition &amp; Relationships&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Organisms ecosystem mein common resources ke liye compete kyun karte hain?\",\n    options: &#91;\n      \"A. Food, water, space aur sunlight paane ke liye\",\n      \"B. Apna food photosynthesis se banane ke liye\",\n      \"C. Environment ko completely destroy karne ke liye\",\n      \"D. Doosre organisms ko hamesha benefit dene ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Organisms ko survival aur growth ke liye resources chahiye. Jab same resources limited hote hain, toh organisms ke beech competition ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Ek forest mein different plants sunlight aur soil ke water ke liye compete kar sakte hain.\"\n  },\n  {\n    question: \"2. Ecosystem mein competition ka ek important role kya hai?\",\n    options: &#91;\n      \"A. Har species ko extinct karna\",\n      \"B. Population size ko control karne mein help karna\",\n      \"C. Sabhi organisms ko producers banana\",\n      \"D. Water aur sunlight ko khatam karna\"\n    ],\n    correct: 1,\n    explanation: \"Limited resources ke liye competition organisms ki growth aur reproduction ko affect kar sakta hai. Isse populations regulate hone aur ecosystem ka balance maintain karne mein help mil sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar ek area mein grass limited hai, toh zyada deer ko sufficient food nahi milega aur unki population growth limit ho sakti hai.\"\n  },\n  {\n    question: \"3. Mutualism kya hota hai?\",\n    options: &#91;\n      \"A. Dono organisms ko harm hota hai.\",\n      \"B. Ek organism benefit hota hai aur doosra harm hota hai.\",\n      \"C. Dono organisms benefit hote hain.\",\n      \"D. Ek organism benefit hota hai aur doosra unaffected rehta hai.\"\n    ],\n    correct: 2,\n    explanation: \"Mutualism mein dono organisms ko interaction se benefit milta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Honeybee flower se nectar leti hai aur flower ki pollination mein help karti hai. Bee ko food milta hai aur flower ko reproduction mein help milti hai.\"\n  },\n  {\n    question: \"4. Orchid ka tree par grow karna kis type ke interaction ka example hai?\",\n    options: &#91;\n      \"A. Mutualism\",\n      \"B. Commensalism\",\n      \"C. Parasitism\",\n      \"D. Competition\"\n    ],\n    correct: 1,\n    explanation: \"Commensalism mein ek organism benefit hota hai, jabki doosre organism ko na significant benefit hota hai aur na harm.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Orchid tree ki branch par grow karke physical support aur sunlight tak access paata hai, jabki tree generally unaffected rehta hai.\"\n  },\n  {\n    question: \"5. Dog ke body par tick ka hona kis type ka interaction hai?\",\n    options: &#91;\n      \"A. Mutualism\",\n      \"B. Commensalism\",\n      \"C. Parasitism\",\n      \"D. Competition\"\n    ],\n    correct: 2,\n    explanation: \"Parasitism mein parasite benefit hota hai aur host ko harm hota hai. Tick dog ka blood suck karta hai, jisse dog ko skin irritation ya doosri problems ho sakti hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Tick dog ke blood se nutrition leta hai, lekin dog ko harm ho sakta hai.\"\n  },\n  {\n    question: \"6. Honeybee aur flower ke relationship mein honeybee ko kya benefit milta hai?\",\n    options: &#91;\n      \"A. Physical support\",\n      \"B. Nectar ke roop mein food\",\n      \"C. Dog ka blood\",\n      \"D. Soil se minerals directly\"\n    ],\n    correct: 1,\n    explanation: \"Honeybee flower se nectar collect karti hai, jise woh food source ke roop mein use karti hai. Flower ko bhi pollination se benefit mil sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bee jab ek flower se doosre flower par jaati hai, toh pollen transfer ho sakta hai.\"\n  },\n  {\n    question: \"7. Inmein se kaunsa commensalism ka correct example hai?\",\n    options: &#91;\n      \"A. Tick aur dog\",\n      \"B. Honeybee aur flower\",\n      \"C. Orchid aur tree\",\n      \"D. Tiger aur deer\"\n    ],\n    correct: 2,\n    explanation: \"Orchid tree par grow karke support paata hai, lekin tree ko generally koi significant benefit ya harm nahi hota. Isliye yeh commensalism ka example hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Kuch orchids tree ki branches par grow karte hain aur tree ko sirf support ke liye use karte hain.\"\n  },\n  {\n    question: \"8. Tiger aur deer ke beech kaunsa ecological interaction hota hai?\",\n    options: &#91;\n      \"A. Mutualism\",\n      \"B. Commensalism\",\n      \"C. Predation\",\n      \"D. Parasitism\"\n    ],\n    correct: 2,\n    explanation: \"Predation mein ek organism, predator, doosre organism, prey, ko hunt karke khaata hai. Isse predator ko food milta hai aur prey ko harm hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Tiger deer ka shikaar karke apni food requirement poori kar sakta hai.\"\n  },\n  {\n    question: \"9. Wildlife biologist A. J. T. Johnsingh ke research ke according, predators ki survival ke liye prey population important kyun hai?\",\n    options: &#91;\n      \"A. Predators prey se food aur energy obtain karte hain.\",\n      \"B. Predators apna food photosynthesis se banate hain.\",\n      \"C. Prey population ka predators se koi relation nahi hai.\",\n      \"D. Predators ko survival ke liye water ki zaroorat nahi hoti.\"\n    ],\n    correct: 0,\n    explanation: \"Tigers aur leopards jaise predators deer aur wild boar jaise prey animals ko khaate hain. Agar prey population bahut kam ho jaaye, toh predators ko sufficient food milna difficult ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar forest mein deer ki population bahut kam ho jaaye, toh tigers ko food dhoondhne mein difficulty ho sakti hai.\"\n  },\n  {\n    question: \"10. Agar ecosystem mein ek species ki population bahut zyada badh jaaye, toh kya ho sakta hai?\",\n    options: &#91;\n      \"A. Ecosystem ka balance disturb ho sakta hai.\",\n      \"B. Sabhi organisms ko equal benefit hoga.\",\n      \"C. Competition completely khatam ho jaayega.\",\n      \"D. Food aur water unlimited ho jaayenge.\"\n    ],\n    correct: 0,\n    explanation: \"Kisi species ki population bahut badhne par woh zyada food, water aur space use kar sakti hai. Isse doosri species ki populations aur ecosystem ke resources affect ho sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar herbivores ki population bahut badh jaaye, toh woh grass ko zyada consume kar sakte hain, jisse doosre herbivores ke liye food kam ho sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\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&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Ecosystem Benefits &amp; Conservation Quiz&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Ecosystem Benefits &amp; Conservation Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Ecosystems humans ko kaun-kaun se benefits provide karte hain?\",\n    options: &#91;\n      \"A. Sirf entertainment\",\n      \"B. Food, fresh air, medicines aur fertile soil\",\n      \"C. Sirf buildings banane ke liye land\",\n      \"D. Sirf minerals\"\n    ],\n    correct: 1,\n    explanation: \"Ecosystems humans ko essential resources aur services provide karte hain. Forests food, timber, fibres aur medicines dete hain. Ecosystems human well-being aur survival ke liye important hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Forests se humein fruits, medicinal plants aur timber mil sakta hai.\"\n  },\n  {\n    question: \"2. Aquatic ecosystems humans ko kaun-se important resources provide karte hain?\",\n    options: &#91;\n      \"A. Water aur food\",\n      \"B. Sirf timber\",\n      \"C. Sirf medicines\",\n      \"D. Sirf fresh air\"\n    ],\n    correct: 0,\n    explanation: \"Aquatic ecosystems, jaise rivers, lakes aur ponds, water aur food resources provide karte hain. Inmein fish aur doosre aquatic organisms bhi milte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Rivers se humans ko water milta hai aur fisheries se fish food ke roop mein milti hai.\"\n  },\n  {\n    question: \"3. Sundarbans kis type ke forests ke liye famous hai?\",\n    options: &#91;\n      \"A. Coniferous forests\",\n      \"B. Mangrove forests\",\n      \"C. Desert forests\",\n      \"D. Alpine forests\"\n    ],\n    correct: 1,\n    explanation: \"Sundarbans mein large mangrove forests hain. Yeh India aur Bangladesh ke region mein Ganges aur Brahmaputra rivers ke delta area mein located hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Mangrove trees coastal areas mein salty water aur changing tides ki conditions mein grow kar sakte hain.\"\n  },\n  {\n    question: \"4. Sundarbans ke mangrove forests storms aur floods ke effects ko kaise reduce karte hain?\",\n    options: &#91;\n      \"A. Strong winds aur waves ko slow karke\",\n      \"B. Saare rivers ko dry karke\",\n      \"C. Storms ko completely stop karke\",\n      \"D. Sunlight ko block karke\"\n    ],\n    correct: 0,\n    explanation: \"Mangrove forests ki roots aur trees water flow aur waves ki energy ko reduce karne mein help karte hain. Isse coastal communities ko storms aur floods ke impacts se protection mil sakti hai, lekin protection ki limit hoti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Coastal area mein mangrove vegetation storm waves ki force ko kam karne mein help kar sakti hai.\"\n  },\n  {\n    question: \"5. Trees atmosphere mein carbon dioxide ko kaise affect karte hain?\",\n    options: &#91;\n      \"A. Photosynthesis ke dauran carbon dioxide absorb karte hain.\",\n      \"B. Carbon dioxide ko food ke roop mein animals ko dete hain.\",\n      \"C. Carbon dioxide produce karna hi unka main function hai.\",\n      \"D. Carbon dioxide ko water mein completely convert kar dete hain.\"\n    ],\n    correct: 0,\n    explanation: \"Plants photosynthesis ke dauran carbon dioxide aur water ka use karke food banate hain aur oxygen release karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Ek healthy green tree photosynthesis ke through carbon dioxide absorb karta hai aur oxygen release karta hai.\"\n  },\n  {\n    question: \"6. UNESCO ne Sundarbans ko World Heritage Site kab declare kiya tha?\",\n    options: &#91;\n      \"A. 1947\",\n      \"B. 1975\",\n      \"C. 1987\",\n      \"D. 2001\"\n    ],\n    correct: 2,\n    explanation: \"Sundarbans ko uski exceptional natural importance aur biodiversity ke liye 1987 mein UNESCO World Heritage Site declare kiya gaya tha.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> World Heritage recognition important natural places ko conserve karne ke significance ko highlight karti hai.\"\n  },\n  {\n    question: \"7. Sundarbans ke ecosystem ko damage pahunchane wali human activity kaunsi hai?\",\n    options: &#91;\n      \"A. Mangrove trees ki protection\",\n      \"B. Illegal hunting aur mangrove trees ki cutting\",\n      \"C. Waste management improve karna\",\n      \"D. Wildlife conservation\"\n    ],\n    correct: 1,\n    explanation: \"Mangroves ko fuelwood aur farming ke liye cut karna, illegal hunting aur forest resources ka overuse ecosystem ko damage kar sakte hain. Isse wildlife ke habitats aur survival par negative effect padta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Mangrove trees cut hone par birds aur doosre animals ke nesting aur shelter areas kam ho sakte hain.\"\n  },\n  {\n    question: \"8. Industrial waste aur untreated sewage rivers mein release hone se kya ho sakta hai?\",\n    options: &#91;\n      \"A. Water pollution badh sakta hai.\",\n      \"B. Water hamesha pure ho jaayega.\",\n      \"C. Aquatic organisms ko koi effect nahi hoga.\",\n      \"D. Rivers mein nutrients aur oxygen ka balance hamesha improve hoga.\"\n    ],\n    correct: 0,\n    explanation: \"Industrial waste aur untreated sewage harmful substances aur excess organic matter water mein add kar sakte hain. Isse water quality kharab ho sakti hai aur aquatic organisms ko harm ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Untreated sewage ke kaaran river mein oxygen level kam ho sakta hai, jisse fish ki survival difficult ho sakti hai.\"\n  },\n  {\n    question: \"9. Deforestation ka ecosystem par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Wildlife habitats destroy ho sakte hain.\",\n      \"B. Har species ki population hamesha badhegi.\",\n      \"C. Soil erosion completely stop ho jaayega.\",\n      \"D. Natural resources unlimited ho jaayenge.\"\n    ],\n    correct: 0,\n    explanation: \"Deforestation mein trees aur forests ko remove kiya jaata hai. Isse animals ka shelter aur food kam ho sakta hai, soil erosion badh sakta hai aur biodiversity reduce ho sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Forest clear hone par birds aur mammals apna natural habitat lose kar sakte hain.\"\n  },\n  {\n    question: \"10. Ecosystems ko protect karne ke liye community kaunsa step le sakti hai?\",\n    options: &#91;\n      \"A. Rivers mein garbage dump karna\",\n      \"B. Trees ko unnecessarily cut karna\",\n      \"C. Waste ko properly dispose karna aur trees protect karna\",\n      \"D. Wildlife ka illegal hunting karna\"\n    ],\n    correct: 2,\n    explanation: \"Ecosystems ko conserve karne ke liye pollution kam karna, trees protect karna, natural resources ka responsible use karna aur wildlife habitats ko preserve karna important hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Local community river clean-up drives organise kar sakti hai, plastic waste ko segregate kar sakti hai aur native trees plant karke unki care kar sakti hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\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&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Ecosystems and Sustainable Farming&lt;\/title>\n\n&lt;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}\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: 10px 0;\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.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: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\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&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Ecosystems and Sustainable Farming&lt;\/h2>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n\n&lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n\n{\nquestion: \"1. Human-made ecosystem ka example kaunsa hai?\",\noptions: &#91;\n\"A. Natural forest\",\n\"B. Fish pond created by humans\",\n\"C. Natural river\",\n\"D. Ocean\"\n],\ncorrect: 1,\nexplanation: \"Human-made ecosystems woh ecosystems hote hain jinhe humans apni needs ke liye create karte hain. Inki proper care aur management karna zaroori hota hai.&lt;br>&lt;br>Example: Ek artificial fish pond jahan log machhliyan paalne ke liye paani aur food ka management karte hain.\"\n},\n\n{\nquestion: \"2. Natural ecosystems ke comparison mein human-made ecosystems ko kis cheez ki zyada zaroorat hoti hai?\",\noptions: &#91;\n\"A. Human care and management\",\n\"B. Sirf sunlight\",\n\"C. Sirf rainfall\",\n\"D. Kisi bhi care ki zaroorat nahi hoti\"\n],\ncorrect: 0,\nexplanation: \"Human-made ecosystems ko healthy rakhne ke liye humans ko regular maintenance aur management karna padta hai.&lt;br>&lt;br>Example: Ek park mein plants ko water dena, trees ki trimming karna aur waste ko clean karna.\"\n},\n\n{\nquestion: \"3. India mein 1950 se 1965 ke beech food crisis ka main reason kya tha?\",\noptions: &#91;\n\"A. Bahut zyada crop production\",\n\"B. Low crop production\",\n\"C. Forests ki badhti sankhya\",\n\"D. Pesticides ka complete ban\"\n],\ncorrect: 1,\nexplanation: \"Is period mein India ko food crisis ka saamna karna pada kyunki crop production kam tha. Food production badhane ke liye baad mein modern farming techniques ka use badha.&lt;br>&lt;br>Example: Tractors, machines aur fertilisers ki help se farmers kam samay mein zyada land par farming kar sake.\"\n},\n\n{\nquestion: \"4. Green Revolution ka main purpose kya tha?\",\noptions: &#91;\n\"A. Food production ko kam karna\",\n\"B. Farming ko completely band karna\",\n\"C. Food production ko badhana\",\n\"D. Sirf forests ko develop karna\"\n],\ncorrect: 2,\nexplanation: \"Green Revolution ke dauraan tractors, machines, synthetic fertilisers aur pesticides ke use se agricultural production badhane mein help mili.&lt;br>&lt;br>Example: Fertilisers aur improved farming techniques ki help se wheat production badhana.\"\n},\n\n{\nquestion: \"5. Synthetic fertilisers ke excessive use se soil ki fertility kyun kam ho sakti hai?\",\noptions: &#91;\n\"A. Soil mein humus hamesha badhta hai\",\n\"B. Friendly microorganisms aur organic matter kam ho sakte hain\",\n\"C. Soil mein biodiversity hamesha badhti hai\",\n\"D. Soil ko kisi nutrients ki zaroorat nahi rehti\"\n],\ncorrect: 1,\nexplanation: \"Synthetic fertilisers ka long-term excessive use soil health ko harm kar sakta hai. Soil ke beneficial microorganisms aur humus mein kami aane se soil ki quality affect ho sakti hai.&lt;br>&lt;br>Example: Agar kisi farm mein organic matter maintain na kiya jaye, toh soil ki structure aur water-holding capacity kharab ho sakti hai.\"\n},\n\n{\nquestion: \"6. Humus soil ke liye important kyun hota hai?\",\noptions: &#91;\n\"A. Yeh soil ko completely dry karta hai\",\n\"B. Yeh soil particles ko bind karne mein help karta hai\",\n\"C. Yeh saare insects ko destroy karta hai\",\n\"D. Yeh soil erosion ko badhata hai\"\n],\ncorrect: 1,\nexplanation: \"Humus decomposed plant aur animal material se banta hai. Yeh soil structure aur fertility ko improve karta hai. Humus ki kami se soil erosion ka risk badh sakta hai.&lt;br>&lt;br>Example: Compost milane se garden ki soil ki quality aur structure improve ho sakti hai.\"\n},\n\n{\nquestion: \"7. Ek hi crop ko baar-baar same land par ugane ko kya kehte hain?\",\noptions: &#91;\n\"A. Pollination\",\n\"B. Decomposition\",\n\"C. Monoculture\",\n\"D. Afforestation\"\n],\ncorrect: 2,\nexplanation: \"Monoculture ka matlab hai ek hi type ki crop ko repeatedly grow karna. Isse biodiversity kam ho sakti hai aur soil mein kuch nutrients ki kami develop ho sakti hai.&lt;br>&lt;br>Example: Ek field mein har season sirf wheat ugana, bina crop rotation ke.\"\n},\n\n{\nquestion: \"8. Pesticides ke excessive use ka ek possible effect kya hai?\",\noptions: &#91;\n\"A. Natural predators ki population kam ho sakti hai\",\n\"B. Sabhi pests permanently khatam ho jaate hain\",\n\"C. Soil mein humus hamesha badhta hai\",\n\"D. Pollinators ki population hamesha badhti hai\"\n],\ncorrect: 0,\nexplanation: \"Excessive pesticide use harmful pests ke saath beneficial organisms aur natural predators ko bhi affect kar sakta hai. Natural predators kam hone par pests ki population badh sakti hai.&lt;br>&lt;br>Example: Agar pesticides se pest-eating insects mar jaayein, toh crop ko damage karne wale pests ki sankhya badh sakti hai.\"\n},\n\n{\nquestion: \"9. Sustainable farming ke liye kaunsi practice useful hai?\",\noptions: &#91;\n\"A. Pesticides ka unlimited use\",\n\"B. Har season same crop ugana\",\n\"C. Organic manure aur compost ka use\",\n\"D. Groundwater ka excessive extraction\"\n],\ncorrect: 2,\nexplanation: \"Organic manure aur compost soil mein organic matter add karte hain aur soil health ko support karte hain. Sustainable farming ka aim food production ke saath environment ko protect karna bhi hai.&lt;br>&lt;br>Example: Farmers kitchen waste, dry leaves aur plant residues se compost bana kar fields mein use kar sakte hain.\"\n},\n\n{\nquestion: \"10. Vrikshayurveda mein Kunapa Jala ka kya importance bataya gaya hai?\",\noptions: &#91;\n\"A. Yeh chemical pesticide hai\",\n\"B. Yeh animal aur plant waste se banaya gaya liquid fertiliser hai\",\n\"C. Yeh soil ko polluted karta hai\",\n\"D. Yeh irrigation ke liye machine hai\"\n],\ncorrect: 1,\nexplanation: \"Kunapa Jala animal aur plant waste ko fermentation process se decompose karke banaya jaane wala liquid fertiliser hai. Vrikshayurveda soil ko continuously nourish karne ke liye organic manure aur composted materials par zor deta hai.&lt;br>&lt;br>Example: Fermented organic material se bana liquid fertiliser plants ko nutrients provide karne ke liye use kiya ja sakta hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;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\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part12<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Sustainable Farming &amp; Human-Made Ecosystems Quiz&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Sustainable Farming &amp; Human-Made Ecosystems Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Well-designed human-made ecosystems environment ko kaise benefit kar sakte hain?\",\n    options: &#91;\n      \"A. Pollution badhakar\",\n      \"B. Biodiversity ko support karke\",\n      \"C. Saare organisms ko remove karke\",\n      \"D. Soil erosion badhakar\"\n    ],\n    correct: 1,\n    explanation: \"Properly designed human-made ecosystems pollution reduce karne, biodiversity support karne aur recreation ke liye useful spaces provide karne mein help kar sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Ek well-maintained park birds, butterflies aur different plants ko shelter provide kar sakta hai.\"\n  },\n  {\n    question: \"2. Farmers synthetic fertilisers ka use mainly kyun karte hain?\",\n    options: &#91;\n      \"A. Crop production badhane ke liye\",\n      \"B. Soil ke saare microorganisms ko badhane ke liye\",\n      \"C. Pollination rokne ke liye\",\n      \"D. Groundwater ko waste karne ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Synthetic fertilisers crops ko nutrients provide karte hain aur crop growth aur production badhane mein help kar sakte hain. Lekin inka excessive aur improper use environment aur soil health ko harm kar sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Wheat field mein suitable quantity mein fertiliser dene se crop growth improve ho sakti hai.\"\n  },\n  {\n    question: \"3. Excessive irrigation ka soil ecosystem par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Soil organisms disturb ho sakte hain\",\n      \"B. Saare soil organisms hamesha increase hote hain\",\n      \"C. Soil mein pollution kabhi nahi hota\",\n      \"D. Soil ko water ki zaroorat nahi rehti\"\n    ],\n    correct: 0,\n    explanation: \"Heavy irrigation soil ke natural conditions ko change kar sakti hai aur earthworms jaise organisms ko disturb kar sakti hai. Excessive groundwater extraction se water resources bhi kam ho sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar farmer zaroorat se zyada groundwater pump kare, toh local groundwater level neeche ja sakta hai.\"\n  },\n  {\n    question: \"4. Earthworms soil ke liye useful kyun hote hain?\",\n    options: &#91;\n      \"A. Woh soil ko hamesha polluted karte hain\",\n      \"B. Woh soil health aur nutrient cycling mein help karte hain\",\n      \"C. Woh crops ki pollination karte hain\",\n      \"D. Woh saare plants ko destroy karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Earthworms soil ko loosen karne aur organic matter ke decomposition mein help karte hain. Isse soil structure aur nutrient availability improve ho sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Compost-rich garden soil mein earthworms organic material ko break down karne mein help karte hain.\"\n  },\n  {\n    question: \"5. Repeated ploughing ka ek possible harmful effect kya hai?\",\n    options: &#91;\n      \"A. Soil organisms disturb ho sakte hain\",\n      \"B. Soil mein hamesha humus badhta hai\",\n      \"C. Pesticides ki zaroorat hamesha khatam ho jaati hai\",\n      \"D. Groundwater automatically increase hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Baar-baar ploughing karne se soil structure aur earthworms jaise organisms ka habitat disturb ho sakta hai. Isliye farming practices ko soil ki condition ke according manage karna chahiye.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Unnecessary repeated tilling se field ki soil structure aur soil organisms affect ho sakte hain.\"\n  },\n  {\n    question: \"6. Pests pesticide-resistant kaise ban sakte hain?\",\n    options: &#91;\n      \"A. Jab susceptible pests mar jaate hain aur resistant pests survive karke reproduce karte hain\",\n      \"B. Jab farmers compost use karte hain\",\n      \"C. Jab bees flowers par baithti hain\",\n      \"D. Jab soil mein humus hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Pesticides ke repeated use se resistant pests ko survive karne ka advantage mil sakta hai. Ye reproduce karke resistant population badha sakte hain, jisse pest control difficult ho jaata hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar kuch insects pesticide se nahi marte aur unke offspring bhi resistant hote hain, toh wahi pesticide future mein less effective ho sakta hai.\"\n  },\n  {\n    question: \"7. Monoculture se pollinators par kya effect pad sakta hai?\",\n    options: &#91;\n      \"A. Pollinators ko hamesha unlimited food milta hai\",\n      \"B. Biodiversity kam hone se pollinators affect ho sakte hain\",\n      \"C. Saare pollinators predators ban jaate hain\",\n      \"D. Pollination ki koi importance nahi rehti\"\n    ],\n    correct: 1,\n    explanation: \"Ek hi crop repeatedly ugane se field mein plant diversity kam ho sakti hai. Isse bees aur butterflies jaise pollinators ke food aur habitat par effect pad sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Different flowering plants wala farm bees ko alag-alag seasons mein nectar provide kar sakta hai.\"\n  },\n  {\n    question: \"8. Crop rotation ka main benefit kya hai?\",\n    options: &#91;\n      \"A. Har season same crop ugana\",\n      \"B. Soil health maintain karne aur pest problems ko reduce karne mein help karna\",\n      \"C. Saare beneficial insects ko maarna\",\n      \"D. Groundwater ka excessive use karna\"\n    ],\n    correct: 1,\n    explanation: \"Crop rotation mein different seasons mein same field par different crops ugayi jaati hain. Isse nutrient management improve ho sakta hai aur kuch crop-specific pests aur diseases ka cycle break ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Ek field mein wheat ke baad suitable legume crop ugana soil nutrient management mein help kar sakta hai.\"\n  },\n  {\n    question: \"9. Natural farming ka important aim kya hai?\",\n    options: &#91;\n      \"A. Natural ecosystems mein unnecessary interference badhana\",\n      \"B. Synthetic inputs par dependence ko reduce karna\",\n      \"C. Soil organisms ko completely remove karna\",\n      \"D. Sirf ek crop ko permanently ugana\"\n    ],\n    correct: 1,\n    explanation: \"Natural farming aur organic farming jaise approaches synthetic fertilisers aur pesticides par dependence kam karne aur soil health ko support karne ka aim rakhte hain. In methods ko local conditions ke according manage karna zaroori hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Farmer compost, crop rotation aur pest control ke natural methods ko combine kar sakta hai.\"\n  },\n  {\n    question: \"10. Sustainable farming future food security ke liye important kyun hai?\",\n    options: &#91;\n      \"A. Kyunki yeh soil aur natural resources ko protect karne mein help karti hai\",\n      \"B. Kyunki yeh saare insects ko khatam kar deti hai\",\n      \"C. Kyunki ismein kisi bhi type ki planning nahi chahiye\",\n      \"D. Kyunki yeh groundwater ko unlimited banati hai\"\n    ],\n    correct: 0,\n    explanation: \"Food security ka matlab hai logon ko sufficient aur safe food available hona. Sustainable farming soil fertility, water resources aur biodiversity ko protect karne mein help karti hai, taaki future mein bhi food produce kiya ja sake.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Compost, crop rotation aur efficient irrigation use karne wala farmer soil health maintain karte hue long-term crop production support kar sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\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&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part13<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Habitat and Ecosystem&lt;\/title>\n&lt;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}\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: 10px 0; }\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.options label:hover { background: #f0f0f0; }\n.correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n.wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n}\n.controls { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Habitat and Ecosystem&lt;\/h2>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n\n{\nquestion: \"1. Habitat kise kehte hain?\",\noptions: &#91;\n\"A. Aisi jagah jahan sirf plants grow karte hain\",\n\"B. Aisi jagah jo organism ko live aur grow karne ke liye suitable conditions deti hai\",\n\"C. Aisi jagah jahan water nahi hota\",\n\"D. Aisi jagah jahan koi living organism nahi hota\"\n],\ncorrect: 1,\nexplanation: \"Habitat ek natural ya suitable place hota hai jahan organism ko food, water, shelter aur survival ke liye zaroori conditions milti hain.&lt;br>&lt;br>Example: Pond frog ka habitat ho sakta hai kyunki wahan use water, food aur shelter milte hain.\"\n},\n\n{\nquestion: \"2. Inmein se kaunsa abiotic component hai?\",\noptions: &#91;\n\"A. Grass\",\n\"B. Bacteria\",\n\"C. Soil\",\n\"D. Butterfly\"\n],\ncorrect: 2,\nexplanation: \"Abiotic components ecosystem ke non-living parts hote hain, jaise air, water, soil aur temperature. Biotic components living organisms hote hain.&lt;br>&lt;br>Example: Forest mein trees biotic components hain, jabki soil aur sunlight abiotic components hain.\"\n},\n\n{\nquestion: \"3. Ecosystem ka formation kaise hota hai?\",\noptions: &#91;\n\"A. Sirf animals se\",\n\"B. Sirf plants se\",\n\"C. Biotic aur abiotic components ke interaction se\",\n\"D. Sirf water aur air se\"\n],\ncorrect: 2,\nexplanation: \"Ecosystem mein living organisms aur non-living environment ek-doosre ke saath interact karte hain.&lt;br>&lt;br>Example: Pond mein fish, plants aur microorganisms water, sunlight aur dissolved oxygen ke saath interact karte hain.\"\n},\n\n{\nquestion: \"4. Food chain mein producers kaun hote hain?\",\noptions: &#91;\n\"A. Animals jo plants ko khate hain\",\n\"B. Green plants jo apna food banate hain\",\n\"C. Fungi jo dead matter ko break down karte hain\",\n\"D. Animals jo sirf meat khate hain\"\n],\ncorrect: 1,\nexplanation: \"Producers photosynthesis ke through sunlight ki energy use karke apna food banate hain. Ye food chain ka starting point hote hain.&lt;br>&lt;br>Example: Grass apna food banati hai aur grasshopper ke liye food provide karti hai.\"\n},\n\n{\nquestion: \"5. Decomposers ecosystem mein kya kaam karte hain?\",\noptions: &#91;\n\"A. Dead matter ko break down karke nutrients recycle karte hain\",\n\"B. Sirf living animals ko hunt karte hain\",\n\"C. Sunlight produce karte hain\",\n\"D. Saare plants ko destroy karte hain\"\n],\ncorrect: 0,\nexplanation: \"Decomposers dead plants aur animals ko simpler substances mein break down karte hain. Is process se nutrients environment mein wapas aate hain.&lt;br>&lt;br>Example: Fungi aur bacteria dead leaves ko decompose karke nutrients ko soil mein return karne mein help karte hain.\"\n},\n\n{\nquestion: \"6. Food web aur food chain mein kya difference hai?\",\noptions: &#91;\n\"A. Food chain interconnected feeding relationships ka network hoti hai\",\n\"B. Food web sirf ek organism ko show karta hai\",\n\"C. Food web multiple interconnected food chains ko show karta hai\",\n\"D. Dono ka meaning completely same hai\"\n],\ncorrect: 2,\nexplanation: \"Food chain ek feeding pathway show karti hai, jabki food web ecosystem mein multiple connected feeding pathways ko show karta hai.&lt;br>&lt;br>Example: Grass ko grasshopper aur rabbit dono kha sakte hain. Grasshopper ko frog kha sakta hai, aur frog ko snake. Ye connected pathways food web ka part hain.\"\n},\n\n{\nquestion: \"7. Bees aur flowering plants ke beech mutualism ka example kyun milta hai?\",\noptions: &#91;\n\"A. Bee ko benefit hota hai aur plant ko harm hota hai\",\n\"B. Plant ko benefit hota hai aur bee ko harm hota hai\",\n\"C. Dono ko benefit hota hai\",\n\"D. Kisi ko benefit nahi hota\"\n],\ncorrect: 2,\nexplanation: \"Mutualism mein dono organisms benefit receive karte hain. Bees flowers se nectar aur pollen leti hain, jabki pollination mein help kar sakti hain.&lt;br>&lt;br>Example: Bee flower se nectar collect karti hai aur pollen transfer karke plant ki reproduction mein help karti hai.\"\n},\n\n{\nquestion: \"8. Tick aur dog ke relationship ko kya kehte hain?\",\noptions: &#91;\n\"A. Mutualism\",\n\"B. Commensalism\",\n\"C. Parasitism\",\n\"D. Decomposition\"\n],\ncorrect: 2,\nexplanation: \"Parasitism mein ek organism benefit leta hai aur doosre organism ko harm hota hai. Tick dog ka blood suck karta hai aur dog ko harm pahuncha sakta hai.&lt;br>&lt;br>Example: Dog ke body par tick ka attached rehna parasitism ka example hai.\"\n},\n\n{\nquestion: \"9. Ecosystem humans ko kaunsa important benefit provide karta hai?\",\noptions: &#91;\n\"A. Clean air aur water\",\n\"B. Sirf plastic waste\",\n\"C. Sirf noise pollution\",\n\"D. Natural resources ka complete destruction\"\n],\ncorrect: 0,\nexplanation: \"Healthy ecosystems food, clean water, medicines, clean air aur climate regulation jaise important benefits provide karte hain. Ye benefits human survival aur well-being ke liye zaroori hain.&lt;br>&lt;br>Example: Trees carbon dioxide absorb karte hain aur photosynthesis ke dauraan oxygen release karte hain.\"\n},\n\n{\nquestion: \"10. National parks aur wildlife sanctuaries banane ka main purpose kya hai?\",\noptions: &#91;\n\"A. Deforestation badhana\",\n\"B. Wildlife aur natural habitats ko conserve karna\",\n\"C. Pollution badhana\",\n\"D. Saare predators ko remove karna\"\n],\ncorrect: 1,\nexplanation: \"National parks aur wildlife sanctuaries natural habitats aur organisms ko protect karne mein help karte hain. Conservation se biodiversity ko maintain karne mein support milta hai.&lt;br>&lt;br>Example: Ek wildlife sanctuary animals ko hunting aur habitat destruction jaise threats se protection provide kar sakti hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) return alert(\"Please enter your name.\");\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&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;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\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch12 part14<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Ecosystem Quiz \u2013 Population, Community &amp; Sustainability&lt;\/title>\n&lt;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  .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  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\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  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Ecosystem Quiz \u2013 Population, Community &amp; Sustainability&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Population, community aur ecosystem ke baare mein kaunsa statement wrong hai?\",\n    options: &#91;\n      \"A. Population ek hi species ke organisms ka group hota hai.\",\n      \"B. Community mein different populations hoti hain.\",\n      \"C. Ecosystem, community ka ek chhota part hota hai.\",\n      \"D. Ecosystem mein biotic aur abiotic components hote hain.\"\n    ],\n    correct: 2,\n    explanation: \"Ecosystem, community se larger hota hai. Ismein living organisms ke saath air, water, soil aur sunlight jaise abiotic components bhi hote hain.&lt;br>&lt;br>Example: Ek pond mein fish ki population ho sakti hai, different organisms milkar community banate hain, aur community plus water, sunlight aur soil milkar ecosystem banate hain.\"\n  },\n  {\n    question: \"2. Agar forest se saare decomposers disappear ho jaayein, toh kya hoga?\",\n    options: &#91;\n      \"A. Nutrients ka recycling process slow ho jayega.\",\n      \"B. Soil fertility hamesha badhegi.\",\n      \"C. Dead organisms turant disappear ho jayenge.\",\n      \"D. Producers ko nutrients ki zaroorat nahi hogi.\"\n    ],\n    correct: 0,\n    explanation: \"Decomposers dead plants aur animals ko break down karke nutrients environment mein wapas laate hain. Unke bina dead matter accumulate hoga aur nutrient recycling disturb ho jayegi.&lt;br>&lt;br>Example: Fungi aur bacteria na hon, toh forest floor par dead leaves zyada jama ho sakti hain aur plants ko nutrients milna difficult ho sakta hai.\"\n  },\n  {\n    question: \"3. Mangrove forests tsunami ke impact ko kaise reduce kar sakte hain?\",\n    options: &#91;\n      \"A. Tsunami ko completely stop karke\",\n      \"B. Waves ki energy ko reduce karne aur water flow ko slow karne mein help karke\",\n      \"C. Sea water ko fresh water mein badal kar\",\n      \"D. Earthquakes ko prevent karke\"\n    ],\n    correct: 1,\n    explanation: \"Mangroves ki dense roots aur vegetation coastal areas mein waves aur water flow ki energy ko reduce karne mein help kar sakti hain. Lekin ye severe tsunami se complete protection guarantee nahi karti.&lt;br>&lt;br>Example: Mangrove trees wala coastal area kuch situations mein bina mangroves wale area ke comparison mein kam damage experience kar sakta hai.\"\n  },\n  {\n    question: \"4. Food chain hai: Grass \u2192 Grasshopper \u2192 Frog \u2192 Snake. Agar frogs disappear ho jaayein, toh kya possible effect hoga?\",\n    options: &#91;\n      \"A. Grasshoppers kam aur snakes zyada ho jayenge.\",\n      \"B. Grasshoppers badh sakte hain aur snakes kam ho sakte hain.\",\n      \"C. Grass aur grasshoppers dono immediately disappear ho jayenge.\",\n      \"D. Snakes ko koi effect nahi hoga.\"\n    ],\n    correct: 1,\n    explanation: \"Frogs grasshoppers ko eat karte hain. Frogs kam hone par grasshoppers ki population badh sakti hai. Snakes ko food kam milne se unki population bhi decline kar sakti hai.&lt;br>&lt;br>Example: Agar frogs kam ho jaayein, toh grasshoppers zyada grass kha sakte hain, jisse grass ki quantity bhi reduce ho sakti hai.\"\n  },\n  {\n    question: \"5. School garden mein butterflies ki population kam hone ka possible reason kya hai?\",\n    options: &#91;\n      \"A. Flowering plants ki kami\",\n      \"B. Pesticides ka excessive use\",\n      \"C. Suitable habitat ka loss\",\n      \"D. Ye sabhi\"\n    ],\n    correct: 3,\n    explanation: \"Butterflies ko nectar, suitable plants aur safe habitat ki zaroorat hoti hai. Flowering plants ki kami, pesticides aur habitat loss unki population ko reduce kar sakte hain.&lt;br>&lt;br>Example: Agar school garden mein flowers remove kar diye jaayein aur pesticides spray kiye jaayein, toh butterflies ko food aur shelter kam mil sakta hai.\"\n  },\n  {\n    question: \"6. School campus mein butterflies ki population badhane ke liye kaunsa step useful hoga?\",\n    options: &#91;\n      \"A. Saare flowering plants hata dena\",\n      \"B. Har jagah pesticides spray karna\",\n      \"C. Native flowering plants lagana aur pesticides ka use reduce karna\",\n      \"D. Garden ko completely concrete se cover kar dena\"\n    ],\n    correct: 2,\n    explanation: \"Native flowering plants butterflies ko nectar aur suitable habitat provide kar sakte hain. Pesticides ka unnecessary use avoid karna bhi beneficial insects ko protect karne mein help karta hai.&lt;br>&lt;br>Example: Students campus mein marigold aur locally suitable flowering plants laga sakte hain aur ek pesticide-free garden area maintain kar sakte hain.\"\n  },\n  {\n    question: \"7. Sirf producers wala ecosystem stable kyun nahi reh sakta?\",\n    options: &#91;\n      \"A. Producers sunlight use nahi karte.\",\n      \"B. Consumers aur decomposers food relationships aur nutrient recycling ke liye important hain.\",\n      \"C. Producers kabhi food nahi banate.\",\n      \"D. Abiotic components ki zaroorat nahi hoti.\"\n    ],\n    correct: 1,\n    explanation: \"Consumers producers ya doosre organisms se food lete hain, jabki decomposers dead matter ko break down karke nutrients recycle karte hain. Inke bina ecosystem ke important processes disturb ho jaate hain.&lt;br>&lt;br>Example: Plants food banate hain, rabbits plants ko khate hain aur decomposers dead plants aur animals se nutrients soil mein return karte hain.\"\n  },\n  {\n    question: \"8. Park aur roadside ecosystem mein kya difference ho sakta hai?\",\n    options: &#91;\n      \"A. Park mein living organisms nahi hote.\",\n      \"B. Roadside par abiotic components nahi hote.\",\n      \"C. Roadside par pollution zyada aur vegetation kam ho sakti hai.\",\n      \"D. Dono jagah environmental conditions hamesha same hoti hain.\"\n    ],\n    correct: 2,\n    explanation: \"Park mein trees, grass aur flowering plants zyada ho sakte hain, jabki roadside par vehicle emissions, dust aur noise zyada ho sakte hain. Dono jagahon par biotic aur abiotic components present hote hain.&lt;br>&lt;br>Example: Park mein butterflies aur birds zyada dikh sakte hain, jabki busy roadside par dust-tolerant plants aur fewer butterflies mil sakti hain.\"\n  },\n  {\n    question: \"9. Agricultural fields ko sustainable banana kyun zaroori hai?\",\n    options: &#91;\n      \"A. Taaki soil fertility aur natural resources protect ho sakein.\",\n      \"B. Taaki groundwater unlimited use kiya ja sake.\",\n      \"C. Taaki saare beneficial insects destroy ho jaayein.\",\n      \"D. Taaki soil mein organic matter completely remove ho jaaye.\"\n    ],\n    correct: 0,\n    explanation: \"Sustainable farming ka aim crops produce karna aur saath hi soil, water aur biodiversity ko protect karna hai. Isse future mein bhi food production maintain karne mein help milti hai.&lt;br>&lt;br>Example: Crop rotation, compost aur efficient irrigation use karna sustainable farming practices hain.\"\n  },\n  {\n    question: \"10. Agar disease ke kaaran Indian hare ki population decrease ho jaaye, toh ecosystem par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Hare ko eat karne wale predators ko food kam mil sakta hai.\",\n      \"B. Hare ke food plants par grazing pressure kam ho sakta hai.\",\n      \"C. Food web ke doosre organisms bhi affect ho sakte hain.\",\n      \"D. Ye sabhi\"\n    ],\n    correct: 3,\n    explanation: \"Indian hare food web ka ek important part hai. Uski population kam hone par predators ko food kam mil sakta hai aur plants par grazing reduce ho sakti hai. Iska effect ecosystem ke doosre organisms par bhi pad sakta hai.&lt;br>&lt;br>Example: Agar hares kam ho jaayein, toh unhe hunt karne wale kuch predators alternative prey par depend kar sakte hain, jabki grass aur other plants par grazing kam ho sakti hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\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\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/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 nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; 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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    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\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n  ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch12 part1<\/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-5427","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5427","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=5427"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5427\/revisions"}],"predecessor-version":[{"id":5428,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5427\/revisions\/5428"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}