{"id":5443,"date":"2026-11-17T04:16:12","date_gmt":"2026-11-17T04:16:12","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5443"},"modified":"2026-11-17T04:37:29","modified_gmt":"2026-11-17T04:37:29","slug":"class-10-science-chapter-4","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5443","title":{"rendered":"class 10 science chapter 4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch4 part1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Class 10 Science Quiz \u2013 Carbon and Its Compounds&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; }\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; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Class 10 Science Quiz \u2013 Carbon and Its Compounds&lt;\/h2>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Carbon compounds humare liye important kyun hain?\",\n    options: &#91;\n      \"A. Sirf metals banane ke liye\",\n      \"B. Food, clothes, medicines aur living structures mein carbon compounds important hain\",\n      \"C. Sirf glass banane ke liye\",\n      \"D. Sirf water purification ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Food, clothes, medicines, books aur bahut si daily-use things carbon compounds par based hoti hain. All living structures bhi largely carbon-based hote hain.\"\n  },\n  {\n    question: \"2. Earth's crust mein carbon approximately kitne percentage present hai?\",\n    options: &#91;\n      \"A. 0.02%\",\n      \"B. 2%\",\n      \"C. 20%\",\n      \"D. 0.2%\"\n    ],\n    correct: 0,\n    explanation: \"Earth's crust mein approximately 0.02% carbon present hai. Ye carbonates, hydrogencarbonates, coal aur petroleum jaise forms mein milta hai.\"\n  },\n  {\n    question: \"3. Carbon ka atomic number kya hai?\",\n    options: &#91;\n      \"A. 4\",\n      \"B. 6\",\n      \"C. 8\",\n      \"D. 12\"\n    ],\n    correct: 1,\n    explanation: \"Carbon ka atomic number 6 hai. Iska electronic configuration 2, 4 hota hai, yani carbon ke outermost shell mein 4 valence electrons hote hain.\"\n  },\n  {\n    question: \"4. Carbon ionic compound banate waqt four electrons gain ya lose karne ke bajay kya karta hai?\",\n    options: &#91;\n      \"A. Sirf protons share karta hai\",\n      \"B. Valence electrons ko other atoms ke saath share karta hai\",\n      \"C. Apne nucleus ko remove karta hai\",\n      \"D. Neutrons gain karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Carbon ke liye 4 electrons gain ya lose karna difficult hota hai. Isliye carbon valence electrons share karta hai aur covalent bonds form karta hai.\"\n  },\n  {\n    question: \"5. Do hydrogen atoms H\u2082 molecule banate waqt kis type ka bond form karte hain?\",\n    options: &#91;\n      \"A. Ionic bond\",\n      \"B. Double covalent bond\",\n      \"C. Single covalent bond\",\n      \"D. Triple covalent bond\"\n    ],\n    correct: 2,\n    explanation: \"Har hydrogen atom ek electron share karta hai. Isse one shared pair of electrons banta hai, jise single covalent bond kehte hain.\"\n  },\n  {\n    question: \"6. Oxygen molecule (O\u2082) mein kaunsa bond hota hai?\",\n    options: &#91;\n      \"A. Single bond\",\n      \"B. Double bond\",\n      \"C. Triple bond\",\n      \"D. Ionic bond\"\n    ],\n    correct: 1,\n    explanation: \"Oxygen ke outer shell mein 6 electrons hote hain aur octet complete karne ke liye 2 electrons ki need hoti hai. Dono oxygen atoms two pairs of electrons share karte hain, forming a double bond.\"\n  },\n  {\n    question: \"7. Nitrogen molecule (N\u2082) mein kitne shared pairs of electrons hote hain?\",\n    options: &#91;\n      \"A. One\",\n      \"B. Two\",\n      \"C. Three\",\n      \"D. Four\"\n    ],\n    correct: 2,\n    explanation: \"Nitrogen ka atomic number 7 hai aur usse octet complete karne ke liye 3 electrons ki need hoti hai. Isliye two nitrogen atoms three pairs of electrons share karte hain, forming a triple bond.\"\n  },\n  {\n    question: \"8. Carbon ki valency kya hai?\",\n    options: &#91;\n      \"A. 1\",\n      \"B. 2\",\n      \"C. 3\",\n      \"D. 4\"\n    ],\n    correct: 3,\n    explanation: \"Carbon ke outermost shell mein 4 valence electrons hote hain. Isliye carbon tetravalent hai aur generally four covalent bonds form kar sakta hai.\"\n  },\n  {\n    question: \"9. Methane ka chemical formula kya hai?\",\n    options: &#91;\n      \"A. CH\u2083\",\n      \"B. CH\u2084\",\n      \"C. C\u2082H\u2086\",\n      \"D. CO\u2082\"\n    ],\n    correct: 1,\n    explanation: \"Methane mein one carbon atom aur four hydrogen atoms hote hain, isliye iska formula CH\u2084 hai. Carbon four hydrogen atoms ke saath four single covalent bonds form karta hai.\"\n  },\n  {\n    question: \"10. Covalent compounds generally electricity ke poor conductors kyun hote hain?\",\n    options: &#91;\n      \"A. Inmein charged ions form nahi hote\",\n      \"B. Inmein bahut saare free ions hote hain\",\n      \"C. Inmein only metals present hote hain\",\n      \"D. Inmein electrons completely destroy ho jaate hain\"\n    ],\n    correct: 0,\n    explanation: \"Covalent compounds mein electrons atoms ke beech share hote hain aur charged ions generally form nahi hote. Isliye ye compounds generally poor conductors of electricity hote hain. Inmein intermolecular forces bhi relatively weak hoti hain, isliye inke melting aur boiling points generally low hote hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\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  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value, 10) : 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  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) 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        &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}\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&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\">ch4 part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Allotropes of Carbon \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 Allotropes of Carbon \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. Carbon ke different forms ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Isotopes\",\n      \"B. Allotropes\",\n      \"C. Ions\",\n      \"D. Compounds\"\n    ],\n    correct: 1,\n    explanation: \"Carbon nature mein different structural forms mein present hota hai. In different forms ko &lt;strong>allotropes of carbon&lt;\/strong> kehte hain, jaise &lt;strong>diamond, graphite aur fullerene&lt;\/strong>.\"\n  },\n  {\n    question: \"2. Diamond mein har carbon atom kitne other carbon atoms se bonded hota hai?\",\n    options: &#91;\n      \"A. 2\",\n      \"B. 3\",\n      \"C. 4\",\n      \"D. 6\"\n    ],\n    correct: 2,\n    explanation: \"Diamond mein each carbon atom &lt;strong>four other carbon atoms&lt;\/strong> se bonded hota hai. Isse ek &lt;strong>rigid three-dimensional structure&lt;\/strong> form hota hai.\"\n  },\n  {\n    question: \"3. Diamond ki structure kaisi hoti hai?\",\n    options: &#91;\n      \"A. Flat single layer\",\n      \"B. Rigid three-dimensional structure\",\n      \"C. Circular ring\",\n      \"D. Random structure\"\n    ],\n    correct: 1,\n    explanation: \"Diamond mein carbon atoms strongly bonded hokar &lt;strong>rigid 3D network&lt;\/strong> banate hain. Isi structure ki wajah se diamond extremely hard hota hai.\"\n  },\n  {\n    question: \"4. Graphite mein each carbon atom kitne other carbon atoms se bonded hota hai?\",\n    options: &#91;\n      \"A. 1\",\n      \"B. 2\",\n      \"C. 3\",\n      \"D. 4\"\n    ],\n    correct: 2,\n    explanation: \"Graphite mein each carbon atom &lt;strong>three other carbon atoms&lt;\/strong> se bonded hota hai. Ye atoms same plane mein &lt;strong>hexagonal arrangement&lt;\/strong> banate hain.\"\n  },\n  {\n    question: \"5. Graphite ki layers ke beech bonding relatively weak hone ka kya result hota hai?\",\n    options: &#91;\n      \"A. Graphite extremely hard hota hai\",\n      \"B. Graphite smooth aur slippery hota hai\",\n      \"C. Graphite liquid ban jata hai\",\n      \"D. Graphite electricity conduct nahi karta\"\n    ],\n    correct: 1,\n    explanation: \"Graphite &lt;strong>layers&lt;\/strong> se bana hota hai. Layers easily ek-doosre ke upar slide kar sakti hain, isliye graphite &lt;strong>smooth and slippery&lt;\/strong> hota hai.\"\n  },\n  {\n    question: \"6. Diamond aur graphite ke physical properties different kyun hain?\",\n    options: &#91;\n      \"A. Dono different elements se bane hain\",\n      \"B. Dono mein carbon atoms ki bonding\/arrangement different hai\",\n      \"C. Graphite mein carbon nahi hota\",\n      \"D. Diamond mein atoms nahi hote\"\n    ],\n    correct: 1,\n    explanation: \"Diamond aur graphite dono &lt;strong>carbon atoms&lt;\/strong> se bane hain, lekin atoms ka &lt;strong>bonding pattern aur arrangement different&lt;\/strong> hai. Isi wajah se unki physical properties bhi different hoti hain.\"\n  },\n  {\n    question: \"7. Inmein se kaunsa carbon ka good conductor of electricity hai?\",\n    options: &#91;\n      \"A. Diamond\",\n      \"B. Graphite\",\n      \"C. Fullerene only\",\n      \"D. Carbon dioxide\"\n    ],\n    correct: 1,\n    explanation: \"Graphite ek &lt;strong>good conductor of electricity&lt;\/strong> hai. Ye unusual property hai kyunki graphite carbon ka non-metallic allotrope hai.\"\n  },\n  {\n    question: \"8. Fullerene ka first identified form kaunsa tha?\",\n    options: &#91;\n      \"A. C-12\",\n      \"B. C-40\",\n      \"C. C-60\",\n      \"D. C-100\"\n    ],\n    correct: 2,\n    explanation: \"Fullerene family ka first identified member &lt;strong>C-60&lt;\/strong> tha. Ismein 60 carbon atoms football-like shape mein arranged hote hain.\"\n  },\n  {\n    question: \"9. C-60 molecule ko fullerene naam kis scientist\/architect ke design se related shape ki wajah se diya gaya?\",\n    options: &#91;\n      \"A. Albert Einstein\",\n      \"B. Buckminster Fuller\",\n      \"C. Isaac Newton\",\n      \"D. James Watt\"\n    ],\n    correct: 1,\n    explanation: \"C-60 ka structure &lt;strong>football-like&lt;\/strong> tha aur ye US architect &lt;strong>Buckminster Fuller&lt;\/strong> ke geodesic dome design jaisa dikhta tha. Isliye ise &lt;strong>fullerene&lt;\/strong> kaha gaya.\"\n  },\n  {\n    question: \"10. Diamond ko artificially\/synthetically banane ke liye carbon ko kis condition mein subject kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Very low pressure and low temperature\",\n      \"B. High pressure and high temperature\",\n      \"C. Only water mein\",\n      \"D. Normal room temperature par\"\n    ],\n    correct: 1,\n    explanation: \"&lt;strong>Synthetic diamonds&lt;\/strong> pure carbon ko &lt;strong>very high pressure and temperature&lt;\/strong> par subject karke banaye ja sakte hain. Ye natural diamonds se otherwise distinguish karna difficult ho sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  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\">ch4 part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;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 Carbon and Its Compounds&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 {\n    text-align: center;\n    color: #1e3c72;\n  }\n\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n    line-height: 1.6;\n  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  input&#91;type=\"text\"] {\n    padding: 10px;\n    width: 60%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n&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 Carbon and Its Compounds&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. Carbon ke compounds ki sankhya bahut zyada hone ka main reason kya hai?\",\n    options: &#91;\n      \"A. Carbon ka colour black hota hai\",\n      \"B. Carbon covalent bonds bana sakta hai\",\n      \"C. Carbon sirf oxygen ke saath react karta hai\",\n      \"D. Carbon liquid hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Carbon ki covalent bonding ability ki wajah se woh bahut large number of compounds bana sakta hai.\"\n  },\n\n  {\n    question: \"2. Carbon ki woh property kya kehlati hai jisme carbon atoms aapas mein bond karke long chains, branched chains aur rings banate hain?\",\n    options: &#91;\n      \"A. Tetravalency\",\n      \"B. Combustion\",\n      \"C. Catenation\",\n      \"D. Oxidation\"\n    ],\n    correct: 2,\n    explanation: \"Carbon atoms ka ek-doosre ke saath bond karke chains aur rings banana catenation kehlata hai.\"\n  },\n\n  {\n    question: \"3. Carbon ki catenation property ka main reason kya hai?\",\n    options: &#91;\n      \"A. Carbon-carbon bond bahut strong aur stable hota hai\",\n      \"B. Carbon ka atomic mass bahut zyada hai\",\n      \"C. Carbon sirf hydrogen ke saath bond karta hai\",\n      \"D. Carbon ka melting point bahut high hai\"\n    ],\n    correct: 0,\n    explanation: \"Strong C\u2013C bond ki wajah se bahut saare carbon atoms ek stable chain mein jud sakte hain.\"\n  },\n\n  {\n    question: \"4. Jin carbon compounds mein carbon atoms ke beech sirf single bonds hote hain, unhe kya kehte hain?\",\n    options: &#91;\n      \"A. Unsaturated compounds\",\n      \"B. Saturated compounds\",\n      \"C. Ionic compounds\",\n      \"D. Aromatic compounds\"\n    ],\n    correct: 1,\n    explanation: \"Sirf single bonds wale carbon compounds ko saturated compounds kaha jata hai.\"\n  },\n\n  {\n    question: \"5. Jin carbon compounds mein carbon atoms ke beech double ya triple bond hota hai, unhe kya kehte hain?\",\n    options: &#91;\n      \"A. Saturated compounds\",\n      \"B. Ionic compounds\",\n      \"C. Unsaturated compounds\",\n      \"D. Metallic compounds\"\n    ],\n    correct: 2,\n    explanation: \"Carbon-carbon ke beech double ya triple bond present ho, to compound unsaturated kehlata hai.\"\n  },\n\n  {\n    question: \"6. Carbon ki valency kitni hoti hai?\",\n    options: &#91;\n      \"A. 1\",\n      \"B. 2\",\n      \"C. 3\",\n      \"D. 4\"\n    ],\n    correct: 3,\n    explanation: \"Carbon ki valency 4 hoti hai, isliye carbon chaar atoms ke saath bonds bana sakta hai.\"\n  },\n\n  {\n    question: \"7. Carbon kin elements ke saath compounds bana sakta hai?\",\n    options: &#91;\n      \"A. Sirf hydrogen\",\n      \"B. Sirf oxygen\",\n      \"C. Hydrogen, oxygen, nitrogen, sulphur, chlorine etc.\",\n      \"D. Sirf carbon\"\n    ],\n    correct: 2,\n    explanation: \"Carbon bahut se elements ke saath strong bonds banata hai, jisse different properties wale compounds form hote hain.\"\n  },\n\n  {\n    question: \"8. Carbon ke strong bonds banane ka ek important reason kya hai?\",\n    options: &#91;\n      \"A. Carbon ka size small hota hai\",\n      \"B. Carbon ka size bahut large hota hai\",\n      \"C. Carbon mein koi electron nahi hota\",\n      \"D. Carbon sirf ionic bonds banata hai\"\n    ],\n    correct: 0,\n    explanation: \"Carbon ka small size nucleus ko shared electron pairs ko strongly hold karne mein help karta hai. Isliye carbon ke bonds strong aur stable hote hain.\"\n  },\n\n  {\n    question: \"9. Friedrich W\u00f6hler ne 1828 mein kis compound ko ammonium cyanate se prepare karke \u201cvital force\u201d theory ko disprove kiya?\",\n    options: &#91;\n      \"A. Methane\",\n      \"B. Urea\",\n      \"C. Ethanol\",\n      \"D. Carbon dioxide\"\n    ],\n    correct: 1,\n    explanation: \"Friedrich W\u00f6hler ne 1828 mein ammonium cyanate se urea prepare kiya. Isse prove hua ki organic compound living system ke bahar bhi banaya ja sakta hai.\"\n  },\n\n  {\n    question: \"10. Carbon compounds mein tetravalency aur catenation dono milkar kya produce karte hain?\",\n    options: &#91;\n      \"A. Bahut kam compounds\",\n      \"B. Sirf inorganic compounds\",\n      \"C. Large number of carbon compounds\",\n      \"D. Sirf ionic compounds\"\n    ],\n    correct: 2,\n    explanation: \"Carbon ki tetravalency (valency 4) aur catenation ki combined property ki wajah se millions of carbon compounds exist 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    alert(\"Please enter your name.\");\n    return;\n  }\n\n  currentQuestion = 0;\n  score = 0;\n  userAnswers = &#91;];\n  quizSubmitted = false;\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  document.querySelector(\".controls\").style.display = \"block\";\n  document.getElementById(\"result\").innerHTML = \"\";\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  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  if (quizSubmitted) return;\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  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 === 10 ? \"Excellent! All answers are correct.\" :\n       score >= 7 ? \"Very good! Keep practising.\" :\n       score >= 5 ? \"Good effort! Revise and try again.\" :\n       \"Keep learning and practising. You can improve!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/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\">ch4 part4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Class 10 Science Quiz \u2013 Hydrocarbons and Isomers&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; }\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; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Class 10 Science Quiz \u2013 Hydrocarbons and Isomers&lt;\/h2>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Ethane ka molecular formula kya hai?\",\n    options: &#91;\n      \"A. C\u2082H\u2084\",\n      \"B. C\u2082H\u2082\",\n      \"C. C\u2082H\u2086\",\n      \"D. C\u2083H\u2088\"\n    ],\n    correct: 2,\n    explanation: \"Ethane mein 2 carbon aur 6 hydrogen atoms hote hain, isliye iska formula C\u2082H\u2086 hai.\"\n  },\n  {\n    question: \"2. Ethane ki structure banate time sabse pehle kya kiya jata hai?\",\n    options: &#91;\n      \"A. Hydrogen atoms ko remove kiya jata hai\",\n      \"B. Carbon atoms ko single bond se link kiya jata hai\",\n      \"C. Carbon atoms ko triple bond se link kiya jata hai\",\n      \"D. Oxygen atoms add kiye jate hain\"\n    ],\n    correct: 1,\n    explanation: \"Ethane banane ke first step mein C\u2014C single bond banaya jata hai. Uske baad remaining valencies ko hydrogen atoms se satisfy kiya jata hai.\"\n  },\n  {\n    question: \"3. Propane (C\u2083H\u2088) kis type ka carbon compound hai?\",\n    options: &#91;\n      \"A. Saturated compound\",\n      \"B. Unsaturated compound\",\n      \"C. Ionic compound\",\n      \"D. Metallic compound\"\n    ],\n    correct: 0,\n    explanation: \"Propane mein carbon atoms ke beech sirf single bonds hote hain. Isliye propane ek saturated compound hai.\"\n  },\n  {\n    question: \"4. Ethene ka molecular formula kya hai?\",\n    options: &#91;\n      \"A. C\u2082H\u2086\",\n      \"B. C\u2083H\u2088\",\n      \"C. C\u2082H\u2082\",\n      \"D. C\u2082H\u2084\"\n    ],\n    correct: 3,\n    explanation: \"Ethene ka formula C\u2082H\u2084 hai. Ismein dono carbon atoms ke beech double bond hota hai.\"\n  },\n  {\n    question: \"5. Ethyne (C\u2082H\u2082) mein carbon atoms ke beech kitne bonds hote hain?\",\n    options: &#91;\n      \"A. One single bond\",\n      \"B. One double bond\",\n      \"C. One triple bond\",\n      \"D. Four single bonds\"\n    ],\n    correct: 2,\n    explanation: \"Ethyne mein carbon ki valency satisfy karne ke liye dono carbon atoms ke beech triple bond (C\u2261C) hota hai.\"\n  },\n  {\n    question: \"6. Unsaturated carbon compounds saturated compounds ki comparison mein kaise hote hain?\",\n    options: &#91;\n      \"A. Less reactive\",\n      \"B. More reactive\",\n      \"C. Bilkul reactive nahi\",\n      \"D. Sirf ionic reaction karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Double ya triple bonds wale unsaturated compounds generally saturated compounds se more reactive hote hain.\"\n  },\n  {\n    question: \"7. Same molecular formula lekin different structures wale compounds ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Isotopes\",\n      \"B. Isomers\",\n      \"C. Allotropes\",\n      \"D. Hydrocarbons\"\n    ],\n    correct: 1,\n    explanation: \"Jin compounds ka molecular formula same ho lekin structure different ho, unhe structural isomers kaha jata hai. Example: C\u2084H\u2081\u2080 ke two different structures.\"\n  },\n  {\n    question: \"8. Cyclohexane ka molecular formula kya hai?\",\n    options: &#91;\n      \"A. C\u2086H\u2086\",\n      \"B. C\u2086H\u2081\u2082\",\n      \"C. C\u2084H\u2081\u2080\",\n      \"D. C\u2083H\u2088\"\n    ],\n    correct: 1,\n    explanation: \"Cyclohexane mein carbon atoms ring form mein arranged hote hain aur iska molecular formula C\u2086H\u2081\u2082 hai.\"\n  },\n  {\n    question: \"9. Sirf carbon aur hydrogen se bane compounds ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Alcohols\",\n      \"B. Hydrocarbons\",\n      \"C. Carboxylic acids\",\n      \"D. Ketones\"\n    ],\n    correct: 1,\n    explanation: \"Jo compounds only carbon (C) aur hydrogen (H) contain karte hain, unhe hydrocarbons kaha jata hai.\"\n  },\n  {\n    question: \"10. Unsaturated hydrocarbons jisme one or more triple bonds hote hain, unhe kya kehte hain?\",\n    options: &#91;\n      \"A. Alkanes\",\n      \"B. Alkenes\",\n      \"C. Alkynes\",\n      \"D. Alcohols\"\n    ],\n    correct: 2,\n    explanation: \"Triple bond (C\u2261C) wale unsaturated hydrocarbons ko alkynes kaha jata hai. Double bond wale hydrocarbons alkenes kehlate hain, jabki saturated hydrocarbons alkanes kehlate hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\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  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value, 10) : 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  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) 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        &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}\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&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\">ch4 part5<\/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 Carbon Compounds \u2013 Functional Groups and Homologous Series 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 Carbon Compounds \u2013 Functional Groups and Homologous Series 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. Carbon hydrocarbon chain mein hydrogen ke alawa kin elements ke saath bonds bana sakta hai?\",\n    options: &#91;\n      \"A. Sirf oxygen\",\n      \"B. Halogens, oxygen, nitrogen aur sulphur\",\n      \"C. Sirf nitrogen\",\n      \"D. Sirf sulphur\"\n    ],\n    correct: 1,\n    explanation: \"Carbon &lt;strong>halogens, oxygen, nitrogen, sulphur&lt;\/strong> aur kai other elements ke saath bonds bana sakta hai.\"\n  },\n  {\n    question: \"2. Hydrocarbon chain mein hydrogen ko replace karne wale element ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Heteroatom\",\n      \"B. Isomer\",\n      \"C. Homolog\",\n      \"D. Hydrocarbon\"\n    ],\n    correct: 0,\n    explanation: \"Jab hydrocarbon chain mein ek ya more hydrogen atoms ko kisi other element se replace kiya jata hai, to hydrogen ko replace karne wale element ko &lt;strong>heteroatom&lt;\/strong> kaha jata hai.\"\n  },\n  {\n    question: \"3. Functional group carbon compound ko kya provide karta hai?\",\n    options: &#91;\n      \"A. Sirf colour\",\n      \"B. Sirf molecular mass\",\n      \"C. Specific chemical properties\",\n      \"D. Sirf physical state\"\n    ],\n    correct: 2,\n    explanation: \"&lt;strong>Functional group&lt;\/strong> compound ki specific properties decide karta hai, chahe carbon chain chhoti ho ya badi.\"\n  },\n  {\n    question: \"4. Alcohol functional group ka formula kya hai?\",\n    options: &#91;\n      \"A. \u2014COOH\",\n      \"B. \u2014OH\",\n      \"C. \u2014CHO\",\n      \"D. \u2014Cl\"\n    ],\n    correct: 1,\n    explanation: \"&lt;strong>Alcohol functional group = \u2014OH (hydroxyl group)&lt;\/strong>. Example: CH\u2083OH aur C\u2082H\u2085OH.\"\n  },\n  {\n    question: \"5. CH\u2083OH, C\u2082H\u2085OH, C\u2083H\u2087OH aur C\u2084H\u2089OH kis type ki series ke examples hain?\",\n    options: &#91;\n      \"A. Isomeric series\",\n      \"B. Homologous series\",\n      \"C. Unsaturated series\",\n      \"D. Ionic series\"\n    ],\n    correct: 1,\n    explanation: \"In sab compounds mein same &lt;strong>alcohol functional group (\u2014OH)&lt;\/strong> present hai aur inki chemical properties similar hoti hain. Isliye ye &lt;strong>homologous series&lt;\/strong> banate hain.\"\n  },\n  {\n    question: \"6. Homologous series mein successive members ke molecular formula mein generally kya difference hota hai?\",\n    options: &#91;\n      \"A. \u2014CH\u2083\",\n      \"B. \u2014OH\",\n      \"C. \u2014CH\u2082\",\n      \"D. \u2014COOH\"\n    ],\n    correct: 2,\n    explanation: \"Homologous series ke successive members ek &lt;strong>\u2014CH\u2082\u2014 unit&lt;\/strong> se differ karte hain.\"\n  },\n  {\n    question: \"7. Methane (CH\u2084) aur ethane (C\u2082H\u2086) ke molecular formula mein kya difference hai?\",\n    options: &#91;\n      \"A. \u2014CH\u2082\",\n      \"B. \u2014CH\u2083\",\n      \"C. \u2014OH\",\n      \"D. \u2014COOH\"\n    ],\n    correct: 0,\n    explanation: \"CH\u2084 se C\u2082H\u2086 mein jaane par ek &lt;strong>CH\u2082 unit&lt;\/strong> add hoti hai. Isi tarah successive members mein bhi \u2014CH\u2082\u2014 ka difference hota hai.\"\n  },\n  {\n    question: \"8. Alkenes ka general formula kya hai?\",\n    options: &#91;\n      \"A. C\u2099H\u2082\u2099\u208a\u2082\",\n      \"B. C\u2099H\u2082\u2099\",\n      \"C. C\u2099H\u2082\u2099\u208b\u2082\",\n      \"D. C\u2099H\u2099\"\n    ],\n    correct: 1,\n    explanation: \"Alkenes ka general formula &lt;strong>C\u2099H\u2082\u2099&lt;\/strong> hai, jahan n = 2, 3, 4... Example: ethene C\u2082H\u2084.\"\n  },\n  {\n    question: \"9. Homologous series mein molecular mass increase hone par generally kya hota hai?\",\n    options: &#91;\n      \"A. Melting aur boiling points increase hote hain\",\n      \"B. Melting aur boiling points hamesha decrease hote hain\",\n      \"C. Chemical properties completely change ho jati hain\",\n      \"D. Functional group disappear ho jata hai\"\n    ],\n    correct: 0,\n    explanation: \"Homologous series mein molecular mass badhne par &lt;strong>melting point aur boiling point generally increase&lt;\/strong> karte hain.\"\n  },\n  {\n    question: \"10. Homologous series ke compounds ki chemical properties similar hone ka main reason kya hai?\",\n    options: &#91;\n      \"A. Sabka colour same hota hai\",\n      \"B. Sabka molecular mass same hota hai\",\n      \"C. Same functional group present hota hai\",\n      \"D. Sabki carbon chain same length ki hoti hai\"\n    ],\n    correct: 2,\n    explanation: \"Chemical properties mainly &lt;strong>functional group&lt;\/strong> par depend karti hain. Isliye same functional group wale homologous series ke compounds ki chemical properties similar hoti hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a, b) => b.score - a.score);\n\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\">ch4 part6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Nomenclature of Carbon Compounds&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n  box-sizing: border-box;\n}\n\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\n\nh2 {\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.options input {\n  margin-right: 8px;\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  margin-bottom: 15px;\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\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\n\nbutton:hover {\n  background-color: #1e3c72;\n}\n\ninput&#91;type=\"text\"] {\n  padding: 10px;\n  width: 65%;\n  max-width: 300px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n\n#scoreboard h3 {\n  text-align: center;\n}\n\nol {\n  padding-left: 20px;\n}\n\n@media (max-width: 600px) {\n  body {\n    padding: 12px;\n  }\n\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n\n  input&#91;type=\"text\"] {\n    width: 90%;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Nomenclature of Carbon Compounds&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. Carbon compounds ki naming mein basic carbon chain ke name ke saath functional group ko indicate karne ke liye kya use kiya jata hai?\",\n    options: &#91;\n      \"A. Prefix ya suffix\",\n      \"B. Sirf number\",\n      \"C. Sirf symbol\",\n      \"D. Sirf bracket\"\n    ],\n    correct: 0,\n    explanation: \"Functional group ki nature ko name mein prefix (before) ya suffix (after) ke through indicate kiya jata hai.\"\n  },\n\n  {\n    question: \"2. 3 carbon atoms wale saturated carbon compound ka basic name kya hoga?\",\n    options: &#91;\n      \"A. Methane\",\n      \"B. Ethane\",\n      \"C. Propane\",\n      \"D. Butane\"\n    ],\n    correct: 2,\n    explanation: \"3 carbon atoms ki basic carbon chain ko propane kaha jata hai.\"\n  },\n\n  {\n    question: \"3. Alcohol functional group ko nomenclature mein kaunse suffix se represent kiya jata hai?\",\n    options: &#91;\n      \"A. \u2014al\",\n      \"B. \u2014ol\",\n      \"C. \u2014one\",\n      \"D. \u2014yne\"\n    ],\n    correct: 1,\n    explanation: \"Alcohol compounds ke naam mein \u2014ol suffix use hota hai. Example: propanol.\"\n  },\n\n  {\n    question: \"4. Aldehyde functional group ke liye kaunsa suffix use hota hai?\",\n    options: &#91;\n      \"A. \u2014ol\",\n      \"B. \u2014one\",\n      \"C. \u2014al\",\n      \"D. \u2014oic acid\"\n    ],\n    correct: 2,\n    explanation: \"Aldehyde compounds ke nomenclature mein \u2014al suffix use hota hai. Example: propanal.\"\n  },\n\n  {\n    question: \"5. Ketone group wale three-carbon compound ka correct name kya hoga?\",\n    options: &#91;\n      \"A. Propanol\",\n      \"B. Propanal\",\n      \"C. Propanone\",\n      \"D. Propene\"\n    ],\n    correct: 2,\n    explanation: \"Three-carbon chain propane hoti hai. Final \u2018e\u2019 remove karke \u2014one add karne par propanone banta hai.\"\n  },\n\n  {\n    question: \"6. Three-carbon chain mein double bond present ho, to compound ka naam kya hoga?\",\n    options: &#91;\n      \"A. Propane\",\n      \"B. Propene\",\n      \"C. Propyne\",\n      \"D. Propanol\"\n    ],\n    correct: 1,\n    explanation: \"Unsaturated compound mein double bond hone par \u2014ane ko \u2014ene se replace kiya jata hai. Isliye propane \u2192 propene.\"\n  },\n\n  {\n    question: \"7. Three-carbon chain mein triple bond present ho, to compound ka naam kya hoga?\",\n    options: &#91;\n      \"A. Propane\",\n      \"B. Propene\",\n      \"C. Propyne\",\n      \"D. Propanal\"\n    ],\n    correct: 2,\n    explanation: \"Triple bond wale compound mein \u2014ane ko \u2014yne se replace kiya jata hai. Isliye propane \u2192 propyne.\"\n  },\n\n  {\n    question: \"8. Haloalkanes ke nomenclature mein chlorine ko indicate karne ke liye kaunsa prefix use hota hai?\",\n    options: &#91;\n      \"A. Bromo\",\n      \"B. Chloro\",\n      \"C. Hydro\",\n      \"D. Methyl\"\n    ],\n    correct: 1,\n    explanation: \"Chlorine ke liye chloro- aur bromine ke liye bromo- prefix use hota hai. Example: chloropropane.\"\n  },\n\n  {\n    question: \"9. Carboxylic acid ke nomenclature mein kaunsa suffix use hota hai?\",\n    options: &#91;\n      \"A. \u2014ol\",\n      \"B. \u2014al\",\n      \"C. \u2014one\",\n      \"D. \u2014oic acid\"\n    ],\n    correct: 3,\n    explanation: \"Carboxylic acids ke naam mein \u2014oic acid suffix use hota hai. Example: propanoic acid.\"\n  },\n\n  {\n    question: \"10. Agar three-carbon chain mein ketone group present ho, to naming karte waqt \u201cpropane\u201d mein kya change kiya jayega?\",\n    options: &#91;\n      \"A. \u2018e\u2019 remove karke \u2018one\u2019 add kiya jayega\",\n      \"B. \u2018ane\u2019 ko \u2018yne\u2019 se replace kiya jayega\",\n      \"C. \u2018e\u2019 remove karke \u2018ol\u2019 add kiya jayega\",\n      \"D. \u2018prop\u2019 ko \u2018but\u2019 se replace kiya jayega\"\n    ],\n    correct: 0,\n    explanation: \"Propane \u2212 e = propan, aur propan + one = propanone. Isliye ketone ka naam propanone hoga.\"\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    alert(\"Please enter your name.\");\n    return;\n  }\n\n  currentQuestion = 0;\n  score = 0;\n  userAnswers = new Array(questions.length).fill(null);\n  quizSubmitted = false;\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  document.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").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            onchange=\"saveAnswer()\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}\n          >\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\nfunction saveAnswer() {\n\n  if (quizSubmitted) return;\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 nextQuestion() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(answer => answer === null).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      \"You have \" + unanswered + \" unanswered question(s). Do you still want to submit?\"\n    );\n\n    if (!confirmSubmit) return;\n  }\n\n  quizSubmitted = true;\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join(\"\");\n\n    container.innerHTML += `\n\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>Correct Answers: ${score}&lt;\/p>\n    &lt;p>Incorrect or Unanswered: ${questions.length - score}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = 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\">ch4 part7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Carbon and Its Compounds - Science Quiz&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#userName {\n  padding: 10px;\n  width: 90%;\n  max-width: 350px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n#result {\n  text-align: center;\n  margin-top: 20px;\n}\n@media(max-width:600px) {\n  body {\n    padding: 10px;\n  }\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Carbon and Its Compounds \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\">&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{\nquestion: \"1. Carbon oxygen mein burn hone par kya produce karta hai?\",\noptions: &#91;\n\"A. Carbon monoxide only\",\n\"B. Carbon dioxide, heat aur light\",\n\"C. Hydrogen aur oxygen\",\n\"D. Nitrogen aur sulphur\"\n],\ncorrect: 1,\nexplanation: \"Carbon ke allotropic forms oxygen mein burn hote hain aur carbon dioxide (CO\u2082) ke saath heat aur light release karte hain.\"\n},\n\n{\nquestion: \"2. Carbon compounds ke burning ko generally kis type ki reaction maana jata hai?\",\noptions: &#91;\n\"A. Reduction reaction\",\n\"B. Displacement reaction\",\n\"C. Oxidation reaction\",\n\"D. Neutralisation reaction\"\n],\ncorrect: 2,\nexplanation: \"Carbon compounds ka oxygen ke saath burning oxidation reaction hota hai aur ismein generally heat aur light release hoti hai.\"\n},\n\n{\nquestion: \"3. Saturated hydrocarbons generally kis type ki flame dete hain?\",\noptions: &#91;\n\"A. Clean flame\",\n\"B. Yellow flame with lots of smoke\",\n\"C. Green flame\",\n\"D. No flame\"\n],\ncorrect: 0,\nexplanation: \"Saturated hydrocarbons normally clean flame ke saath burn karte hain, jab sufficient oxygen available ho.\"\n},\n\n{\nquestion: \"4. Unsaturated carbon compounds generally burning ke time kaunsi flame dete hain?\",\noptions: &#91;\n\"A. Blue flame without smoke\",\n\"B. Yellow flame with lots of black smoke\",\n\"C. Green flame\",\n\"D. White flame\"\n],\ncorrect: 1,\nexplanation: \"Unsaturated carbon compounds burn karte waqt generally yellow flame aur black smoke produce karte hain. Isse sooty deposit bhi ban sakta hai.\"\n},\n\n{\nquestion: \"5. Gas ya kerosene stove mein air inlets ka kya purpose hota hai?\",\noptions: &#91;\n\"A. Fuel ko cool karna\",\n\"B. Oxygen-rich mixture provide karna\",\n\"C. Fuel ka colour change karna\",\n\"D. Smoke ko increase karna\"\n],\ncorrect: 1,\nexplanation: \"Air inlets sufficient oxygen-rich mixture provide karte hain, jisse fuel proper combustion karta hai aur clean blue flame milti hai.\"\n},\n\n{\nquestion: \"6. Cooking vessels ke bottoms black hone ka kya indication hai?\",\noptions: &#91;\n\"A. Fuel completely safe hai\",\n\"B. Air holes blocked hain aur fuel waste ho raha hai\",\n\"C. Stove mein extra oxygen hai\",\n\"D. Fuel burn nahi ho sakta\"\n],\ncorrect: 1,\nexplanation: \"Agar vessels ke bottom black ho rahe hain, to iska matlab air holes blocked ho sakte hain. Isse incomplete combustion hota hai aur fuel waste hota hai.\"\n},\n\n{\nquestion: \"7. Coal aur petroleum mein nitrogen aur sulphur ki combustion se kya form hota hai?\",\noptions: &#91;\n\"A. Oxides of sulphur and nitrogen\",\n\"B. Only oxygen\",\n\"C. Only hydrogen\",\n\"D. Water only\"\n],\ncorrect: 0,\nexplanation: \"Coal aur petroleum mein present nitrogen aur sulphur burn hone par unke oxides form karte hain, jo environment ke major pollutants hain.\"\n},\n\n{\nquestion: \"8. Flame kab produce hoti hai?\",\noptions: &#91;\n\"A. Jab solid substances burn karte hain\",\n\"B. Jab liquid substances freeze karte hain\",\n\"C. Jab gaseous substances burn karte hain\",\n\"D. Jab oxygen absent hoti hai\"\n],\ncorrect: 2,\nexplanation: \"NCERT ke according, flame tab produce hoti hai jab gaseous substances burn karte hain. Wood ya charcoal ke volatile substances vapourise hokar initially flame de sakte hain.\"\n},\n\n{\nquestion: \"9. Yellow candle flame ka yellow colour mainly kis wajah se hota hai?\",\noptions: &#91;\n\"A. Nitrogen gas\",\n\"B. Incomplete combustion se formed soot\/carbon\",\n\"C. Water vapour\",\n\"D. Sulphur dioxide\"\n],\ncorrect: 1,\nexplanation: \"Incomplete combustion se soot (carbon) form hota hai. Heated carbon particles glow karte hain, jiski wajah se candle flame luminous\/yellow dikhti hai.\"\n},\n\n{\nquestion: \"10. Coal aur petroleum ko fossil fuels kyun kaha jata hai?\",\noptions: &#91;\n\"A. Ye laboratory mein banaye jate hain\",\n\"B. Ye metals se bante hain\",\n\"C. Ye ancient plants aur animals ke remains se millions of years mein form hue hain\",\n\"D. Ye sirf rocks ke andar oxygen se bante hain\"\n],\ncorrect: 2,\nexplanation: \"Coal ancient plants ke remains se, aur petroleum mainly ancient marine plants aur animals ke remains se biological aur geological processes ke through millions of years mein form hue. Isi wajah se inhe fossil fuels kaha jata hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>${score === 10 ? \"Excellent! Perfect Score! \ud83c\udf89\" :\n       score >= 7 ? \"Very Good! Keep Practicing! \ud83d\udc4f\" :\n       score >= 5 ? \"Good Attempt! Keep Learning! \ud83d\udc4d\" :\n       \"Keep Practicing! You Can Improve! \ud83d\udcaa\"}&lt;\/p>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\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\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\">ch4 part8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Class 10 Science Quiz \u2013 Carbon and Its Compounds&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\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; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 Class 10 Science Quiz \u2013 Carbon and Its Compounds&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. Ethanol ko ethanoic acid mein convert karne ke liye kaunsa type ka reaction hota hai?\",\n    options: &#91;\n      \"A. Addition reaction\",\n      \"B. Substitution reaction\",\n      \"C. Oxidation reaction\",\n      \"D. Neutralisation reaction\"\n    ],\n    correct: 2,\n    explanation: \"Ethanol ko ethanoic acid mein convert karte waqt oxygen add hoti hai, isliye ye oxidation reaction hai.\"\n  },\n  {\n    question: \"2. Ethanol ke oxidation ke liye alkaline potassium permanganate ka kya role hai?\",\n    options: &#91;\n      \"A. Reducing agent\",\n      \"B. Oxidising agent\",\n      \"C. Catalyst only\",\n      \"D. Solvent\"\n    ],\n    correct: 1,\n    explanation: \"Alkaline potassium permanganate (KMnO\u2084) alcohol ko acid mein oxidise karta hai, isliye ise oxidising agent kaha jata hai.\"\n  },\n  {\n    question: \"3. Alcohols ko carboxylic acids mein oxidise karne ke liye inmein se kaunsa oxidising agent use kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Alkaline potassium permanganate\",\n      \"B. Sodium chloride\",\n      \"C. Hydrogen\",\n      \"D. Calcium carbonate\"\n    ],\n    correct: 0,\n    explanation: \"Alkaline KMnO\u2084 aur acidified potassium dichromate alcohols ko carboxylic acids mein oxidise kar sakte hain.\"\n  },\n  {\n    question: \"4. Unsaturated hydrocarbons hydrogen ke saath reaction karke kya form karte hain?\",\n    options: &#91;\n      \"A. Unsaturated hydrocarbons\",\n      \"B. Saturated hydrocarbons\",\n      \"C. Alcohols\",\n      \"D. Carboxylic acids\"\n    ],\n    correct: 1,\n    explanation: \"Unsaturated hydrocarbons mein hydrogen add hone par saturated hydrocarbons form hote hain. Is reaction ko addition reaction kaha jata hai.\"\n  },\n  {\n    question: \"5. Unsaturated hydrocarbons ki hydrogenation mein commonly kaunsa catalyst use kiya jata hai?\",\n    options: &#91;\n      \"A. Sodium\",\n      \"B. Nickel\",\n      \"C. Chlorine\",\n      \"D. Potassium permanganate\"\n    ],\n    correct: 1,\n    explanation: \"Vegetable oils ki hydrogenation mein commonly nickel (Ni) catalyst use hota hai.\"\n  },\n  {\n    question: \"6. Catalysts kya karte hain?\",\n    options: &#91;\n      \"A. Reaction ko completely stop kar dete hain\",\n      \"B. Reaction ko different rate par proceed karne mein help karte hain\",\n      \"C. Product ko hamesha change kar dete hain\",\n      \"D. Sirf temperature decrease karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Catalyst reaction ki rate ko change karne mein help karta hai, bina khud permanently consume hue.\"\n  },\n  {\n    question: \"7. Vegetable oils mein generally kaunsi type ki carbon chains hoti hain?\",\n    options: &#91;\n      \"A. Long unsaturated carbon chains\",\n      \"B. Only saturated carbon chains\",\n      \"C. No carbon chains\",\n      \"D. Only cyclic chains\"\n    ],\n    correct: 0,\n    explanation: \"Vegetable oils generally long unsaturated carbon chains contain karte hain, jabki animal fats mein comparatively saturated carbon chains hoti hain.\"\n  },\n  {\n    question: \"8. Saturated hydrocarbons sunlight ki presence mein chlorine ke saath react karte hain. Is reaction ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Addition reaction\",\n      \"B. Oxidation reaction\",\n      \"C. Substitution reaction\",\n      \"D. Combustion reaction\"\n    ],\n    correct: 2,\n    explanation: \"Chlorine hydrogen atoms ko one by one replace karta hai. Ek atom ki jagah doosra atom aane ke karan ise substitution reaction kehte hain.\"\n  },\n  {\n    question: \"9. Methane aur chlorine ki sunlight mein reaction ka correct product kya hai?\",\n    options: &#91;\n      \"A. CH\u2083Cl + HCl\",\n      \"B. CH\u2083OH + HCl\",\n      \"C. CO\u2082 + H\u2082O\",\n      \"D. C\u2082H\u2086 + HCl\"\n    ],\n    correct: 0,\n    explanation: \"Sunlight ki presence mein reaction hoti hai: CH\u2084 + Cl\u2082 \u2192 CH\u2083Cl + HCl. Yahan chlorine, methane ke ek hydrogen atom ko replace karta hai.\"\n  },\n  {\n    question: \"10. Ethyne aur air ke mixture ko welding ke liye use na karne ka main reason kya hai?\",\n    options: &#91;\n      \"A. Air mein oxygen nahi hoti\",\n      \"B. Ethyne air ke saath incomplete combustion aur sooty flame de sakta hai\",\n      \"C. Ethyne air mein dissolve nahi hota\",\n      \"D. Ethyne water mein convert ho jata hai\"\n    ],\n    correct: 1,\n    explanation: \"Welding ke liye oxygen + ethyne ka controlled mixture use kiya jata hai. Air ke saath ethyne burning mein complete combustion reliably nahi hoti aur sooty flame mil sakti hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\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  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : 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  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) 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        &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}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Ethanol and Methanol \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 Ethanol and Methanol \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. Room temperature par ethanol ki physical state kya hoti hai?\",\n    options: &#91;\n      \"A. Solid\",\n      \"B. Liquid\",\n      \"C. Gas\",\n      \"D. Plasma\"\n    ],\n    correct: 1,\n    explanation: \"Ethanol &lt;strong>room temperature par liquid&lt;\/strong> hota hai. Iska common name alcohol bhi hai.\"\n  },\n  {\n    question: \"2. Ethanol ko commonly kis naam se jana jata hai?\",\n    options: &#91;\n      \"A. Methanol\",\n      \"B. Acetic acid\",\n      \"C. Alcohol\",\n      \"D. Methanal\"\n    ],\n    correct: 2,\n    explanation: \"&lt;strong>Ethanol ko commonly alcohol&lt;\/strong> kaha jata hai. Ye alcoholic drinks ka active ingredient bhi hota hai.\"\n  },\n  {\n    question: \"3. Ethanol ka ek important use kya hai?\",\n    options: &#91;\n      \"A. Sirf fertiliser banane mein\",\n      \"B. Solvent ke roop mein medicines mein\",\n      \"C. Sirf metal banane mein\",\n      \"D. Sirf plastic banane mein\"\n    ],\n    correct: 1,\n    explanation: \"Ethanol ek &lt;strong>good solvent&lt;\/strong> hai. Isliye iska use tincture iodine, cough syrups aur many tonics mein hota hai.\"\n  },\n  {\n    question: \"4. Ethanol water mein kis proportion mein soluble hai?\",\n    options: &#91;\n      \"A. Sirf small proportion\",\n      \"B. Sirf 50% proportion\",\n      \"C. All proportions\",\n      \"D. Bilkul soluble nahi\"\n    ],\n    correct: 2,\n    explanation: \"Ethanol &lt;strong>water mein all proportions mein soluble&lt;\/strong> hota hai.\"\n  },\n  {\n    question: \"5. Ethanol sodium ke saath react karne par kaunsi gas evolve hoti hai?\",\n    options: &#91;\n      \"A. Oxygen\",\n      \"B. Carbon dioxide\",\n      \"C. Hydrogen\",\n      \"D. Nitrogen\"\n    ],\n    correct: 2,\n    explanation: \"Ethanol sodium ke saath reaction mein &lt;strong>hydrogen gas&lt;\/strong> release karta hai aur &lt;strong>sodium ethoxide&lt;\/strong> form hota hai.&lt;br>&lt;br>&lt;strong>Reaction:&lt;\/strong>&lt;br>2Na + 2CH\u2083CH\u2082OH \u2192 2CH\u2083CH\u2082ONa + H\u2082\"\n  },\n  {\n    question: \"6. Ethanol ko 443 K par excess concentrated sulphuric acid ke saath heat karne par kya form hota hai?\",\n    options: &#91;\n      \"A. Ethane\",\n      \"B. Ethene\",\n      \"C. Methane\",\n      \"D. Ethanoic acid\"\n    ],\n    correct: 1,\n    explanation: \"Concentrated H\u2082SO\u2084 ethanol se &lt;strong>water remove&lt;\/strong> karta hai. Is process ko dehydration kehte hain aur &lt;strong>ethene (C\u2082H\u2084)&lt;\/strong> form hota hai.\"\n  },\n  {\n    question: \"7. Ethanol ki dehydration mein concentrated sulphuric acid ka role kya hai?\",\n    options: &#91;\n      \"A. Oxidising agent\",\n      \"B. Dehydrating agent\",\n      \"C. Reducing agent\",\n      \"D. Fuel\"\n    ],\n    correct: 1,\n    explanation: \"Concentrated sulphuric acid ethanol se &lt;strong>H\u2082O remove&lt;\/strong> karta hai, isliye ise &lt;strong>dehydrating agent&lt;\/strong> kaha jata hai.\"\n  },\n  {\n    question: \"8. Large quantities mein ethanol consume karne se central nervous system par kya effect padta hai?\",\n    options: &#91;\n      \"A. Central nervous system depress hota hai\",\n      \"B. Central nervous system permanently stop ho jata hai\",\n      \"C. Vision immediately improve hoti hai\",\n      \"D. Body temperature always increase hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Large quantity mein ethanol &lt;strong>central nervous system ko depress&lt;\/strong> karta hai. Isse lack of coordination, mental confusion, drowsiness aur judgement mein impairment ho sakta hai.\"\n  },\n  {\n    question: \"9. Methanol ki very small quantity bhi dangerous kyun ho sakti hai?\",\n    options: &#91;\n      \"A. Ye body mein oxygen produce karta hai\",\n      \"B. Ye liver mein methanal mein oxidise hokar cells aur optic nerve ko affect kar sakta hai\",\n      \"C. Ye water mein convert ho jata hai\",\n      \"D. Ye sirf digestion improve karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Methanol liver mein &lt;strong>methanal&lt;\/strong> mein oxidise hota hai. Methanal cells ko damage kar sakta hai aur methanol &lt;strong>optic nerve ko affect karke blindness&lt;\/strong> cause kar sakta hai.\"\n  },\n  {\n    question: \"10. Industrial ethanol ko drinking ke liye unfit banane ke process ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Fermentation\",\n      \"B. Hydrogenation\",\n      \"C. Denaturation\",\n      \"D. Combustion\"\n    ],\n    correct: 2,\n    explanation: \"Industrial ethanol ko misuse se bachane ke liye usmein &lt;strong>poisonous substances jaise methanol&lt;\/strong> aur dyes add kiye jate hain. Isse &lt;strong>denatured alcohol&lt;\/strong> kehte hain. Ethanol ko fuel ke roop mein bhi use kiya ja sakta hai, kyunki sufficient oxygen mein burning par mainly &lt;strong>carbon dioxide aur water&lt;\/strong> produce hote hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a, b) => b.score - a.score);\n\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\">ch4 part10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Soap and Detergents&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n  box-sizing: border-box;\n}\n\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\n\nh2 {\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.options input {\n  margin-right: 8px;\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  margin-bottom: 15px;\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\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\n\nbutton:hover {\n  background-color: #1e3c72;\n}\n\ninput&#91;type=\"text\"] {\n  padding: 10px;\n  width: 65%;\n  max-width: 300px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n\n#scoreboard h3 {\n  text-align: center;\n}\n\nol {\n  padding-left: 20px;\n}\n\n@media (max-width: 600px) {\n  body {\n    padding: 12px;\n  }\n\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n\n  input&#91;type=\"text\"] {\n    width: 90%;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Soap and Detergents&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. Most dirt water mein easily dissolve kyun nahi hota?\",\n    options: &#91;\n      \"A. Dirt generally oily nature ka hota hai\",\n      \"B. Dirt ionic hota hai\",\n      \"C. Dirt gas hota hai\",\n      \"D. Dirt sirf oxygen se bana hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Most dirt oily in nature hota hai aur oil water mein dissolve nahi hota. Soap is oily dirt ko remove karne mein help karta hai.\"\n  },\n\n  {\n    question: \"2. Soap molecules chemically kya hote hain?\",\n    options: &#91;\n      \"A. Sodium or potassium salts of long-chain carboxylic acids\",\n      \"B. Calcium salts of short-chain acids\",\n      \"C. Sodium chloride molecules\",\n      \"D. Hydrocarbons only\"\n    ],\n    correct: 0,\n    explanation: \"Soap long-chain carboxylic acids ke sodium ya potassium salts hote hain.\"\n  },\n\n  {\n    question: \"3. Soap molecule ka ionic end kis ke saath interact karta hai?\",\n    options: &#91;\n      \"A. Oil\",\n      \"B. Water\",\n      \"C. Hydrocarbon tail\",\n      \"D. Dirt only\"\n    ],\n    correct: 1,\n    explanation: \"Soap ka ionic end hydrophilic hota hai, yani ye water ke saath interact karta hai.\"\n  },\n\n  {\n    question: \"4. Soap molecule ka hydrocarbon chain kis ke saath interact karta hai?\",\n    options: &#91;\n      \"A. Water\",\n      \"B. Oil\",\n      \"C. Salt\",\n      \"D. Oxygen\"\n    ],\n    correct: 1,\n    explanation: \"Soap ka hydrocarbon part hydrophobic hota hai aur oil\/hydrocarbon ke saath interact karta hai.\"\n  },\n\n  {\n    question: \"5. Soap molecules ke clusters, jisme hydrophobic tails andar aur ionic ends bahar hote hain, kya kehlate hain?\",\n    options: &#91;\n      \"A. Emulsions\",\n      \"B. Micelles\",\n      \"C. Crystals\",\n      \"D. Precipitates\"\n    ],\n    correct: 1,\n    explanation: \"Soap molecules water mein micelles form karte hain. Inmein hydrophobic tails interior mein aur ionic ends surface par hote hain.\"\n  },\n\n  {\n    question: \"6. Soap micelle mein oily dirt generally kahan collect hota hai?\",\n    options: &#91;\n      \"A. Micelle ke centre mein\",\n      \"B. Water ke surface par only\",\n      \"C. Ionic end ke bahar\",\n      \"D. Soap solution ke bottom par\"\n    ],\n    correct: 0,\n    explanation: \"Hydrophobic tails oily dirt ko attract karte hain, isliye oily dirt micelle ke centre mein collect ho jata hai.\"\n  },\n\n  {\n    question: \"7. Soap molecule ke water-interacting end ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Hydrophobic end\",\n      \"B. Hydrophilic end\",\n      \"C. Hydrocarbon end\",\n      \"D. Non-polar end\"\n    ],\n    correct: 1,\n    explanation: \"Hydrophilic ka meaning hai \u201cwater-loving\u201d. Soap ka ionic end water ke saath interact karta hai.\"\n  },\n\n  {\n    question: \"8. Hard water mein soap se scum kyun form hota hai?\",\n    options: &#91;\n      \"A. Sodium aur potassium ions ke karan\",\n      \"B. Calcium aur magnesium salts ke saath reaction ke karan\",\n      \"C. Oxygen ke karan\",\n      \"D. Soap ke evaporation ke karan\"\n    ],\n    correct: 1,\n    explanation: \"Hard water mein calcium aur magnesium ions\/salts present hote hain. Ye soap ke saath react karke insoluble substance (scum) form karte hain.\"\n  },\n\n  {\n    question: \"9. Hard water mein detergents soaps se zyada effective kyun hote hain?\",\n    options: &#91;\n      \"A. Detergents water ko soft bana dete hain\",\n      \"B. Detergents calcium aur magnesium ions ke saath insoluble precipitate nahi banate\",\n      \"C. Detergents mein carbon nahi hota\",\n      \"D. Detergents sirf oil ko dissolve karte hain\"\n    ],\n    correct: 1,\n    explanation: \"Detergents ke charged ends Ca\u00b2\u207a aur Mg\u00b2\u207a ions ke saath insoluble precipitate nahi banate, isliye detergents hard water mein bhi effective rehte hain.\"\n  },\n\n  {\n    question: \"10. Detergents ka commonly use kin products mein hota hai?\",\n    options: &#91;\n      \"A. Shampoos aur clothes-cleaning products\",\n      \"B. Only fuels\",\n      \"C. Only medicines\",\n      \"D. Only fertilisers\"\n    ],\n    correct: 0,\n    explanation: \"Detergents ko commonly shampoos aur clothes-cleaning products mein cleansing agents ke roop mein use kiya jata hai.\"\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    alert(\"Please enter your name.\");\n    return;\n  }\n\n  currentQuestion = 0;\n  score = 0;\n  userAnswers = new Array(questions.length).fill(null);\n  quizSubmitted = false;\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  document.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").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            onchange=\"saveAnswer()\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}\n          >\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\nfunction saveAnswer() {\n\n  if (quizSubmitted) return;\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 nextQuestion() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(answer => answer === null).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      \"You have \" + unanswered + \" unanswered question(s). Do you still want to submit?\"\n    );\n\n    if (!confirmSubmit) return;\n  }\n\n  quizSubmitted = true;\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join(\"\");\n\n    container.innerHTML += `\n\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>Correct Answers: ${score}&lt;\/p>\n    &lt;p>Incorrect or Unanswered: ${questions.length - score}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = 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<h2 class=\"wp-block-heading\">ch4 part11<\/h2>\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>Carbon and Its Compounds - Science Quiz&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n.wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n\n@media(max-width:600px) {\n  body { padding: 10px; }\n  .quiz-container { width: 100%; padding: 15px; }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Carbon and Its Compounds \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  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n\n{\nquestion: \"1. Hard water ko detergent use karke check kiya ja sakta hai?\",\noptions: &#91;\n\"A. Yes, because detergent hard water mein bhi effective rehta hai\",\n\"B. No, detergent water ke saath react nahi karta\",\n\"C. Yes, because detergent water ko red kar deta hai\",\n\"D. No, because detergent sirf oil mein soluble hai\"\n],\ncorrect: 0,\nexplanation: \"Detergents Ca\u00b2\u207a aur Mg\u00b2\u207a ions ke saath insoluble precipitate nahi banate, isliye hard water mein bhi effective rehte hain. Isliye detergent ke behaviour se hard water ka idea mil sakta hai.\"\n},\n\n{\nquestion: \"2. Clothes ko soap ke saath beat, scrub ya washing machine mein agitate kyun kiya jata hai?\",\noptions: &#91;\n\"A. Water ko heat karne ke liye\",\n\"B. Soap ko remove karne ke liye\",\n\"C. Soap ko dirt aur oily particles ke contact mein laakar cleaning improve karne ke liye\",\n\"D. Clothes ka colour change karne ke liye\"\n],\ncorrect: 2,\nexplanation: \"Agitation soap ko dirt ke saath better contact mein laata hai aur micelles ko oily dirt ko suspend\/remove karne mein help karta hai.\"\n},\n\n{\nquestion: \"3. Ethane (C\u2082H\u2086) molecule mein total kitne covalent bonds hote hain?\",\noptions: &#91;\n\"A. 6\",\n\"B. 7\",\n\"C. 8\",\n\"D. 9\"\n],\ncorrect: 1,\nexplanation: \"Ethane mein 1 C\u2013C bond + 6 C\u2013H bonds = 7 covalent bonds hote hain.\"\n},\n\n{\nquestion: \"4. Butanone mein kaunsa functional group present hota hai?\",\noptions: &#91;\n\"A. Alcohol\",\n\"B. Aldehyde\",\n\"C. Ketone\",\n\"D. Carboxylic acid\"\n],\ncorrect: 2,\nexplanation: \"Butanone ek four-carbon compound hai jisme ketone functional group (>C=O) present hota hai.\"\n},\n\n{\nquestion: \"5. Cooking ke time vessel ka bottom outside se black ho raha hai. Iska kya meaning hai?\",\noptions: &#91;\n\"A. Fuel completely burn ho raha hai\",\n\"B. Fuel completely burn nahi ho raha\",\n\"C. Food completely cook nahi hua\",\n\"D. Fuel wet hai\"\n],\ncorrect: 1,\nexplanation: \"Blackening indicates incomplete combustion. Ismein soot (carbon) form hota hai, jo vessel ke bottom par deposit ho sakta hai.\"\n},\n\n{\nquestion: \"6. Homologous series ki main characteristic kya hai?\",\noptions: &#91;\n\"A. Successive members mein \u2014CH\u2082\u2014 ka difference aur same functional group hota hai\",\n\"B. Sabhi members ka molecular formula same hota hai\",\n\"C. Sabhi compounds mein different functional groups hote hain\",\n\"D. Sabhi compounds sirf carbon se bane hote hain\"\n],\ncorrect: 0,\nexplanation: \"Homologous series mein same functional group hota hai aur successive members generally \u2014CH\u2082\u2014 unit se differ karte hain. Chemical properties similar hoti hain.\"\n},\n\n{\nquestion: \"7. Soap hard water mein scum kyun form karta hai?\",\noptions: &#91;\n\"A. Soap oxygen ke saath react karta hai\",\n\"B. Soap Ca\u00b2\u207a aur Mg\u00b2\u207a ions ke saath insoluble substances banata hai\",\n\"C. Soap water ko evaporate karta hai\",\n\"D. Soap hydrogen gas release karta hai\"\n],\ncorrect: 1,\nexplanation: \"Hard water mein calcium aur magnesium salts hote hain. Soap inke saath react karke insoluble precipitate\/scum banata hai.\"\n},\n\n{\nquestion: \"8. Hydrogenation kya hai?\",\noptions: &#91;\n\"A. Saturated hydrocarbons se hydrogen remove karna\",\n\"B. Unsaturated hydrocarbons mein hydrogen add karna\",\n\"C. Carbon ko oxygen mein burn karna\",\n\"D. Water ko hydrogen mein convert karna\"\n],\ncorrect: 1,\nexplanation: \"Hydrogenation mein unsaturated compounds ke double\/triple bonds par hydrogen add karke saturated compounds banaye jate hain. Vegetable oils ki industrial hydrogenation mein nickel catalyst use hota hai.\"\n},\n\n{\nquestion: \"9. Inmein se kaunse hydrocarbons addition reactions undergo kar sakte hain?\",\noptions: &#91;\n\"A. C\u2082H\u2086 aur C\u2083H\u2088\",\n\"B. C\u2083H\u2086 aur C\u2082H\u2082\",\n\"C. CH\u2084 aur C\u2082H\u2086\",\n\"D. C\u2083H\u2088 aur CH\u2084\"\n],\ncorrect: 1,\nexplanation: \"Unsaturated hydrocarbons addition reactions karte hain. C\u2083H\u2086 mein double bond aur C\u2082H\u2082 mein triple bond hota hai.\"\n},\n\n{\nquestion: \"10. Saturated aur unsaturated hydrocarbons ko differentiate karne ke liye kaunsi test useful hai?\",\noptions: &#91;\n\"A. Bromine water test\",\n\"B. Salt test\",\n\"C. Litmus test only\",\n\"D. Sugar test\"\n],\ncorrect: 0,\nexplanation: \"Unsaturated hydrocarbons bromine water ko decolourise kar dete hain because they undergo addition reaction, while saturated hydrocarbons normally bromine water ko decolourise nahi karte under ordinary conditions.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] =\n    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        &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 === 10 ? \"Excellent! Perfect Score! \ud83c\udf89\" :\n       score >= 7 ? \"Very Good! Keep Practicing! \ud83d\udc4f\" :\n       score >= 5 ? \"Good Attempt! Keep Learning! \ud83d\udc4d\" :\n       \"Keep Practicing! You Can Improve! \ud83d\udcaa\"}&lt;\/p>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a,b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch4 part1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5443","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5443","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=5443"}],"version-history":[{"count":2,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5443\/revisions"}],"predecessor-version":[{"id":5448,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5443\/revisions\/5448"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}