{"id":5441,"date":"2026-11-17T04:15:00","date_gmt":"2026-11-17T04:15:00","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5441"},"modified":"2026-11-17T04:23:08","modified_gmt":"2026-11-17T04:23:08","slug":"class-10-science-chapter-3","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5441","title":{"rendered":"class 10 science chapter 3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch3 part 1<\/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>How Do Organisms Reproduce? \u2013 Science Quiz&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 { text-align: center; color: #1e3c72; }\n\n    .question { font-weight: bold; margin: 10px 0; }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover { background: #f0f0f0; }\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 { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 { text-align: center; }\n\n    ol { padding-left: 20px; }\n  &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\uddec How Do Organisms Reproduce? \u2013 Science Quiz&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n\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. Reproduction organisms ke liye kyun important hai?\",\n    options: &#91;\n      \"A. Individual ko alive rakhne ke liye\",\n      \"B. New individuals produce karne ke liye\",\n      \"C. Respiration karne ke liye\",\n      \"D. Food digest karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Reproduction individual organism ki survival ke liye directly necessary nahi hai, lekin ye new individuals produce karta hai aur species ko continue karne mein help karta hai.\"\n  },\n\n  {\n    question: \"2. Reproduction ke through new individuals generally kaise hote hain?\",\n    options: &#91;\n      \"A. Parents se completely different\",\n      \"B. Parents se similar\",\n      \"C. Hamesha smaller\",\n      \"D. Hamesha larger\"\n    ],\n    correct: 1,\n    explanation: \"Reproducing organisms aise new individuals create karte hain jo parents ke body design se kaafi similar hote hain.\"\n  },\n\n  {\n    question: \"3. Organisms ki body design ki information mainly kis molecule mein present hoti hai?\",\n    options: &#91;\n      \"A. Protein\",\n      \"B. Glucose\",\n      \"C. DNA\",\n      \"D. Water\"\n    ],\n    correct: 2,\n    explanation: \"DNA (Deoxyribo Nucleic Acid) mein hereditary information stored hoti hai. Ye information parents se next generation tak features transfer karne mein important hai.\"\n  },\n\n  {\n    question: \"4. Cell ke nucleus mein DNA kis structure mein present hota hai?\",\n    options: &#91;\n      \"A. Ribosomes\",\n      \"B. Chromosomes\",\n      \"C. Cell wall\",\n      \"D. Vacuoles\"\n    ],\n    correct: 1,\n    explanation: \"Cell ke nucleus mein chromosomes hote hain, jinmein DNA molecules present hote hain. DNA inheritance ki information carry karta hai.\"\n  },\n\n  {\n    question: \"5. Reproduction ka basic event kya mana jata hai?\",\n    options: &#91;\n      \"A. Food digestion\",\n      \"B. DNA copy creation\",\n      \"C. Respiration\",\n      \"D. Water absorption\"\n    ],\n    correct: 1,\n    explanation: \"Reproduction ke basic level par DNA ki copy create hona important event hai. Cell chemical reactions ka use karke DNA ki copies banata hai.\"\n  },\n\n  {\n    question: \"6. DNA cell ke liye kis important information ka source hai?\",\n    options: &#91;\n      \"A. Protein banane ki information\",\n      \"B. Water banane ki information\",\n      \"C. Oxygen store karne ki information\",\n      \"D. Food digest karne ki information\"\n    ],\n    correct: 0,\n    explanation: \"Cell nucleus mein present DNA proteins banane ke liye information provide karta hai. Agar DNA ki information change ho jaye, to different proteins ban sakte hain.\"\n  },\n\n  {\n    question: \"7. DNA ki information mein change hone par kya effect ho sakta hai?\",\n    options: &#91;\n      \"A. Different proteins ban sakte hain\",\n      \"B. Cell mein water khatam ho jata hai\",\n      \"C. Respiration completely stop ho jata hai\",\n      \"D. Food automatically produce hota hai\"\n    ],\n    correct: 0,\n    explanation: \"DNA ki information change hone par different proteins ban sakte hain. Different proteins eventually organism ke altered body design ka reason ban sakte hain.\"\n  },\n\n  {\n    question: \"8. DNA copying ke baad reproducing cell mein kya banta hai?\",\n    options: &#91;\n      \"A. DNA ki two copies\",\n      \"B. Sirf one protein\",\n      \"C. Three nuclei\",\n      \"D. No genetic material\"\n    ],\n    correct: 0,\n    explanation: \"Reproducing cell mein DNA ki two copies create hoti hain. In copies ko baad mein separating cells mein distribute kiya jata hai.\"\n  },\n\n  {\n    question: \"9. DNA copying ke process mein variations kyun appear ho sakti hain?\",\n    options: &#91;\n      \"A. DNA copying always perfectly identical nahi hoti\",\n      \"B. Food ka colour change hone ke karan\",\n      \"C. Respiration ke karan\",\n      \"D. Water loss ke karan\"\n    ],\n    correct: 0,\n    explanation: \"DNA copying generally accurate hoti hai, lekin small errors\/changes ho sakte hain. In changes ki wajah se offspring mein variations develop ho sakti hain.\"\n  },\n\n  {\n    question: \"10. Variation species ke liye beneficial kyun ho sakti hai?\",\n    options: &#91;\n      \"A. Ye species ko changing environmental conditions mein survive karne mein help kar sakti hai\",\n      \"B. Ye har individual ko stronger banati hai\",\n      \"C. Ye reproduction ko completely stop karti hai\",\n      \"D. Ye DNA ko destroy kar deti hai\"\n    ],\n    correct: 0,\n    explanation: \"Variation har individual ke liye necessarily beneficial nahi hoti, lekin changing environment mein kuch variations species ke survival ke chances increase kar sakti 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  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  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      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\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      &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\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\">ch3 part 2<\/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 How Do Organisms Reproduce? \u2013 Practice Quiz&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      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 { text-align: center; color: #1e3c72; }\n    .question { font-weight: bold; margin: 10px 0; }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover { background: #f0f0f0; }\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 { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 { text-align: center; }\n\n    ol { padding-left: 20px; }\n\n    #userName {\n      padding: 10px;\n      width: 65%;\n      max-width: 300px;\n      border: 1px solid #ccc;\n      border-radius: 6px;\n    }\n  &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n  &lt;div class=\"quiz-container\">\n\n    &lt;h2>\ud83e\udde0 How Do Organisms Reproduce? \u2013 Practice Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n\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    question: \"1. Unicellular organisms mein cell division ya fission ka result kya hota hai?\",\n    options: &#91;\n      \"A. Tissue formation\",\n      \"B. New individuals ka creation\",\n      \"C. Sirf growth\",\n      \"D. Organ formation\"\n    ],\n    correct: 1,\n    explanation: \"Unicellular organisms mein &lt;b>cell division\/fission directly new individuals&lt;\/b> create kar sakta hai, kyunki ek single cell hi complete organism hota hai.\"\n  },\n\n  {\n    question: \"2. Amoeba mein binary fission kis tarah ho sakti hai?\",\n    options: &#91;\n      \"A. Sirf fixed direction mein\",\n      \"B. Sirf vertical direction mein\",\n      \"C. Kisi bhi plane mein\",\n      \"D. Sirf horizontal direction mein\"\n    ],\n    correct: 2,\n    explanation: \"Amoeba ka body organisation simple hota hai, isliye usmein cell division &lt;b>kisi bhi plane&lt;\/b> mein ho sakti hai.\"\n  },\n\n  {\n    question: \"3. Leishmania mein binary fission kis tarah hoti hai?\",\n    options: &#91;\n      \"A. Randomly kisi bhi plane mein\",\n      \"B. Definite orientation mein\",\n      \"C. Multiple daughter cells ke form mein\",\n      \"D. Budding ke through\"\n    ],\n    correct: 1,\n    explanation: \"Leishmania mein ek end par &lt;b>whip-like structure&lt;\/b> hota hai. Is structure ke relation mein binary fission &lt;b>definite orientation&lt;\/b> mein hoti hai.\"\n  },\n\n  {\n    question: \"4. Plasmodium mein reproduction kaunsa type show karta hai?\",\n    options: &#91;\n      \"A. Binary fission\",\n      \"B. Fragmentation\",\n      \"C. Multiple fission\",\n      \"D. Budding\"\n    ],\n    correct: 2,\n    explanation: \"&lt;b>Plasmodium&lt;\/b> ek single-celled organism hai jo ek saath &lt;b>many daughter cells&lt;\/b> mein divide hota hai. Is process ko multiple fission kehte hain.\"\n  },\n\n  {\n    question: \"5. Yeast mein new individual mainly kis process se develop hota hai?\",\n    options: &#91;\n      \"A. Fragmentation\",\n      \"B. Budding\",\n      \"C. Regeneration\",\n      \"D. Multiple fission\"\n    ],\n    correct: 1,\n    explanation: \"Yeast apne body par ek &lt;b>small bud&lt;\/b> develop karta hai. Ye bud grow karta hai aur eventually parent se separate hokar new individual ban sakta hai.\"\n  },\n\n  {\n    question: \"6. Spirogyra mein reproduction ka simple method kaunsa hai?\",\n    options: &#91;\n      \"A. Fragmentation\",\n      \"B. Budding\",\n      \"C. Multiple fission\",\n      \"D. Binary fission\"\n    ],\n    correct: 0,\n    explanation: \"Mature &lt;b>Spirogyra&lt;\/b> smaller pieces mein break ho sakta hai. Ye fragments grow karke &lt;b>new individuals&lt;\/b> bana sakte hain.\"\n  },\n\n  {\n    question: \"7. Multicellular organisms mein simple cell-by-cell division generally practical kyun nahi hoti?\",\n    options: &#91;\n      \"A. Unmein specialised cells, tissues aur organs organised hote hain\",\n      \"B. Unmein DNA nahi hota\",\n      \"C. Unmein cells divide nahi karte\",\n      \"D. Unmein nucleus nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Multicellular organisms mein cells &lt;b>specialised functions&lt;\/b> perform karte hain aur tissues aur organs organised form mein hote hain. Isliye random cell-by-cell division practical nahi hoti.\"\n  },\n\n  {\n    question: \"8. Hydra aur Planaria mein body ke pieces se complete organism banne ki ability ko kya kehte hain?\",\n    options: &#91;\n      \"A. Fragmentation\",\n      \"B. Regeneration\",\n      \"C. Budding\",\n      \"D. Binary fission\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Hydra aur Planaria&lt;\/b> ke body parts appropriate conditions mein grow karke complete organisms bana sakte hain. Is ability ko &lt;b>regeneration&lt;\/b> kehte hain.\"\n  },\n\n  {\n    question: \"9. Regeneration ko reproduction ke exactly same kyun nahi mana jata?\",\n    options: &#91;\n      \"A. Regeneration mein DNA nahi hota\",\n      \"B. Organisms normally cut hone par reproduce karne par depend nahi karte\",\n      \"C. Regeneration sirf plants mein hoti hai\",\n      \"D. Regeneration mein cells divide nahi karte\"\n    ],\n    correct: 1,\n    explanation: \"Regeneration mein body pieces se new organisms ban sakte hain, lekin most organisms &lt;b>normally being cut or broken up par reproduction ke liye depend nahi karte&lt;\/b>. Isliye regeneration aur reproduction exactly same nahi hain.\"\n  },\n\n  {\n    question: \"10. Hydra mein budding ke during bud kaise develop hota hai?\",\n    options: &#91;\n      \"A. Body ke random pieces se\",\n      \"B. Specific site par repeated cell division se\",\n      \"C. Sirf food accumulation se\",\n      \"D. Multiple fission se\"\n    ],\n    correct: 1,\n    explanation: \"Hydra mein ek &lt;b>specific site par repeated cell division&lt;\/b> ke result mein outgrowth ya &lt;b>bud&lt;\/b> develop hota hai. Bud grow karke mature hota hai aur parent body se detach hokar independent individual ban jata hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) 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\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\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 = 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\">ch3 part 3<\/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 in Organisms&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 {\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  &lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Reproduction in Organisms&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 mein plant ke kaunse parts se new plants develop ho sakte hain?\",\n    options: &#91;\n      \"A. Sirf flowers\",\n      \"B. Root, stem aur leaves\",\n      \"C. Sirf fruits\",\n      \"D. Sirf seeds\"\n    ],\n    correct: 1,\n    explanation: \"Vegetative propagation mein &lt;b>root, stem aur leaves&lt;\/b> jaise vegetative parts appropriate conditions mein new plants develop kar sakte hain.\"\n  },\n  {\n    question: \"2. Vegetative propagation ka use agriculture mein kin plants ko grow karne ke liye kiya jata hai?\",\n    options: &#91;\n      \"A. Sugarcane, rose aur grapes\",\n      \"B. Sirf wheat\",\n      \"C. Sirf rice\",\n      \"D. Sirf maize\"\n    ],\n    correct: 0,\n    explanation: \"&lt;b>Sugarcane, roses aur grapes&lt;\/b> jaise plants ko vegetative propagation ke methods, jaise &lt;b>layering aur grafting&lt;\/b>, se grow kiya ja sakta hai.\"\n  },\n  {\n    question: \"3. Vegetative propagation se produced plants seeds se produced plants ke comparison mein kya advantage rakhte hain?\",\n    options: &#91;\n      \"A. Flowers aur fruits earlier produce kar sakte hain\",\n      \"B. Unmein DNA nahi hota\",\n      \"C. Unhe water ki zarurat nahi hoti\",\n      \"D. Woh kabhi grow nahi karte\"\n    ],\n    correct: 0,\n    explanation: \"Vegetative propagation se raised plants &lt;b>seeds se produced plants ki comparison mein earlier flowers aur fruits&lt;\/b> de sakte hain.\"\n  },\n  {\n    question: \"4. Vegetative propagation kin plants ke liye especially useful hai jo seeds produce karne ki capacity lose kar chuke hain?\",\n    options: &#91;\n      \"A. Banana, orange, rose aur jasmine\",\n      \"B. Wheat, rice aur maize\",\n      \"C. Mango, wheat aur rice\",\n      \"D. Pea, gram aur bean\"\n    ],\n    correct: 0,\n    explanation: \"Kuch plants jaise &lt;b>banana, orange, rose aur jasmine&lt;\/b> ne seeds produce karne ki capacity lose kar di hai. Vegetative propagation in plants ko multiply karne mein useful hai.\"\n  },\n  {\n    question: \"5. Vegetative propagation se produced plants parent plant ke saath generally kaise hote hain?\",\n    options: &#91;\n      \"A. Genetically similar\",\n      \"B. Completely different\",\n      \"C. Hamesha weaker\",\n      \"D. Without DNA\"\n    ],\n    correct: 0,\n    explanation: \"Vegetative propagation mein new plants &lt;b>parent plant ke genetically similar&lt;\/b> hote hain. Isliye parent ke important characteristics generally maintain rehte hain.\"\n  },\n  {\n    question: \"6. Bryophyllum mein new plants kaise develop hote hain?\",\n    options: &#91;\n      \"A. Flowers ke andar se\",\n      \"B. Leaf margins ke notches mein produced buds se\",\n      \"C. Roots ke flowers se\",\n      \"D. Fruits ke seeds se only\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Bryophyllum ki leaf margins ke notches&lt;\/b> mein small buds develop hote hain. Ye buds soil par girkar grow karte hain aur new plants bana dete hain.\"\n  },\n  {\n    question: \"7. Bread mould Rhizopus mein spore-producing structures ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Hyphae\",\n      \"B. Sporangia\",\n      \"C. Roots\",\n      \"D. Buds\"\n    ],\n    correct: 1,\n    explanation: \"Rhizopus mein tiny &lt;b>blob-on-a-stick structures sporangia&lt;\/b> hote hain. In sporangia ke andar spores present hote hain.\"\n  },\n  {\n    question: \"8. Rhizopus ke spores ki thick walls ka main advantage kya hai?\",\n    options: &#91;\n      \"A. Spores ko protection provide karna\",\n      \"B. Photosynthesis karna\",\n      \"C. Food digest karna\",\n      \"D. Water ko absorb karna\"\n    ],\n    correct: 0,\n    explanation: \"Spores &lt;b>thick walls&lt;\/b> se covered hote hain, jo unhe unfavourable conditions mein protect karti hain. Moist surface milne par spores germinate karke new Rhizopus individuals bana sakte hain.\"\n  },\n  {\n    question: \"9. Binary fission aur multiple fission mein main difference kya hai?\",\n    options: &#91;\n      \"A. Binary fission mein two daughter cells, multiple fission mein many daughter cells banti hain\",\n      \"B. Binary fission sirf plants mein hoti hai\",\n      \"C. Multiple fission mein sirf one daughter cell banti hai\",\n      \"D. Dono mein always same number of cells banti hain\"\n    ],\n    correct: 0,\n    explanation: \"&lt;b>Binary fission&lt;\/b> mein ek organism divide hokar generally &lt;b>two daughter cells&lt;\/b> banata hai, jabki &lt;b>multiple fission&lt;\/b> mein ek saath &lt;b>many daughter cells&lt;\/b> produce hoti hain.\"\n  },\n  {\n    question: \"10. Spores ke through reproduction organism ke liye beneficial kyun ho sakta hai?\",\n    options: &#91;\n      \"A. Spores thick walls ke through protected hote hain\",\n      \"B. Spores mein DNA nahi hota\",\n      \"C. Spores water mein dissolve ho jate hain\",\n      \"D. Spores reproduction ko stop karte hain\"\n    ],\n    correct: 0,\n    explanation: \"Spores ki &lt;b>thick protective walls&lt;\/b> unhe unfavourable conditions se protect karti hain. Suitable moist conditions milne par ye spores grow karke new individuals bana sakte 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) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\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;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch3 part 4<\/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>Class 10 Science \u2013 Sexual Reproduction Quiz | 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\n  #userName {\n    padding: 10px;\n    width: 90%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n    margin-bottom: 10px;\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Class 10 Science Quiz \u2013 Sexual Reproduction&lt;\/h2>\n  &lt;p style=\"text-align:center;\">&lt;strong>APICAL CLASSES&lt;\/strong>&lt;\/p>\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  {\n    question: \"1. Sexual reproduction mein new generation create karne ke liye kya zaroori hota hai?\",\n    options: &#91;\n      \"A. Sirf male\",\n      \"B. Sirf female\",\n      \"C. Male aur female dono\",\n      \"D. Sirf ek parent\"\n    ],\n    correct: 2,\n    explanation: \"Sexual reproduction mein generally do individuals, ek male aur ek female, ke reproductive cells participate karte hain. Isse new generation create hoti hai.\"\n  },\n\n  {\n    question: \"2. DNA copying mechanism ke completely accurate na hone ka kya result hota hai?\",\n    options: &#91;\n      \"A. Variations\",\n      \"B. No reproduction\",\n      \"C. Cell death always\",\n      \"D. Same DNA in every organism\"\n    ],\n    correct: 0,\n    explanation: \"DNA copying mein small errors ho sakte hain. Ye errors variations create karte hain, jo population ke survival mein useful ho sakte hain.\"\n  },\n\n  {\n    question: \"3. Sexual reproduction ka main advantage kya hai?\",\n    options: &#91;\n      \"A. Sirf ek organism ki exact copy banana\",\n      \"B. Variations ke naye combinations create karna\",\n      \"C. DNA ko completely remove karna\",\n      \"D. Chromosomes ko double karna\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein do different individuals ke DNA combine hote hain. Isse variations ke naye combinations create hote hain.\"\n  },\n\n  {\n    question: \"4. Agar DNA copying mechanism bahut zyada inaccurate ho jaaye, to kya problem ho sakti hai?\",\n    options: &#91;\n      \"A. Har organism stronger ho jayega\",\n      \"B. DNA copies cellular apparatus ke saath properly work nahi kar payengi\",\n      \"C. Chromosome number automatically half ho jayega\",\n      \"D. Reproduction completely faster ho jayega\"\n    ],\n    correct: 1,\n    explanation: \"Agar DNA copying bahut inaccurate ho, to many DNA copies properly function nahi karengi aur cells\/organisms survive nahi kar paayenge.\"\n  },\n\n  {\n    question: \"5. Sexual reproduction mein DNA ki amount har generation mein double hone se bachane ke liye kaunsa process important hai?\",\n    options: &#91;\n      \"A. Binary fission\",\n      \"B. Budding\",\n      \"C. Meiosis\",\n      \"D. Fragmentation\"\n    ],\n    correct: 2,\n    explanation: \"Meiosis germ-cells mein chromosomes aur DNA ki amount ko half kar deta hai. Jab male aur female germ-cells combine hote hain, normal chromosome number re-establish ho jata hai.\"\n  },\n\n  {\n    question: \"6. Meiosis ke through banne wale germ-cells mein non-reproductive body cells ke comparison mein kya hota hai?\",\n    options: &#91;\n      \"A. Double chromosomes\",\n      \"B. Half chromosomes\",\n      \"C. No chromosomes\",\n      \"D. Same DNA amount always\"\n    ],\n    correct: 1,\n    explanation: \"Germ-cells mein half the number of chromosomes aur approximately half DNA content hota hai. Isse fertilisation ke baad chromosome number maintain rehta hai.\"\n  },\n\n  {\n    question: \"7. Male aur female gametes combine hone par kya form hota hai?\",\n    options: &#91;\n      \"A. Spore\",\n      \"B. Bud\",\n      \"C. Zygote\",\n      \"D. Fragment\"\n    ],\n    correct: 2,\n    explanation: \"Male aur female germ-cells\/gametes ke fusion se zygote banta hai. Zygote later divide hokar new organism develop karta hai.\"\n  },\n\n  {\n    question: \"8. Complex organisms mein female gamete generally kaisa hota hai?\",\n    options: &#91;\n      \"A. Small and motile\",\n      \"B. Large and contains food stores\",\n      \"C. Without DNA\",\n      \"D. Always smaller than male gamete\"\n    ],\n    correct: 1,\n    explanation: \"Complex organisms mein female gamete usually large hota hai aur usmein developing zygote ke liye food stores present hote hain.\"\n  },\n\n  {\n    question: \"9. Male gamete generally kaisa hota hai?\",\n    options: &#91;\n      \"A. Large and non-motile\",\n      \"B. Large with food stores\",\n      \"C. Smaller and likely to be motile\",\n      \"D. Without chromosomes\"\n    ],\n    correct: 2,\n    explanation: \"Male gamete generally smaller aur motile hota hai. Iski motility usse female gamete tak pahunchne mein help karti hai.\"\n  },\n\n  {\n    question: \"10. Sexual reproduction mein variations ke naye combinations kaise create hote hain?\",\n    options: &#91;\n      \"A. Same individual ke cells ko repeatedly copy karke\",\n      \"B. Do different individuals ke DNA ko combine karke\",\n      \"C. DNA ko destroy karke\",\n      \"D. Chromosomes ko completely remove karke\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein two different individuals ke DNA combine hote hain. Isse previously existing variations ke new combinations bante hain, jo offspring mein variation increase karte hain.\"\n  }\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    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\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 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\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        &lt;strong>Explanation:&lt;\/strong> ${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    &lt;p>${score >= 8 ? \"Excellent work! \ud83c\udf89\" : score >= 5 ? \"Good effort! Keep practising.\" : \"Keep learning and try again!\"}&lt;\/p>\n  `;\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) => 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\">ch3 part 5<\/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 Sexual Reproduction in Flowering Plants \u2013 Practice Quiz&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      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 { text-align: center; color: #1e3c72; }\n    .question { font-weight: bold; margin: 10px 0; }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover { background: #f0f0f0; }\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 { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 { text-align: center; }\n\n    ol { padding-left: 20px; }\n\n    #userName {\n      padding: 10px;\n      width: 65%;\n      max-width: 300px;\n      border: 1px solid #ccc;\n      border-radius: 6px;\n    }\n  &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n  &lt;div class=\"quiz-container\">\n\n    &lt;h2>\ud83e\udde0 Sexual Reproduction in Flowering Plants \u2013 Practice Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n\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    question: \"1. Flowering plants mein reproductive parts kahan present hote hain?\",\n    options: &#91;\n      \"A. Root mein\",\n      \"B. Stem mein\",\n      \"C. Flower mein\",\n      \"D. Leaf mein\"\n    ],\n    correct: 2,\n    explanation: \"Angiosperms \u092f\u093e\u0928\u0940 flowering plants mein reproductive parts &lt;b>flower&lt;\/b> mein present hote hain. &lt;b>Stamen aur pistil&lt;\/b> flower ke reproductive parts hain.\"\n  },\n\n  {\n    question: \"2. Stamen flower ka kaunsa reproductive part hai?\",\n    options: &#91;\n      \"A. Female reproductive part\",\n      \"B. Male reproductive part\",\n      \"C. Non-reproductive part\",\n      \"D. Protective part only\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Stamen male reproductive part&lt;\/b> hai. Ye &lt;b>pollen grains&lt;\/b> produce karta hai, jo generally yellowish colour ke hote hain.\"\n  },\n\n  {\n    question: \"3. Pistil ke teen main parts kaun-se hain?\",\n    options: &#91;\n      \"A. Ovary, style aur stigma\",\n      \"B. Anther, filament aur ovary\",\n      \"C. Petal, sepal aur stigma\",\n      \"D. Ovule, pollen aur style\"\n    ],\n    correct: 0,\n    explanation: \"Pistil female reproductive part hai. Iske three parts hain: &lt;b>ovary (bottom), style (middle) aur stigma (terminal part)&lt;\/b>.\"\n  },\n\n  {\n    question: \"4. Ovary ke andar kya present hota hai?\",\n    options: &#91;\n      \"A. Pollen grains\",\n      \"B. Petals\",\n      \"C. Ovules\",\n      \"D. Stamens\"\n    ],\n    correct: 2,\n    explanation: \"&lt;b>Ovary ke andar ovules&lt;\/b> present hote hain aur each ovule mein &lt;b>egg cell&lt;\/b> hota hai. Male germ-cell eventually female gamete ke saath fuse karta hai.\"\n  },\n\n  {\n    question: \"5. Agar pollen same flower ke stamen se usi flower ke stigma tak transfer ho, to ise kya kehte hain?\",\n    options: &#91;\n      \"A. Cross-pollination\",\n      \"B. Fertilisation\",\n      \"C. Germination\",\n      \"D. Self-pollination\"\n    ],\n    correct: 3,\n    explanation: \"Jab pollen ka transfer &lt;b>same flower&lt;\/b> mein hota hai, ise &lt;b>self-pollination&lt;\/b> kehte hain.\"\n  },\n\n  {\n    question: \"6. Pollen ek flower se doosre flower tak transfer hone ko kya kehte hain?\",\n    options: &#91;\n      \"A. Self-pollination\",\n      \"B. Cross-pollination\",\n      \"C. Germination\",\n      \"D. Fertilisation\"\n    ],\n    correct: 1,\n    explanation: \"Jab pollen &lt;b>one flower se another flower&lt;\/b> tak transfer hota hai, ise &lt;b>cross-pollination&lt;\/b> kehte hain. Is transfer mein wind, water ya animals help kar sakte hain.\"\n  },\n\n  {\n    question: \"7. Pollen grain stigma par land karne ke baad ovary tak kaise pahunchta hai?\",\n    options: &#91;\n      \"A. Seed ke through\",\n      \"B. Petal ke through\",\n      \"C. Pollen tube ke through\",\n      \"D. Root ke through\"\n    ],\n    correct: 2,\n    explanation: \"Pollen grain se ek &lt;b>pollen tube&lt;\/b> grow karti hai. Ye tube &lt;b>style se travel karke ovary&lt;\/b> tak pahunchti hai.\"\n  },\n\n  {\n    question: \"8. Fertilisation ke baad zygote ka kya hota hai?\",\n    options: &#91;\n      \"A. Zygote divide hokar embryo banata hai\",\n      \"B. Zygote pollen grain banata hai\",\n      \"C. Zygote stigma banata hai\",\n      \"D. Zygote flower ko destroy karta hai\"\n    ],\n    correct: 0,\n    explanation: \"Fertilisation ke baad &lt;b>zygote repeatedly divide&lt;\/b> karta hai aur &lt;b>ovule ke andar embryo&lt;\/b> develop hota hai.\"\n  },\n\n  {\n    question: \"9. Fertilisation ke baad ovule aur ovary respectively kis mein develop hote hain?\",\n    options: &#91;\n      \"A. Ovule \u2192 fruit, Ovary \u2192 seed\",\n      \"B. Ovule \u2192 seed, Ovary \u2192 fruit\",\n      \"C. Ovule \u2192 flower, Ovary \u2192 leaf\",\n      \"D. Ovule \u2192 root, Ovary \u2192 stem\"\n    ],\n    correct: 1,\n    explanation: \"Fertilisation ke baad &lt;b>ovule gradually seed&lt;\/b> mein convert hota hai, while &lt;b>ovary grows and ripens into a fruit&lt;\/b>.\"\n  },\n\n  {\n    question: \"10. Seed ke andar future plant kis form mein present hota hai?\",\n    options: &#91;\n      \"A. Pollen grain\",\n      \"B. Embryo\",\n      \"C. Stigma\",\n      \"D. Ovary\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Seed ke andar embryo&lt;\/b> present hota hai. Appropriate conditions milne par embryo develop hokar &lt;b>seedling&lt;\/b> banata hai. Is process ko &lt;b>germination&lt;\/b> kehte 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) 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\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\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 = 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\">ch3 part 6<\/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 Human Reproductive System&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 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover { background: #f0f0f0; }\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 { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\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 Human Reproductive System&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. Male reproductive system mein sperms ka formation kahan hota hai?\",\n    options: &#91;\n      \"A. Prostate gland mein\",\n      \"B. Testes mein\",\n      \"C. Urethra mein\",\n      \"D. Seminal vesicles mein\"\n    ],\n    correct: 1,\n    explanation: \"Male germ-cells yani sperms testes mein form hote hain. Testes scrotum mein located hote hain.\"\n  },\n\n  {\n    question: \"2. Testes ko abdominal cavity ke bahar scrotum mein kyun rakha gaya hai?\",\n    options: &#91;\n      \"A. Urine store karne ke liye\",\n      \"B. Hormones ko remove karne ke liye\",\n      \"C. Sperm formation ke liye lower temperature maintain karne ke liye\",\n      \"D. Blood circulation rokne ke liye\"\n    ],\n    correct: 2,\n    explanation: \"Sperm formation ko normal body temperature se lower temperature ki requirement hoti hai. Isliye testes scrotum mein abdominal cavity ke bahar located hote hain.\"\n  },\n\n  {\n    question: \"3. Testes se secret hone wala kaunsa hormone boys mein puberty ke changes mein important role play karta hai?\",\n    options: &#91;\n      \"A. Testosterone\",\n      \"B. Insulin\",\n      \"C. Thyroxine\",\n      \"D. Estrogen\"\n    ],\n    correct: 0,\n    explanation: \"Testosterone sperm formation ko regulate karta hai aur puberty ke time boys mein appearance aur body mein changes bring karta hai.\"\n  },\n\n  {\n    question: \"4. Sperms ko testes se fertilisation ke site ki taraf kaun carry karta hai?\",\n    options: &#91;\n      \"A. Ureter\",\n      \"B. Vas deferens\",\n      \"C. Oviduct\",\n      \"D. Cervix\"\n    ],\n    correct: 1,\n    explanation: \"Sperms vas deferens ke through travel karte hain. Ye tube sperms ko reproductive system ke aage wale parts tak deliver karti hai.\"\n  },\n\n  {\n    question: \"5. Male reproductive system mein urethra ka kya role hai?\",\n    options: &#91;\n      \"A. Sirf sperms ko carry karna\",\n      \"B. Sirf urine ko carry karna\",\n      \"C. Sperms aur urine dono ke liye common passage\",\n      \"D. Egg ko carry karna\"\n    ],\n    correct: 2,\n    explanation: \"Urethra male body mein sperms aur urine dono ke passage ke liye common tube hai.\"\n  },\n\n  {\n    question: \"6. Prostate gland aur seminal vesicles ki secretions ka kya importance hai?\",\n    options: &#91;\n      \"A. Sperms ko destroy karti hain\",\n      \"B. Sperms ko transport mein help karti hain aur nutrition provide karti hain\",\n      \"C. Eggs produce karti hain\",\n      \"D. Urine ko store karti hain\"\n    ],\n    correct: 1,\n    explanation: \"In glands ki secretions sperms ko ek fluid medium mein rakhti hain, jisse sperm transport easier hota hai aur unhe nutrition bhi milti hai.\"\n  },\n\n  {\n    question: \"7. Female germ-cells ya eggs kahan produce hote hain?\",\n    options: &#91;\n      \"A. Uterus\",\n      \"B. Vagina\",\n      \"C. Ovaries\",\n      \"D. Cervix\"\n    ],\n    correct: 2,\n    explanation: \"Ovaries female germ-cells (eggs) produce karti hain. Ovaries kuch hormones bhi produce karti hain.\"\n  },\n\n  {\n    question: \"8. Puberty ke baad normally kitna egg mature hokar release hota hai?\",\n    options: &#91;\n      \"A. Har week one egg\",\n      \"B. Har day one egg\",\n      \"C. Har month one egg\",\n      \"D. Har year one egg\"\n    ],\n    correct: 2,\n    explanation: \"Puberty ke baad generally one egg every month mature hota hai aur one of the ovaries se release hota hai.\"\n  },\n\n  {\n    question: \"9. Fertilised egg (zygote) uterus ki lining mein implant hone ke baad kya develop karta hai?\",\n    options: &#91;\n      \"A. Pollen grain\",\n      \"B. Embryo, jo aage foetus develop karta hai\",\n      \"C. Sperm\",\n      \"D. Ovule\"\n    ],\n    correct: 1,\n    explanation: \"Fertilised egg repeatedly divide karke embryo banata hai. Embryo uterus ki lining mein implant hota hai aur gradually organs develop karke foetus ban jata hai.\"\n  },\n\n  {\n    question: \"10. Placenta ka main function kya hai?\",\n    options: &#91;\n      \"A. Sperm produce karna\",\n      \"B. Egg ko destroy karna\",\n      \"C. Mother aur developing embryo ke beech nutrients aur oxygen ka exchange karna\",\n      \"D. Urine store karna\"\n    ],\n    correct: 2,\n    explanation: \"Placenta uterus ki wall mein embedded special tissue hai. Iske through mother ke blood se glucose aur oxygen embryo tak pahunchte hain, aur embryo ke waste substances mother ke blood mein transfer hote 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) 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}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n\n      ${q.options.map((opt, i) => `\n\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n\n      `).join('')}\n\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n\n  });\n\n  showResults();\n\n  saveScore(userName, score);\n  loadScoreboard();\n\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#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\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  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n\n}\n\nfunction saveScore(name, score) {\n\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}\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\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\">ch3 part 7<\/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>Class 10 Science \u2013 Menstruation and Contraception Quiz | 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    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  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n\n  #userName {\n    padding: 10px;\n    width: 90%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n    margin-bottom: 10px;\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Class 10 Science Quiz \u2013 Menstruation and Contraceptive Methods&lt;\/h2>\n  &lt;p style=\"text-align:center;\">&lt;strong>APICAL CLASSES&lt;\/strong>&lt;\/p>\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  {\n    question: \"1. Agar egg fertilise nahi hota, to woh approximately kitne time tak survive karta hai?\",\n    options: &#91;\n      \"A. 1 week\",\n      \"B. 1 day\",\n      \"C. 1 month\",\n      \"D. 10 days\"\n    ],\n    correct: 1,\n    explanation: \"Agar egg fertilise nahi hota, to woh approximately one day tak live karta hai. Iske baad uterus ki prepared lining ki bhi zaroorat nahi rehti.\"\n  },\n\n  {\n    question: \"2. Menstruation kya hota hai?\",\n    options: &#91;\n      \"A. Egg ka formation\",\n      \"B. Sperm ka formation\",\n      \"C. Uterus ki lining ka blood aur mucus ke saath vagina se bahar nikalna\",\n      \"D. Fertilisation ka process\"\n    ],\n    correct: 2,\n    explanation: \"Agar fertilisation nahi hota, to uterus ki thick lining slowly break down hokar blood aur mucus ke form mein vagina se bahar nikalti hai. Is process ko menstruation kehte hain.\"\n  },\n\n  {\n    question: \"3. Menstrual cycle approximately kitne interval par hota hai?\",\n    options: &#91;\n      \"A. Roughly every month\",\n      \"B. Every week\",\n      \"C. Every six months\",\n      \"D. Once in a lifetime\"\n    ],\n    correct: 0,\n    explanation: \"Ovary generally one egg every month release karti hai aur uterus bhi every month fertilised egg receive karne ke liye prepare hota hai. Isliye menstrual cycle roughly monthly hota hai.\"\n  },\n\n  {\n    question: \"4. Menstruation normally approximately kitne din tak last kar sakta hai?\",\n    options: &#91;\n      \"A. 1 day only\",\n      \"B. 2\u20138 days\",\n      \"C. 15\u201320 days\",\n      \"D. 30 days\"\n    ],\n    correct: 1,\n    explanation: \"NCERT ke according menstruation usually about 2 to 8 days tak last karta hai.\"\n  },\n\n  {\n    question: \"5. Sexual maturation ka kya meaning hai?\",\n    options: &#91;\n      \"A. Body aur mind immediately child-rearing ke liye ready ho jaate hain\",\n      \"B. Sirf height increase hona\",\n      \"C. Sexual development gradually occur hona\",\n      \"D. Fertilisation immediately start hona\"\n    ],\n    correct: 2,\n    explanation: \"Sexual maturation gradual process hai aur ye general body growth ke saath hota hai. Sexual maturity ka matlab automatically ye nahi hai ki body aur mind pregnancy ya child-rearing ke liye ready hain.\"\n  },\n\n  {\n    question: \"6. Condom ka use sexual act ke during mainly kis purpose ke liye kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Sperm production increase karne ke liye\",\n      \"B. Many sexually transmitted infections ke transmission ko reduce karne aur pregnancy risk ko reduce karne mein help ke liye\",\n      \"C. Egg production increase karne ke liye\",\n      \"D. Menstruation stop karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Condom ek mechanical barrier provide karta hai. Ye sperm ko egg tak pahunchne se rokne mein help karta hai aur many sexually transmitted infections ke transmission ko bhi reduce kar sakta hai.\"\n  },\n\n  {\n    question: \"7. Oral contraceptive pills generally pregnancy ko prevent karne mein kaise help karti hain?\",\n    options: &#91;\n      \"A. Hormonal balance ko change karke egg release ko prevent karke\",\n      \"B. Sperm ko produce karke\",\n      \"C. Uterus ko remove karke\",\n      \"D. Egg ko fertilise karke\"\n    ],\n    correct: 0,\n    explanation: \"Oral contraceptive pills hormonal balance change karti hain, jisse eggs release nahi hote aur fertilisation prevent hota hai. Inke side effects bhi ho sakte hain.\"\n  },\n\n  {\n    question: \"8. Copper-T ya loop kahan place kiya jata hai?\",\n    options: &#91;\n      \"A. Testes mein\",\n      \"B. Uterus mein\",\n      \"C. Ovary ke andar\",\n      \"D. Urinary bladder mein\"\n    ],\n    correct: 1,\n    explanation: \"Copper-T aur loop uterus mein place kiye jaate hain to prevent pregnancy. Kabhi-kabhi uterus mein irritation ki wajah se side effects ho sakte hain.\"\n  },\n\n  {\n    question: \"9. Male mein vas deferens ko block karne ka kya effect hota hai?\",\n    options: &#91;\n      \"A. Egg production stop ho jata hai\",\n      \"B. Sperm transfer prevent hota hai\",\n      \"C. Ovary remove ho jati hai\",\n      \"D. Menstruation immediately stop hoti hai\"\n    ],\n    correct: 1,\n    explanation: \"Agar vas deferens block kar diya jaye, to sperms ka transfer prevent hota hai. Is wajah se fertilisation nahi hota.\"\n  },\n\n  {\n    question: \"10. Female foeticide ke context mein prenatal sex determination ke baare mein NCERT kya batata hai?\",\n    options: &#91;\n      \"A. Ye compulsory hai\",\n      \"B. Ye freely allowed hai\",\n      \"C. Ye law ke through prohibited hai\",\n      \"D. Ye sirf males ke liye allowed hai\"\n    ],\n    correct: 2,\n    explanation: \"Prenatal sex determination prohibited by law hai. Female foeticide ke reckless use se child sex ratio decline ho sakta hai, jo healthy society ke liye concern hai.\"\n  }\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    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\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 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\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        &lt;strong>Explanation:&lt;\/strong> ${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    &lt;p>${score >= 8 ? \"Excellent work! \ud83c\udf89\" : score >= 5 ? \"Good effort! Keep practising.\" : \"Keep learning and try again!\"}&lt;\/p>\n  `;\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) => 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\">ch3 part 8<\/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 Reproduction in Organisms \u2013 Practice Quiz&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Reproduction in Organisms \u2013 Practice Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n      &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. Pollination aur fertilisation mein main difference kya hai?\",\n    options: &#91;\n      \"A. Pollination mein gametes fuse hote hain\",\n      \"B. Pollination mein pollen anther se stigma tak transfer hota hai, while fertilisation mein male aur female gametes fuse hote hain\",\n      \"C. Dono exactly same process hain\",\n      \"D. Fertilisation mein pollen stigma tak transfer hota hai\"\n    ],\n    correct: 1,\n    explanation: \"&lt;strong>Pollination&lt;\/strong> mein pollen grains &lt;strong>anther se stigma&lt;\/strong> tak transfer hote hain. &lt;strong>Fertilisation&lt;\/strong> mein male aur female gametes fuse karke zygote banate hain.\"\n  },\n  {\n    question: \"2. Seminal vesicles aur prostate gland ka main role kya hai?\",\n    options: &#91;\n      \"A. Eggs produce karna\",\n      \"B. Sperms ko nutrition dena aur unke transport mein help karna\",\n      \"C. Urine ko store karna\",\n      \"D. Ovulation karna\"\n    ],\n    correct: 1,\n    explanation: \"Seminal vesicles aur prostate gland ki secretions sperms ko &lt;strong>fluid medium&lt;\/strong> provide karti hain. Ye fluid sperm ke &lt;strong>transport ko easier&lt;\/strong> banata hai aur nutrition provide karta hai.\"\n  },\n  {\n    question: \"3. Girls mein puberty ke time kaunsa change commonly dekha jata hai?\",\n    options: &#91;\n      \"A. Breast size increase hona\",\n      \"B. Testes ka development\",\n      \"C. Facial hair ka major growth\",\n      \"D. Sperm production\"\n    ],\n    correct: 0,\n    explanation: \"Puberty ke time girls mein &lt;strong>breast development&lt;\/strong>, body shape mein changes aur reproductive organs ki maturation jaise changes hote hain. Ye sexual maturation ke signs hain.\"\n  },\n  {\n    question: \"4. Mother ke body ke andar developing embryo ko nourishment kaise milta hai?\",\n    options: &#91;\n      \"A. Directly food khane se\",\n      \"B. Placenta ke through mother ke blood se\",\n      \"C. Lungs se directly\",\n      \"D. Vagina se\"\n    ],\n    correct: 1,\n    explanation: \"&lt;strong>Placenta&lt;\/strong> ek special tissue hai jo uterus ki wall mein embedded hota hai. Iske through mother ke blood se &lt;strong>glucose aur oxygen embryo&lt;\/strong> tak pahunchte hain.\"\n  },\n  {\n    question: \"5. Agar ek woman Copper-T use kar rahi hai, to kya Copper-T sexually transmitted diseases se protection deta hai?\",\n    options: &#91;\n      \"A. Haan, completely\",\n      \"B. Haan, only viral diseases se\",\n      \"C. Nahi, Copper-T pregnancy prevent karne ke liye hai, STDs se protection nahi deta\",\n      \"D. Haan, only bacterial diseases se\"\n    ],\n    correct: 2,\n    explanation: \"&lt;strong>Copper-T ek contraceptive device&lt;\/strong> hai jo pregnancy prevent karne mein help karta hai. Ye sexually transmitted infections\/diseases se protection provide nahi karta.\"\n  },\n  {\n    question: \"6. Reproduction ko individual organism ki life ke liye non-essential kyun kaha jata hai?\",\n    options: &#91;\n      \"A. Reproduction organism ki individual life maintain karne ke liye essential nahi hai\",\n      \"B. Reproduction se energy kabhi use nahi hoti\",\n      \"C. Reproduction sirf plants mein hota hai\",\n      \"D. Reproduction DNA se related nahi hai\"\n    ],\n    correct: 0,\n    explanation: \"Reproduction individual organism ko &lt;strong>alive rakhne ke liye necessary nahi&lt;\/strong> hai. Lekin reproduction species ki continuity aur new generations ke creation ke liye important hai.\"\n  },\n  {\n    question: \"7. Asexual reproduction ka correct example kaunsa hai?\",\n    options: &#91;\n      \"A. Humans mein sexual reproduction\",\n      \"B. Hydra mein budding\",\n      \"C. Humans mein fertilisation\",\n      \"D. Flowering plants mein cross-pollination\"\n    ],\n    correct: 1,\n    explanation: \"&lt;strong>Hydra budding&lt;\/strong> ke through asexual reproduction karta hai. Ismein ek single parent organism se new individual develop hota hai.\"\n  },\n  {\n    question: \"8. Sexual reproduction ka important advantage kya hai?\",\n    options: &#91;\n      \"A. Variations ko completely remove karna\",\n      \"B. Greater variation generate karna\",\n      \"C. Sirf parent ki exact copy banana\",\n      \"D. DNA copying ko stop karna\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein &lt;strong>do individuals ke DNA combine&lt;\/strong> hote hain. Isse variations ke new combinations create hote hain, jo species ke survival ke liye useful ho sakte hain.\"\n  },\n  {\n    question: \"9. Human male reproductive system mein sperms kahan produce hote hain?\",\n    options: &#91;\n      \"A. Urethra\",\n      \"B. Prostate gland\",\n      \"C. Testes\",\n      \"D. Seminal vesicles\"\n    ],\n    correct: 2,\n    explanation: \"&lt;strong>Testes sperms produce karte hain&lt;\/strong>. Testes testosterone hormone bhi produce karte hain, jo male sexual development aur sperm formation ko regulate karta hai.\"\n  },\n  {\n    question: \"10. Humans mein fertilisation generally kahan hota hai?\",\n    options: &#91;\n      \"A. Uterus\",\n      \"B. Vagina\",\n      \"C. Fallopian tube\",\n      \"D. Ovary\"\n    ],\n    correct: 2,\n    explanation: \"Human reproduction mein sperm female reproductive tract mein enter karta hai aur &lt;strong>fertilisation fallopian tube&lt;\/strong> mein hota hai. Fertilised egg yani zygote subsequently uterus ki taraf move karta 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\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}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\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;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n  ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch3 part 9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;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 { text-align: center; color: #1e3c72; }\n\n  .question { font-weight: bold; margin: 10px 0; }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover { background: #f0f0f0; }\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 { text-align: center; margin-top: 15px; }\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 { background-color: #1e3c72; }\n\n  #userName {\n    padding: 10px;\n    width: 60%;\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 { text-align: center; }\n\n  ol { padding-left: 20px; }\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&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. Asexual reproduction mein budding kis organism mein hoti hai?\",\n    options: &#91;\n      \"A. Amoeba\",\n      \"B. Yeast\",\n      \"C. Plasmodium\",\n      \"D. Leishmania\"\n    ],\n    correct: 1,\n    explanation: \"Yeast mein budding ke through asexual reproduction hota hai. Parent organism par ek small bud develop hota hai, jo grow hokar eventually separate ho jata hai.\"\n  },\n\n  {\n    question: \"2. Inmein se kaunsa human female reproductive system ka part nahi hai?\",\n    options: &#91;\n      \"A. Ovary\",\n      \"B. Uterus\",\n      \"C. Vas deferens\",\n      \"D. Fallopian tube\"\n    ],\n    correct: 2,\n    explanation: \"Vas deferens male reproductive system ka part hai. Female reproductive system mein ovaries, fallopian tubes, uterus aur vagina present hote hain.\"\n  },\n\n  {\n    question: \"3. Flower ke anther mein kya present hota hai?\",\n    options: &#91;\n      \"A. Sepals\",\n      \"B. Ovules\",\n      \"C. Pistil\",\n      \"D. Pollen grains\"\n    ],\n    correct: 3,\n    explanation: \"Anther stamen ka part hai aur ismein pollen grains produce hote hain. Pollen grains male germ-cells ko carry karte hain.\"\n  },\n\n  {\n    question: \"4. Sexual reproduction ka asexual reproduction par ek important advantage kya hai?\",\n    options: &#91;\n      \"A. Ismein koi variation nahi hoti\",\n      \"B. Ismein greater variation generate ho sakti hai\",\n      \"C. Ismein sirf ek cell hota hai\",\n      \"D. Ismein DNA copying nahi hoti\"\n    ],\n    correct: 1,\n    explanation: \"Sexual reproduction mein do individuals ke DNA combine hote hain. Isse variations ke naye combinations bante hain, jo changing conditions mein species ke survival mein useful ho sakte hain.\"\n  },\n\n  {\n    question: \"5. Human beings mein testes ke main functions kya hain?\",\n    options: &#91;\n      \"A. Eggs produce karna aur menstruation control karna\",\n      \"B. Sperms produce karna aur testosterone hormone secrete karna\",\n      \"C. Urine store karna aur sperm destroy karna\",\n      \"D. Ovules produce karna aur fertilisation karna\"\n    ],\n    correct: 1,\n    explanation: \"Testes sperms produce karte hain aur testosterone hormone secrete karte hain. Testosterone sperm formation ko regulate karta hai aur puberty ke changes mein bhi role play karta hai.\"\n  },\n\n  {\n    question: \"6. Menstruation kyun hota hai?\",\n    options: &#91;\n      \"A. Kyunki sperm uterus mein grow karta hai\",\n      \"B. Kyunki fertilisation ke baad embryo develop hota hai\",\n      \"C. Kyunki fertilisation na hone par uterus ki unnecessary lining break down hokar bahar nikalti hai\",\n      \"D. Kyunki ovary permanently stop ho jati hai\"\n    ],\n    correct: 2,\n    explanation: \"Uterus har month fertilised egg receive karne ke liye thick lining prepare karta hai. Agar fertilisation nahi hota, to ye lining required nahi hoti aur blood aur mucus ke saath vagina se bahar nikalti hai. Is process ko menstruation kehte hain.\"\n  },\n\n  {\n    question: \"7. Inmein se kaunsa contraception ka method hai?\",\n    options: &#91;\n      \"A. Condoms\",\n      \"B. Pollination\",\n      \"C. Germination\",\n      \"D. Budding\"\n    ],\n    correct: 0,\n    explanation: \"Condoms, oral pills, Copper-T aur surgical methods contraception ke different methods hain. Inka purpose pregnancy ko prevent karna hota hai.\"\n  },\n\n  {\n    question: \"8. Unicellular aur multicellular organisms mein reproduction ka mode kis tarah different ho sakta hai?\",\n    options: &#91;\n      \"A. Unicellular organisms mein simple cell division common hai, while multicellular organisms mein specialised reproductive processes ho sakte hain\",\n      \"B. Dono mein exactly same process hota hai\",\n      \"C. Multicellular organisms reproduce nahi karte\",\n      \"D. Unicellular organisms mein DNA present nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Unicellular organisms mein ek single cell hi complete organism hota hai, isliye fission jaise simple cell divisions se reproduction ho sakta hai. Multicellular organisms mein specialised cells, tissues aur organs hote hain, isliye reproduction more complex hota hai.\"\n  },\n\n  {\n    question: \"9. Reproduction species ki population mein stability maintain karne mein kaise help karta hai?\",\n    options: &#91;\n      \"A. New individuals create karke population ki continuity maintain karta hai\",\n      \"B. Population ko completely stop karta hai\",\n      \"C. DNA ko destroy karta hai\",\n      \"D. Sirf old organisms ko remove karta hai\"\n    ],\n    correct: 0,\n    explanation: \"Reproduction se new individuals continuously produce hote hain. Isse species ki population continue rehti hai aur generations replace hoti rehti hain.\"\n  },\n\n  {\n    question: \"10. Contraceptive methods adopt karne ka main reason kya ho sakta hai?\",\n    options: &#91;\n      \"A. Unwanted pregnancy ko prevent karna\",\n      \"B. Pollination increase karna\",\n      \"C. Sperm production always increase karna\",\n      \"D. Menstruation permanently stop karna\"\n    ],\n    correct: 0,\n    explanation: \"Contraceptive methods ka use pregnancy prevent ya plan karne ke liye kiya ja sakta hai. Different methods different ways se pregnancy ko prevent karte 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\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n\n      ${q.options.map((opt, i) => `\n\n        &lt;label>\n          &lt;input\n            type=\"radio\"\n            name=\"option\"\n            value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}\n            onchange=\"saveAnswer()\"\n          >\n          ${opt}\n        &lt;\/label>\n\n      `).join('')}\n\n    &lt;\/div>\n\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    if (userAnswers&#91;index] === q.correct) {\n      score++;\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\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> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n\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\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch3 part 1<\/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-5441","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5441","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=5441"}],"version-history":[{"count":2,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5441\/revisions"}],"predecessor-version":[{"id":5446,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5441\/revisions\/5446"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}