{"id":5515,"date":"2026-11-24T04:54:03","date_gmt":"2026-11-24T04:54:03","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5515"},"modified":"2026-11-24T04:54:03","modified_gmt":"2026-11-24T04:54:03","slug":"class-9-science-chapter-9","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5515","title":{"rendered":"class 9 science chapter 9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch9part1<\/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 Class 9 Science Quiz \u2013 Laws of Chemical Combination&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 Class 9 Science Quiz \u2013 Laws of Chemical Combination&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. Activity 9.1 mein water aur common salt ko beaker mein mix karke salt dissolve kiya gaya. Is process mein mass ke baare mein kya observation hoti hai?\",\n    options: &#91;\n      \"A. Mass completely disappear ho jata hai\",\n      \"B. Solution ka mass water aur salt ke masses ke sum ke equal hota hai\",\n      \"C. Solution ka mass sirf water ke equal hota hai\",\n      \"D. Solution ka mass sirf salt ke equal hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Salt dissolve hone ke baad bhi total mass practically same rehta hai. Solution ka mass = water ka mass + salt ka mass. Baaki options mass conservation ko show nahi karte.\"\n  },\n  {\n    question: \"2. Activity 9.1 mein salt ko water mein dissolve karna kis type ka change hai?\",\n    options: &#91;\n      \"A. Chemical change\",\n      \"B. Nuclear change\",\n      \"C. Physical change\",\n      \"D. Permanent chemical reaction\"\n    ],\n    correct: 2,\n    explanation: \"Salt dissolve hone par koi new substance form nahi hota; isliye ise &lt;b>physical change&lt;\/b> maana jata hai. Baaki options is process ki correct classification nahi hain.\"\n  },\n  {\n    question: \"3. Activity 9.1 mein digital weighing balance ko zero karne ke liye kaunsa button press kiya jata hai?\",\n    options: &#91;\n      \"A. Start button\",\n      \"B. Tare ya reset button\",\n      \"C. Power button twice\",\n      \"D. Calibration lock button\"\n    ],\n    correct: 1,\n    explanation: \"Beaker ko balance par rakhne ke baad &lt;b>tare\/reset&lt;\/b> press karke reading zero ki jaati hai, taaki baad mein added substances ka mass measure ho sake.\"\n  },\n  {\n    question: \"4. Activity 9.1 mein approximately kitna water 100 mL beaker mein liya gaya tha?\",\n    options: &#91;\n      \"A. 10 mL\",\n      \"B. 20 mL\",\n      \"C. 50 mL\",\n      \"D. 100 mL\"\n    ],\n    correct: 2,\n    explanation: \"Activity mein approximately &lt;b>50 mL water&lt;\/b> beaker mein pour kiya gaya tha. 20 mL Activity 9.2 mein vinegar\/lemon juice ke liye use hota hai.\"\n  },\n  {\n    question: \"5. Activity 9.1 mein paper ko weigh karke tear karne ke baad dobara weigh karne ka purpose kya hai?\",\n    options: &#91;\n      \"A. Paper ka colour check karna\",\n      \"B. Physical change mein mass change hota hai ya nahi, check karna\",\n      \"C. Paper ko dissolve karna\",\n      \"D. Paper ka temperature measure karna\"\n    ],\n    correct: 1,\n    explanation: \"Paper ko pieces mein tear karna ek &lt;b>physical change&lt;\/b> hai. Activity ka purpose observe karna hai ki tearing ke baad mass practically change hota hai ya nahi.\"\n  },\n  {\n    question: \"6. Activity 9.2 mein baking soda ko vinegar ya lemon juice mein add karne par kaunsi gas form hoti hai?\",\n    options: &#91;\n      \"A. Oxygen\",\n      \"B. Hydrogen\",\n      \"C. Nitrogen\",\n      \"D. Carbon dioxide\"\n    ],\n    correct: 3,\n    explanation: \"Baking soda (sodium hydrogencarbonate) aur vinegar\/lemon juice ke reaction mein &lt;b>carbon dioxide gas&lt;\/b> release hoti hai. Isliye brisk effervescence yani bubbles\/fizzing observe hoti hai.\"\n  },\n  {\n    question: \"7. Activity 9.2 ke experimental set-up mein approximately kitna vinegar ya lemon juice conical flask mein liya gaya tha?\",\n    options: &#91;\n      \"A. 5 mL\",\n      \"B. 10 mL\",\n      \"C. 20 mL\",\n      \"D. 50 mL\"\n    ],\n    correct: 2,\n    explanation: \"Experiment mein approximately &lt;b>20 mL vinegar ya lemon juice&lt;\/b> conical flask mein liya jata hai. 50 mL water Activity 9.1 mein use hua tha.\"\n  },\n  {\n    question: \"8. Activity 9.2 mein approximately &lt;b>2 g baking soda&lt;\/b> balloon mein rakhkar flask mein transfer kiya gaya. Balloon ko flask ke saath balance par rakhne ka main purpose kya tha?\",\n    options: &#91;\n      \"A. Balloon ko inflate karna\",\n      \"B. Baking soda ko dry karna\",\n      \"C. Mass measurement mein material loss ko minimise karna\",\n      \"D. Vinegar ko cool karna\"\n    ],\n    correct: 2,\n    explanation: \"Balloon flask ke saath attached\/saath rakha jata hai, taaki balloon mein stuck baking soda ki small quantity se &lt;b>measurement error&lt;\/b> na aaye.\"\n  },\n  {\n    question: \"9. Baking soda aur vinegar ke reaction ke baad final weighing reading initial reading se match nahi karti. Passage ke according iska important possible reason kya hai?\",\n    options: &#91;\n      \"A. Reaction ke dauran gas form hui aur system se escape ho sakti hai\",\n      \"B. Baking soda ka mass suddenly zero ho gaya\",\n      \"C. Water ka mass double ho gaya\",\n      \"D. Balance automatically mass change karta hai\"\n    ],\n    correct: 0,\n    explanation: \"Chemical reaction mein &lt;b>carbon dioxide gas&lt;\/b> banti hai. Agar gas open system se bahar nikal jaaye, toh balance par measured final mass initial mass se different ho sakta hai.\"\n  },\n  {\n    question: \"10. Activity 9.1 aur Activity 9.2 ko compare karne par kaunsa statement correct hai?\",\n    options: &#91;\n      \"A. Physical aur chemical changes dono mein hamesha mass decrease hota hai\",\n      \"B. Physical change mein mass practically same rehta hai, jabki open chemical reaction mein gas escape hone se measured mass different ho sakta hai\",\n      \"C. Physical change mein new gas banti hai\",\n      \"D. Chemical change mein kabhi gas form nahi hoti\"\n    ],\n    correct: 1,\n    explanation: \"Salt-water solution mein mass practically &lt;b>conserved&lt;\/b> rehta hai. Baking soda + vinegar reaction mein CO\u2082 gas banti hai; agar gas system se escape kare, toh balance ki final reading different ho 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  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.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  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        ${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>&lt;strong>${userName}&lt;\/strong>, you got ${score} questions correct.&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s => `\n      &lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>\n    `).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Law of Conservation of Mass&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Law of Conservation of Mass&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. Experimental set-up 2 mein conical flask mein approximately kitna vinegar ya lemon juice liya gaya tha?\",\n    options: &#91;\"A. 10 mL\", \"B. 20 mL\", \"C. 50 mL\", \"D. 100 mL\"],\n    correct: 1,\n    explanation: \"Experiment mein approximately &lt;b>20 mL vinegar ya lemon juice&lt;\/b> conical flask mein liya gaya tha. 50 mL is activity ka quantity nahi hai.\"\n  },\n  {\n    question: \"2. Experimental set-up 2 mein approximately kitna baking soda liya gaya tha?\",\n    options: &#91;\"A. 1 g\", \"B. 2 g\", \"C. 5 g\", \"D. 10 g\"],\n    correct: 1,\n    explanation: \"Balloon mein approximately &lt;b>2 g baking soda (sodium hydrogencarbonate)&lt;\/b> rakha gaya tha. Isse vinegar ke saath reaction karaya gaya.\"\n  },\n  {\n    question: \"3. Baking soda ko vinegar mein reaction se pehle mix hone se rokne ke liye kya kiya gaya?\",\n    options: &#91;\n      \"A. Flask ko refrigerator mein rakha gaya\",\n      \"B. Balloon ko flask ke mouth par thread se fix kiya gaya\",\n      \"C. Baking soda ko water mein dissolve kiya gaya\",\n      \"D. Vinegar ko heat kiya gaya\"\n    ],\n    correct: 1,\n    explanation: \"Balloon ko flask ke mouth par fix kiya gaya, lekin baking soda ko initially vinegar se &lt;b>separate&lt;\/b> rakha gaya. Baad mein balloon ko upar lift karke baking soda flask mein giraya gaya.\"\n  },\n  {\n    question: \"4. Jab baking soda ko vinegar mein giraya gaya, toh kya observation hua?\",\n    options: &#91;\n      \"A. Solution freeze ho gaya\",\n      \"B. Brisk effervescence hui aur balloon inflate hua\",\n      \"C. Koi change nahi hua\",\n      \"D. Vinegar completely evaporate ho gaya\"\n    ],\n    correct: 1,\n    explanation: \"Reaction ke time &lt;b>brisk effervescence&lt;\/b>, yani rapid bubbles\/fizzing, observe hoti hai. Produced gas balloon ko inflate karti hai.\"\n  },\n  {\n    question: \"5. Baking soda aur vinegar ke reaction mein balloon kis wajah se inflate hota hai?\",\n    options: &#91;\n      \"A. Oxygen ke formation ki wajah se\",\n      \"B. Carbon dioxide gas ke formation ki wajah se\",\n      \"C. Nitrogen ke formation ki wajah se\",\n      \"D. Water vapour ke formation ki wajah se\"\n    ],\n    correct: 1,\n    explanation: \"Reaction ke during &lt;b>carbon dioxide (CO\u2082) gas&lt;\/b> form hoti hai. Balloon is gas ko contain karta hai, isliye balloon inflate hota hai.\"\n  },\n  {\n    question: \"6. Experimental set-up 2 mein initial aur final weighing readings ke baare mein kya observe hua?\",\n    options: &#91;\n      \"A. Final reading initial se bahut kam thi\",\n      \"B. Final reading initial se bahut zyada thi\",\n      \"C. Final reading initial reading se match karti thi, experimental error ko consider karte hue\",\n      \"D. Balance ne koi reading nahi di\"\n    ],\n    correct: 2,\n    explanation: \"Balloon gas ko system ke andar contain karta hai, isliye total mass reaction ke before aur after &lt;b>same&lt;\/b> rehta hai, measurement uncertainty ke andar.\"\n  },\n  {\n    question: \"7. Experimental set-up 1 aur set-up 2 mein mass readings different hone ka main reason kya tha?\",\n    options: &#91;\n      \"A. Set-up 1 mein produced gas system se escape ho gayi\",\n      \"B. Set-up 2 mein baking soda ka mass destroy ho gaya\",\n      \"C. Set-up 1 mein vinegar ka mass increase ho gaya\",\n      \"D. Dono experiments mein chemical reaction nahi hui\"\n    ],\n    correct: 0,\n    explanation: \"Set-up 1 mein CO\u2082 gas escape kar gayi, isliye balance par final mass different dikha. Set-up 2 mein balloon ne gas ko &lt;b>contain&lt;\/b> kiya.\"\n  },\n  {\n    question: \"8. Experimental set-up 2 kis important scientific principle ko demonstrate karta hai?\",\n    options: &#91;\n      \"A. Law of reflection\",\n      \"B. Law of conservation of mass\",\n      \"C. Law of gravitation\",\n      \"D. Law of acceleration\"\n    ],\n    correct: 1,\n    explanation: \"Chemical reaction mein reactants ka total mass products ke total mass ke equal rehta hai, provided system mein matter &lt;b>escape ya enter na kare&lt;\/b>. Isse conservation of mass demonstrate hota hai.\"\n  },\n  {\n    question: \"9. Digital weighing balance ki last digit mein &lt;b>\u00b11&lt;\/b> ki uncertainty ho sakti hai. Agar initial reading 52.4 g aur final reading 52.5 g ho, toh is small difference ko kaise interpret karna chahiye?\",\n    options: &#91;\n      \"A. Definitely new mass create hua\",\n      \"B. Definitely mass destroy hua\",\n      \"C. Ye experimental error\/measurement uncertainty ke andar ho sakta hai\",\n      \"D. Chemical reaction hui hi nahi\"\n    ],\n    correct: 2,\n    explanation: \"Measurement mein last digit ki uncertainty hoti hai. Isliye small variation ko &lt;b>experimental error&lt;\/b> ke andar consider kiya ja sakta hai; ise automatically mass creation ya destruction nahi maana jaata.\"\n  },\n  {\n    question: \"10. Set-up 2 mein reaction ke baad total mass same kyun raha, jabki carbon dioxide gas bani?\",\n    options: &#91;\n      \"A. CO\u2082 gas bani hi nahi thi\",\n      \"B. Balloon ne produced CO\u2082 ko system ke andar contain kar liya\",\n      \"C. CO\u2082 ka mass zero hota hai\",\n      \"D. Baking soda ka mass completely disappear ho gaya\"\n    ],\n    correct: 1,\n    explanation: \"Chemical reaction mein CO\u2082 gas form hui, lekin balloon ne gas ko &lt;b>escape nahi hone diya&lt;\/b>. Isliye reactants ka total mass aur products ka total mass same raha, showing &lt;b>conservation of mass&lt;\/b>.\"\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  if (!userName) return alert(\"Please enter your name.\");\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.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").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  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\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      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Law of Conservation of Mass&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Law of Conservation of Mass&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. Law of Conservation of Mass ke according chemical reaction ke before aur after total mass ka kya hota hai?\",\n    options: &#91;\n      \"A. Mass increase hota hai\",\n      \"B. Mass decrease hota hai\",\n      \"C. Total mass same rehta hai\",\n      \"D. Mass completely disappear ho jata hai\"\n    ],\n    correct: 2,\n    explanation: \"Chemical reaction mein matter &lt;b>na create hota hai aur na destroy&lt;\/b>. Isliye reaction se pehle aur baad total mass same rehta hai.\"\n  },\n  {\n    question: \"2. Law of Conservation of Mass kis scientist ne &lt;b>1789&lt;\/b> mein propose kiya tha?\",\n    options: &#91;\n      \"A. John Dalton\",\n      \"B. Antoine Lavoisier\",\n      \"C. J. J. Thomson\",\n      \"D. Ernest Rutherford\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Antoine Lavoisier&lt;\/b> ne 1789 mein Law of Conservation of Mass propose kiya tha. Unhe &lt;b>Father of Modern Chemistry&lt;\/b> bhi kaha jata hai.\"\n  },\n  {\n    question: \"3. Lavoisier ke Law of Conservation of Mass ka basic meaning kya hai?\",\n    options: &#91;\n      \"A. Matter chemical reaction mein create ho sakta hai\",\n      \"B. Matter chemical reaction mein destroy ho sakta hai\",\n      \"C. Matter chemical reaction mein na create hota hai, na destroy\",\n      \"D. Sirf gases ka mass conserve hota hai\"\n    ],\n    correct: 2,\n    explanation: \"Chemical reaction mein atoms rearrange hote hain, lekin total matter conserved rehta hai. Isliye total mass same rehta hai.\"\n  },\n  {\n    question: \"4. Activity 9.3 mein sodium sulfate aur barium chloride solutions ko mix karne par kya observation hoti hai?\",\n    options: &#91;\n      \"A. Blue gas form hoti hai\",\n      \"B. White precipitate of barium sulfate form hota hai\",\n      \"C. Water completely disappear ho jata hai\",\n      \"D. No reaction hoti hai\"\n    ],\n    correct: 1,\n    explanation: \"Sodium sulfate aur barium chloride ko mix karne par &lt;b>white precipitate of barium sulfate&lt;\/b> aur sodium chloride form hote hain.\"\n  },\n  {\n    question: \"5. Activity 9.3 mein sodium sulfate solution aur barium chloride solution ki approximately kitni quantity li gayi thi?\",\n    options: &#91;\n      \"A. 5 mL each\",\n      \"B. 10 mL each\",\n      \"C. 20 mL each\",\n      \"D. 50 mL each\"\n    ],\n    correct: 1,\n    explanation: \"Conical flask A mein approximately &lt;b>10 mL of 1% m\/v sodium sulfate solution&lt;\/b> aur flask B mein approximately &lt;b>10 mL of 1% m\/v barium chloride solution&lt;\/b> liya gaya.\"\n  },\n  {\n    question: \"6. Activity 9.3 mein solutions ko mix karne ke baad weighing balance ki reading ko dobara check karne ka purpose kya tha?\",\n    options: &#91;\n      \"A. Colour measure karna\",\n      \"B. Temperature measure karna\",\n      \"C. Check karna ki total mass conserve hua ya nahi\",\n      \"D. Precipitate ka colour check karna\"\n    ],\n    correct: 2,\n    explanation: \"Initial aur final total mass compare karke verify kiya jata hai ki chemical reaction ke during &lt;b>mass conserved&lt;\/b> raha ya nahi.\"\n  },\n  {\n    question: \"7. Sodium sulfate aur barium chloride ki reaction mein products ka correct combination kya hai?\",\n    options: &#91;\n      \"A. Barium sulfate + sodium chloride\",\n      \"B. Sodium sulfate + hydrogen\",\n      \"C. Barium chloride + oxygen\",\n      \"D. Sodium chloride + carbon dioxide\"\n    ],\n    correct: 0,\n    explanation: \"Reaction mein sodium sulfate aur barium chloride react karke &lt;b>barium sulfate precipitate&lt;\/b> aur &lt;b>sodium chloride&lt;\/b> form karte hain.\"\n  },\n  {\n    question: \"8. Zinc aur dilute hydrochloric acid ki chemical reaction mein kaunsi gas produce hoti hai?\",\n    options: &#91;\n      \"A. Oxygen\",\n      \"B. Nitrogen\",\n      \"C. Hydrogen\",\n      \"D. Carbon dioxide\"\n    ],\n    correct: 2,\n    explanation: \"Zinc jab dilute hydrochloric acid ke saath react karta hai, toh &lt;b>zinc chloride aur hydrogen gas&lt;\/b> form hoti hai.\"\n  },\n  {\n    question: \"9. Zinc + dilute hydrochloric acid \u2192 zinc chloride + hydrogen reaction mein mass conservation test karne ke liye sabse important condition kya hogi?\",\n    options: &#91;\n      \"A. Produced hydrogen gas ko system se escape hone dena\",\n      \"B. Reaction ko closed system mein perform karna aur initial-final mass compare karna\",\n      \"C. Sirf zinc ka mass measure karna\",\n      \"D. Sirf hydrochloric acid ka mass measure karna\"\n    ],\n    correct: 1,\n    explanation: \"Hydrogen gas escape ho gayi toh measured mass kam ho sakta hai. Isliye gas ko &lt;b>closed system mein contain&lt;\/b> karke initial aur final total mass compare karna better test hai.\"\n  },\n  {\n    question: \"10. Agar Activity 9.3 mein mixing ke baad white precipitate form ho jaye, phir bhi total mass practically same rahe, toh ye kya prove karta hai?\",\n    options: &#91;\n      \"A. Chemical reaction mein matter destroy ho gaya\",\n      \"B. Chemical reaction mein new matter create hua\",\n      \"C. Chemical reaction ke during total mass conserved raha\",\n      \"D. Precipitate ka koi mass nahi hota\"\n    ],\n    correct: 2,\n    explanation: \"Precipitate ka form hona ek &lt;b>chemical change&lt;\/b> hai, lekin reaction ke before aur after total mass same rehne se &lt;b>Law of Conservation of Mass&lt;\/b> verify hota hai. Matter ka form change ho sakta hai, but total mass conserved rehta 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  if (!userName) return alert(\"Please enter your name.\");\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.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").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  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\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      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  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part4<\/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 Law of Conservation of Mass \u2013 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 Law of Conservation of Mass \u2013 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. Example 9.1 mein calcium carbonate aur hydrochloric acid ke masses respectively &lt;b>4.0 g&lt;\/b> aur &lt;b>2.92 g&lt;\/b> hain. Total mass of reactants kitna hoga?\",\n    options: &#91;\n      \"A. 5.92 g\",\n      \"B. 6.92 g\",\n      \"C. 7.92 g\",\n      \"D. 8.92 g\"\n    ],\n    correct: 1,\n    explanation: \"Total mass of reactants = 4.0 g + 2.92 g = &lt;b>6.92 g&lt;\/b>. Isliye B correct hai.\"\n  },\n  {\n    question: \"2. Example 9.1 mein products ke masses hain: CO\u2082 = &lt;b>1.76 g&lt;\/b>, water = &lt;b>0.72 g&lt;\/b>, aur calcium chloride = &lt;b>4.44 g&lt;\/b>. Total mass of products kitna hai?\",\n    options: &#91;\n      \"A. 5.92 g\",\n      \"B. 6.02 g\",\n      \"C. 6.92 g\",\n      \"D. 7.92 g\"\n    ],\n    correct: 2,\n    explanation: \"Total products = 1.76 + 0.72 + 4.44 = &lt;b>6.92 g&lt;\/b>. Ye reactants ke total mass ke equal hai.\"\n  },\n  {\n    question: \"3. Example 9.1 mein reactants ka total mass &lt;b>6.92 g&lt;\/b> aur products ka total mass bhi &lt;b>6.92 g&lt;\/b> hai. Is observation se kya conclusion milta hai?\",\n    options: &#91;\n      \"A. Law of Conservation of Mass obeyed hai\",\n      \"B. Mass destroy hua hai\",\n      \"C. Mass create hua hai\",\n      \"D. Chemical reaction nahi hui\"\n    ],\n    correct: 0,\n    explanation: \"Reactants ka total mass = products ka total mass, yani &lt;b>6.92 g = 6.92 g&lt;\/b>. Therefore, Law of Conservation of Mass obeyed hai.\"\n  },\n  {\n    question: \"4. Example 9.2 mein &lt;b>12 g carbon + 32 g oxygen \u2192 44 g carbon dioxide&lt;\/b>. Agar &lt;b>2.4 g carbon&lt;\/b> completely react kare, toh kitna carbon dioxide produce hoga?\",\n    options: &#91;\n      \"A. 4.4 g\",\n      \"B. 6.6 g\",\n      \"C. 8.8 g\",\n      \"D. 10.8 g\"\n    ],\n    correct: 2,\n    explanation: \"12 g carbon se 44 g CO\u2082 banta hai. 2.4 g carbon is amount ka 1\/5 hai, so CO\u2082 = 44 \u00d7 2.4 \u00f7 12 = &lt;b>8.8 g&lt;\/b>.\"\n  },\n  {\n    question: \"5. Example 9.2 mein carbon aur oxygen milkar carbon dioxide banate hain. &lt;b>12 g carbon&lt;\/b> ke complete reaction ke liye kitna oxygen required hai?\",\n    options: &#91;\n      \"A. 22 g\",\n      \"B. 32 g\",\n      \"C. 44 g\",\n      \"D. 56 g\"\n    ],\n    correct: 1,\n    explanation: \"Given data ke according &lt;b>12 g carbon + 32 g oxygen \u2192 44 g carbon dioxide&lt;\/b>. Isliye required oxygen = &lt;b>32 g&lt;\/b>.\"\n  },\n  {\n    question: \"6. Ek student open beaker mein &lt;b>10 g ethanol&lt;\/b> burn karta hai. Reaction ke baad beaker mein koi residue nahi bachta. Kya iska matlab Law of Conservation of Mass violate ho gaya?\",\n    options: &#91;\n      \"A. Haan, kyunki 10 g mass disappear ho gaya\",\n      \"B. Haan, kyunki residue hona compulsory hai\",\n      \"C. Nahi, combustion products gases ke form mein environment mein chale gaye\",\n      \"D. Nahi, kyunki ethanol reaction nahi karta\"\n    ],\n    correct: 2,\n    explanation: \"Open system mein ethanol ke combustion se &lt;b>CO\u2082 aur water vapour&lt;\/b> jaise products form hote hain jo air mein escape kar sakte hain. Isliye beaker mein residue na hona mass destruction prove nahi karta.\"\n  },\n  {\n    question: \"7. Jab &lt;b>20 g hydrogen&lt;\/b> completely &lt;b>160 g oxygen&lt;\/b> ke saath react karta hai, toh Law of Conservation of Mass ke according kitna water form hoga?\",\n    options: &#91;\n      \"A. 140 g\",\n      \"B. 160 g\",\n      \"C. 180 g\",\n      \"D. 200 g\"\n    ],\n    correct: 2,\n    explanation: \"Total reactant mass = 20 g + 160 g = &lt;b>180 g&lt;\/b>. Mass conservation ke according water ka mass &lt;b>180 g&lt;\/b> hoga.\"\n  },\n  {\n    question: \"8. Conical flasks ko transfer ke time weighing balance par rakhne ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Reaction ko fast karna\",\n      \"B. Flask ko heat karna\",\n      \"C. Flask ki walls par stuck solution ki wajah se measurement error ko prevent karna\",\n      \"D. Solution ka colour change karna\"\n    ],\n    correct: 2,\n    explanation: \"Transfer ke baad flask ki walls par thoda solution stuck reh sakta hai. Dono flasks ko balance par rakhne se &lt;b>mass measurement error minimise&lt;\/b> hota hai.\"\n  },\n  {\n    question: \"9. Agar kisi chemical reaction mein koi gas form nahi hoti aur reaction open system mein perform ki ja rahi hai, toh mass conservation verify karna relatively easy kyun ho sakta hai?\",\n    options: &#91;\n      \"A. Koi gaseous product system se escape nahi kar raha hota\",\n      \"B. Mass automatically increase ho jata hai\",\n      \"C. Reactants ka mass zero ho jata hai\",\n      \"D. Chemical reaction stop ho jaati hai\"\n    ],\n    correct: 0,\n    explanation: \"Jab gas form nahi hoti, toh matter ka gaseous form mein system se escape hone ka issue nahi hota. Isliye initial aur final mass ko compare karke conservation verify kiya ja sakta hai.\"\n  },\n  {\n    question: \"10. Agar &lt;b>12 g carbon \u2192 44 g carbon dioxide&lt;\/b> produce karta hai, toh &lt;b>1 g carbon&lt;\/b> se kitna carbon dioxide produce hoga?\",\n    options: &#91;\n      \"A. 2.67 g\",\n      \"B. 3.67 g\",\n      \"C. 4.67 g\",\n      \"D. 5.67 g\"\n    ],\n    correct: 1,\n    explanation: \"1 g carbon se CO\u2082 = 44 \u00f7 12 = &lt;b>3.67 g approximately&lt;\/b>. Isi ratio ka use karke 2.4 g carbon ke liye 8.8 g CO\u2082 calculate kiya gaya 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  if (!userName) return alert(\"Please enter your name.\");\n\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  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\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      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}\/10 (${s.date})&lt;\/li>`\n  ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part5<\/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 Law of Constant Proportions \u2013 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 Law of Constant Proportions \u2013 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. Law of Constant Proportions kis scientist ne propose kiya tha?\",\n    options: &#91;\n      \"A. Antoine Lavoisier\",\n      \"B. Joseph Proust\",\n      \"C. John Dalton\",\n      \"D. Ernest Rutherford\"\n    ],\n    correct: 1,\n    explanation: \"&lt;b>Joseph Proust&lt;\/b> ne propose kiya ki kisi pure compound mein elements hamesha &lt;b>fixed ratio by mass&lt;\/b> mein present hote hain.\"\n  },\n  {\n    question: \"2. Law of Constant Proportions ke according kisi compound mein elements ka ratio kis basis par fixed hota hai?\",\n    options: &#91;\n      \"A. Volume\",\n      \"B. Colour\",\n      \"C. Mass\",\n      \"D. Temperature\"\n    ],\n    correct: 2,\n    explanation: \"Is law ke according compound mein present elements &lt;b>fixed ratio by mass&lt;\/b> mein combine karte hain. Source ya preparation method change hone par bhi ratio same rehta hai.\"\n  },\n  {\n    question: \"3. Different sources\u2014river, borewell aur ocean\u2014se purified water liya gaya. Har sample mein hydrogen aur oxygen ka mass ratio kya milega?\",\n    options: &#91;\n      \"A. 1 : 4\",\n      \"B. 1 : 6\",\n      \"C. 1 : 8\",\n      \"D. 2 : 8\"\n    ],\n    correct: 2,\n    explanation: \"Pure water mein hydrogen : oxygen ka mass ratio &lt;b>1 : 8&lt;\/b> hota hai, chahe water kisi bhi source se liya gaya ho.\"\n  },\n  {\n    question: \"4. Agar &lt;b>9 g purified water&lt;\/b> ko decompose kiya jaye, toh approximately kitna hydrogen aur oxygen obtain hoga?\",\n    options: &#91;\n      \"A. 4 g hydrogen, 5 g oxygen\",\n      \"B. 1 g hydrogen, 8 g oxygen\",\n      \"C. 2 g hydrogen, 7 g oxygen\",\n      \"D. 3 g hydrogen, 6 g oxygen\"\n    ],\n    correct: 1,\n    explanation: \"Water mein H : O ka fixed mass ratio &lt;b>1 : 8&lt;\/b> hai. Total 9 parts mein se 1 part hydrogen aur 8 parts oxygen hoga. Therefore, &lt;b>1 g H + 8 g O&lt;\/b>.\"\n  },\n  {\n    question: \"5. Water ka sample river se liya gaya aur doosra sample ocean se. Dono purified samples mein hydrogen aur oxygen ka mass ratio same kyun rahega?\",\n    options: &#91;\n      \"A. Water ka colour same hota hai\",\n      \"B. Law of Constant Proportions ke according pure compound mein elements fixed mass ratio mein hote hain\",\n      \"C. Ocean water hamesha river water se lighter hota hai\",\n      \"D. Hydrogen aur oxygen ka mass equal hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Compound ka source change hone se uske elements ka &lt;b>fixed mass ratio&lt;\/b> change nahi hota. Isliye purified water mein ratio 1:8 hi rahega.\"\n  },\n  {\n    question: \"6. Cinnabar ko heat karne par mercury aur sulfur approximately kitne mass percentages mein obtain hote hain?\",\n    options: &#91;\n      \"A. Mercury 50%, Sulfur 50%\",\n      \"B. Mercury 75%, Sulfur 25%\",\n      \"C. Mercury 86.22%, Sulfur 13.78%\",\n      \"D. Mercury 13.78%, Sulfur 86.22%\"\n    ],\n    correct: 2,\n    explanation: \"Cinnabar mein mercury approximately &lt;b>86.22%&lt;\/b> aur sulfur approximately &lt;b>13.78%&lt;\/b> by mass hota hai. Dono percentages ka total 100% hota hai.\"\n  },\n  {\n    question: \"7. Cinnabar banane ke liye mercury aur sulfur ko approximately kis proportion mein combine kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Mercury 86.22% aur sulfur 13.78%\",\n      \"B. Mercury 13.78% aur sulfur 86.22%\",\n      \"C. Mercury 50% aur sulfur 50%\",\n      \"D. Mercury 25% aur sulfur 75%\"\n    ],\n    correct: 0,\n    explanation: \"Cinnabar mein mercury aur sulfur ka composition approximately &lt;b>86.22% : 13.78%&lt;\/b> by mass hota hai. Ye fixed composition Law of Constant Proportions ko illustrate karta hai.\"\n  },\n  {\n    question: \"8. Joseph Louis Proust ne copper carbonate ke study se kya demonstrate kiya?\",\n    options: &#91;\n      \"A. Copper carbonate ka composition preparation aur source ke according change hota hai\",\n      \"B. Copper carbonate mein copper, carbon aur oxygen fixed proportion by mass mein hote hain\",\n      \"C. Copper carbonate mein sirf copper present hota hai\",\n      \"D. Copper carbonate ek element hai\"\n    ],\n    correct: 1,\n    explanation: \"Proust ne show kiya ki &lt;b>copper carbonate&lt;\/b> mein copper, carbon aur oxygen ka mass composition fixed rehta hai, chahe compound ko kahin bhi ya kisi bhi method se prepare kiya gaya ho.\"\n  },\n  {\n    question: \"9. Law of Constant Proportions ko aur kis naam se jaana jaata hai?\",\n    options: &#91;\n      \"A. Law of Definite Proportions\",\n      \"B. Law of Conservation of Energy\",\n      \"C. Law of Multiple Volumes\",\n      \"D. Law of Gravitation\"\n    ],\n    correct: 0,\n    explanation: \"&lt;b>Law of Constant Proportions&lt;\/b> ko &lt;b>Law of Definite Proportions&lt;\/b> aur &lt;b>Proust\u2019s Law&lt;\/b> bhi kaha jaata hai.\"\n  },\n  {\n    question: \"10. Ek pure compound ke do samples ka mass alag-alag hai, lekin dono samples mein elements ka mass ratio same hai. Ye observation kis law ko support karti hai?\",\n    options: &#91;\n      \"A. Law of Conservation of Mass\",\n      \"B. Law of Constant Proportions\",\n      \"C. Newton\u2019s Law\",\n      \"D. Law of Reflection\"\n    ],\n    correct: 1,\n    explanation: \"Sample ka total mass change ho sakta hai, lekin &lt;b>same pure compound&lt;\/b> mein constituent elements ka mass ratio fixed rehta hai. Isi principle ko Law of Constant Proportions kehte 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  if (!userName) return alert(\"Please enter your name.\");\n\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  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\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      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}\/10 (${s.date})&lt;\/li>`\n  ).join('');\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part6<\/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 Law of Constant Proportions \u2013 MCQ Quiz&lt;\/title>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\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  #userName {\n    padding: 10px;\n    width: 65%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n  }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 Law of Constant Proportions \u2013 MCQ Quiz&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Sodium chloride (NaCl) mein sodium aur chlorine ka mass ratio &lt;b>23 : 35.5&lt;\/b> hai. Agar &lt;b>46 g sodium&lt;\/b> completely react kare, toh kitna chlorine required hoga?\",\n    options: &#91;\n      \"A. 35.5 g\",\n      \"B. 46 g\",\n      \"C. 71 g\",\n      \"D. 92 g\"\n    ],\n    correct: 2,\n    explanation: \"23 g sodium ke liye 35.5 g chlorine required hai. 46 g sodium = 2 \u00d7 23 g, so chlorine = 2 \u00d7 35.5 = &lt;b>71 g&lt;\/b>. Baaki values given ratio satisfy nahi karti.\"\n  },\n  {\n    question: \"2. Ek compound mein sulfur &lt;b>40%&lt;\/b> aur oxygen &lt;b>60%&lt;\/b> by mass hai. Agar sample mein &lt;b>20 g sulfur&lt;\/b> hai, toh oxygen ka mass kitna hoga?\",\n    options: &#91;\n      \"A. 20 g\",\n      \"B. 30 g\",\n      \"C. 40 g\",\n      \"D. 60 g\"\n    ],\n    correct: 1,\n    explanation: \"Sulfur : Oxygen = 40 : 60 = 2 : 3. Agar sulfur 20 g hai, toh oxygen = 20 \u00d7 60 \u00f7 40 = &lt;b>30 g&lt;\/b>.\"\n  },\n  {\n    question: \"3. Carbon monoxide (CO) mein carbon aur oxygen ka mass ratio &lt;b>3 : 4&lt;\/b> hai. Agar &lt;b>9 g carbon&lt;\/b> completely react kare, toh kitna oxygen required hoga?\",\n    options: &#91;\n      \"A. 6 g\",\n      \"B. 9 g\",\n      \"C. 12 g\",\n      \"D. 15 g\"\n    ],\n    correct: 2,\n    explanation: \"3 g carbon ke liye 4 g oxygen required hai. 9 g carbon = 3 \u00d7 3 g, so oxygen = 3 \u00d7 4 = &lt;b>12 g&lt;\/b>.\"\n  },\n  {\n    question: \"4. Law of Definite Proportions &lt;b>compounds&lt;\/b> par apply hota hai, lekin mixtures par nahi. Iska main reason kya hai?\",\n    options: &#91;\n      \"A. Mixture mein substances hamesha fixed mass ratio mein present hote hain\",\n      \"B. Compound mein elements fixed ratio mein chemically combined hote hain, while mixture mein components variable ratio mein ho sakte hain\",\n      \"C. Mixture mein koi mass nahi hota\",\n      \"D. Compound mein elements ka mass zero hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Pure compound ki composition &lt;b>fixed&lt;\/b> hoti hai. Mixture mein components ko different quantities mein mix kiya ja sakta hai, isliye unka ratio fixed nahi hota.\"\n  },\n  {\n    question: \"5. Student X ne copper aur oxygen ko &lt;b>4 : 1&lt;\/b> mass ratio mein combine karke copper oxide banaya. Student Y ne same oxide ke liye ratio &lt;b>8 : 2&lt;\/b> obtain kiya. Kya ye results Law of Constant Proportions ko justify karte hain?\",\n    options: &#91;\n      \"A. Nahi, kyunki ratios completely different hain\",\n      \"B. Haan, kyunki 4 : 1 aur 8 : 2 equivalent ratios hain\",\n      \"C. Nahi, kyunki oxygen ka mass same hona chahiye\",\n      \"D. Haan, kyunki koi bhi ratio valid hota hai\"\n    ],\n    correct: 1,\n    explanation: \"8 : 2 ko 2 se divide karne par &lt;b>4 : 1&lt;\/b> milta hai. Dono same mass proportion represent karte hain, so results law ko support karte hain.\"\n  },\n  {\n    question: \"6. Law of Constant Proportions ko aur kis naam se jaana jaata hai?\",\n    options: &#91;\n      \"A. Law of Definite Proportions\",\n      \"B. Law of Conservation of Energy\",\n      \"C. Law of Multiple Proportions\",\n      \"D. Law of Gravitation\"\n    ],\n    correct: 0,\n    explanation: \"Law of Constant Proportions ko &lt;b>Law of Definite Proportions&lt;\/b> ya &lt;b>Proust\u2019s Law&lt;\/b> bhi kaha jaata hai.\"\n  },\n  {\n    question: \"7. Joseph Louis Proust ne copper carbonate ke study se kya establish kiya?\",\n    options: &#91;\n      \"A. Copper carbonate ka composition har sample mein random hota hai\",\n      \"B. Copper carbonate mein elements fixed proportion by mass mein present hote hain\",\n      \"C. Copper carbonate sirf copper se bana hai\",\n      \"D. Copper carbonate ek mixture hai\"\n    ],\n    correct: 1,\n    explanation: \"Proust ne demonstrate kiya ki copper carbonate mein &lt;b>copper, carbon aur oxygen&lt;\/b> definite\/fixed mass proportion mein hote hain, chahe compound kahin se bhi obtain kiya gaya ho.\"\n  },\n  {\n    question: \"8. Agar pure water ke ek sample mein &lt;b>1 g hydrogen aur 8 g oxygen&lt;\/b> hai, toh kisi doosre source se liye gaye &lt;b>18 g pure water&lt;\/b> mein hydrogen aur oxygen ka mass kitna hoga?\",\n    options: &#91;\n      \"A. 2 g H aur 16 g O\",\n      \"B. 4 g H aur 14 g O\",\n      \"C. 8 g H aur 10 g O\",\n      \"D. 1 g H aur 17 g O\"\n    ],\n    correct: 0,\n    explanation: \"Water mein H : O = &lt;b>1 : 8&lt;\/b>. 18 g water mein total 9 parts hain, so hydrogen = 2 g aur oxygen = &lt;b>16 g&lt;\/b>. Ratio same rehta hai.\"\n  },\n  {\n    question: \"9. Cinnabar mein mercury approximately &lt;b>86.22%&lt;\/b> aur sulfur &lt;b>13.78%&lt;\/b> by mass hota hai. Agar cinnabar ka sample &lt;b>100 g&lt;\/b> ho, toh mercury aur sulfur ke masses kya honge?\",\n    options: &#91;\n      \"A. 86.22 g mercury, 13.78 g sulfur\",\n      \"B. 13.78 g mercury, 86.22 g sulfur\",\n      \"C. 50 g mercury, 50 g sulfur\",\n      \"D. 80 g mercury, 20 g sulfur\"\n    ],\n    correct: 0,\n    explanation: \"100 g sample mein percentage directly mass ko represent karti hai. Isliye mercury = &lt;b>86.22 g&lt;\/b> aur sulfur = &lt;b>13.78 g&lt;\/b>.\"\n  },\n  {\n    question: \"10. Dalton ki Atomic Theory ke development mein Law of Conservation of Mass aur Law of Constant Proportions ka kya importance tha?\",\n    options: &#91;\n      \"A. In laws ne explain kiya ki atoms chemical reactions mein create hote hain\",\n      \"B. In laws ne substances ke fixed proportions aur mass conservation ko explain karne ke liye atomic theory ka foundation diya\",\n      \"C. In laws ne prove kiya ki mixtures ki composition fixed hoti hai\",\n      \"D. In laws ne electrons ki discovery ki\"\n    ],\n    correct: 1,\n    explanation: \"Dono laws ne Dalton ko ye explain karne mein help kiya ki substances &lt;b>fixed proportions&lt;\/b> mein combine karte hain aur chemical reaction mein mass ka loss ya gain nahi hota.\"\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  if (!userName) return alert(\"Please enter your name.\");\n\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}\"\n            ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  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  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\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      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>${userName}, 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({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\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\n    .map(s => `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`)\n    .join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part12<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch9part13<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch9part1<\/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-5515","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5515","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=5515"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5515\/revisions"}],"predecessor-version":[{"id":5516,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5515\/revisions\/5516"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}