{"id":5433,"date":"2026-11-14T04:27:31","date_gmt":"2026-11-14T04:27:31","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5433"},"modified":"2026-11-17T03:59:54","modified_gmt":"2026-11-17T03:59:54","slug":"class-10-science-chapter-1","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5433","title":{"rendered":"class 10 science chapter 1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch1 part 1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\"&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n&lt;title&gt;Chemical Reactions and Equations Quiz&lt;\/title&gt;\n\n&lt;style&gt;\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n&lt;\/style&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n\n&lt;div class=\"quiz-container\"&gt;\n\n&lt;h2&gt;\ud83e\udde0 Chemical Reactions and Equations \u2013 Science Quiz&lt;\/h2&gt;\n\n&lt;div id=\"nameSection\"&gt;\n  &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n  &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n&lt;\/div&gt;\n\n&lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n\n  &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n  &lt;div class=\"controls\"&gt;\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n  &lt;div id=\"scoreboard\"&gt;\n    &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n    &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n  &lt;\/div&gt;\n\n&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\n\nconst questions = &#91;\n\n{\nquestion: \"1. Jab magnesium ribbon ko oxygen mein burn kiya jata hai, to kya product banta hai?\",\noptions: &#91;\n\"A. Magnesium chloride\",\n\"B. Magnesium oxide\",\n\"C. Magnesium sulphate\",\n\"D. Magnesium carbonate\"\n],\ncorrect: 1,\nexplanation: \"Magnesium oxygen ke saath react karke magnesium oxide (MgO) banata hai. Ismein magnesium ribbon dazzling white flame ke saath burn hoti hai.\"\n},\n\n{\nquestion: \"2. Chemical reaction mein jin substances mein chemical change hota hai, unhe kya kaha jata hai?\",\noptions: &#91;\n\"A. Products\",\n\"B. Reactants\",\n\"C. Elements\",\n\"D. Compounds\"\n],\ncorrect: 1,\nexplanation: \"Jo substances reaction mein participate karke chemical change undergo karte hain, unhe reactants kaha jata hai. Products reaction ke baad banne wale naye substances hote hain.\"\n},\n\n{\nquestion: \"3. Magnesium aur oxygen ki word-equation kya hogi?\",\noptions: &#91;\n\"A. Magnesium \u2192 Oxygen + Magnesium oxide\",\n\"B. Oxygen + Magnesium oxide \u2192 Magnesium\",\n\"C. Magnesium + Oxygen \u2192 Magnesium oxide\",\n\"D. Magnesium oxide \u2192 Magnesium + Oxygen\"\n],\ncorrect: 2,\nexplanation: \"Word equation mein reactants left side par aur product right side par likha jata hai. Arrow reaction ki direction show karta hai.\"\n},\n\n{\nquestion: \"4. Chemical equation mein arrow (\u2192) kya indicate karta hai?\",\noptions: &#91;\n\"A. Reactants ki quantity\",\n\"B. Reaction ki direction\",\n\"C. Temperature\",\n\"D. Pressure\"\n],\ncorrect: 1,\nexplanation: \"Arrow reactants se products ki taraf reaction ki direction show karta hai.\"\n},\n\n{\nquestion: \"5. Magnesium + Oxygen \u2192 Magnesium oxide ko chemical formulae mein kaise likhenge?\",\noptions: &#91;\n\"A. Mg + O \u2192 MgO\",\n\"B. Mg\u2082 + O\u2082 \u2192 Mg\u2082O\",\n\"C. Mg + O\u2082 \u2192 MgO\",\n\"D. MgO \u2192 Mg + O\u2082\"\n],\ncorrect: 2,\nexplanation: \"Magnesium ka formula Mg, oxygen ka O\u2082 aur magnesium oxide ka MgO hota hai. Ye equation abhi skeletal ya unbalanced equation hai.\"\n},\n\n{\nquestion: \"6. Agar LHS aur RHS par har element ke atoms ki number same ho, to equation ko kya kahenge?\",\noptions: &#91;\n\"A. Skeletal equation\",\n\"B. Unbalanced equation\",\n\"C. Balanced chemical equation\",\n\"D. Word equation\"\n],\ncorrect: 2,\nexplanation: \"Balanced chemical equation mein har element ke atoms ki sankhya LHS aur RHS par equal hoti hai.\"\n},\n\n{\nquestion: \"7. Chemical equation ko balance karne ka main reason kya hai?\",\noptions: &#91;\n\"A. Law of conservation of mass ko follow karna\",\n\"B. Reaction ko fast banana\",\n\"C. Product ka colour change karna\",\n\"D. Temperature increase karna\"\n],\ncorrect: 0,\nexplanation: \"Law of conservation of mass ke according mass neither created nor destroyed hota hai. Isliye reaction ke dono sides par har element ke atoms ki total number equal honi chahiye.\"\n},\n\n{\nquestion: \"8. Zn + H\u2082SO\u2084 \u2192 ZnSO\u2084 + H\u2082 equation mein hydrogen atoms kitne hain?\",\noptions: &#91;\n\"A. 1 on both sides\",\n\"B. 2 on both sides\",\n\"C. 4 on both sides\",\n\"D. 3 on both sides\"\n],\ncorrect: 1,\nexplanation: \"H\u2082SO\u2084 mein 2 hydrogen atoms hain aur RHS par H\u2082 mein bhi 2 hydrogen atoms hain. Isliye hydrogen balanced hai.\"\n},\n\n{\nquestion: \"9. Zn + H\u2082SO\u2084 \u2192 ZnSO\u2084 + H\u2082 equation ke baare mein kaunsa statement correct hai?\",\noptions: &#91;\n\"A. Ye unbalanced hai\",\n\"B. Sirf oxygen balanced hai\",\n\"C. Har element ke atoms dono sides equal hain\",\n\"D. Ismein koi product nahi hai\"\n],\ncorrect: 2,\nexplanation: \"Zn = 1, H = 2, S = 1 aur O = 4 dono sides par same hain. Therefore, equation balanced hai.\"\n},\n\n{\nquestion: \"10. Equation Fe + H\u2082O \u2192 Fe\u2083O\u2084 + H\u2082 ko balance karne par correct equation kya hogi?\",\noptions: &#91;\n\"A. Fe + H\u2082O \u2192 Fe\u2083O\u2084 + H\u2082\",\n\"B. 3Fe + 4H\u2082O \u2192 Fe\u2083O\u2084 + 4H\u2082\",\n\"C. 4Fe + 3H\u2082O \u2192 Fe\u2083O\u2084 + 3H\u2082\",\n\"D. 3Fe + 3H\u2082O \u2192 Fe\u2083O\u2084 + 3H\u2082\"\n],\ncorrect: 1,\nexplanation: \"RHS mein Fe\u2083O\u2084 ke liye 3 Fe atoms aur 4 O atoms chahiye. Isliye LHS par 3Fe aur 4H\u2082O lenge. Ab hydrogen LHS par 8 hai, isliye RHS par 4H\u2082 hoga. Thus, equation balanced 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\"&gt;${q.question}&lt;\/div&gt;\n\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n      ${q.explanation}\n    &lt;\/div&gt;\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\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 &gt; 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) =&gt; {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) =&gt; {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\n\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\"&gt;${opt}&lt;\/label&gt;`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\n}\n\nfunction saveScore(name, score) {\n\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) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =&gt;\n      `&lt;li&gt;${s.name} - ${s.score}\/10 (${s.date})&lt;\/li&gt;`\n    ).join('');\n}\n\n&lt;\/script&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch1 part 2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\"&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n&lt;title&gt;Chemical Reactions and Equations Quiz&lt;\/title&gt;\n\n&lt;style&gt;\nbody {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n}\n\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.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\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\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&lt;\/style&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n\n&lt;div class=\"quiz-container\"&gt;\n\n&lt;h2&gt;\ud83e\udde0 Chemical Reactions and Equations Quiz&lt;\/h2&gt;\n\n&lt;div id=\"nameSection\"&gt;\n    &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n    &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n&lt;\/div&gt;\n\n&lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n\n    &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n    &lt;div class=\"controls\"&gt;\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n    &lt;div id=\"scoreboard\"&gt;\n        &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n        &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n    &lt;\/div&gt;\n\n&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\n\nconst questions = &#91;\n\n{\nquestion: \"1. Chemical equation ko balance karte time chemical formula ke andar ke numbers ko change kyun nahi karna chahiye?\",\noptions: &#91;\n\"A. Reaction slow ho jayegi\",\n\"B. Substance ki identity change ho sakti hai\",\n\"C. Temperature change ho jayega\",\n\"D. Product disappear ho jayega\"\n],\ncorrect: 1,\nexplanation: \"Chemical formula ke andar subscript change karne se substance ki identity aur composition change ho sakti hai. Isliye equation balance karte waqt sirf coefficients change kiye jate hain.\"\n},\n\n{\nquestion: \"2. Equation Fe + H\u2082O \u2192 Fe\u2083O\u2084 + H\u2082 mein LHS par oxygen atoms kitne hain?\",\noptions: &#91;\n\"A. 1\",\n\"B. 2\",\n\"C. 3\",\n\"D. 4\"\n],\ncorrect: 0,\nexplanation: \"LHS par H\u2082O mein sirf 1 oxygen atom hai. Isliye initial equation mein LHS oxygen = 1 atom hai, jabki RHS par Fe\u2083O\u2084 mein 4 oxygen atoms hain.\"\n},\n\n{\nquestion: \"3. Equation Fe + H\u2082O \u2192 Fe\u2083O\u2084 + H\u2082 mein oxygen ko balance karne ke liye H\u2082O ke aage kya coefficient lagaya jayega?\",\noptions: &#91;\n\"A. 2\",\n\"B. 3\",\n\"C. 4\",\n\"D. 5\"\n],\ncorrect: 2,\nexplanation: \"RHS par Fe\u2083O\u2084 mein 4 oxygen atoms hain. LHS par ek H\u2082O mein 1 oxygen atom hai. Isliye LHS par 4H\u2082O likhenge, jisse oxygen atoms dono sides par 4 ho jayenge.\"\n},\n\n{\nquestion: \"4. 4H\u2082O mein total hydrogen atoms kitne hote hain?\",\noptions: &#91;\n\"A. 2\",\n\"B. 4\",\n\"C. 6\",\n\"D. 8\"\n],\ncorrect: 3,\nexplanation: \"Ek H\u2082O molecule mein 2 hydrogen atoms hote hain. Agar 4 H\u2082O molecules hain, to hydrogen atoms = 4 \u00d7 2 = 8. Isliye 4H\u2082O mein 8 hydrogen atoms hain.\"\n},\n\n{\nquestion: \"5. Equation Fe + 4H\u2082O \u2192 Fe\u2083O\u2084 + 4H\u2082 mein iron (Fe) ko balance karne ke liye kya karna hoga?\",\noptions: &#91;\n\"A. Fe ke aage 2 lagana hoga\",\n\"B. Fe ke aage 3 lagana hoga\",\n\"C. Fe ke aage 4 lagana hoga\",\n\"D. Fe ko remove karna hoga\"\n],\ncorrect: 1,\nexplanation: \"RHS par Fe\u2083O\u2084 mein 3 Fe atoms hain, lekin LHS par sirf 1 Fe atom hai. Isliye LHS par 3Fe likhenge. Final equation hogi: 3Fe + 4H\u2082O \u2192 Fe\u2083O\u2084 + 4H\u2082.\"\n},\n\n{\nquestion: \"6. Equation 3Fe + 4H\u2082O \u2192 Fe\u2083O\u2084 + 4H\u2082 ko balance karne ke liye kaunsi method use ki gayi hai?\",\noptions: &#91;\n\"A. Hit-and-trial method\",\n\"B. Filtration method\",\n\"C. Distillation method\",\n\"D. Separation method\"\n],\ncorrect: 0,\nexplanation: \"Chemical equation ko balance karte waqt suitable smallest whole-number coefficients ko try karke atoms ko equal kiya jata hai. Is method ko hit-and-trial method kaha jata hai.\"\n},\n\n{\nquestion: \"7. Chemical equation mein (s) ka kya meaning hota hai?\",\noptions: &#91;\n\"A. Steam\",\n\"B. Solution\",\n\"C. Solid\",\n\"D. Sulphur\"\n],\ncorrect: 2,\nexplanation: \"Chemical equations mein (s) ka meaning solid state hota hai. Jaise Fe(s) ka matlab hai iron solid state mein present hai.\"\n},\n\n{\nquestion: \"8. Chemical equation mein (aq) ka kya meaning hota hai?\",\noptions: &#91;\n\"A. Aqueous solution\",\n\"B. Air quality\",\n\"C. Acid quantity\",\n\"D. Atom quantity\"\n],\ncorrect: 0,\nexplanation: \"(aq) ka matlab aqueous solution, yani substance water mein dissolved hai. Example: NaCl(aq) ka matlab sodium chloride water mein dissolved hai.\"\n},\n\n{\nquestion: \"9. Equation 3Fe(s) + 4H\u2082O(g) \u2192 Fe\u2083O\u2084(s) + 4H\u2082(g) mein H\u2082O(g) kya indicate karta hai?\",\noptions: &#91;\n\"A. Ice\",\n\"B. Liquid water\",\n\"C. Water vapour\/steam\",\n\"D. Aqueous solution\"\n],\ncorrect: 2,\nexplanation: \"H\u2082O(g) mein (g) gaseous state ko show karta hai. Isliye yahan water steam\/water vapour ke form mein use ho raha hai.\"\n},\n\n{\nquestion: \"10. Chemical equation mein reaction conditions, jaise temperature, pressure ya catalyst, generally kahan likhe ja sakte hain?\",\noptions: &#91;\n\"A. Reactant ke formula ke andar\",\n\"B. Product ke formula ke andar\",\n\"C. Arrow ke upar ya neeche\",\n\"D. Equation ke end mein randomly\"\n],\ncorrect: 2,\nexplanation: \"Reaction ke liye required temperature, pressure ya catalyst ko generally chemical equation ke arrow ke upar ya neeche show kiya jata hai. Isse pata chalta hai ki reaction kin conditions mein hoti hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet submitted = false;\n\nfunction startQuiz() {\n\n    userName = document.getElementById(\"userName\").value.trim();\n\n    if (!userName) {\n        return alert(\"Please enter your name.\");\n    }\n\n    document.getElementById(\"nameSection\").style.display = \"none\";\n    document.getElementById(\"quizSection\").style.display = \"block\";\n\n    showQuestion();\n    loadScoreboard();\n}\n\nfunction showQuestion() {\n\n    const q = questions&#91;currentQuestion];\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = `\n        &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n\n        &lt;div class=\"options\"&gt;\n            ${q.options.map((opt, i) =&gt; `\n                &lt;label&gt;\n                    &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n                    ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}&gt;\n                    ${opt}\n                &lt;\/label&gt;\n            `).join('')}\n        &lt;\/div&gt;\n\n        &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n            ${q.explanation}\n        &lt;\/div&gt;\n    `;\n\n    document.getElementById(\"prevBtn\").style.display =\n        currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"nextBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"submitBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\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 &gt; 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    if (submitted) return;\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) =&gt; {\n        if (userAnswers&#91;index] === q.correct) {\n            score++;\n        }\n    });\n\n    submitted = 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) =&gt; {\n\n        const selected = userAnswers&#91;index];\n        const correct = q.correct;\n\n        let optsHTML = q.options.map((opt, i) =&gt; {\n\n            let cls = \"\";\n\n            if (i === correct) cls = \"correct\";\n\n            if (selected === i &amp;&amp; selected !== correct) {\n                cls = \"wrong\";\n            }\n\n            return `&lt;label class=\"${cls}\"&gt;${opt}&lt;\/label&gt;`;\n\n        }).join('');\n\n        container.innerHTML += `\n            &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n\n            &lt;div class=\"options\"&gt;\n                ${optsHTML}\n            &lt;\/div&gt;\n\n            &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n                ${q.explanation}\n            &lt;\/div&gt;\n\n            &lt;hr&gt;\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML =\n        `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\n}\n\nfunction saveScore(name, score) {\n\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) =&gt; b.score - a.score);\n\n    document.getElementById(\"scoreList\").innerHTML =\n        scores.map(s =&gt;\n            `&lt;li&gt;${s.name} - ${s.score}\/10 (${s.date})&lt;\/li&gt;`\n        ).join('');\n}\n\n&lt;\/script&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch1 part 3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n&lt;title&gt;\ud83e\udde0 Chemistry Quiz \u2013 Chemical Reactions and Equations&lt;\/title&gt;\n&lt;style&gt;\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\n  h2 { text-align: center; color: #1e3c72; }\n\n  .question { font-weight: bold; margin: 10px 0; }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover { background: #f0f0f0; }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n\n  .controls { text-align: center; margin-top: 15px; }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover { background-color: #1e3c72; }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 { text-align: center; }\n\n  ol { padding-left: 20px; }\n\n  @media (max-width: 600px) {\n    body { padding: 10px; }\n    .quiz-container { width: 100%; padding: 15px; }\n  }\n&lt;\/style&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n&lt;div class=\"quiz-container\"&gt;\n\n  &lt;h2&gt;\ud83e\udde0 Chemistry Quiz \u2013 Chemical Reactions and Equations&lt;\/h2&gt;\n\n  &lt;div id=\"nameSection\"&gt;\n    &lt;p&gt;&lt;strong&gt;Enter your name to start:&lt;\/strong&gt;&lt;\/p&gt;\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\"&gt;\n    &lt;button onclick=\"startQuiz()\"&gt;Start Quiz&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div id=\"quizSection\" style=\"display:none;\"&gt;\n    &lt;div id=\"questionContainer\"&gt;&lt;\/div&gt;\n\n    &lt;div class=\"controls\"&gt;\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\"&gt;Previous&lt;\/button&gt;\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\"&gt;Next&lt;\/button&gt;\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\"&gt;Submit&lt;\/button&gt;\n    &lt;\/div&gt;\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\"&gt;&lt;\/div&gt;\n\n    &lt;div id=\"scoreboard\"&gt;\n      &lt;h3&gt;\ud83c\udfc6 Scoreboard&lt;\/h3&gt;\n      &lt;ol id=\"scoreList\"&gt;&lt;\/ol&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\n\nconst questions = &#91;\n\n  {\n    question: \"1. Jab calcium oxide (CaO) ko water ke saath react karaya jata hai, to kaunsa product banta hai?\",\n    options: &#91;\n      \"A. Calcium carbonate\",\n      \"B. Calcium hydroxide\",\n      \"C. Calcium chloride\",\n      \"D. Calcium sulphate\"\n    ],\n    correct: 1,\n    explanation: \"Calcium oxide (CaO) water (H\u2082O) ke saath react karke calcium hydroxide &#91;Ca(OH)\u2082], jise slaked lime bhi kehte hain, banata hai. Reaction mein heat bhi release hoti hai.&lt;br&gt;&lt;br&gt;&lt;strong&gt;CaO + H\u2082O \u2192 Ca(OH)\u2082&lt;\/strong&gt;\"\n  },\n\n  {\n    question: \"2. Aisi reaction jisme do ya do se zyada reactants milkar ek single product banate hain, use kya kaha jata hai?\",\n    options: &#91;\n      \"A. Decomposition reaction\",\n      \"B. Displacement reaction\",\n      \"C. Combination reaction\",\n      \"D. Neutralisation reaction\"\n    ],\n    correct: 2,\n    explanation: \"Jab two or more substances combine hokar ek single product banate hain, to us reaction ko combination reaction kehte hain.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Example: CaO + H\u2082O \u2192 Ca(OH)\u2082&lt;\/strong&gt;\"\n  },\n\n  {\n    question: \"3. C(s) + O\u2082(g) \u2192 CO\u2082(g) kis type ki chemical reaction hai?\",\n    options: &#91;\n      \"A. Combination reaction\",\n      \"B. Decomposition reaction\",\n      \"C. Displacement reaction\",\n      \"D. Double displacement reaction\"\n    ],\n    correct: 0,\n    explanation: \"Yahan carbon aur oxygen do reactants hain jo combine hokar sirf ek product, CO\u2082, banate hain. Isliye ye combination reaction hai.\"\n  },\n\n  {\n    question: \"4. Calcium oxide aur water ki reaction mein large amount of heat release hoti hai. Aisi reaction ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Endothermic reaction\",\n      \"B. Exothermic reaction\",\n      \"C. Decomposition reaction\",\n      \"D. Displacement reaction\"\n    ],\n    correct: 1,\n    explanation: \"Jis chemical reaction mein heat release hoti hai, use exothermic reaction kehte hain. CaO aur H\u2082O ki reaction mein beaker warm ho jata hai kyunki heat release hoti hai.\"\n  },\n\n  {\n    question: \"5. Respiration ko kis type ka process\/reaction mana jata hai?\",\n    options: &#91;\n      \"A. Endothermic\",\n      \"B. Exothermic\",\n      \"C. Decomposition only\",\n      \"D. Displacement only\"\n    ],\n    correct: 1,\n    explanation: \"Respiration mein glucose oxygen ke saath react karta hai aur energy release hoti hai. Isliye respiration ko exothermic process kaha jata hai.&lt;br&gt;&lt;br&gt;&lt;strong&gt;C\u2086H\u2081\u2082O\u2086 + 6O\u2082 \u2192 6CO\u2082 + 6H\u2082O + energy&lt;\/strong&gt;\"\n  },\n\n  {\n    question: \"6. Aisi reaction jisme single reactant break hokar two or more simpler products banata hai, use kya kaha jata hai?\",\n    options: &#91;\n      \"A. Combination reaction\",\n      \"B. Displacement reaction\",\n      \"C. Decomposition reaction\",\n      \"D. Combustion reaction\"\n    ],\n    correct: 2,\n    explanation: \"Decomposition reaction mein ek reactant tootkar do ya do se zyada simpler products banata hai.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Example: CaCO\u2083 \u2192 CaO + CO\u2082&lt;\/strong&gt;\"\n  },\n\n  {\n    question: \"7. CaCO\u2083(s) \u2192 CaO(s) + CO\u2082(g) reaction ko heat karne par perform kiya jata hai. Is reaction ko specifically kya kaha jayega?\",\n    options: &#91;\n      \"A. Thermal decomposition\",\n      \"B. Combination\",\n      \"C. Photochemical reaction\",\n      \"D. Displacement\"\n    ],\n    correct: 0,\n    explanation: \"Jab decomposition reaction heat dene par hoti hai, use thermal decomposition kehte hain. Calcium carbonate ko heat karne par calcium oxide aur carbon dioxide bante hain.\"\n  },\n\n  {\n    question: \"8. Silver chloride ko sunlight mein rakhne par kya hota hai?\",\n    options: &#91;\n      \"A. Silver chloride combine hokar water banata hai\",\n      \"B. Silver chloride decompose hokar silver aur chlorine banata hai\",\n      \"C. Silver chloride copper mein change ho jata hai\",\n      \"D. Koi reaction nahi hoti\"\n    ],\n    correct: 1,\n    explanation: \"Silver chloride sunlight ki presence mein decompose hota hai. Is reaction mein silver aur chlorine gas banti hai. Yahan light energy decomposition reaction ko cause karti hai.&lt;br&gt;&lt;br&gt;&lt;strong&gt;2AgCl(s) \u2192 2Ag(s) + Cl\u2082(g)&lt;\/strong&gt;\"\n  },\n\n  {\n    question: \"9. Decomposition reactions mein reactants ko break karne ke liye energy kis form mein provide ki ja sakti hai?\",\n    options: &#91;\n      \"A. Sirf heat\",\n      \"B. Sirf light\",\n      \"C. Sirf electricity\",\n      \"D. Heat, light ya electricity\"\n    ],\n    correct: 3,\n    explanation: \"Decomposition reaction ke liye reactants ke bonds break karne ko energy chahiye hoti hai. Ye energy heat, light ya electricity ke form mein di ja sakti hai. Isi basis par thermal, photochemical aur electrolytic decomposition examples milte hain.\"\n  },\n\n  {\n    question: \"10. 2FeSO\u2084(s) \u2192 Fe\u2082O\u2083(s) + SO\u2082(g) + SO\u2083(g) reaction mein ek reactant se multiple products bante hain. Ye kaunsi reaction hai?\",\n    options: &#91;\n      \"A. Combination reaction\",\n      \"B. Decomposition reaction\",\n      \"C. Displacement reaction\",\n      \"D. Neutralisation reaction\"\n    ],\n    correct: 1,\n    explanation: \"Yahan ek single reactant ferrous sulphate (FeSO\u2084) break hokar ferric oxide (Fe\u2082O\u2083), sulphur dioxide (SO\u2082) aur sulphur trioxide (SO\u2083) banata hai. Isliye ye decomposition reaction hai. Heating ke through hone ke karan ise thermal decomposition bhi 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\"&gt;${q.question}&lt;\/div&gt;\n\n    &lt;div class=\"options\"&gt;\n      ${q.options.map((opt, i) =&gt; `\n        &lt;label&gt;\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}&gt;\n          ${opt}\n        &lt;\/label&gt;\n      `).join('')}\n    &lt;\/div&gt;\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\"&gt;\n      ${q.explanation}\n    &lt;\/div&gt;\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\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 &gt; 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) =&gt; {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) =&gt; {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) =&gt; {\n\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\"&gt;${opt}&lt;\/label&gt;`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\"&gt;${q.question}&lt;\/div&gt;\n\n      &lt;div class=\"options\"&gt;${optsHTML}&lt;\/div&gt;\n\n      &lt;div class=\"explanation\" style=\"display:block;\"&gt;\n        ${q.explanation}\n      &lt;\/div&gt;\n\n      &lt;hr&gt;\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3&gt;Your Score: ${score} \/ ${questions.length}&lt;\/h3&gt;`;\n}\n\nfunction saveScore(name, score) {\n\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) =&gt; b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =&gt;\n      `&lt;li&gt;${s.name} - ${s.score}\/10 (${s.date})&lt;\/li&gt;`\n    ).join('');\n}\n\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch1 part 4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Chemical Reactions and Equations&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\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.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\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\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&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 Chemical Reactions and Equations&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{\nquestion: \"1. Jab iron nail ko copper sulphate solution mein dip kiya jata hai, to iron nail ka colour brownish kyun ho jata hai?\",\noptions: &#91;\n\"A. Iron dissolve hokar blue ho jata hai\",\n\"B. Copper iron nail par deposit ho jata hai\",\n\"C. Copper sulphate iron mein convert ho jata hai\",\n\"D. Iron oxygen ke saath react karta hai\"\n],\ncorrect: 1,\nexplanation: \"Iron, copper se zyada reactive hai. Isliye iron CuSO\u2084 se copper ko displace kar deta hai. Copper metal iron nail ki surface par deposit hota hai, jisse nail brownish\/reddish-brown dikhne lagta hai.\"\n},\n\n{\nquestion: \"2. Iron ko copper sulphate solution mein daalne par blue colour kyun fade hota hai?\",\noptions: &#91;\n\"A. Copper sulphate solution evaporate ho jata hai\",\n\"B. Iron copper ko displace karke iron sulphate banata hai\",\n\"C. Water ka colour change ho jata hai\",\n\"D. Copper sulphate oxygen mein convert ho jata hai\"\n],\ncorrect: 1,\nexplanation: \"Reaction hoti hai: Fe + CuSO\u2084 \u2192 FeSO\u2084 + Cu. Blue CuSO\u2084 consume hokar FeSO\u2084 banta hai, isliye copper sulphate solution ka blue colour fade ho jata hai.\"\n},\n\n{\nquestion: \"3. Reaction Fe + CuSO\u2084 \u2192 FeSO\u2084 + Cu kis type ki reaction hai?\",\noptions: &#91;\n\"A. Combination reaction\",\n\"B. Decomposition reaction\",\n\"C. Displacement reaction\",\n\"D. Double displacement reaction\"\n],\ncorrect: 2,\nexplanation: \"Is reaction mein iron, copper ko CuSO\u2084 se displace\/remove kar deta hai. Isliye ise displacement reaction kehte hain.\"\n},\n\n{\nquestion: \"4. Inmein se kaunsa element copper ko uske compound se displace kar sakta hai?\",\noptions: &#91;\n\"A. Gold\",\n\"B. Silver\",\n\"C. Zinc\",\n\"D. Copper\"\n],\ncorrect: 2,\nexplanation: \"Zinc copper se zyada reactive hai. Isliye zinc copper sulphate se copper ko displace kar sakta hai: Zn + CuSO\u2084 \u2192 ZnSO\u2084 + Cu.\"\n},\n\n{\nquestion: \"5. Reaction Na\u2082SO\u2084 + BaCl\u2082 \u2192 BaSO\u2084 + 2NaCl mein white precipitate kaunsa hai?\",\noptions: &#91;\n\"A. Na\u2082SO\u2084\",\n\"B. BaCl\u2082\",\n\"C. BaSO\u2084\",\n\"D. NaCl\"\n],\ncorrect: 2,\nexplanation: \"Reaction mein barium sulphate (BaSO\u2084) form hota hai jo water mein insoluble hai. Isliye ye ek white precipitate ke form mein \u0926\u093f\u0916\u093e\u0908 deta hai.\"\n},\n\n{\nquestion: \"6. Aisi reaction jisme reactants ke beech ions exchange hote hain, use kya kaha jata hai?\",\noptions: &#91;\n\"A. Combination reaction\",\n\"B. Double displacement reaction\",\n\"C. Decomposition reaction\",\n\"D. Combustion reaction\"\n],\ncorrect: 1,\nexplanation: \"Double displacement reaction mein reactants ke ions ek doosre ke saath exchange karte hain. Example: Na\u2082SO\u2084 + BaCl\u2082 \u2192 BaSO\u2084 + 2NaCl.\"\n},\n\n{\nquestion: \"7. Aisi reaction jisme an insoluble substance (precipitate) form hota hai, use kya kaha ja sakta hai?\",\noptions: &#91;\n\"A. Precipitation reaction\",\n\"B. Combination reaction\",\n\"C. Oxidation reaction\",\n\"D. Reduction reaction\"\n],\ncorrect: 0,\nexplanation: \"Jab chemical reaction ke result mein water mein insoluble solid form hota hai, to use precipitate kehte hain. Aisi reaction ko precipitation reaction kaha ja sakta hai.\"\n},\n\n{\nquestion: \"8. Copper powder ko heat karne par uski surface par black substance CuO kyun banta hai?\",\noptions: &#91;\n\"A. Copper oxygen gain karta hai\",\n\"B. Copper hydrogen gain karta hai\",\n\"C. Copper oxygen lose karta hai\",\n\"D. Copper water gain karta hai\"\n],\ncorrect: 0,\nexplanation: \"Reaction hoti hai: 2Cu + O\u2082 \u2192 2CuO. Copper oxygen gain karta hai aur copper oxide (CuO) banata hai. Oxygen gain karne ko oxidation kaha jata hai.\"\n},\n\n{\nquestion: \"9. Agar kisi substance mein reaction ke during oxygen add hota hai, to use kya kaha jata hai?\",\noptions: &#91;\n\"A. Reduced\",\n\"B. Oxidised\",\n\"C. Displaced\",\n\"D. Precipitated\"\n],\ncorrect: 1,\nexplanation: \"Agar koi substance oxygen gain karta hai, to wo oxidised hota hai. Example: copper oxygen gain karke CuO banata hai.\"\n},\n\n{\nquestion: \"10. Reaction CuO + H\u2082 \u2192 Cu + H\u2082O mein CuO aur H\u2082 ke saath kya hota hai?\",\noptions: &#91;\n\"A. CuO oxidised aur H\u2082 reduced hota hai\",\n\"B. CuO reduced aur H\u2082 oxidised hota hai\",\n\"C. Dono oxidised hote hain\",\n\"D. Dono reduced hote hain\"\n],\ncorrect: 1,\nexplanation: \"CuO oxygen lose karta hai aur Cu banata hai, isliye CuO reduced hota hai. Hydrogen oxygen gain karke H\u2082O banata hai, isliye H\u2082 oxidised hota hai. Jab oxidation aur reduction ek hi reaction mein saath hoti hain, use redox reaction kehte hain.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n    userName = document.getElementById(\"userName\").value.trim();\n\n    if (!userName) {\n        return alert(\"Please enter your name.\");\n    }\n\n    document.getElementById(\"nameSection\").style.display = \"none\";\n    document.getElementById(\"quizSection\").style.display = \"block\";\n\n    showQuestion();\n    loadScoreboard();\n}\n\nfunction showQuestion() {\n\n    const q = questions&#91;currentQuestion];\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = `\n        &lt;div class=\"question\">${q.question}&lt;\/div>\n\n        &lt;div class=\"options\">\n            ${q.options.map((opt, i) => `\n                &lt;label>\n                    &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n                    ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n                    ${opt}\n                &lt;\/label>\n            `).join('')}\n        &lt;\/div>\n\n        &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n            ${q.explanation}\n        &lt;\/div>\n    `;\n\n    document.getElementById(\"prevBtn\").style.display =\n        currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"nextBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"submitBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion &lt; questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n    }\n}\n\nfunction prevQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n    }\n}\n\nfunction saveAnswer() {\n\n    const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n    userAnswers&#91;currentQuestion] = selected\n        ? parseInt(selected.value)\n        : null;\n}\n\nfunction submitQuiz() {\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) => {\n        if (userAnswers&#91;index] === q.correct) {\n            score++;\n        }\n    });\n\n    showResults();\n    saveScore(userName, score);\n    loadScoreboard();\n}\n\nfunction showResults() {\n\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = \"\";\n\n    questions.forEach((q, index) => {\n\n        const selected = userAnswers&#91;index];\n        const correct = q.correct;\n\n        let optsHTML = q.options.map((opt, i) => {\n\n            let cls = \"\";\n\n            if (i === correct) cls = \"correct\";\n\n            if (selected === i &amp;&amp; selected !== correct) {\n                cls = \"wrong\";\n            }\n\n            return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n        }).join('');\n\n        container.innerHTML += `\n            &lt;div class=\"question\">${q.question}&lt;\/div>\n\n            &lt;div class=\"options\">\n                ${optsHTML}\n            &lt;\/div>\n\n            &lt;div class=\"explanation\" style=\"display:block;\">\n                ${q.explanation}\n            &lt;\/div>\n\n            &lt;hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML =\n        `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\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\">ch1 part 5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n  &lt;meta charset=\"UTF-8\">\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  &lt;title>Chemical Reactions and Equations Quiz&lt;\/title>\n\n  &lt;style>\n    body {\n      font-family: Arial, sans-serif;\n      background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n      display: flex;\n      justify-content: center;\n      align-items: flex-start;\n      padding: 30px;\n      min-height: 100vh;\n    }\n\n    .quiz-container {\n      background: #fff;\n      padding: 25px;\n      border-radius: 12px;\n      box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n      width: 90%;\n      max-width: 800px;\n    }\n\n    h2 {\n      text-align: center;\n      color: #1e3c72;\n    }\n\n    .question {\n      font-weight: bold;\n      margin: 10px 0;\n      line-height: 1.6;\n    }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover {\n      background: #f0f0f0;\n    }\n\n    .correct {\n      background-color: #c8f7c5 !important;\n      border-color: #28a745 !important;\n    }\n\n    .wrong {\n      background-color: #f8d7da !important;\n      border-color: #dc3545 !important;\n    }\n\n    .explanation {\n      background: #e9ecef;\n      padding: 10px;\n      margin-top: 10px;\n      border-left: 5px solid #2a5298;\n      display: none;\n      line-height: 1.6;\n    }\n\n    .controls {\n      text-align: center;\n      margin-top: 15px;\n    }\n\n    button {\n      background-color: #2a5298;\n      color: white;\n      border: none;\n      padding: 10px 20px;\n      border-radius: 6px;\n      cursor: pointer;\n      margin: 5px;\n    }\n\n    button:hover {\n      background-color: #1e3c72;\n    }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 {\n      text-align: center;\n    }\n\n    ol {\n      padding-left: 20px;\n    }\n\n    #userName {\n      padding: 10px;\n      width: 65%;\n      border: 1px solid #ccc;\n      border-radius: 6px;\n    }\n  &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Chemical Reactions and Equations \u2013 Practice Quiz&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Iron articles ko kuch time tak open environment mein chhodne par unke upar reddish-brown coating kyun ban jati hai?\",\n    options: &#91;\n      \"A. Melting ke karan\",\n      \"B. Rusting ke karan\",\n      \"C. Freezing ke karan\",\n      \"D. Distillation ke karan\"\n    ],\n    correct: 1,\n    explanation: \"Iron moisture aur air ke contact mein aakar rust develop karta hai. Iron par banne wali reddish-brown coating ko rust kehte hain aur is process ko rusting kaha jata hai.\"\n  },\n\n  {\n    question: \"2. Jab metal surroundings mein present moisture, acids etc. ke attack se damage hota hai, to is process ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Corrosion\",\n      \"B. Reduction\",\n      \"C. Combination\",\n      \"D. Precipitation\"\n    ],\n    correct: 0,\n    explanation: \"Jab koi metal moisture, acids ya surrounding substances ke attack se gradually damage hota hai, to is process ko corrosion kehte hain. Rusting of iron corrosion ka common example hai.\"\n  },\n\n  {\n    question: \"3. Silver par generally kis colour ki coating corrosion ke result mein dekhi ja sakti hai?\",\n    options: &#91;\n      \"A. Green\",\n      \"B. Blue\",\n      \"C. Black\",\n      \"D. White\"\n    ],\n    correct: 2,\n    explanation: \"Silver ke surface par corrosion ke result mein black coating develop ho sakti hai. Ye coating mainly silver sulphide (Ag\u2082S) hoti hai. Copper par generally green coating dekhi jati hai.\"\n  },\n\n  {\n    question: \"4. Copper par corrosion ke result mein generally kis colour ki coating banti hai?\",\n    options: &#91;\n      \"A. Green\",\n      \"B. Red\",\n      \"C. Yellow\",\n      \"D. Blue\"\n    ],\n    correct: 0,\n    explanation: \"Copper surrounding substances ke saath react karke surface par green coating develop kar sakta hai. Ye corrosion ka example hai.\"\n  },\n\n  {\n    question: \"5. Fats aur oils ke oxidise hone par food mein kya change hota hai?\",\n    options: &#91;\n      \"A. Food fresh ho jata hai\",\n      \"B. Food ka smell aur taste change ho jata hai\",\n      \"C. Food ka weight double ho jata hai\",\n      \"D. Food freeze ho jata hai\"\n    ],\n    correct: 1,\n    explanation: \"Jab fats aur oils oxidise hote hain, food rancid ho jata hai. Ismein food ka smell aur taste unpleasant ho jata hai. Is process ko rancidity kehte hain.\"\n  },\n\n  {\n    question: \"6. Rancidity ko slow karne ke liye food ko kis type ke container mein rakhna useful hota hai?\",\n    options: &#91;\n      \"A. Open container\",\n      \"B. Air-tight container\",\n      \"C. Wet container\",\n      \"D. Broken container\"\n    ],\n    correct: 1,\n    explanation: \"Air-tight container mein food ka air\/oxygen ke saath contact kam hota hai. Isse fats aur oils ki oxidation slow hoti hai aur rancidity delay hoti hai.\"\n  },\n\n  {\n    question: \"7. Chips manufacturers chips ke packets mein nitrogen gas kyun fill karte hain?\",\n    options: &#91;\n      \"A. Chips ko sweet banane ke liye\",\n      \"B. Chips ka colour change karne ke liye\",\n      \"C. Oxidation ko prevent\/slow karne ke liye\",\n      \"D. Chips ko dissolve karne ke liye\"\n    ],\n    correct: 2,\n    explanation: \"Chips mein fats\/oils hote hain jo oxygen ke contact mein oxidise hokar rancidity cause kar sakte hain. Nitrogen gas use karne se oxidation ko prevent\/slow karne mein help milti hai.\"\n  },\n\n  {\n    question: \"8. Aise substances jo food mein oxidation ko prevent karte hain, unhe kya kaha jata hai?\",\n    options: &#91;\n      \"A. Catalysts\",\n      \"B. Antioxidants\",\n      \"C. Reactants\",\n      \"D. Precipitates\"\n    ],\n    correct: 1,\n    explanation: \"Antioxidants aise substances hain jo oxidation ko prevent ya slow karne mein help karte hain. Isliye fats aur oils wale foods mein rancidity ko control karne ke liye antioxidants use kiye ja sakte hain.\"\n  },\n\n  {\n    question: \"9. Reaction 4Na + O\u2082 \u2192 2Na\u2082O mein kaunsa substance oxidised hota hai?\",\n    options: &#91;\n      \"A. Sodium\",\n      \"B. Oxygen\",\n      \"C. Sodium oxide\",\n      \"D. None\"\n    ],\n    correct: 0,\n    explanation: \"Is reaction mein sodium oxygen gain karta hai aur sodium oxide banata hai. Oxygen gain karna oxidation hota hai. Isliye sodium (Na) oxidised hota hai.\"\n  },\n\n  {\n    question: \"10. Reaction CuO + H\u2082 \u2192 Cu + H\u2082O mein kaunsa statement correct hai?\",\n    options: &#91;\n      \"A. CuO oxidised aur H\u2082 reduced hota hai\",\n      \"B. CuO reduced aur H\u2082 oxidised hota hai\",\n      \"C. Dono oxidised hote hain\",\n      \"D. Dono reduced hote hain\"\n    ],\n    correct: 1,\n    explanation: \"CuO oxygen lose karke Cu banata hai, isliye CuO reduced hota hai. H\u2082 oxygen gain karke H\u2082O banata hai, isliye H\u2082 oxidised hota hai. Ek hi reaction mein oxidation aur reduction dono hone par ise redox reaction 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] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\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\">ch1 part 6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Chemical Reactions and Equations&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 {\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 { text-align: center; margin-top: 15px; }\nbutton {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Chemical Reactions and Equations&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>\n\nconst questions = &#91;\n\n{\nquestion: \"1. Reaction 2PbO + C \u2192 2Pb + CO\u2082 mein kaunsa statement incorrect hai?\",\noptions: &#91;\n\"A. Lead oxide is getting reduced\",\n\"B. Carbon is getting oxidised\",\n\"C. Lead is getting reduced\",\n\"D. Carbon dioxide is getting oxidised\"\n],\ncorrect: 3,\nexplanation: \"Is reaction mein PbO oxygen lose karke Pb banata hai, isliye PbO reduced hota hai. Carbon oxygen gain karke CO\u2082 banata hai, isliye carbon oxidised hota hai. CO\u2082 oxidised nahi ho raha, balki product hai.\"\n},\n\n{\nquestion: \"2. Reaction Fe\u2082O\u2083 + 2Al \u2192 Al\u2082O\u2083 + 2Fe kis type ki reaction hai?\",\noptions: &#91;\n\"A. Combination reaction\",\n\"B. Decomposition reaction\",\n\"C. Displacement reaction\",\n\"D. Double displacement reaction\"\n],\ncorrect: 2,\nexplanation: \"Is reaction mein aluminium, iron ko Fe\u2082O\u2083 se displace karta hai aur Al\u2082O\u2083 aur Fe form hote hain. Isliye ye displacement reaction hai.\"\n},\n\n{\nquestion: \"3. Jab dilute hydrochloric acid ko iron filings ke saath react karaya jata hai, to kya products bante hain?\",\noptions: &#91;\n\"A. Hydrogen gas and iron chloride\",\n\"B. Chlorine gas and iron hydroxide\",\n\"C. No reaction\",\n\"D. Iron salt and water\"\n],\ncorrect: 0,\nexplanation: \"Iron dilute HCl ke saath react karta hai: Fe + 2HCl \u2192 FeCl\u2082 + H\u2082. Is reaction mein iron chloride aur hydrogen gas produce hote hain.\"\n},\n\n{\nquestion: \"4. Chemical equation ko balance karna kyun necessary hai?\",\noptions: &#91;\n\"A. Reaction ko fast karne ke liye\",\n\"B. Law of conservation of mass ko follow karne ke liye\",\n\"C. Product ka colour change karne ke liye\",\n\"D. Temperature increase karne ke liye\"\n],\ncorrect: 1,\nexplanation: \"Chemical reaction mein atoms create ya destroy nahi hote. Isliye reactants aur products dono sides par har element ke atoms ki number equal honi chahiye. Isi ko ensure karne ke liye equation ko balance kiya jata hai.\"\n},\n\n{\nquestion: \"5. Hydrogen gas nitrogen ke saath react karke ammonia banati hai. Iski balanced chemical equation kya hogi?\",\noptions: &#91;\n\"A. H\u2082 + N\u2082 \u2192 NH\u2083\",\n\"B. N\u2082 + 3H\u2082 \u2192 2NH\u2083\",\n\"C. 2N\u2082 + H\u2082 \u2192 2NH\u2083\",\n\"D. N\u2082 + H\u2082 \u2192 2NH\u2083\"\n],\ncorrect: 1,\nexplanation: \"LHS par N\u2082 mein 2 nitrogen atoms hain, isliye RHS par 2NH\u2083 lenge. Ab RHS mein hydrogen = 6, isliye LHS par 3H\u2082 chahiye. Balanced equation hai: N\u2082 + 3H\u2082 \u2192 2NH\u2083.\"\n},\n\n{\nquestion: \"6. Equation HNO\u2083 + Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + H\u2082O ko balance karne par correct equation kya hogi?\",\noptions: &#91;\n\"A. HNO\u2083 + Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + H\u2082O\",\n\"B. 2HNO\u2083 + Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + 2H\u2082O\",\n\"C. HNO\u2083 + 2Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + H\u2082O\",\n\"D. 2HNO\u2083 + 2Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + H\u2082O\"\n],\ncorrect: 1,\nexplanation: \"Ca(NO\u2083)\u2082 mein 2 nitrate groups hain, isliye LHS par 2HNO\u2083 chahiye. Iske baad hydrogen aur oxygen ko balance karne ke liye 2H\u2082O lagta hai. Balanced equation: 2HNO\u2083 + Ca(OH)\u2082 \u2192 Ca(NO\u2083)\u2082 + 2H\u2082O.\"\n},\n\n{\nquestion: \"7. ZnCO\u2083(s) \u2192 ZnO(s) + CO\u2082(g) kis type ki reaction hai?\",\noptions: &#91;\n\"A. Combination reaction\",\n\"B. Displacement reaction\",\n\"C. Decomposition reaction\",\n\"D. Double displacement reaction\"\n],\ncorrect: 2,\nexplanation: \"Yahan ek single compound ZnCO\u2083 break hokar do simpler substances ZnO aur CO\u2082 banata hai. Isliye ye decomposition reaction hai.\"\n},\n\n{\nquestion: \"8. H\u2082(g) + Cl\u2082(g) \u2192 2HCl(g) kis type ki reaction hai?\",\noptions: &#91;\n\"A. Combination reaction\",\n\"B. Decomposition reaction\",\n\"C. Displacement reaction\",\n\"D. Precipitation reaction\"\n],\ncorrect: 0,\nexplanation: \"Yahan hydrogen aur chlorine, do reactants, combine hokar ek single product HCl banate hain. Isliye ye combination reaction hai.\"\n},\n\n{\nquestion: \"9. Exothermic reaction ka correct meaning kya hai?\",\noptions: &#91;\n\"A. Jisme energy absorb hoti hai\",\n\"B. Jisme heat\/energy release hoti hai\",\n\"C. Jisme sirf gas produce hoti hai\",\n\"D. Jisme koi energy change nahi hota\"\n],\ncorrect: 1,\nexplanation: \"Jis reaction mein heat release hoti hai, use exothermic reaction kehte hain. Respiration iska important example hai, kyunki glucose oxygen ke saath react karke energy release karta hai.\"\n},\n\n{\nquestion: \"10. Decomposition reactions ko combination reactions ka opposite kyun kaha jata hai?\",\noptions: &#91;\n\"A. Combination mein one product break hota hai\",\n\"B. Decomposition mein two or more substances combine hote hain\",\n\"C. Combination mein two or more substances se single product banta hai, jabki decomposition mein single substance se two or more products bante hain\",\n\"D. Dono reactions exactly same hoti hain\"\n],\ncorrect: 2,\nexplanation: \"Combination reaction: Two or more reactants \u2192 single product. Example: CaO + H\u2082O \u2192 Ca(OH)\u2082.&lt;br>&lt;br>Decomposition reaction: Single reactant \u2192 two or more products. Example: CaCO\u2083 \u2192 CaO + CO\u2082.&lt;br>&lt;br>Isliye dono reactions ko ek doosre ka opposite 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) 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\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\n    saveAnswer();\n\n    if (currentQuestion &lt; questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n    }\n}\n\nfunction prevQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n    }\n}\n\nfunction saveAnswer() {\n\n    const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n    userAnswers&#91;currentQuestion] = selected\n        ? parseInt(selected.value)\n        : null;\n}\n\nfunction submitQuiz() {\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) => {\n        if (userAnswers&#91;index] === q.correct) score++;\n    });\n\n    showResults();\n    saveScore(userName, score);\n    loadScoreboard();\n}\n\nfunction showResults() {\n\n    const container = document.getElementById(\"questionContainer\");\n\n    container.innerHTML = \"\";\n\n    questions.forEach((q, index) => {\n\n        const selected = userAnswers&#91;index];\n        const correct = q.correct;\n\n        let optsHTML = q.options.map((opt, i) => {\n\n            let cls = \"\";\n\n            if (i === correct) cls = \"correct\";\n\n            if (selected === i &amp;&amp; selected !== correct) {\n                cls = \"wrong\";\n            }\n\n            return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n        }).join('');\n\n        container.innerHTML += `\n            &lt;div class=\"question\">${q.question}&lt;\/div>\n            &lt;div class=\"options\">${optsHTML}&lt;\/div>\n            &lt;div class=\"explanation\" style=\"display:block;\">\n                ${q.explanation}\n            &lt;\/div>\n            &lt;hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML =\n        `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.push({\n        name,\n        score,\n        date: new Date().toLocaleString()\n    });\n\n    localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.sort((a,b) => b.score - a.score);\n\n    document.getElementById(\"scoreList\").innerHTML =\n        scores.map(s =>\n            `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n        ).join('');\n}\n\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch1 part 1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5433","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5433","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=5433"}],"version-history":[{"count":3,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5433\/revisions"}],"predecessor-version":[{"id":5438,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5433\/revisions\/5438"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}