{"id":5429,"date":"2026-11-13T14:36:26","date_gmt":"2026-11-13T14:36:26","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5429"},"modified":"2026-11-14T04:05:14","modified_gmt":"2026-11-14T04:05:14","slug":"class-8-science-chapter-13","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5429","title":{"rendered":"class 8 science chapter 13"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch13 part1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;title&gt;\ud83e\udde0 Science Quiz \u2013 Earth, Atmosphere &amp; Greenhouse Effect&lt;\/title&gt;\n&lt;style&gt;\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&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;div class=\"quiz-container\"&gt;\n    &lt;h2&gt;\ud83e\udde0 Science Quiz \u2013 Earth, Atmosphere &amp; Greenhouse Effect&lt;\/h2&gt;\n\n    &lt;div id=\"nameSection\"&gt;\n      &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n      &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n      &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n      &lt;div class=\"controls\"&gt;\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n      &lt;\/div&gt;\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n      &lt;div id=\"scoreboard\"&gt;\n        &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n        &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n&lt;script&gt;\nconst questions = &#91;\n  {\n    question: \"1. Earth ko life ke liye unique planet kyun maana jaata hai?\",\n    options: &#91;\n      \"A. Kyunki Earth par sirf rocks hain\",\n      \"B. Kyunki Earth par life exist karti hai aur thrive karti hai\",\n      \"C. Kyunki Earth par sunlight nahi aati\",\n      \"D. Kyunki Earth par atmosphere nahi hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth par life ke liye suitable conditions hain, jaise liquid water, air aur appropriate temperature. Isi wajah se Earth life ko support karta hai.&lt;br&gt;&lt;br&gt;Example: Humans, plants, animals aur microorganisms Earth par different environments mein live karte hain.\"\n  },\n  {\n    question: \"2. Earth ki crust kya hai?\",\n    options: &#91;\n      \"A. Earth ki outermost solid layer\",\n      \"B. Earth ka inner core\",\n      \"C. Sun ki outer layer\",\n      \"D. Earth ke atmosphere ka upper part\"\n    ],\n    correct: 0,\n    explanation: \"Crust Earth ki sabse outer solid layer hai. Living organisms ka life-supporting environment mainly isi surface par milta hai.&lt;br&gt;&lt;br&gt;Example: Mountains, plains aur ocean floors Earth ki crust ka part hain.\"\n  },\n  {\n    question: \"3. Earth ke atmosphere ko space mein completely disappear hone se kaun rokta hai?\",\n    options: &#91;\n      \"A. Friction\",\n      \"B. Gravity\",\n      \"C. Magnetism only\",\n      \"D. Sound energy\"\n    ],\n    correct: 1,\n    explanation: \"Earth ki gravity gases ko apni taraf attract karti hai aur atmosphere ko Earth ke around hold karne mein help karti hai.&lt;br&gt;&lt;br&gt;Example: Earth ka atmosphere oxygen aur nitrogen jaise gases provide karta hai, jinmein se oxygen humans aur many other organisms ke liye important hai.\"\n  },\n  {\n    question: \"4. Sun se increasing distance ke order mein Earth ka position kya hai?\",\n    options: &#91;\n      \"A. First planet\",\n      \"B. Second planet\",\n      \"C. Third planet\",\n      \"D. Fourth planet\"\n    ],\n    correct: 2,\n    explanation: \"Sun se planets ka order hai Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus aur Neptune. Is order mein Earth third planet hai.&lt;br&gt;&lt;br&gt;Example: Venus Earth se Sun ke closer hai, jabki Mars Earth se farther hai.\"\n  },\n  {\n    question: \"5. Solar system mein rocky planets kaun se hain?\",\n    options: &#91;\n      \"A. Jupiter, Saturn, Uranus, Neptune\",\n      \"B. Mercury, Venus, Earth, Mars\",\n      \"C. Earth, Jupiter, Saturn, Mars\",\n      \"D. Venus, Saturn, Uranus, Neptune\"\n    ],\n    correct: 1,\n    explanation: \"Mercury, Venus, Earth aur Mars relatively small rocky planets hain. Jupiter, Saturn, Uranus aur Neptune outer planets hain, jo mostly gases aur other volatile materials se bane hain.&lt;br&gt;&lt;br&gt;Example: Earth ki solid rocky surface par hum stand kar sakte hain.\"\n  },\n  {\n    question: \"6. Solar system mein sabse hottest planet kaunsa hai?\",\n    options: &#91;\n      \"A. Mercury\",\n      \"B. Earth\",\n      \"C. Mars\",\n      \"D. Venus\"\n    ],\n    correct: 3,\n    explanation: \"Venus ka thick atmosphere mostly carbon dioxide se bana hai. Yeh heat ko trap karta hai, jiski wajah se Venus ka average temperature Mercury se bhi zyada hota hai.&lt;br&gt;&lt;br&gt;Example: Mercury Sun ke closer hone ke bawajood Venus se cooler hai, kyunki Mercury ke paas Venus jaisa thick heat-trapping atmosphere nahi hai.\"\n  },\n  {\n    question: \"7. Greenhouse effect kya hai?\",\n    options: &#91;\n      \"A. Plants ka sunlight se food banana\",\n      \"B. Atmosphere ki kuch gases ka heat ko trap karna\",\n      \"C. Water ka ice mein convert hona\",\n      \"D. Rocks ka break hona\"\n    ],\n    correct: 1,\n    explanation: \"Carbon dioxide jaise greenhouse gases Earth se emitted infrared radiation ka kuch part absorb karti hain aur heat ko atmosphere mein retain karne mein help karti hain.&lt;br&gt;&lt;br&gt;Example: Natural greenhouse effect Earth ko life ke liye suitable temperature maintain karne mein help karta hai.\"\n  },\n  {\n    question: \"8. Earth par natural greenhouse effect important kyun hai?\",\n    options: &#91;\n      \"A. Yeh Earth ko completely freeze kar deta hai\",\n      \"B. Yeh Earth ka saara oxygen remove kar deta hai\",\n      \"C. Yeh Earth ko suitable temperature maintain karne mein help karta hai\",\n      \"D. Yeh sunlight ko completely block kar deta hai\"\n    ],\n    correct: 2,\n    explanation: \"Natural greenhouse effect ke bina Earth ka average temperature kaafi lower hota. Lekin greenhouse gases ka excessive increase additional warming aur climate change cause kar sakta hai.&lt;br&gt;&lt;br&gt;Example: Human activities se carbon dioxide increase hone par Earth ka average temperature rise ho sakta hai.\"\n  },\n  {\n    question: \"9. Venus aur Earth ke greenhouse effect mein kaunsi gas important role play karti hai?\",\n    options: &#91;\n      \"A. Carbon dioxide\",\n      \"B. Helium only\",\n      \"C. Neon only\",\n      \"D. Hydrogen only\"\n    ],\n    correct: 0,\n    explanation: \"Venus ke atmosphere mein carbon dioxide bahut abundant hai, jo strong greenhouse effect cause karti hai. Earth par bhi carbon dioxide heat trapping mein contribute karti hai.&lt;br&gt;&lt;br&gt;Example: Fossil fuels, jaise coal aur petrol, burn karne se carbon dioxide atmosphere mein release hoti hai.\"\n  },\n  {\n    question: \"10. Earth par living organisms ko support karne mein kaun-kaun se resources important hain?\",\n    options: &#91;\n      \"A. Sirf rocks\",\n      \"B. Sirf sunlight\",\n      \"C. Air, water aur soil\",\n      \"D. Sirf metals\"\n    ],\n    correct: 2,\n    explanation: \"Air respiration aur other biological processes ke liye, water life processes ke liye aur soil plant growth ke liye important hai. Inke saath suitable temperature aur sunlight bhi life ko support karte hain.&lt;br&gt;&lt;br&gt;Example: Plants sunlight, water, carbon dioxide aur soil se available nutrients ka use karke photosynthesis aur growth 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\"&gt;${q.question}&lt;\/div&gt;\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n      ${q.explanation}\n    &lt;\/div&gt;\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 &gt; 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) =&gt; {\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) =&gt; {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\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}\"&gt;${opt}&lt;\/label&gt;`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;\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) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =&gt;\n    `&lt;li&gt;${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li&gt;`\n  ).join('');\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\"&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n&lt;title&gt;\ud83e\udde0 Science Quiz \u2013 Earth and Solar System&lt;\/title&gt;\n&lt;style&gt;\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&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;div class=\"quiz-container\"&gt;\n\n&lt;h2&gt;\ud83e\udde0 Science Quiz \u2013 Earth and Solar System&lt;\/h2&gt;\n\n&lt;div id=\"nameSection\"&gt;\n  &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n  &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n&lt;\/div&gt;\n\n&lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n  &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n  &lt;div class=\"controls\"&gt;\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n  &lt;div id=\"scoreboard\"&gt;\n    &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n    &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\nconst questions = &#91;\n\n{\nquestion: \"1. Earth ki crust ko apple ki skin se compare kyun kiya gaya hai?\",\noptions: &#91;\n\"A. Kyunki crust bahut thick hoti hai\",\n\"B. Kyunki crust Earth ke size ke comparison mein bahut thin hai\",\n\"C. Kyunki crust liquid hoti hai\",\n\"D. Kyunki crust sirf water se bani hai\"\n],\ncorrect: 1,\nexplanation: \"Earth ki crust uski outermost solid layer hai. Earth ke total size ke comparison mein yeh bahut thin hai aur life isi surface layer par exist karti hai.&lt;br&gt;&lt;br&gt;Example: Mountains aur plains crust par hote hain, jabki Earth ke andar mantle aur core present hote hain.\"\n},\n\n{\nquestion: \"2. Earth par hum ground par khade reh paate hain, iska main reason kya hai?\",\noptions: &#91;\n\"A. Magnetic force\",\n\"B. Gravity\",\n\"C. Sound energy\",\n\"D. Wind pressure\"\n],\ncorrect: 1,\nexplanation: \"Earth ki gravity objects ko apne centre ki taraf attract karti hai. Isi force ki wajah se hum ground par reh paate hain.&lt;br&gt;&lt;br&gt;Example: Jab hum ball ko upar throw karte hain, toh gravity use wapas ground ki taraf laati hai.\"\n},\n\n{\nquestion: \"3. Solar system mein total kitne planets hain?\",\noptions: &#91;\n\"A. 7\",\n\"B. 8\",\n\"C. 9\",\n\"D. 10\"\n],\ncorrect: 1,\nexplanation: \"Hamare solar system mein eight planets hain jo Sun ke around nearly circular orbits mein revolve karte hain.&lt;br&gt;&lt;br&gt;Example: Earth, Mars aur Jupiter solar system ke planets hain.\"\n},\n\n{\nquestion: \"4. Sun se sabse door planet kaunsa hai?\",\noptions: &#91;\n\"A. Saturn\",\n\"B. Uranus\",\n\"C. Neptune\",\n\"D. Jupiter\"\n],\ncorrect: 2,\nexplanation: \"Solar system ke eight planets mein Neptune Sun se sabse door hai.&lt;br&gt;&lt;br&gt;Example: Planet order mein Uranus ke baad Neptune aata hai.\"\n},\n\n{\nquestion: \"5. Inmein se kaunsa planet Earth ke sabse paas Sun ki taraf hai?\",\noptions: &#91;\n\"A. Mars\",\n\"B. Venus\",\n\"C. Jupiter\",\n\"D. Saturn\"\n],\ncorrect: 1,\nexplanation: \"Sun se increasing distance ke order mein Mercury ke baad Venus aur phir Earth aata hai. Isliye Venus Earth ka inner neighbouring planet hai.&lt;br&gt;&lt;br&gt;Example: Order: Mercury \u2192 Venus \u2192 Earth \u2192 Mars.\"\n},\n\n{\nquestion: \"6. Mercury, Venus se Sun ke closer hone ke bawajood cooler kyun hai?\",\noptions: &#91;\n\"A. Mercury par bahut zyada oceans hain\",\n\"B. Mercury ka atmosphere Venus ki tarah thick heat-trapping atmosphere nahi hai\",\n\"C. Mercury Sun se energy receive nahi karta\",\n\"D. Mercury ek star hai\"\n],\ncorrect: 1,\nexplanation: \"Venus ka thick carbon dioxide-rich atmosphere heat ko trap karta hai. Mercury ke paas aisa thick atmosphere nahi hai, isliye woh Venus jitna heat retain nahi karta.&lt;br&gt;&lt;br&gt;Example: Mercury ka daytime bahut hot ho sakta hai, lekin atmosphere ki kami ke kaaran uski heat easily escape kar sakti hai.\"\n},\n\n{\nquestion: \"7. Greenhouse effect ke dauraan Earth ki surface warm hone ke baad kaunsi radiation emit karti hai, jise greenhouse gases absorb kar sakti hain?\",\noptions: &#91;\n\"A. Infrared radiation\",\n\"B. Sirf sound waves\",\n\"C. Sirf radio signals\",\n\"D. Sirf visible light\"\n],\ncorrect: 0,\nexplanation: \"Sun ki energy Earth ki surface ko warm karti hai. Warm surface infrared radiation emit karti hai, jiska kuch part greenhouse gases absorb karti hain.&lt;br&gt;&lt;br&gt;Example: Atmosphere mein carbon dioxide infrared radiation absorb karke Earth ke energy balance aur temperature ko affect karti hai.\"\n},\n\n{\nquestion: \"8. Planet ka average temperature sirf Sun se distance par depend karta hai?\",\noptions: &#91;\n\"A. Haan, sirf distance par\",\n\"B. Nahi, atmosphere bhi important hai\",\n\"C. Haan, sirf planet ke colour par\",\n\"D. Nahi, temperature ka sunlight se koi relation nahi hai\"\n],\ncorrect: 1,\nexplanation: \"Sun se distance ke alawa atmosphere ki composition aur heat-trapping ability bhi planet ke temperature ko affect karti hai.&lt;br&gt;&lt;br&gt;Example: Venus, Mercury se Sun ke farther hone ke bawajood, thick greenhouse atmosphere ke kaaran sabse hot planet hai.\"\n},\n\n{\nquestion: \"9. Plant greenhouse aur planetary greenhouse effect mein kya main difference hai?\",\noptions: &#91;\n\"A. Dono exactly same process se work karte hain\",\n\"B. Plant greenhouse warmed air ko enclosed space mein retain karta hai, jabki planetary greenhouse gases radiation absorb karti hain\",\n\"C. Planetary greenhouse effect mein atmosphere nahi hota\",\n\"D. Plant greenhouse mein heat kabhi produce nahi hoti\"\n],\ncorrect: 1,\nexplanation: \"Glass walls wala plant greenhouse warmed air ko andar retain karke temperature badha sakta hai. Earth aur Venus par greenhouse gases infrared radiation absorb karke heat balance ko affect karti hain.&lt;br&gt;&lt;br&gt;Example: Cold climate mein glass greenhouse ke andar plants ko bahar ke comparison mein warmer conditions mil sakti hain.\"\n},\n\n{\nquestion: \"10. Earth humans ko ghar aur roads banane ke liye kaun se resources provide karti hai?\",\noptions: &#91;\n\"A. Rocks aur timber\",\n\"B. Sirf clouds\",\n\"C. Sirf sunlight\",\n\"D. Sirf oxygen\"\n],\ncorrect: 0,\nexplanation: \"Earth rocks, minerals aur timber jaise materials provide karti hai, jinhe buildings, homes aur roads banane mein use kiya ja sakta hai.&lt;br&gt;&lt;br&gt;Example: Stones aur crushed rocks roads ke construction mein use hote hain, jabki timber doors aur furniture banane mein use hota 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\"&gt;${q.question}&lt;\/div&gt;\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;${q.explanation}&lt;\/div&gt;\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 &gt; 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) =&gt; {\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) =&gt; {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\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}\"&gt;${opt}&lt;\/label&gt;`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\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) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =&gt;\n      `&lt;li&gt;${s.name} - ${s.score}\/10 (${s.date})&lt;\/li&gt;`\n    ).join('');\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;title&gt;\ud83e\udde0 Science Quiz \u2013 Earth's Habitability &amp; Atmosphere&lt;\/title&gt;\n&lt;style&gt;\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&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;div class=\"quiz-container\"&gt;\n    &lt;h2&gt;\ud83e\udde0 Science Quiz \u2013 Earth's Habitability &amp; Atmosphere&lt;\/h2&gt;\n\n    &lt;div id=\"nameSection\"&gt;\n      &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n      &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n      &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n      &lt;div class=\"controls\"&gt;\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n      &lt;\/div&gt;\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n      &lt;div id=\"scoreboard\"&gt;\n        &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n        &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n&lt;script&gt;\nconst questions = &#91;\n  {\n    question: \"1. Earth par life exist karne ka ek important reason kya hai?\",\n    options: &#91;\n      \"A. Earth Sun ke bahut paas hai\",\n      \"B. Earth Sun se suitable distance par hai\",\n      \"C. Earth par sunlight nahi aati\",\n      \"D. Earth par gravity nahi hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth Sun se aisi distance par hai jahan temperature suitable conditions mein water ko liquid form mein rehne deta hai. Liquid water life ke liye essential hai, jaisa hum jaante hain.&lt;br&gt;&lt;br&gt;Example: Earth par rivers, lakes aur oceans mein liquid water milta hai, jo living organisms ko support karta hai.\"\n  },\n  {\n    question: \"2. Habitable zone ko aur kis naam se jaana jaata hai?\",\n    options: &#91;\n      \"A. Frozen Zone\",\n      \"B. Goldilocks Zone\",\n      \"C. Rocky Zone\",\n      \"D. Dark Zone\"\n    ],\n    correct: 1,\n    explanation: \"Habitable zone star ke around woh range hai jahan suitable atmospheric conditions hone par water liquid form mein exist kar sakta hai. Isse Goldilocks Zone bhi kehte hain.&lt;br&gt;&lt;br&gt;Example: Earth Sun ke habitable zone mein hai, isliye yahan liquid water ke liye suitable conditions possible hain.\"\n  },\n  {\n    question: \"3. Earth ko Blue Planet kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Kyunki Earth par blue-coloured rocks hain\",\n      \"B. Kyunki Earth ka atmosphere completely blue hai\",\n      \"C. Kyunki Earth ki surface ka bahut bada hissa water se covered hai\",\n      \"D. Kyunki Earth par sirf oceans hain\"\n    ],\n    correct: 2,\n    explanation: \"Earth ki surface ka approximately 71% hissa water se covered hai. Space se dekhne par oceans ki wajah se Earth blue dikhti hai.&lt;br&gt;&lt;br&gt;Example: Earth ki photographs mein Pacific aur Atlantic Oceans ke large blue areas dikhai dete hain.\"\n  },\n  {\n    question: \"4. Agar Earth Sun se bahut zyada door hoti, toh water par kya effect ho sakta tha?\",\n    options: &#91;\n      \"A. Saara water automatically boil karta\",\n      \"B. Water ka bahut bada hissa freeze ho sakta tha\",\n      \"C. Water oxygen mein convert ho jaata\",\n      \"D. Water par koi effect nahi hota\"\n    ],\n    correct: 1,\n    explanation: \"Sun se zyada distance par planet ko kam solar energy milti. Isse temperature bahut low ho sakta tha aur liquid water ka exist karna difficult ho sakta tha.&lt;br&gt;&lt;br&gt;Example: Extremely cold conditions mein lakes aur rivers ka water ice mein freeze ho sakta hai.\"\n  },\n  {\n    question: \"5. Earth ka size atmosphere ko maintain karne mein kaise help karta hai?\",\n    options: &#91;\n      \"A. Earth ki gravity gases ko hold karne mein help karti hai\",\n      \"B. Earth ki gravity gases ko space mein push karti hai\",\n      \"C. Earth ke paas gravity nahi hai\",\n      \"D. Earth sirf oxygen ko attract karti hai\"\n    ],\n    correct: 0,\n    explanation: \"Earth ka suitable size aur gravity atmosphere ko hold karne mein important role play karte hain. Agar gravity bahut weak hoti, toh gases space mein escape kar sakti thi.&lt;br&gt;&lt;br&gt;Example: Earth ka atmosphere nitrogen, oxygen aur other gases contain karta hai, jo planet ke environment ke liye important hain.\"\n  },\n  {\n    question: \"6. Mars ka atmosphere Earth ke comparison mein kaisa hai?\",\n    options: &#91;\n      \"A. Mars ka atmosphere Earth se 100 times thicker hai\",\n      \"B. Mars ka atmosphere approximately 100 times thinner hai\",\n      \"C. Mars ka atmosphere Earth ke exactly equal hai\",\n      \"D. Mars par atmosphere bilkul nahi hai\"\n    ],\n    correct: 1,\n    explanation: \"Mars ka atmosphere Earth ke atmosphere se bahut thin hai. Isse Mars ki surface conditions Earth se kaafi different hoti hain.&lt;br&gt;&lt;br&gt;Example: Mars par surface pressure bahut low hai, isliye liquid water ko surface par long periods tak stable rehna difficult hota hai.\"\n  },\n  {\n    question: \"7. Earth ki atmosphere mein oxygen ka main importance kya hai?\",\n    options: &#91;\n      \"A. Yeh harmful UV rays ko completely absorb karti hai\",\n      \"B. Yeh humans aur many other organisms ko respiration ke liye chahiye\",\n      \"C. Yeh gravity produce karti hai\",\n      \"D. Yeh sunlight ko completely block karti hai\"\n    ],\n    correct: 1,\n    explanation: \"Oxygen cellular respiration mein important role play karti hai. Is process se organisms food se usable energy release karte hain.&lt;br&gt;&lt;br&gt;Example: Humans breathing ke through oxygen lete hain, jo body cells ko energy release karne mein help karti hai.\"\n  },\n  {\n    question: \"8. Ozone layer living organisms ko kaise protect karti hai?\",\n    options: &#91;\n      \"A. Harmful ultraviolet rays ko absorb karke\",\n      \"B. Saari sunlight ko block karke\",\n      \"C. Earth ki gravity ko increase karke\",\n      \"D. Oceans ka water freeze karke\"\n    ],\n    correct: 0,\n    explanation: \"Ozone layer atmosphere mein present ozone molecules se rich region hai. Yeh Sun ki harmful ultraviolet (UV) radiation ka large part absorb karti hai, jo living cells ko damage kar sakti hai.&lt;br&gt;&lt;br&gt;Example: Excessive UV exposure human skin aur eyes ko harm kar sakta hai. Ozone layer is exposure ko reduce karne mein help karti hai.\"\n  },\n  {\n    question: \"9. Ozone molecule mein oxygen ke kitne atoms hote hain?\",\n    options: &#91;\n      \"A. 1\",\n      \"B. 2\",\n      \"C. 3\",\n      \"D. 4\"\n    ],\n    correct: 2,\n    explanation: \"Normal oxygen molecule ka formula O\u2082 hai, jismein 2 oxygen atoms hote hain. Ozone ka formula O\u2083 hai, jismein 3 oxygen atoms hote hain.&lt;br&gt;&lt;br&gt;Example: O\u2082 woh oxygen hai jise hum breathing mein use karte hain, jabki O\u2083 ozone hai jo stratosphere mein UV protection provide karta hai.\"\n  },\n  {\n    question: \"10. India ke Mangalyaan mission ka main purpose kya tha?\",\n    options: &#91;\n      \"A. Moon par humans ko land karna\",\n      \"B. Mars ko explore karna aur uski atmosphere aur surface ka study karna\",\n      \"C. Sun par land karna\",\n      \"D. Earth ke oceans ko explore karna\"\n    ],\n    correct: 1,\n    explanation: \"Mangalyaan, jise Mars Orbiter Mission bhi kehte hain, ISRO ne 2013 mein launch kiya tha. Is mission ne Mars ki exploration aur scientific study mein India ki capability demonstrate ki.&lt;br&gt;&lt;br&gt;Example: Mangalyaan ne Mars ki atmosphere aur surface ke baare mein information collect karne ke liye scientific instruments carry kiye the.\"\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\"&gt;${q.question}&lt;\/div&gt;\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n      ${q.explanation}\n    &lt;\/div&gt;\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 &gt; 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) =&gt; {\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) =&gt; {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\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}\"&gt;${opt}&lt;\/label&gt;`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;\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) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =&gt;\n    `&lt;li&gt;${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li&gt;`\n  ).join('');\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 part4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;title&gt;\ud83e\udde0 Science Quiz \u2013 Earth's Magnetic Field&lt;\/title&gt;\n&lt;style&gt;\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&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;div class=\"quiz-container\"&gt;\n    &lt;h2&gt;\ud83e\udde0 Science Quiz \u2013 Earth's Magnetic Field&lt;\/h2&gt;\n    &lt;div id=\"nameSection\"&gt;\n      &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n      &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n      &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n      &lt;div class=\"controls\"&gt;\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n      &lt;\/div&gt;\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n      &lt;div id=\"scoreboard\"&gt;\n        &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n        &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n&lt;script&gt;\nconst questions = &#91;\n  {\n    question: \"1. Earth ka magnetic field kyun hota hai?\",\n    options: &#91;\n      \"A. Earth ke oceans ki wajah se\",\n      \"B. Earth ke core mein molten iron ki movement ki wajah se\",\n      \"C. Earth ke mountains ki wajah se\",\n      \"D. Sun ki light ki wajah se\"\n    ],\n    correct: 1,\n    explanation: \"Scientists believe karte hain ki Earth ke outer core mein molten iron aur doosre electrically conducting materials ki movement Earth ka magnetic field generate karne mein important role play karti hai.&lt;br&gt;&lt;br&gt;Example: Earth ek giant magnet ki tarah behave karti hai, jiski wajah se freely suspended magnet ek fixed direction mein settle hota hai.\"\n  },\n  {\n    question: \"2. Magnetic field kya hota hai?\",\n    options: &#91;\n      \"A. Magnet ke aas-paas ka woh region jahan uska magnetic effect feel hota hai\",\n      \"B. Sirf magnet ke andar ka region\",\n      \"C. Air ka ek type\",\n      \"D. Water ke flow ka region\"\n    ],\n    correct: 0,\n    explanation: \"Magnetic field woh region hai jahan magnet ka magnetic force doosre magnets ya magnetic materials par effect daal sakta hai.&lt;br&gt;&lt;br&gt;Example: Compass ko magnet ke paas laane par uski needle ki direction change ho sakti hai.\"\n  },\n  {\n    question: \"3. Cosmic rays kya hain?\",\n    options: &#91;\n      \"A. Earth se nikalne wali water waves\",\n      \"B. Space se aane wale high-energy particles\",\n      \"C. Plants se release hone wali gases\",\n      \"D. Sirf visible sunlight\"\n    ],\n    correct: 1,\n    explanation: \"Cosmic rays high-energy particles hote hain jo space se Earth ki taraf aate hain. Kuch cosmic rays distant parts of the universe se originate karte hain.&lt;br&gt;&lt;br&gt;Example: Scientists special instruments ki help se cosmic rays ko detect aur study karte hain.\"\n  },\n  {\n    question: \"4. Solar wind kya hoti hai?\",\n    options: &#91;\n      \"A. Earth ke forests se aane wali hawa\",\n      \"B. Sun se aane wale charged particles ka flow\",\n      \"C. Ocean se uthne wali waves\",\n      \"D. Earth ke core se nikalne wali oxygen\"\n    ],\n    correct: 1,\n    explanation: \"Solar wind charged particles ka continuous flow hai jo Sun se space mein travel karta hai. Yeh Earth ke magnetic field ke saath interact karta hai.&lt;br&gt;&lt;br&gt;Example: Solar wind aur Earth's magnetic field ke interaction se aurora jaise colourful lights atmosphere mein appear ho sakte hain.\"\n  },\n  {\n    question: \"5. Earth ka magnetic field life ko protect karne mein kaise help karta hai?\",\n    options: &#91;\n      \"A. Saare harmful particles ko Earth ki taraf attract karke\",\n      \"B. Many charged particles ko deflect karke\",\n      \"C. Sunlight ko completely block karke\",\n      \"D. Earth ka temperature zero karke\"\n    ],\n    correct: 1,\n    explanation: \"Earth's magnetic field solar wind ke many charged particles ko deflect karta hai aur unmein se kuch ko Earth ke aas-paas ke region se door guide karta hai. Isse Earth's environment ko protection milti hai.&lt;br&gt;&lt;br&gt;Example: Earth's magnetosphere solar wind ke saath interact karke Earth ke around ek protective region banati hai.\"\n  },\n  {\n    question: \"6. Agar Earth ka magnetic field na hota, toh kya possible effect ho sakta tha?\",\n    options: &#91;\n      \"A. Solar wind ke charged particles ka direct interaction zyada ho sakta tha\",\n      \"B. Earth par gravity completely disappear ho jaati\",\n      \"C. Earth Sun ke around revolve karna band kar deti\",\n      \"D. Saare oceans immediately evaporate ho jaate\"\n    ],\n    correct: 0,\n    explanation: \"Magnetic field solar wind ke many charged particles se Earth ko shield karta hai. Magnetic field ke bina upper atmosphere aur solar particles ke interaction ka pattern different hota aur long-term atmospheric protection kam ho sakti thi.&lt;br&gt;&lt;br&gt;Example: Mars ka global magnetic field Earth jaisa nahi hai, aur uski atmosphere bahut thin hai. Lekin atmosphere ke loss mein multiple factors role play karte hain.\"\n  },\n  {\n    question: \"7. Freely suspended magnet ek fixed direction mein settle kyun hota hai?\",\n    options: &#91;\n      \"A. Earth ke magnetic field ki wajah se\",\n      \"B. Air pressure ki wajah se only\",\n      \"C. Sun ki heat ki wajah se\",\n      \"D. Water vapour ki wajah se\"\n    ],\n    correct: 0,\n    explanation: \"Earth ka magnetic field compass needle ya freely suspended magnet par force exert karta hai. Isliye magnet ek particular direction ke aas-paas align ho jaata hai.&lt;br&gt;&lt;br&gt;Example: Compass ki needle approximately north-south direction mein point karti hai.\"\n  },\n  {\n    question: \"8. Earth's magnetic field aur ozone layer ka role kaise different hai?\",\n    options: &#91;\n      \"A. Dono exactly same kaam karte hain\",\n      \"B. Magnetic field many charged particles ko deflect karta hai, ozone layer harmful UV radiation absorb karti hai\",\n      \"C. Magnetic field oxygen banata hai, ozone layer gravity banati hai\",\n      \"D. Ozone layer solar wind ko completely stop karti hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth ka magnetic field charged particles ke movement ko influence karta hai. Ozone layer Sun ki harmful ultraviolet radiation ka large part absorb karti hai. Dono Earth ke environment ko protect karne mein different roles play karte hain.&lt;br&gt;&lt;br&gt;Example: Earth's magnetosphere solar wind ke saath interact karti hai, jabki stratosphere mein ozone UV rays ko absorb karti hai.\"\n  },\n  {\n    question: \"9. Earth's magnetic field generate hone mein kaunsa part important role play karta hai?\",\n    options: &#91;\n      \"A. Outer core\",\n      \"B. Clouds\",\n      \"C. Ocean surface only\",\n      \"D. Earth's crust only\"\n    ],\n    correct: 0,\n    explanation: \"Earth's outer core mein molten, electrically conducting iron-rich material move karta hai. Is movement se electric currents generate hote hain, jo Earth's magnetic field ko maintain karne mein help karte hain.&lt;br&gt;&lt;br&gt;Example: Earth ke magnetic field ki wajah se compass needle apni direction align kar sakti hai.\"\n  },\n  {\n    question: \"10. Earth ko life-supporting planet banane mein kaun se factors milkar help karte hain?\",\n    options: &#91;\n      \"A. Suitable distance from the Sun\",\n      \"B. Suitable size, atmosphere aur liquid water\",\n      \"C. Magnetic field\",\n      \"D. Ye sabhi\"\n    ],\n    correct: 3,\n    explanation: \"Earth ki suitable position liquid water ko support karti hai. Uska size atmosphere ko hold karne mein help karta hai, atmosphere life ke liye important gases provide karta hai aur magnetic field many charged particles se protection deta hai.&lt;br&gt;&lt;br&gt;Example: Liquid water, breathable atmosphere aur protective magnetic environment milkar Earth ko life ke liye suitable banane mein contribute 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  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  container.innerHTML = `\n    &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;${q.explanation}&lt;\/div&gt;\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 &gt; 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  questions.forEach((q, index) =&gt; {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n  questions.forEach((q, index) =&gt; {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n    let optsHTML = q.options.map((opt, i) =&gt; {\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}\"&gt;${opt}&lt;\/label&gt;`;\n    }).join('');\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;${q.explanation}&lt;\/div&gt;&lt;hr&gt;\n    `;\n  });\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a,b) =&gt; b.score - a.score);\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =&gt; `&lt;li&gt;${s.name} - ${s.score}\/10 (${s.date})&lt;\/li&gt;`).join('');\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 part5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\"&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n&lt;title&gt;\ud83e\udde0 Earth, Life and Natural Resources Quiz&lt;\/title&gt;\n&lt;style&gt;\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 {\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 { 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  input&#91;type=\"text\"] {\n    padding: 10px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n    width: 60%;\n    max-width: 300px;\n  }\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;div class=\"quiz-container\"&gt;\n  &lt;h2&gt;\ud83e\udde0 Earth, Life and Natural Resources Quiz&lt;\/h2&gt;\n\n  &lt;div id=\"nameSection\"&gt;\n    &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n    &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n    &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n    &lt;div class=\"controls\"&gt;\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n    &lt;div id=\"scoreboard\"&gt;\n      &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n      &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\nconst questions = &#91;\n  {\n    question: \"1. Earth par life ko sustain karne ke liye kaun-si cheezein important hain?\",\n    options: &#91;\n      \"A. Sirf air aur sunlight\",\n      \"B. Sirf water aur soil\",\n      \"C. Air, water, sunlight aur living-non-living things ke connections\",\n      \"D. Sirf minerals\"\n    ],\n    correct: 2,\n    explanation: \"Earth par life ko survive karne ke liye air, water, sunlight, soil aur minerals jaise natural resources ki zaroorat hoti hai. Living aur non-living things ek-doosre ke saath interact karti hain, jisse life sustain hoti hai.&lt;br&gt;&lt;br&gt;Example: Plants ko grow karne ke liye sunlight, water, air aur soil ki zaroorat hoti hai. Animals plants se food aur oxygen prapt kar sakte hain.\"\n  },\n  {\n    question: \"2. Plants photosynthesis ke dauran air se kaunsi gas lete hain?\",\n    options: &#91;\n      \"A. Oxygen\",\n      \"B. Carbon dioxide\",\n      \"C. Nitrogen\",\n      \"D. Hydrogen\"\n    ],\n    correct: 1,\n    explanation: \"Photosynthesis ke dauran plants air se carbon dioxide aur soil se water lete hain. Sunlight ki presence mein ve apna food banate hain aur oxygen release karte hain.&lt;br&gt;&lt;br&gt;Example: Ek green plant sunlight mein carbon dioxide aur water ka use karke glucose banata hai aur oxygen release karta hai.\"\n  },\n  {\n    question: \"3. Photosynthesis ke dauran plants kaunsi gas release karte hain, jo respiration ke liye zaroori hai?\",\n    options: &#91;\n      \"A. Carbon dioxide\",\n      \"B. Nitrogen\",\n      \"C. Oxygen\",\n      \"D. Hydrogen\"\n    ],\n    correct: 2,\n    explanation: \"Photosynthesis mein plants oxygen release karte hain. Humans aur animals respiration ke liye oxygen ka use karte hain.&lt;br&gt;&lt;br&gt;Example: Ek tree photosynthesis ke dauran oxygen release karta hai, jiska use humans breathing ke liye karte hain.\"\n  },\n  {\n    question: \"4. Greenhouse effect Earth ke temperature ko kaise maintain karta hai?\",\n    options: &#91;\n      \"A. Sunlight ko completely block karke\",\n      \"B. Atmosphere mein kuch heat trap karke\",\n      \"C. Earth ka saara water freeze karke\",\n      \"D. Oxygen ko atmosphere se remove karke\"\n    ],\n    correct: 1,\n    explanation: \"Sun ki radiation Earth ko heat karti hai. Atmosphere is heat ka kuch hissa trap karta hai, jisse Earth ka temperature liquid water aur life ke liye suitable bana rehta hai.&lt;br&gt;&lt;br&gt;Example: Agar atmosphere heat ko trap karne mein help nahi karta, toh Earth zyada thandi ho sakti thi aur liquid water ko maintain karna difficult hota.\"\n  },\n  {\n    question: \"5. Earth ki surface ka approximately kitna percentage water se covered hai?\",\n    options: &#91;\n      \"A. 10%\",\n      \"B. 30%\",\n      \"C. 50%\",\n      \"D. 70%\"\n    ],\n    correct: 3,\n    explanation: \"Earth ki surface ka lagbhag 70\u201371% hissa water se covered hai. Water oceans, seas, rivers, lakes aur groundwater mein milta hai.&lt;br&gt;&lt;br&gt;Example: Pacific Ocean, Indian Ocean aur Atlantic Ocean Earth ke water-covered surface ke bade parts hain.\"\n  },\n  {\n    question: \"6. Earth par present water ke total system ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Atmosphere\",\n      \"B. Lithosphere\",\n      \"C. Hydrosphere\",\n      \"D. Biosphere\"\n    ],\n    correct: 2,\n    explanation: \"Hydrosphere mein Earth ka water shamil hota hai, jaise oceans, seas, rivers, lakes, ponds aur groundwater.&lt;br&gt;&lt;br&gt;Example: River ka water, ocean ka water aur underground water\u2014ye sab hydrosphere ka part hain.\"\n  },\n  {\n    question: \"7. Plants mein water ka ek important function kya hai?\",\n    options: &#91;\n      \"A. Roots ko sunlight banana\",\n      \"B. Soil se leaves tak nutrients transport karna\",\n      \"C. Oxygen ko destroy karna\",\n      \"D. Photosynthesis ko permanently stop karna\"\n    ],\n    correct: 1,\n    explanation: \"Water plants mein dissolved nutrients ko roots se doosre parts, including leaves, tak pahunchane mein help karta hai. Water photosynthesis ke liye bhi essential hai.&lt;br&gt;&lt;br&gt;Example: Roots soil se water aur dissolved minerals absorb karti hain, jo plant ke stem ke through leaves tak pahunchte hain.\"\n  },\n  {\n    question: \"8. Animals ke body mein water ka kya role hai?\",\n    options: &#91;\n      \"A. Sirf bones ko colour dena\",\n      \"B. Digestion, hydration aur body temperature regulate karna\",\n      \"C. Respiration ko completely stop karna\",\n      \"D. Body se saara oxygen remove karna\"\n    ],\n    correct: 1,\n    explanation: \"Animals ke body mein water digestion, nutrients ke transport aur body temperature ko regulate karne mein help karta hai. Water ki kami se dehydration ho sakta hai.&lt;br&gt;&lt;br&gt;Example: Garmi mein sweating ke through human body heat release karti hai. Is process mein water important role play karta hai.\"\n  },\n  {\n    question: \"9. Water vapour atmosphere mein clouds banane aur rainfall laane mein kaise help karta hai?\",\n    options: &#91;\n      \"A. Water vapour cool hokar condense hota hai aur clouds banata hai\",\n      \"B. Water vapour soil ko directly rocks mein badal deta hai\",\n      \"C. Water vapour oxygen ko nitrogen mein badal deta hai\",\n      \"D. Water vapour sunlight ko permanently block kar deta hai\"\n    ],\n    correct: 0,\n    explanation: \"Water vapour cool hone par tiny water droplets ya ice crystals mein condense ho sakta hai. Ye clouds banate hain. Suitable conditions mein water rain ya snow ke form mein Earth par wapas aata hai.&lt;br&gt;&lt;br&gt;Example: Monsoon ke time clouds se rainfall hoti hai, jo rivers, lakes aur groundwater ko refill karne mein help karti hai.\"\n  },\n  {\n    question: \"10. Rainfall aur moving air ka farming aur life par kya effect hota hai?\",\n    options: &#91;\n      \"A. Inka farming par koi effect nahi hota\",\n      \"B. Ye weather, water supply aur plants ki growth ko influence karte hain\",\n      \"C. Ye saare plants ko destroy karte hain\",\n      \"D. Ye Earth ki gravity ko khatam kar dete hain\"\n    ],\n    correct: 1,\n    explanation: \"Rainfall water supply ko affect karti hai, jabki moving air weather aur rainfall patterns ko influence karti hai. In conditions ke according kisi area mein plants aur animals ki types alag ho sakti hain.&lt;br&gt;&lt;br&gt;Example: Rice ki farming ke liye generally zyada water ki zaroorat hoti hai, jabki kuch crops kam rainfall wale areas mein bhi grow kar sakti 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    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\"&gt;${q.question}&lt;\/div&gt;\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join(\"\")}\n    &lt;\/div&gt;\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n      ${q.explanation}\n    &lt;\/div&gt;\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 &gt; 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) =&gt; {\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) =&gt; {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\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}\"&gt;${opt}&lt;\/label&gt;`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\n}\n\nfunction saveScore(name, score) {\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  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =&gt;\n      `&lt;li&gt;${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li&gt;`\n    ).join(\"\");\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 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;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 APICAL CLASSES&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&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 APICAL CLASSES&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. Plants photosynthesis ke liye water kahan se absorb karte hain?\",\n    options: &#91;\n      \"A. Atmosphere se directly\",\n      \"B. Soil se roots ke through\",\n      \"C. Sunlight se\",\n      \"D. Animals se\"\n    ],\n    correct: 1,\n    explanation: \"Plants apni roots ke through soil se water absorb karte hain. Ye water stem ke through leaves tak transport hota hai, jahan photosynthesis mein iska use hota hai.&lt;br>&lt;br>Example: Ek sunflower plant apni roots se water absorb karta hai aur uska use food banane mein karta hai.\"\n  },\n\n  {\n    question: \"2. Humans aur animals respiration ke liye mainly kaunsi gas use karte hain?\",\n    options: &#91;\n      \"A. Carbon dioxide\",\n      \"B. Oxygen\",\n      \"C. Nitrogen\",\n      \"D. Water vapour\"\n    ],\n    correct: 1,\n    explanation: \"Respiration ke process mein humans aur animals oxygen ka use food se energy release karne ke liye karte hain.&lt;br>&lt;br>Example: Jab hum running karte hain, toh body ko zyada energy chahiye hoti hai aur breathing rate badh jata hai.\"\n  },\n\n  {\n    question: \"3. Agar Earth par sunlight available na ho, toh plants ki photosynthesis par kya effect padega?\",\n    options: &#91;\n      \"A. Photosynthesis ki rate badh jayegi\",\n      \"B. Plants bina kisi energy source ke normal photosynthesis karenge\",\n      \"C. Photosynthesis bahut kam ho jayegi ya ruk jayegi\",\n      \"D. Plants turant animals ban jayenge\"\n    ],\n    correct: 2,\n    explanation: \"Sunlight photosynthesis ke liye energy provide karti hai. Iske bina most green plants normal photosynthesis nahi kar sakte.&lt;br>&lt;br>Example: Agar kisi green plant ko kai din tak dark room mein rakha jaye, toh uski food-making process affect hogi.\"\n  },\n\n  {\n    question: \"4. Atmosphere ke bina Earth ka temperature kaisa ho sakta hai?\",\n    options: &#91;\n      \"A. Hamesha suitable aur constant\",\n      \"B. Bahut cold, kyunki heat retain karne ki ability kam ho jayegi\",\n      \"C. Hamesha boiling point se upar\",\n      \"D. Temperature par koi effect nahi padega\"\n    ],\n    correct: 1,\n    explanation: \"Atmosphere greenhouse effect ke through Earth ki kuch heat ko retain karta hai. Atmosphere na hone par Earth ki average surface temperature bahut lower hoti.&lt;br>&lt;br>Example: Moon par Earth jaisa dense atmosphere nahi hai. Isliye wahan temperature mein bahut bade changes hote hain.\"\n  },\n\n  {\n    question: \"5. Water ko good solvent kyun kaha jata hai?\",\n    options: &#91;\n      \"A. Kyunki water kisi substance ko dissolve nahi karta\",\n      \"B. Kyunki water bahut se substances ko dissolve kar sakta hai\",\n      \"C. Kyunki water sirf gases ko dissolve karta hai\",\n      \"D. Kyunki water hamesha solid hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Water kai substances, jaise salt aur sugar, ko dissolve kar sakta hai. Is property ki wajah se water nutrients aur dissolved minerals ko transport karne mein help karta hai.&lt;br>&lt;br>Example: Jab hum water mein salt milate hain, toh salt dissolve hokar salt solution banata hai.\"\n  },\n\n  {\n    question: \"6. Oceans aur rivers living organisms ke liye important kyun hain?\",\n    options: &#91;\n      \"A. Kyunki inmein koi living organism nahi hota\",\n      \"B. Kyunki ye sirf drinking water provide karte hain\",\n      \"C. Kyunki ye aquatic organisms ko habitat provide karte hain\",\n      \"D. Kyunki ye sunlight ko completely block karte hain\"\n    ],\n    correct: 2,\n    explanation: \"Oceans, rivers aur lakes aquatic organisms ke habitats hain. Inmein different types ke plants, fish, plankton aur other organisms rehte hain.&lt;br>&lt;br>Example: Fish rivers aur oceans mein rehti hain, jabki plankton water ecosystems ki food chains ka important part hain.\"\n  },\n\n  {\n    question: \"7. Groundwater ko replenish karne mein kaunsa natural process important role play karta hai?\",\n    options: &#91;\n      \"A. Rainwater ka soil mein seep hona\",\n      \"B. Plastic ka melt hona\",\n      \"C. Rocks ka jalna\",\n      \"D. Sunlight ka disappear hona\"\n    ],\n    correct: 0,\n    explanation: \"Rainwater ka kuch hissa soil ke through neeche seep karta hai aur underground water stores ko recharge karne mein help karta hai. Is process ko groundwater recharge kehte hain.&lt;br>&lt;br>Example: Jab baarish ka water soil mein absorb hokar underground aquifers tak pahunchta hai, toh groundwater level improve ho sakta hai.\"\n  },\n\n  {\n    question: \"8. Rainfall kisi area mein plants aur animals ki types ko kaise affect karti hai?\",\n    options: &#91;\n      \"A. Rainfall ka living organisms par koi effect nahi hota\",\n      \"B. Rainfall water availability ko affect karti hai, jisse organisms ki survival conditions badalti hain\",\n      \"C. Rainfall sabhi plants ko ek jaisa bana deti hai\",\n      \"D. Rainfall animals ko photosynthesis karna sikhati hai\"\n    ],\n    correct: 1,\n    explanation: \"Different plants aur animals ko survive karne ke liye different amounts of water ki zaroorat hoti hai. Isliye rainfall patterns kisi region ke ecosystem ko influence karte hain.&lt;br>&lt;br>Example: Cactus kam rainfall wale desert areas mein survive kar sakta hai, jabki rice ko generally zyada water ki zaroorat hoti hai.\"\n  },\n\n  {\n    question: \"9. Water cycle mein condensation ka kya meaning hai?\",\n    options: &#91;\n      \"A. Liquid water ka water vapour mein badalna\",\n      \"B. Water vapour ka cool hokar liquid droplets mein badalna\",\n      \"C. Water ka soil mein disappear hona\",\n      \"D. Ice ka directly oxygen mein badalna\"\n    ],\n    correct: 1,\n    explanation: \"Jab water vapour cool hota hai, toh woh tiny liquid water droplets mein change ho sakta hai. Ye droplets clouds banane mein help karte hain.&lt;br>&lt;br>Example: Thande glass ke bahar water droplets appear ho sakte hain, jab air mein present water vapour uski cold surface par condense hota hai.\"\n  },\n\n  {\n    question: \"10. Earth par life ko sustain karne mein air, water aur sunlight ka combined role kya hai?\",\n    options: &#91;\n      \"A. Ye sirf weather change karte hain\",\n      \"B. Ye plants, animals aur natural processes ko support karte hain\",\n      \"C. Ye sabhi living organisms ko destroy karte hain\",\n      \"D. Ye sirf oceans ke liye useful hain\"\n    ],\n    correct: 1,\n    explanation: \"Air respiration aur photosynthesis ke liye gases provide karti hai, water life processes aur nutrient transport mein help karta hai, aur sunlight photosynthesis aur Earth ko warm rakhne ke liye energy provide karti hai.&lt;br>&lt;br>Example: Ek garden mein plants sunlight aur water se food banate hain, animals oxygen use karke respiration karte hain, aur rain soil aur plants ko water provide karti hai. Is tarah ye natural resources milkar life ko support karte hain.\"\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;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\"\n            name=\"option\"\n            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\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] =\n    selected ? parseInt(selected.value) : 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) 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\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\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\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\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch13 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;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Biosphere and Ecosystem&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&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Biosphere 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\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. Earth par land, water aur air mein present sabhi living beings aur unke living places milkar kya banate hain?\",\n    options: &#91;\n      \"A. Atmosphere\",\n      \"B. Hydrosphere\",\n      \"C. Biosphere\",\n      \"D. Lithosphere\"\n    ],\n    correct: 2,\n    explanation: \"Biosphere Earth ka woh part hai jahan life exist karti hai. Ismein land, water aur air ke woh areas shamil hain jahan living organisms apne environment ke saath interact karte hain.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Forests mein trees, birds, insects aur microorganisms milkar biosphere ka part bante hain.\"\n  },\n\n  {\n    question: \"2. Ecosystem mein plants food kaise banate hain?\",\n    options: &#91;\n      \"A. Respiration se\",\n      \"B. Photosynthesis se\",\n      \"C. Decomposition se\",\n      \"D. Digestion se\"\n    ],\n    correct: 1,\n    explanation: \"Plants sunlight, carbon dioxide aur water ka use karke photosynthesis ke through food banate hain. Plants ko producers kaha jata hai.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Grass sunlight ki help se food banati hai. Grass ko khane wala deer indirectly plants se energy prapt karta hai.\"\n  },\n\n  {\n    question: \"3. Decomposers ka main function kya hai?\",\n    options: &#91;\n      \"A. Sunlight produce karna\",\n      \"B. Dead organisms ko hamesha ke liye preserve karna\",\n      \"C. Dead matter ko break down karke nutrients environment mein return karna\",\n      \"D. Soil se saare nutrients remove karna\"\n    ],\n    correct: 2,\n    explanation: \"Decomposers dead plants, animals aur organic waste ko break down karte hain. Is process se nutrients soil aur environment mein wapas aate hain.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Bacteria aur fungi fallen leaves ko decompose karte hain, jisse nutrients soil mein return hote hain.\"\n  },\n\n  {\n    question: \"4. Food chain mein animals plants ya other animals par depend kyun karte hain?\",\n    options: &#91;\n      \"A. Energy aur food prapt karne ke liye\",\n      \"B. Soil ko rocks mein badalne ke liye\",\n      \"C. Sunlight ko destroy karne ke liye\",\n      \"D. Water cycle ko rokne ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Animals apni energy food se prapt karte hain. Herbivores plants ko khate hain, jabki carnivores other animals ko kha sakte hain.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Grass \u2192 Deer \u2192 Tiger ek simple food chain hai. Deer grass se aur tiger deer se energy prapt karta hai.\"\n  },\n\n  {\n    question: \"5. Agar forest ke bahut saare trees cut kar diye jayein, toh kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Animals ka habitat improve hoga\",\n      \"B. Rainfall, soil aur animals par negative effects ho sakte hain\",\n      \"C. Soil erosion completely stop ho jayega\",\n      \"D. Biodiversity hamesha badhegi\"\n    ],\n    correct: 1,\n    explanation: \"Trees cut hone se animals ka habitat destroy ho sakta hai. Tree roots soil ko hold karti hain, isliye deforestation se soil erosion badh sakta hai. Forests rainfall patterns aur air quality ko bhi influence karte hain.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Hills par trees cut hone ke baad heavy rainfall mein soil aur rocks neeche slide kar sakte hain.\"\n  },\n\n  {\n    question: \"6. Earth par natural balance ka kya meaning hai?\",\n    options: &#91;\n      \"A. Sirf plants ka survive karna\",\n      \"B. Sirf weather ka same rehna\",\n      \"C. Living aur non-living things ka ek-doosre ko support aur influence karna\",\n      \"D. Sabhi animals ka same food khana\"\n    ],\n    correct: 2,\n    explanation: \"Nature mein air, water, soil, weather, plants, animals aur microorganisms ek-doosre ke saath interact karte hain. In interactions se ecosystems function karte hain aur life ko support milta hai.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Plants soil se nutrients lete hain, animals plants ko khate hain aur decomposers dead matter ko break down karke nutrients soil mein return karte hain.\"\n  },\n\n  {\n    question: \"7. Agar kisi ecosystem se decomposers disappear ho jayein, toh sabse likely effect kya hoga?\",\n    options: &#91;\n      \"A. Dead matter ka breakdown slow ho jayega aur nutrient recycling disturb hogi\",\n      \"B. Plants ko sunlight milna band ho jayega\",\n      \"C. Rainfall turant stop ho jayegi\",\n      \"D. Animals ko oxygen ki zaroorat nahi padegi\"\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 nutrients ka recycling process disturb ho sakta hai.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Forest mein fungi aur bacteria na hon, toh fallen leaves ka decomposition slow ho jayega.\"\n  },\n\n  {\n    question: \"8. Biodiversity ko protect karna kyun important hai?\",\n    options: &#91;\n      \"A. Sirf ek type ke organism ko bachane ke liye\",\n      \"B. Ecosystems ko healthy rakhne aur life ke different forms ko preserve karne ke liye\",\n      \"C. Saare microorganisms ko destroy karne ke liye\",\n      \"D. Natural resources ko waste karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Biodiversity ka matlab living organisms ki variety hai. Different organisms pollination, decomposition, food chains aur ecosystem functioning mein important roles play karte hain.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Bees flowers ko pollinate karti hain, jisse many plants mein fruits aur seeds develop hote hain.\"\n  },\n\n  {\n    question: \"9. Clean air, water aur soil ko preserve karna kyun zaroori hai?\",\n    options: &#91;\n      \"A. Ye sirf humans ke liye important hain\",\n      \"B. Ye living organisms aur ecosystems ki survival ko support karte hain\",\n      \"C. Ye food production ko reduce karte hain\",\n      \"D. Ye sabhi microorganisms ko eliminate karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Clean air respiration ke liye, clean water life processes ke liye aur healthy soil plant growth ke liye important hai. Pollution in resources ko damage karke living organisms ko harm kar sakta hai.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Polluted river ka water fish ko harm kar sakta hai aur humans ke liye drinking water ko unsafe bana sakta hai.\"\n  },\n\n  {\n    question: \"10. Earth ko future generations ke liye healthy rakhne ka best way kya hai?\",\n    options: &#91;\n      \"A. Forests ko bina planning cut karna\",\n      \"B. Water aur electricity waste karna\",\n      \"C. Pollution badhana aur wildlife habitats destroy karna\",\n      \"D. Natural resources ko conserve karna aur all forms of life protect karna\"\n    ],\n    correct: 3,\n    explanation: \"Earth par life ko sustain karne ke liye natural resources ka responsible use aur environment ki protection zaroori hai. Conservation se ecosystems aur biodiversity ko future generations ke liye preserve karne mein help milti hai.&lt;br>&lt;br>&lt;b>Example:&lt;\/b> Trees plant karna, water save karna, plastic waste reduce karna aur wildlife habitats protect karna environment conservation ke useful steps hain.\"\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;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\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] =\n    selected ? parseInt(selected.value) : 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\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\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong>&lt;br>\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\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\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\">ch13 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;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 APICAL CLASSES&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 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\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  line-height: 1.6;\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 APICAL CLASSES&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\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n{\nquestion: \"1. Earth par life ki continuity ko maintain karne ke liye kaunsa process essential hai?\",\noptions: &#91;\n\"A. Respiration\",\n\"B. Reproduction\",\n\"C. Digestion\",\n\"D. Excretion\"\n],\ncorrect: 1,\nexplanation: \"Reproduction ek biological process hai jisme living organisms apne jaise new individuals produce karte hain. Isse species ki continuity bani rehti hai.&lt;br>&lt;br>Example: Cows calves ko aur cats kittens ko janm deti hain. Isse unki species continue rehti hai.\"\n},\n\n{\nquestion: \"2. Genetic material ya genes ka main function kya hai?\",\noptions: &#91;\n\"A. Sirf food digest karna\",\n\"B. Organism ke development ke liye instructions carry karna\",\n\"C. Sunlight produce karna\",\n\"D. Body ka temperature hamesha badhana\"\n],\ncorrect: 1,\nexplanation: \"Genes mein hereditary information hoti hai, jo organism ke development aur kai characteristics ko influence karti hai. Ye information parents se offspring tak pass ho sakti hai.&lt;br>&lt;br>Example: Cat ke genes uske fur colour aur body development se related information carry karte hain.\"\n},\n\n{\nquestion: \"3. Genes living organisms ki cells mein kahan present hote hain?\",\noptions: &#91;\n\"A. Sirf blood mein\",\n\"B. Sirf bones mein\",\n\"C. DNA ke form mein, jo cells mein present hota hai\",\n\"D. Sirf stomach mein\"\n],\ncorrect: 2,\nexplanation: \"Genes DNA ke specific sections hote hain. Eukaryotic cells mein most DNA nucleus mein present hota hai, aur genes organism ki inherited characteristics aur development ko influence karte hain.&lt;br>&lt;br>Example: Humans mein DNA ke genes hair colour aur kuch other inherited traits ko influence kar sakte hain.\"\n},\n\n{\nquestion: \"4. Asexual reproduction mein generally kitne parents new individuals produce karte hain?\",\noptions: &#91;\n\"A. Ek\",\n\"B. Do\",\n\"C. Teen\",\n\"D. Chaar\"\n],\ncorrect: 0,\nexplanation: \"Asexual reproduction mein ek parent se new individual produce hota hai. Is process mein gametes ka fusion nahi hota. Offspring generally parent ke genetically very similar hote hain, although mutations ho sakte hain.&lt;br>&lt;br>Example: Amoeba binary fission ke through divide hokar two daughter cells bana sakta hai.\"\n},\n\n{\nquestion: \"5. Sexual reproduction mein offspring mein variation kyun hoti hai?\",\noptions: &#91;\n\"A. Kyunki offspring ko genes nahi milte\",\n\"B. Kyunki two parents ki genetic information combine hoti hai\",\n\"C. Kyunki sunlight genes ko destroy kar deti hai\",\n\"D. Kyunki offspring hamesha parent se bilkul alag species hota hai\"\n],\ncorrect: 1,\nexplanation: \"Sexual reproduction mein generally two parents ke gametes ki genetic information combine hoti hai. Is combination se offspring dono parents se kuch traits inherit karta hai, lekin usmein unique differences bhi ho sakte hain.&lt;br>&lt;br>Example: Human child ke hair type, eye colour aur other characteristics mein mother aur father dono ka genetic contribution hota hai.\"\n},\n\n{\nquestion: \"6. Reproduction se aane wale small genetic changes ka long-term effect kya ho sakta hai?\",\noptions: &#91;\n\"A. Organisms kabhi change nahi kar sakte\",\n\"B. Evolution aur new adaptations develop ho sakte hain\",\n\"C. Sabhi organisms same ban jayenge\",\n\"D. Reproduction permanently stop ho jayega\"\n],\ncorrect: 1,\nexplanation: \"Genetic variations generations ke through accumulate ho sakti hain. Natural selection ke through beneficial variations population mein common ho sakti hain. Bahut long time mein evolution ke through major changes aur new species develop ho sakti hain.&lt;br>&lt;br>Example: Bacteria mein kuch genetic changes antibiotic resistance de sakte hain. Aise bacteria antibiotic ke presence mein survive aur reproduce kar sakte hain.\"\n},\n\n{\nquestion: \"7. Camels ke desert mein survive karne mein unke humps ka kya role hai?\",\noptions: &#91;\n\"A. Humps water ko directly store karte hain\",\n\"B. Humps fat store karte hain, jo energy provide kar sakta hai\",\n\"C. Humps oxygen produce karte hain\",\n\"D. Humps sunlight ko food mein convert karte hain\"\n],\ncorrect: 1,\nexplanation: \"Camel ke hump mein fat stored hota hai, water nahi. Jab food available nahi hota, toh camel stored fat ko energy ke liye use kar sakta hai.&lt;br>&lt;br>Example: Desert mein food ki availability kam hone par camel apne stored fat se energy obtain kar sakta hai.\"\n},\n\n{\nquestion: \"8. Antibiotic resistance ka develop hona kis baat ka example hai?\",\noptions: &#91;\n\"A. Bacteria ka evolution\",\n\"B. Plants ka photosynthesis\",\n\"C. Animals ka digestion\",\n\"D. Water ka evaporation\"\n],\ncorrect: 0,\nexplanation: \"Bacteria mein genetic variations ho sakti hain. Antibiotic ke use se susceptible bacteria mar sakte hain, jabki resistant bacteria survive aur reproduce kar sakte hain. Isse population mein antibiotic resistance badh sakti hai.&lt;br>&lt;br>Example: Agar kisi bacterial population mein kuch bacteria antibiotic-resistant hain, toh antibiotic treatment ke baad resistant bacteria ki sankhya badh sakti hai.\"\n},\n\n{\nquestion: \"9. Asexual reproduction se produce hone wale offspring generally kaise hote hain?\",\noptions: &#91;\n\"A. Parent se genetically bahut different\",\n\"B. Parent ke genetically almost identical\",\n\"C. Hamesha different species ke\",\n\"D. Unke paas genetic material nahi hota\"\n],\ncorrect: 1,\nexplanation: \"Asexual reproduction mein offspring ko genetic information ek parent se milti hai. Isliye offspring generally parent ke genetic copies hote hain, lekin mutations ke karan differences aa sakte hain.&lt;br>&lt;br>Example: Amoeba binary fission se do daughter cells produce karta hai, jo generally genetically almost identical hote hain.\"\n},\n\n{\nquestion: \"10. Sexual reproduction ka ek important advantage kya hai?\",\noptions: &#91;\n\"A. Har offspring bilkul identical hota hai\",\n\"B. Genetic variation produce karne mein help karta hai\",\n\"C. Genes ka transfer permanently stop ho jata hai\",\n\"D. Organisms ko adapt karna impossible ho jata hai\"\n],\ncorrect: 1,\nexplanation: \"Sexual reproduction mein genetic information ka combination offspring mein variation create karta hai. Ye variation changing environments mein populations ke adaptation aur evolution ke liye important ho sakti hai.&lt;br>&lt;br>Example: Ek hi animal species ke individuals ke fur colour ya body size mein differences ho sakte hain. Kuch conditions mein certain variations survival mein advantage de sakti hain.\"\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}\">\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) score++;\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      &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\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\">ch13 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;title>\ud83e\udde0 Science Quiz \u2013 Reproduction in Plants and Animals&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 Reproduction in Plants and Animals&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. Vegetative propagation kya hota hai?\",\n    options: &#91;\n      \"A. Seeds se hi new plants grow hona\",\n      \"B. Plant ke root, stem ya leaf se new plant grow hona\",\n      \"C. Animals ka eggs lay karna\",\n      \"D. Flowers ka food banana\"\n    ],\n    correct: 1,\n    explanation: \"Vegetative propagation asexual reproduction ka ek type hai, jisme plant ke vegetative parts, jaise root, stem ya leaf, se new plant develop hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Money plant ki stem cutting ko water mein rakhne par roots develop ho sakti hain. Ginger ke rhizome aur potato ke eyes se bhi new plants grow ho sakte hain.\"\n  },\n  {\n    question: \"2. Amoeba asexual reproduction kaise karta hai?\",\n    options: &#91;\n      \"A. Pollination se\",\n      \"B. Fertilisation se\",\n      \"C. Binary fission se\",\n      \"D. Seed formation se\"\n    ],\n    correct: 2,\n    explanation: \"Binary fission mein ek single-celled organism divide hokar two daughter cells banata hai. Ye asexual reproduction ka ek type hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Amoeba apne cell ko divide karke two daughter cells bana sakta hai.\"\n  },\n  {\n    question: \"3. Hydra mein asexual reproduction kaun-se process se hota hai?\",\n    options: &#91;\n      \"A. Budding\",\n      \"B. Pollination\",\n      \"C. Fertilisation\",\n      \"D. Seed germination\"\n    ],\n    correct: 0,\n    explanation: \"Budding mein parent ke body par ek small outgrowth ya bud develop hota hai. Ye grow karke new individual ban sakta hai aur baad mein parent se separate ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hydra ke body par ek chhota bud develop hota hai, jo grow karke new Hydra ban sakta hai.\"\n  },\n  {\n    question: \"4. Sexual reproduction mein gametes ka kya role hota hai?\",\n    options: &#91;\n      \"A. Ye sirf food digest karte hain\",\n      \"B. Ye genetic material carry karte hain aur fertilisation mein combine hote hain\",\n      \"C. Ye sunlight absorb karke food banate hain\",\n      \"D. Ye soil mein nutrients produce karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Gametes specialised reproductive cells hote hain. Generally, male aur female gametes mein genetic material ka half set hota hai. Fertilisation ke time ye combine hokar zygote banate hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Humans mein sperm male gamete hai aur egg female gamete hai. Dono ke combine hone par zygote form hota hai.\"\n  },\n  {\n    question: \"5. Flower ke anther ka main function kya hai?\",\n    options: &#91;\n      \"A. Ovules ko fruit mein convert karna\",\n      \"B. Pollen grains produce karna\",\n      \"C. Roots grow karna\",\n      \"D. Seeds ko water absorb karwana\"\n    ],\n    correct: 1,\n    explanation: \"Anther flower ke stamen ka part hai. Ye pollen grains produce karta hai, jo male reproductive cells ya male gametes tak genetic material pahunchate hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hibiscus flower ke anther par yellow powder jaisa pollen dikhai de sakta hai.\"\n  },\n  {\n    question: \"6. Pollination ka kya meaning hai?\",\n    options: &#91;\n      \"A. Pollen ka anther se stigma tak transfer hona\",\n      \"B. Seed ka soil mein grow hona\",\n      \"C. Root ka water absorb karna\",\n      \"D. Fruit ka decompose hona\"\n    ],\n    correct: 0,\n    explanation: \"Pollination mein pollen grains flower ke anther se stigma tak transfer hote hain. Ye transfer wind, insects ya other animals ke through ho sakta hai. Pollination fertilisation se alag process hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bee jab flower par baithti hai, toh pollen uske body par stick ho sakta hai aur doosre flower tak transfer ho sakta hai.\"\n  },\n  {\n    question: \"7. Flowering plants mein fertilisation ke baad zygote kya develop karta hai?\",\n    options: &#91;\n      \"A. Ek new root directly\",\n      \"B. Embryo, jo seed ke development ka part hota hai\",\n      \"C. Sirf pollen grain\",\n      \"D. Sirf leaf\"\n    ],\n    correct: 1,\n    explanation: \"Fertilisation ke time male aur female gametes combine hokar zygote banate hain. Zygote divide aur develop hokar embryo banata hai. Flowering plants mein ovule generally seed mein develop hota hai aur ovary generally fruit mein develop hoti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Mango flower mein fertilisation ke baad ovule seed aur ovary fruit ke development mein contribute karti hai.\"\n  },\n  {\n    question: \"8. Frogs aur kai fish mein fertilisation generally kahan hota hai?\",\n    options: &#91;\n      \"A. Female ke lungs mein\",\n      \"B. Water mein, jab eggs aur sperm release hote hain\",\n      \"C. Soil ke andar\",\n      \"D. Leaves ke andar\"\n    ],\n    correct: 1,\n    explanation: \"Frogs aur many fish mein external fertilisation hota hai. Female eggs aur male sperm water mein release karte hain, jahan fertilisation ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Frog female pond mein eggs release karti hai aur male sperm release karta hai. Suitable conditions mein fertilised eggs develop kar sakte hain.\"\n  },\n  {\n    question: \"9. Birds mein fertilised egg ke andar embryo ka development kab hota hai?\",\n    options: &#91;\n      \"A. Egg lay hone ke baad, incubation ke dauran\",\n      \"B. Sirf female ke lungs mein\",\n      \"C. Pollination ke dauran\",\n      \"D. Seed germination ke time\"\n    ],\n    correct: 0,\n    explanation: \"Birds mein fertilisation female ke body ke andar hota hai. Female fertilised egg lay karti hai, aur embryo egg ke andar develop karta hai. Egg ke stored nutrients developing embryo ko food provide karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hen egg ko incubate karti hai, aur suitable warmth ke saath chick embryo develop hota hai.\"\n  },\n  {\n    question: \"10. Most mammals, jaise humans, cows aur dogs mein embryo ka development kahan hota hai?\",\n    options: &#91;\n      \"A. Soil mein\",\n      \"B. Water ke pond mein\",\n      \"C. Female ke body ke andar\",\n      \"D. Laid egg ke bahar\"\n    ],\n    correct: 2,\n    explanation: \"Most mammals mein fertilisation ke baad embryo female ke reproductive system, usually uterus, mein develop karta hai. Mother ka body developing baby ko nutrients aur oxygen provide karta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Human baby mother ke uterus mein develop karta hai aur development complete hone par birth hota hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#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  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\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  quizSubmitted = true;\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}\/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\">ch13 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;title>Science Quiz \u2013 APICAL CLASSES&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 APICAL CLASSES&lt;\/h2>\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. Potato ke kis part se new plant grow ho sakta hai?\",\n    options: &#91;\n      \"A. Flower petals\",\n      \"B. Eyes\",\n      \"C. Fruit pulp\",\n      \"D. Dry leaves\"\n    ],\n    correct: 1,\n    explanation: \"Potato ek modified underground stem hai. Iski surface par present \u201ceyes\u201d buds hote hain, jinse suitable conditions mein shoots grow kar sakte hain.&lt;br>&lt;br>Example: Potato ke sprouted eyes ko soil mein plant karne par new potato plant develop ho sakta hai.\"\n  },\n  {\n    question: \"2. Ginger mein vegetative propagation kis part ke through hota hai?\",\n    options: &#91;\n      \"A. Rhizome\",\n      \"B. Flower petals\",\n      \"C. Seeds only\",\n      \"D. Fruit skin\"\n    ],\n    correct: 0,\n    explanation: \"Ginger ka rhizome ek underground modified stem hai. Iske buds se new shoots develop ho sakte hain, jisse new plants grow karte hain.&lt;br>&lt;br>Example: Ginger ke rhizome ke ek piece ko, jisme healthy bud ho, moist soil mein plant karne par new plant grow ho sakta hai.\"\n  },\n  {\n    question: \"3. Planaria ki body ka chhota fragment suitable conditions mein kya kar sakta hai?\",\n    options: &#91;\n      \"A. Sirf food digest kar sakta hai\",\n      \"B. Regenerate hokar new individual bana sakta hai\",\n      \"C. Pollen produce kar sakta hai\",\n      \"D. Seed ban sakta hai\"\n    ],\n    correct: 1,\n    explanation: \"Planaria ek flatworm hai jisme regeneration ki strong ability hoti hai. Suitable conditions mein body ka ek fragment missing parts regrow kar sakta hai aur kuch cases mein complete individual develop kar sakta hai.&lt;br>&lt;br>Example: Laboratory studies mein Planaria ki regeneration ability ka use scientists body development ko samajhne ke liye karte hain.\"\n  },\n  {\n    question: \"4. Sexual reproduction mein zygote kaise banta hai?\",\n    options: &#91;\n      \"A. Ek leaf ke soil mein girne se\",\n      \"B. Male aur female gametes ke fusion se\",\n      \"C. Sirf pollination se\",\n      \"D. Ek organism ke binary fission se\"\n    ],\n    correct: 1,\n    explanation: \"Fertilisation ke dauran male aur female gametes combine hote hain aur zygote form hota hai. Zygote aage develop hokar embryo ban sakta hai.&lt;br>&lt;br>Example: Humans mein sperm aur egg ke fusion se zygote banta hai.\"\n  },\n  {\n    question: \"5. Sexual reproduction se born hone wale siblings mein differences kyun ho sakte hain?\",\n    options: &#91;\n      \"A. Har sibling ka genetic material bilkul same hota hai\",\n      \"B. Parents se inherited genetic information different combinations mein combine hoti hai\",\n      \"C. Siblings ko genes inherit nahi hote\",\n      \"D. Sirf environment hi sabhi differences decide karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein gametes genetic information ke different combinations carry kar sakte hain. Isliye siblings ke inherited traits mein differences ho sakte hain.&lt;br>&lt;br>Example: Ek family mein siblings ke hair type, height aur eye colour mein differences ho sakte hain.\"\n  },\n  {\n    question: \"6. Plants mein seeds ke dispersal ka ek benefit kya hai?\",\n    options: &#91;\n      \"A. Sabhi seeds parent plant ke bilkul paas hi grow karte hain\",\n      \"B. New plants parent plant se door grow kar sakte hain\",\n      \"C. Seeds ko water ki kabhi zaroorat nahi hoti\",\n      \"D. Plants ko photosynthesis ki zaroorat nahi rehti\"\n    ],\n    correct: 1,\n    explanation: \"Seed dispersal se seeds parent plant se door pahunch sakte hain. Isse new plants ko suitable places mil sakti hain aur ek hi jagah competition kam ho sakta hai.&lt;br>&lt;br>Example: Birds banyan fruit khane ke baad seeds ko doosri jagah drop kar sakte hain, jahan suitable conditions mein new banyan plant grow ho sakta hai.\"\n  },\n  {\n    question: \"7. Seed germination ke initial stage mein seed stored nutrients ka use kyun karta hai?\",\n    options: &#91;\n      \"A. Kyunki seedling shuru mein apna food banane ke liye fully developed nahi hoti\",\n      \"B. Kyunki seed sunlight ko destroy karta hai\",\n      \"C. Kyunki roots nutrients absorb nahi kar sakti\",\n      \"D. Kyunki seed mein embryo nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Germination ke dauran seed ka embryo stored food reserves ka use growth ke liye karta hai. Jab seedling develop ho jati hai aur leaves functional ho jati hain, toh woh photosynthesis se food bana sakti hai.&lt;br>&lt;br>Example: Germinating bean seed apne stored nutrients ka use karke root aur shoot develop karta hai.\"\n  },\n  {\n    question: \"8. Birds ke eggs mein stored nutrients ka main function kya hai?\",\n    options: &#91;\n      \"A. Developing embryo ko nutrition provide karna\",\n      \"B. Eggshell ko oxygen mein badalna\",\n      \"C. Pollination karna\",\n      \"D. Embryo ko food ki zaroorat se permanently free karna\"\n    ],\n    correct: 0,\n    explanation: \"Bird egg mein yolk jaise stored food reserves developing embryo ko nutrients provide karte hain. Ye nutrients embryo ki growth aur development ke liye important hain.&lt;br>&lt;br>Example: Hen ke egg mein yolk developing chick embryo ke liye major nutrient source hota hai.\"\n  },\n  {\n    question: \"9. External fertilisation ke liye frogs aur many fish mein water important kyun hai?\",\n    options: &#91;\n      \"A. Water sperm aur eggs ko milne mein help karta hai\",\n      \"B. Water genes ko completely remove kar deta hai\",\n      \"C. Water fertilisation ko impossible banata hai\",\n      \"D. Water eggs ko seeds mein convert karta hai\"\n    ],\n    correct: 0,\n    explanation: \"External fertilisation mein gametes body ke bahar combine hote hain. Frogs aur many fish mein water sperm aur eggs ko milne ka medium provide karta hai.&lt;br>&lt;br>Example: Pond mein frogs ke released eggs aur sperm suitable conditions mein combine hokar zygotes bana sakte hain.\"\n  },\n  {\n    question: \"10. Sexual reproduction aur asexual reproduction ke beech ek main difference kya hai?\",\n    options: &#91;\n      \"A. Dono mein hamesha two parents required hote hain\",\n      \"B. Asexual reproduction mein generally one parent hota hai, jabki sexual reproduction mein gametes fuse karte hain\",\n      \"C. Sexual reproduction mein genetic material transfer nahi hota\",\n      \"D. Asexual reproduction sirf animals mein hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Asexual reproduction mein generally one parent se new individual develop hota hai. Sexual reproduction mein gametes fuse karte hain aur offspring mein genetic variation aa sakti hai.&lt;br>&lt;br>Example: Amoeba binary fission se asexual reproduction karta hai, jabki humans mein sperm aur egg ke fusion se sexual reproduction hota 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  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  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  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\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    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>&lt;hr>\n    `;\n  });\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&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  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a,b) => b.score - a.score);\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`).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\">ch13 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 Reproduction&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  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n\n  @media (max-width: 600px) {\n    body {\n      padding: 10px;\n    }\n\n    .quiz-container {\n      width: 100%;\n      padding: 15px;\n    }\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Reproduction in Plants and Animals&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. Money plant ki stem cutting se new plant grow hona kis type ka reproduction hai?\",\n    options: &#91;\n      \"A. Sexual reproduction\",\n      \"B. Vegetative propagation\",\n      \"C. Pollination\",\n      \"D. Fertilisation\"\n    ],\n    correct: 1,\n    explanation: \"Vegetative propagation asexual reproduction ka type hai, jisme plant ke stem, root ya leaf jaise parts se new plant develop hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Money plant ki stem cutting ko water mein rakhne par roots develop ho sakti hain aur suitable conditions mein new plant grow kar sakta hai.\"\n  },\n\n  {\n    question: \"2. Asexual reproduction mein offspring generally parent ke genetically similar kyun hote hain?\",\n    options: &#91;\n      \"A. Kyunki genetic material ek hi parent se aata hai\",\n      \"B. Kyunki two parents ke gametes fuse karte hain\",\n      \"C. Kyunki offspring mein DNA nahi hota\",\n      \"D. Kyunki sunlight genes ko same bana deti hai\"\n    ],\n    correct: 0,\n    explanation: \"Asexual reproduction mein generally ek parent se offspring produce hota hai. Isliye offspring parent ke genetically almost identical hote hain, halanki mutations se differences aa sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Amoeba binary fission se two daughter cells banata hai jo generally genetically almost identical hote hain.\"\n  },\n\n  {\n    question: \"3. Flower mein female reproductive structure ka kaunsa part ovules contain karta hai?\",\n    options: &#91;\n      \"A. Anther\",\n      \"B. Filament\",\n      \"C. Ovary\",\n      \"D. Petal\"\n    ],\n    correct: 2,\n    explanation: \"Flower ki ovary mein ovules present hote hain. Fertilisation ke baad ovules generally seeds mein develop hote hain aur ovary fruit mein develop hoti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Mango flower ki ovary fruit ke development mein contribute karti hai, jabki ovule seed ban sakta hai.\"\n  },\n\n  {\n    question: \"4. Pollination aur fertilisation ke beech correct difference kya hai?\",\n    options: &#91;\n      \"A. Dono ka meaning exactly same hai\",\n      \"B. Pollination pollen transfer hai, jabki fertilisation gametes ka fusion hai\",\n      \"C. Pollination seed germination hai\",\n      \"D. Fertilisation ka reproduction se koi relation nahi hai\"\n    ],\n    correct: 1,\n    explanation: \"Pollination mein pollen grain anther se stigma tak transfer hota hai. Fertilisation mein male aur female gametes fuse hote hain aur zygote form hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bee flower ke stigma tak pollen pahunchane mein help kar sakti hai. Baad mein suitable conditions mein fertilisation ho sakta hai.\"\n  },\n\n  {\n    question: \"5. Male gamete aur female gamete ke fusion se banne wali cell ko kya kehte hain?\",\n    options: &#91;\n      \"A. Embryo\",\n      \"B. Zygote\",\n      \"C. Pollen\",\n      \"D. Ovary\"\n    ],\n    correct: 1,\n    explanation: \"Fertilisation ke time male aur female gametes ka genetic material combine hota hai aur zygote banta hai. Zygote divide hokar embryo develop kar sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Human sperm aur egg ke fusion se zygote banta hai, jo aage development karta hai.\"\n  },\n\n  {\n    question: \"6. Plants mein pollen grains ko ek flower se doosre flower tak transfer karne mein kaun help kar sakta hai?\",\n    options: &#91;\n      \"A. Wind aur insects\",\n      \"B. Sirf soil\",\n      \"C. Sirf roots\",\n      \"D. Sirf rocks\"\n    ],\n    correct: 0,\n    explanation: \"Wind, insects aur kuch other animals pollination mein help kar sakte hain. Pollination successful reproduction ki taraf ek important step hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Bee flower se nectar collect karte waqt pollen ko ek flower se doosre flower tak transfer kar sakti hai.\"\n  },\n\n  {\n    question: \"7. Most mammals mein developing embryo ko oxygen aur nutrients kaise milte hain?\",\n    options: &#91;\n      \"A. Sirf surrounding air se\",\n      \"B. Mother ke body se, placenta ke through\",\n      \"C. Soil se\",\n      \"D. Eggshell ke stored food se\"\n    ],\n    correct: 1,\n    explanation: \"Most mammals mein embryo uterus ke andar develop karta hai. Placenta ke through mother ke blood se oxygen aur nutrients embryo tak pahunchte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Human pregnancy mein placenta developing baby ko oxygen aur nutrients provide karne mein help karta hai.\"\n  },\n\n  {\n    question: \"8. Birds aur most mammals mein embryo development ka main difference kya hai?\",\n    options: &#91;\n      \"A. Birds mein embryo egg ke andar develop karta hai, jabki most mammals mein embryo mother ke body ke andar develop karta hai\",\n      \"B. Birds mein fertilisation nahi hota\",\n      \"C. Mammals mein zygote nahi banta\",\n      \"D. Birds mein genetic material nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Birds fertilised eggs lay karte hain, aur embryo egg ke andar develop karta hai. Most mammals mein embryo uterus ke andar develop karta hai aur mother se nutrients aur oxygen prapt karta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hen ka chick egg ke andar develop karta hai, jabki cow ka calf mother ke uterus mein develop karta hai.\"\n  },\n\n  {\n    question: \"9. Vegetative propagation ka ek important advantage kya hai?\",\n    options: &#91;\n      \"A. New plants develop karne ke liye hamesha seeds required hote hain\",\n      \"B. Suitable plant parts se quickly new plants produce kiye ja sakte hain\",\n      \"C. Plants ko water ki zaroorat nahi hoti\",\n      \"D. Har new plant different species ka hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Vegetative propagation se gardeners aur farmers selected plants ke parts se new plants produce kar sakte hain. New plants generally parent ke genetically similar hote hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Sugarcane ko stem cuttings se grow kiya ja sakta hai.\"\n  },\n\n  {\n    question: \"10. Reproduction ke through genetic variation ka long-term benefit kya ho sakta hai?\",\n    options: &#91;\n      \"A. Changing environment mein kuch organisms ko survive karne mein help mil sakti hai\",\n      \"B. Sabhi organisms ko ek jaisa bana deta hai\",\n      \"C. Evolution ko permanently stop kar deta hai\",\n      \"D. Living organisms ka genetic material remove kar deta hai\"\n    ],\n    correct: 0,\n    explanation: \"Genetic variation se population ke individuals mein differences aate hain. Agar koi inherited variation particular environment mein advantage deti hai, toh natural selection ke through woh generations mein more common ho sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Kuch bacteria mein antibiotic resistance hoti hai. Antibiotic ke exposure mein resistant bacteria survive aur reproduce kar sakte hain.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\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;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\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  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n\n  });\n\n  quizSubmitted = true;\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\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\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}\/10 (${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\">ch13 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;title>Science Quiz \u2013 APICAL CLASSES&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 APICAL CLASSES&lt;\/h2>\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. Air pollution ka ek major source kaunsa hai?\",\n    options: &#91;\n      \"A. Planting trees\",\n      \"B. Vehicles aur factories se nikalne wala smoke\",\n      \"C. Rainwater harvesting\",\n      \"D. Recycling paper\"\n    ],\n    correct: 1,\n    explanation: \"Vehicles aur factories se harmful gases aur particles air mein release hote hain. Ye air quality ko kharab karte hain aur humans, animals aur plants ko harm pahuncha sakte hain.&lt;br>&lt;br>Example: Traffic ke smoke mein saans lene se kuch logon ko coughing aur breathing problems ho sakti hain.\"\n  },\n  {\n    question: \"2. Acid rain hone ka ek important reason kya hai?\",\n    options: &#91;\n      \"A. Air mein harmful gases ka release hona\",\n      \"B. Trees ko water dena\",\n      \"C. Solar energy ka use karna\",\n      \"D. Plastic ko recycle karna\"\n    ],\n    correct: 0,\n    explanation: \"Factories aur power plants se release hone wali sulphur dioxide aur nitrogen oxides atmosphere mein reactions karke acids bana sakti hain. Ye acids rainwater ke saath Earth par gir sakte hain.&lt;br>&lt;br>Example: Acid rain lakes aur soil ko damage kar sakti hai aur buildings ko bhi corrode kar sakti hai.\"\n  },\n  {\n    question: \"3. Climate change ka crops par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Har crop ki growth hamesha increase hoti hai\",\n      \"B. Crops ko water ki zaroorat nahi hoti\",\n      \"C. Crop growth aur production affect ho sakte hain\",\n      \"D. Soil pollution completely stop ho jata hai\"\n    ],\n    correct: 2,\n    explanation: \"Temperature, rainfall aur water availability mein changes crops ki growth ko affect kar sakte hain. Extreme heat aur drought se crop production decrease bhi ho sakta hai.&lt;br>&lt;br>Example: Agar kisi area mein long time tak rainfall na ho, toh farmers ki wheat crop ko sufficient water nahi mil sakta.\"\n  },\n  {\n    question: \"4. Montreal Protocol, 1987 ka main purpose kya tha?\",\n    options: &#91;\n      \"A. Plastic production increase karna\",\n      \"B. Harmful ozone-depleting chemicals ko reduce karna\",\n      \"C. Vehicles ki speed increase karna\",\n      \"D. Forests ko cities mein convert karna\"\n    ],\n    correct: 1,\n    explanation: \"Montreal Protocol ek international agreement hai jo ozone layer ko damage karne wale substances, jaise CFCs, ko phase out karne mein help karta hai. Isse ozone layer ki recovery mein madad mili hai.&lt;br>&lt;br>Example: Refrigeration aur air-conditioning mein use hone wale kuch older CFC-based substances ko phase out kiya gaya.\"\n  },\n  {\n    question: \"5. Paris Agreement, 2015 ka main objective kya hai?\",\n    options: &#91;\n      \"A. Global warming ko limit karne ke liye greenhouse gas emissions reduce karna\",\n      \"B. Har country mein coal ka use increase karna\",\n      \"C. Water pollution ko ignore karna\",\n      \"D. Ozone layer ko completely remove karna\"\n    ],\n    correct: 0,\n    explanation: \"Paris Agreement countries ko climate change se deal karne aur greenhouse gas emissions reduce karne ke liye encourage karta hai. Iska temperature goal global warming ko 2\u00b0C se kaafi neeche rakhna aur 1.5\u00b0C tak limit karne ki efforts pursue karna hai.&lt;br>&lt;br>Example: Solar aur wind energy ka use badhakar fossil fuels par dependence reduce ki ja sakti hai.\"\n  },\n  {\n    question: \"6. Water pollution ka aquatic animals par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Unhe hamesha extra food milta hai\",\n      \"B. Unka habitat aur survival threaten ho sakta hai\",\n      \"C. Water automatically pure ho jata hai\",\n      \"D. Unhe oxygen ki zaroorat nahi hoti\"\n    ],\n    correct: 1,\n    explanation: \"Factory waste, plastic aur harmful chemicals water bodies ko pollute karte hain. Isse aquatic organisms ki health, reproduction aur survival affect ho sakti hai.&lt;br>&lt;br>Example: River mein plastic waste aur harmful chemicals pahunchne se fish aur other aquatic animals ko harm ho sakta hai.\"\n  },\n  {\n    question: \"7. Excess fertilisers aur poor waste disposal se soil pollution kaise hota hai?\",\n    options: &#91;\n      \"A. Soil hamesha more fertile ho jati hai\",\n      \"B. Soil se saare harmful substances disappear ho jate hain\",\n      \"C. Harmful substances soil mein accumulate hokar crops ko affect kar sakte hain\",\n      \"D. Soil pollution ka food chain se koi relation nahi hai\"\n    ],\n    correct: 2,\n    explanation: \"Fertilisers ka excessive use aur improper waste disposal soil mein harmful substances ki quantity badha sakte hain. Kuch pollutants crops mein enter karke food chain tak pahunch sakte hain.&lt;br>&lt;br>Example: Contaminated soil mein grow hui crops kuch harmful substances absorb kar sakti hain.\"\n  },\n  {\n    question: \"8. Earth ke atmosphere, hydrosphere, biosphere aur geosphere ke baare mein correct statement kaunsa hai?\",\n    options: &#91;\n      \"A. Ye completely independent systems hain\",\n      \"B. Ek system ko damage hone se doosre systems affect nahi hote\",\n      \"C. Ye interconnected hain aur ek mein damage doosron ko affect kar sakta hai\",\n      \"D. Inka life on Earth se koi relation nahi hai\"\n    ],\n    correct: 2,\n    explanation: \"Atmosphere air, hydrosphere water, biosphere living organisms aur geosphere Earth ke solid parts ko represent karte hain. Ye systems ek-doosre ke saath interact karte hain.&lt;br>&lt;br>Example: Factory ka chemical waste soil se groundwater mein ja sakta hai aur plants, animals aur humans ko affect kar sakta hai.\"\n  },\n  {\n    question: \"9. Reusing, repairing aur recycling items ka main benefit kya hai?\",\n    options: &#91;\n      \"A. Waste aur pollution ko reduce karna\",\n      \"B. Natural resources ko unnecessarily waste karna\",\n      \"C. Air pollution increase karna\",\n      \"D. Water bodies mein plastic add karna\"\n    ],\n    correct: 0,\n    explanation: \"Items ko reuse, repair aur recycle karne se new raw materials ki demand aur waste ki quantity reduce ho sakti hai. Isse natural resources conserve karne mein help milti hai.&lt;br>&lt;br>Example: Plastic bottle ko safely reuse karna ya paper recycle karna unnecessary waste ko reduce kar sakta hai.\"\n  },\n  {\n    question: \"10. Biodiversity ko protect karna ecosystems ke liye important kyun hai?\",\n    options: &#91;\n      \"A. Isse saare organisms identical ho jaate hain\",\n      \"B. Isse food chains permanently stop ho jaati hain\",\n      \"C. Diverse ecosystems zyada resilient aur balanced ho sakte hain\",\n      \"D. Isse pollution automatically completely disappear ho jata hai\"\n    ],\n    correct: 2,\n    explanation: \"Biodiversity ka meaning hai living organisms ki variety. Different organisms ecosystem mein different roles perform karte hain. Biodiversity ecosystem ko environmental changes aur disturbances ka saamna karne mein help kar sakti hai.&lt;br>&lt;br>Example: Forest mein different plants, insects, birds aur animals food webs aur nutrient cycling ko support 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  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  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  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  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\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    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>&lt;hr>\n    `;\n  });\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&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  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a,b) => b.score - a.score);\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`).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\">ch13 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>Science Quiz \u2013 Earth and Reproduction&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    margin: 0;\n    box-sizing: border-box;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\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    line-height: 1.5;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 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  input&#91;type=\"text\"] {\n    padding: 10px;\n    width: 60%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\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  @media (max-width: 600px) {\n    body {\n      padding: 12px;\n    }\n\n    .quiz-container {\n      width: 100%;\n      padding: 16px;\n    }\n\n    input&#91;type=\"text\"] {\n      width: 90%;\n    }\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Earth and Reproduction&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. Earth par liquid water exist karne ke liye kaunsa factor important hai?\",\n    options: &#91;\n      \"A. Earth ka Sun se suitable distance\",\n      \"B. Earth ka bilkul stationary hona\",\n      \"C. Earth par gravity ka na hona\",\n      \"D. Earth par atmosphere ka na hona\"\n    ],\n    correct: 0,\n    explanation: \"Earth Sun se aisi distance par hai jahan temperature suitable conditions mein water ko liquid form mein exist karne deta hai. Is region ko habitable zone ya Goldilocks zone kehte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Earth par rivers aur lakes mein liquid water milta hai, jo living organisms ke liye essential hai.\"\n  },\n\n  {\n    question: \"2. Earth ke atmosphere ko space mein escape hone se kaun rokne mein help karta hai?\",\n    options: &#91;\n      \"A. Sunlight\",\n      \"B. Gravity\",\n      \"C. Ozone\",\n      \"D. Pollination\"\n    ],\n    correct: 1,\n    explanation: \"Earth ki gravity gases ko apne aas-paas hold karne mein help karti hai. Atmosphere life ke liye important gases provide karta hai aur Earth ko protect karne mein bhi help karta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Earth ka atmosphere nitrogen aur oxygen jaise gases contain karta hai, jo Earth par life ke liye important hain.\"\n  },\n\n  {\n    question: \"3. Ozone layer ka main protective function kya hai?\",\n    options: &#91;\n      \"A. Harmful ultraviolet rays ko absorb karna\",\n      \"B. Earth ki gravity ko remove karna\",\n      \"C. Oceans ka water produce karna\",\n      \"D. Plants ki roots ko grow karna\"\n    ],\n    correct: 0,\n    explanation: \"Atmosphere mein present ozone layer harmful ultraviolet (UV) radiation ke ek large part ko absorb karti hai, jisse Earth's surface par life ko protection milti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Excessive UV exposure human skin aur eyes ko damage kar sakta hai. Ozone layer is risk ko reduce karne mein help karti hai.\"\n  },\n\n  {\n    question: \"4. Earth ka magnetic field life ko protect karne mein kaise help karta hai?\",\n    options: &#91;\n      \"A. Saari sunlight ko block karke\",\n      \"B. Ocean water ko freeze karke\",\n      \"C. Charged particles ke against protection provide karke\",\n      \"D. Earth ki rotation ko stop karke\"\n    ],\n    correct: 2,\n    explanation: \"Earth ka magnetic field Sun aur space se aane wale many charged particles ko deflect karta hai. Isse Earth ke aas-paas protective environment maintain karne mein help milti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Solar wind ke charged particles Earth ke magnetic field se interact karke aurora lights produce kar sakte hain.\"\n  },\n\n  {\n    question: \"5. Earth ke solid part ko kaunsa sphere represent karta hai?\",\n    options: &#91;\n      \"A. Biosphere\",\n      \"B. Hydrosphere\",\n      \"C. Atmosphere\",\n      \"D. Geosphere\"\n    ],\n    correct: 3,\n    explanation: \"Geosphere mein Earth ka solid part include hota hai, jaise rocks, soil aur Earth's internal layers. Earth ke different systems interact karke life ko support karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Plants apni roots ke through soil se water aur minerals absorb karte hain.\"\n  },\n\n  {\n    question: \"6. Reproduction living organisms ke liye essential kyun hai?\",\n    options: &#91;\n      \"A. Individual organisms ko hamesha alive rakhne ke liye\",\n      \"B. Life ki continuity maintain karne ke liye\",\n      \"C. Sabhi organisms ko same size ka banane ke liye\",\n      \"D. Organisms ko food ki zaroorat se free karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Reproduction se new individuals produce hote hain aur species ki continuity generations tak maintain reh sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> A plant seeds produce karta hai. Suitable conditions mein ye seeds germinate hokar new plants bana sakte hain.\"\n  },\n\n  {\n    question: \"7. Asexual reproduction mein generally kitne parents new individual produce karte hain?\",\n    options: &#91;\n      \"A. One parent\",\n      \"B. Two parents\",\n      \"C. Three parents\",\n      \"D. Koi parent nahi\"\n    ],\n    correct: 0,\n    explanation: \"Asexual reproduction mein generally ek parent se new individual produce hota hai. Offspring usually parent ke genetically almost identical hote hain, although mutations se differences aa sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Amoeba binary fission ke through divide hokar two daughter cells produce karta hai.\"\n  },\n\n  {\n    question: \"8. Sexual reproduction ka ek important result kya ho sakta hai?\",\n    options: &#91;\n      \"A. Har generation mein reproduction stop ho jata hai\",\n      \"B. Offspring mein genetic material nahi hota\",\n      \"C. Offspring mein new combinations of features aa sakte hain\",\n      \"D. Sabhi offspring completely identical hote hain\"\n    ],\n    correct: 2,\n    explanation: \"Sexual reproduction mein male aur female gametes ka genetic material combine hota hai. Isse offspring mein genetic variation aa sakti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Human children apne parents se different combinations of features inherit kar sakte hain.\"\n  },\n\n  {\n    question: \"9. Fertilisation ke baad zygote ka kya develop ho sakta hai?\",\n    options: &#91;\n      \"A. Ozone layer\",\n      \"B. Embryo\",\n      \"C. Atmosphere\",\n      \"D. Magnetic field\"\n    ],\n    correct: 1,\n    explanation: \"Male aur female gametes ke fusion se zygote banta hai. Zygote cell division karta hai aur development ke through embryo form kar sakta hai. Different animals mein embryo body ke inside ya outside develop kar sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hen ke fertilised egg mein embryo develop karta hai, jabki humans mein embryo uterus ke andar develop karta hai.\"\n  },\n\n  {\n    question: \"10. Climate change, biodiversity loss aur pollution ko collectively kya kaha jata hai?\",\n    options: &#91;\n      \"A. Water cycle\",\n      \"B. Food chain\",\n      \"C. Triple planetary crisis\",\n      \"D. Goldilocks zone\"\n    ],\n    correct: 2,\n    explanation: \"Climate change, biodiversity loss aur pollution interconnected environmental problems hain. Ye ecosystems, human health aur life on Earth ko threaten karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Forest destruction biodiversity ko reduce kar sakta hai, stored carbon release kar sakta hai aur soil erosion ko increase kar sakta hai.\"\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;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\"\n                 name=\"option\"\n                 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\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;h3>${score >= 7 ? \"\ud83c\udf89 Well Done!\" : \"\ud83d\udcda Keep Practising!\"}&lt;\/h3>\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}\/10 (${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\">ch13 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 Science Quiz \u2013 APICAL CLASSES&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 APICAL CLASSES&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. Mars currently Earth ki tarah life support kyun nahi kar sakta?\",\n    options: &#91;\n      \"A. Mars par bahut zyada volcanoes hain\",\n      \"B. Mars Sun ke bahut close hai\",\n      \"C. Mars par thick atmosphere aur stable liquid water ki kami hai\",\n      \"D. Mars ka magnetic field bahut strong hai\"\n    ],\n    correct: 2,\n    explanation: \"Mars ka atmosphere Earth ke comparison mein bahut thin hai aur uski surface par liquid water long periods tak stable rehna difficult hai. Isliye Mars par Earth jaisi life ke liye conditions available nahi hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Earth ka atmosphere temperature regulate karne aur water cycle support karne mein help karta hai, jabki Mars par ye conditions bahut different hain.\"\n  },\n  {\n    question: \"2. Geodiversity ka example kaunsa hai?\",\n    options: &#91;\n      \"A. Forest mein birds ki different sounds\",\n      \"B. Mountains, valleys aur deserts ki variety\",\n      \"C. Pond mein different types of fish\",\n      \"D. Different plants ki variety\"\n    ],\n    correct: 1,\n    explanation: \"Geodiversity ka meaning hai non-living natural features ki variety, jaise rocks, minerals, landforms aur geological processes.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Himalayas ke mountains, river valleys aur Thar Desert different landforms hain jo geodiversity show karte hain.\"\n  },\n  {\n    question: \"3. Agar Earth same density ke saath smaller hoti, toh uski gravity par kya effect ho sakta tha?\",\n    options: &#91;\n      \"A. Gravity stronger ho jaati\",\n      \"B. Gravity weaker ho jaati\",\n      \"C. Gravity completely disappear nahi hoti, balki infinite ho jaati\",\n      \"D. Gravity ka size se koi relation nahi hai\"\n    ],\n    correct: 1,\n    explanation: \"Same density ke saath smaller planet ka mass kam hota. Isliye uski surface gravity bhi generally kam hoti, jisse atmosphere ko hold karna difficult ho sakta tha.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar kisi planet ki gravity atmosphere ko effectively hold na kar sake, toh gases long periods mein space mein escape kar sakti hain.\"\n  },\n  {\n    question: \"4. Sexual reproduction mein offspring ke features parents se different kyun ho sakte hain?\",\n    options: &#91;\n      \"A. Offspring ko genes sirf environment se milte hain\",\n      \"B. Offspring ko mixed genetic instructions dono parents se milti hain\",\n      \"C. Offspring ke paas genetic material nahi hota\",\n      \"D. Genes birth ke baad food se bante hain\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein offspring genetic material dono parents se inherit karte hain. Genes ke different combinations ki wajah se offspring mein variations aa sakti hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Human siblings ke eye colour, height aur hair type mein differences ho sakte hain.\"\n  },\n  {\n    question: \"5. Monsoon ke baad school ki wall ki cracks mein tiny green plants grow karne lage. Seeds wahan kaise pahunche honge?\",\n    options: &#91;\n      \"A. Wind, water ya animals ke through\",\n      \"B. Sirf wall ke cement se\",\n      \"C. Sunlight se directly seeds ban gaye\",\n      \"D. Plants ko seeds ki zaroorat nahi hoti\"\n    ],\n    correct: 0,\n    explanation: \"Seeds hawa, rainwater, birds ya other animals ke through wall ki cracks tak pahunch sakte hain. Moisture, suitable temperature aur light milne par seeds germinate kar sakte hain, agar wahan enough growing conditions hon.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Hawa se aaya hua grass seed wall ki moist crack mein grow kar sakta hai.\"\n  },\n  {\n    question: \"6. Forest ko roads aur buildings ke liye cut karne ka possible effect kya hai?\",\n    options: &#91;\n      \"A. Biodiversity hamesha increase hoti hai\",\n      \"B. Local temperature aur soil erosion dono decrease hote hain\",\n      \"C. Wildlife habitats destroy ho sakte hain aur water quality affect ho sakti hai\",\n      \"D. Rainfall aur water availability par koi effect nahi padta\"\n    ],\n    correct: 2,\n    explanation: \"Deforestation se animals aur plants ke habitats lose ho sakte hain. Trees kam hone se soil erosion aur surface runoff increase ho sakta hai, jisse rivers mein sediment badh sakta hai aur groundwater recharge reduce ho sakta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Forest cut hone ke baad heavy rainfall mein soil river mein beh sakti hai, jisse water muddy ho jata hai.\"\n  },\n  {\n    question: \"7. Earth ke magnetic field ke suddenly disappear hone se kya problem ho sakti hai?\",\n    options: &#91;\n      \"A. Earth par gravity immediately stop ho jayegi\",\n      \"B. Earth par sunlight aana completely stop ho jayega\",\n      \"C. Earth ko solar wind aur charged particles se milne wali protection reduce ho jayegi\",\n      \"D. Oceans ka water immediately disappear ho jayega\"\n    ],\n    correct: 2,\n    explanation: \"Earth ka magnetic field many charged particles ko deflect karta hai. Agar magnetic field disappear ho jaye, toh space weather ke effects aur radiation exposure ke risks increase ho sakte hain. Atmosphere aur life par long-term effects bhi ho sakte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Strong solar storms satellites, communication systems aur power grids ko disturb kar sakte hain.\"\n  },\n  {\n    question: \"8. Mars par human settlement banane ke liye kaunsi three things recreate ya provide karna zaroori hoga?\",\n    options: &#91;\n      \"A. Oxygen, liquid water aur suitable temperature control\",\n      \"B. Sirf sunlight, rocks aur sand\",\n      \"C. Sirf buildings, roads aur vehicles\",\n      \"D. Sirf gravity, dust aur mountains\"\n    ],\n    correct: 0,\n    explanation: \"Humans ko breathe karne ke liye oxygen, drinking aur daily use ke liye water, aur safe temperature ki zaroorat hoti hai. Mars par habitats ko pressure, radiation aur temperature se bhi protect karna hoga.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> A sealed habitat mein oxygen supply, water recycling system aur heating equipment use kiye ja sakte hain.\"\n  },\n  {\n    question: \"9. Kisi village mein temperature increase ho raha hai aur rainfall unpredictable ho gayi hai. Village ko adapt karne ke liye kaunse steps useful honge?\",\n    options: &#91;\n      \"A. Saare trees cut kar dena\",\n      \"B. Water conservation aur drought-resistant crops use karna\",\n      \"C. Water wastage increase karna\",\n      \"D. Rivers mein waste dump karna\"\n    ],\n    correct: 1,\n    explanation: \"Changing climate se heat stress, drought aur irregular rainfall ka risk increase ho sakta hai. Rainwater harvesting aur suitable crops farmers ko changing conditions ke saath adapt karne mein help karte hain.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Village rooftops se rainwater collect karke store kar sakta hai aur farmers less water use karne wali crop varieties grow kar sakte hain.\"\n  },\n  {\n    question: \"10. Agar Earth par atmosphere na hota, toh life aur temperature par kya effect hota?\",\n    options: &#91;\n      \"A. Life aur water cycle par koi effect nahi hota\",\n      \"B. Earth ka temperature har jagah perfectly stable hota\",\n      \"C. Breathing ke liye air nahi hoti, temperature extremes badhte aur surface par liquid water stable rehna difficult hota\",\n      \"D. Plants bina kisi difficulty ke grow karte\"\n    ],\n    correct: 2,\n    explanation: \"Atmosphere breathing ke liye essential gases provide karta hai, greenhouse effect ke through temperature regulate karne mein help karta hai aur water cycle ka important part hai. Atmosphere ke bina Earth par present life ko survive karna extremely difficult hota.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Earth ka atmosphere daytime heating aur nighttime cooling ko moderate karta hai, jabki atmosphere-less Moon par surface temperature mein extreme changes hote 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    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  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}\/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\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch13 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-5429","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5429","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=5429"}],"version-history":[{"count":2,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5429\/revisions"}],"predecessor-version":[{"id":5432,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5429\/revisions\/5432"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}