{"id":5439,"date":"2026-11-17T04:10:27","date_gmt":"2026-11-17T04:10:27","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5439"},"modified":"2026-11-17T04:10:27","modified_gmt":"2026-11-17T04:10:27","slug":"class-10-science-chapter-2","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5439","title":{"rendered":"class 10 science chapter 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch2 part 1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n  &lt;meta charset=\"UTF-8\">\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  &lt;title>Acids, Bases and Salts \u2013 Chemistry 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 {\n      background-color: #c8f7c5 !important;\n      border-color: #28a745 !important;\n    }\n    .wrong {\n      background-color: #f8d7da !important;\n      border-color: #dc3545 !important;\n    }\n    .explanation {\n      background: #e9ecef;\n      padding: 10px;\n      margin-top: 10px;\n      border-left: 5px solid #2a5298;\n      display: none;\n    }\n    .controls { text-align: center; margin-top: 15px; }\n    button {\n      background-color: #2a5298;\n      color: white;\n      border: none;\n      padding: 10px 20px;\n      border-radius: 6px;\n      cursor: pointer;\n      margin: 5px;\n    }\n    button:hover { background-color: #1e3c72; }\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n    #scoreboard h3 { text-align: center; }\n    ol { padding-left: 20px; }\n  &lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\uddea Acids, Bases and Salts \u2013 Chemistry 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. Agar kisi person ko overeating ke baad acidity ho rahi hai, to inmein se kaunsa remedy suggest kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Lemon juice\",\n      \"B. Vinegar\",\n      \"C. Baking soda solution\",\n      \"D. Sugar solution\"\n    ],\n    correct: 2,\n    explanation: \"Acidity mein stomach mein excess acid hota hai. Baking soda basic nature ka hota hai, isliye acid ke effect ko neutralise karne mein help karta hai. Acid aur base ek-doosre ke effect ko nullify kar sakte hain.\"\n  },\n  {\n    question: \"2. Acids blue litmus paper ke colour ko kis colour mein change kar dete hain?\",\n    options: &#91;\n      \"A. Blue\",\n      \"B. Green\",\n      \"C. Red\",\n      \"D. Yellow\"\n    ],\n    correct: 2,\n    explanation: \"Acids blue litmus ko red kar dete hain. Ye acid ko identify karne ka ek common test hai. Bases iska opposite effect dikhate hain aur red litmus ko blue kar dete hain.\"\n  },\n  {\n    question: \"3. Bases red litmus paper ke colour ko kis colour mein change karte hain?\",\n    options: &#91;\n      \"A. Blue\",\n      \"B. Red\",\n      \"C. Yellow\",\n      \"D. Orange\"\n    ],\n    correct: 0,\n    explanation: \"Bases red litmus ko blue kar dete hain. Isliye litmus ek natural indicator hai jo acidic aur basic substances ko identify karne mein help karta hai.\"\n  },\n  {\n    question: \"4. Inmein se kaunsa olfactory indicator ka example hai?\",\n    options: &#91;\n      \"A. Litmus\",\n      \"B. Methyl orange\",\n      \"C. Onion\",\n      \"D. Phenolphthalein\"\n    ],\n    correct: 2,\n    explanation: \"Aise substances jinki odour acidic ya basic medium mein change ho jati hai, unhe olfactory indicators kehte hain. Onion, vanilla aur clove is type ke indicators ke examples hain.\"\n  },\n  {\n    question: \"5. Acid aur metal ki reaction mein generally kya products bante hain?\",\n    options: &#91;\n      \"A. Salt + Water\",\n      \"B. Salt + Hydrogen gas\",\n      \"C. Base + Oxygen\",\n      \"D. Carbon dioxide + Water\"\n    ],\n    correct: 1,\n    explanation: \"Acid metals ke saath react karke generally salt aur hydrogen gas banata hai.&lt;br>&lt;strong>Acid + Metal \u2192 Salt + Hydrogen gas&lt;\/strong>\"\n  },\n  {\n    question: \"6. Zinc ko sodium hydroxide solution ke saath warm karne par kaunsi gas release hoti hai?\",\n    options: &#91;\n      \"A. Oxygen\",\n      \"B. Carbon dioxide\",\n      \"C. Hydrogen\",\n      \"D. Nitrogen\"\n    ],\n    correct: 2,\n    explanation: \"Zinc sodium hydroxide ke saath react karke sodium zincate aur hydrogen gas banata hai:&lt;br>&lt;strong>2NaOH + Zn \u2192 Na\u2082ZnO\u2082 + H\u2082&lt;\/strong>&lt;br>Is reaction se pata chalta hai ki kuch metals bases ke saath bhi react kar sakte hain.\"\n  },\n  {\n    question: \"7. Metal carbonates aur metal hydrogencarbonates acids ke saath react karke kya produce karte hain?\",\n    options: &#91;\n      \"A. Salt + Carbon dioxide + Water\",\n      \"B. Salt + Hydrogen\",\n      \"C. Base + Oxygen\",\n      \"D. Only water\"\n    ],\n    correct: 0,\n    explanation: \"Metal carbonate ya hydrogencarbonate acid ke saath react karta hai aur salt, carbon dioxide aur water banata hai.&lt;br>&lt;strong>Metal carbonate\/Metal hydrogencarbonate + Acid \u2192 Salt + CO\u2082 + Water&lt;\/strong>\"\n  },\n  {\n    question: \"8. Carbon dioxide gas ko lime water mein pass karne par kya observation hoti hai?\",\n    options: &#91;\n      \"A. Lime water blue ho jata hai\",\n      \"B. White precipitate form hota hai\",\n      \"C. Hydrogen gas release hoti hai\",\n      \"D. Lime water red ho jata hai\"\n    ],\n    correct: 1,\n    explanation: \"CO\u2082 ko lime water Ca(OH)\u2082 mein pass karne par calcium carbonate (CaCO\u2083) ka insoluble white precipitate banta hai.&lt;br>&lt;strong>Ca(OH)\u2082 + CO\u2082 \u2192 CaCO\u2083 + H\u2082O&lt;\/strong>\"\n  },\n  {\n    question: \"9. Acid aur base ki reaction jisme salt aur water bante hain, use kya kaha jata hai?\",\n    options: &#91;\n      \"A. Displacement reaction\",\n      \"B. Decomposition reaction\",\n      \"C. Neutralisation reaction\",\n      \"D. Combination reaction\"\n    ],\n    correct: 2,\n    explanation: \"Acid aur base ek-doosre ke effect ko neutralise karke salt aur water banate hain. Example:&lt;br>&lt;strong>NaOH + HCl \u2192 NaCl + H\u2082O&lt;\/strong>&lt;br>General form: &lt;strong>Base + Acid \u2192 Salt + Water&lt;\/strong>\"\n  },\n  {\n    question: \"10. Metal oxide aur acid ki general reaction kya hoti hai?\",\n    options: &#91;\n      \"A. Metal oxide + Acid \u2192 Salt + Water\",\n      \"B. Metal oxide + Acid \u2192 Hydrogen + Salt\",\n      \"C. Metal oxide + Acid \u2192 Carbon dioxide + Water\",\n      \"D. Metal oxide + Acid \u2192 Only water\"\n    ],\n    correct: 0,\n    explanation: \"Metallic oxides acids ke saath react karke salt aur water banate hain. Isi similar behaviour ke karan metallic oxides ko basic oxides kaha jata hai. Example: copper oxide aur hydrochloric acid ki reaction mein copper(II) chloride aur water bante hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch2 part 2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Acids, Bases and Salts \u2013 Practice Quiz&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n\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\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 Acids, Bases and Salts \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. Curd aur sour food items ko brass ya copper vessels mein kyun nahi rakhna chahiye?\",\n  options: &#91;\n    \"A. Curd ka colour change ho jata hai\",\n    \"B. Acids metal ke saath react kar sakte hain\",\n    \"C. Metal water mein dissolve ho jata hai\",\n    \"D. Curd freeze ho jata hai\"\n  ],\n  correct: 1,\n  explanation: \"Curd aur sour food items mein acids present hote hain. Ye acids copper aur brass jaise metals ke saath react kar sakte hain aur harmful compounds bana sakte hain. Isliye aise food ko copper\/brass vessels mein store nahi karna chahiye.\"\n},\n\n{\n  question: \"2. Jab acid kisi metal ke saath react karta hai, to usually kaunsi gas liberate hoti hai?\",\n  options: &#91;\n    \"A. Oxygen\",\n    \"B. Carbon dioxide\",\n    \"C. Hydrogen\",\n    \"D. Nitrogen\"\n  ],\n  correct: 2,\n  explanation: \"Acid aur metal ki reaction mein generally hydrogen gas release hoti hai. Example: Zn + 2HCl \u2192 ZnCl\u2082 + H\u2082. Hydrogen gas ki presence ko burning splint ke paas test karne par characteristic pop sound se identify kiya ja sakta hai.\"\n},\n\n{\n  question: \"3. Calcium carbonate dilute HCl ke saath react karta hai. Agar ek product calcium chloride hai, to kaunsi gas evolve hogi?\",\n  options: &#91;\n    \"A. Hydrogen\",\n    \"B. Oxygen\",\n    \"C. Carbon dioxide\",\n    \"D. Nitrogen\"\n  ],\n  correct: 2,\n  explanation: \"Calcium carbonate acid ke saath react karke calcium chloride, carbon dioxide aur water banata hai: CaCO\u2083 + 2HCl \u2192 CaCl\u2082 + CO\u2082 + H\u2082O. CO\u2082 gas burning candle ko extinguish kar deti hai.\"\n},\n\n{\n  question: \"4. Non-metallic oxides generally kis nature ke hote hain?\",\n  options: &#91;\n    \"A. Basic\",\n    \"B. Acidic\",\n    \"C. Neutral only\",\n    \"D. Metallic\"\n  ],\n  correct: 1,\n  explanation: \"Carbon dioxide jaise non-metallic oxides bases ke saath react karke salt aur water banate hain. Example: CO\u2082 + Ca(OH)\u2082 \u2192 CaCO\u2083 + H\u2082O. Isliye non-metallic oxides ko generally acidic in nature mana jata hai.\"\n},\n\n{\n  question: \"5. Acids ki acidic properties ke liye solution mein kaunsa ion responsible hota hai?\",\n  options: &#91;\n    \"A. OH\u207b\",\n    \"B. Na\u207a\",\n    \"C. H\u207a \/ H\u2083O\u207a\",\n    \"D. Cl\u207b\"\n  ],\n  correct: 2,\n  explanation: \"Acids water mein H\u207a ions generate karte hain. Ye H\u207a water molecules ke saath combine karke H\u2083O\u207a (hydronium ion) form karte hain. Ye ions acids ki acidic properties ke liye responsible hote hain.\"\n},\n\n{\n  question: \"6. Acidic solution mein bulb glow kyun karta hai?\",\n  options: &#91;\n    \"A. Acid khud light produce karta hai\",\n    \"B. Acidic solution mein ions electric current carry karte hain\",\n    \"C. Water electricity generate karta hai\",\n    \"D. Acid ka colour change hota hai\"\n  ],\n  correct: 1,\n  explanation: \"Aqueous acid solution mein ions present hote hain. Ye ions electric current ko carry karte hain, isliye circuit complete hone par bulb glow karta hai. Glucose aur alcohol solutions generally is test mein bulb ko glow nahi karte.\"\n},\n\n{\n  question: \"7. Bases water mein dissolve hone par kaunse ions generate karte hain?\",\n  options: &#91;\n    \"A. H\u207a ions\",\n    \"B. Cl\u207b ions\",\n    \"C. OH\u207b ions\",\n    \"D. CO\u2082 ions\"\n  ],\n  correct: 2,\n  explanation: \"Bases water mein hydroxide ions (OH\u207b) generate karte hain. Example: NaOH \u2192 Na\u207a + OH\u207b. Water mein soluble bases ko alkalis kaha jata hai.\"\n},\n\n{\n  question: \"8. HCl ko water mein dissolve karne par kaunsi reaction hoti hai?\",\n  options: &#91;\n    \"A. HCl + H\u2082O \u2192 H\u2083O\u207a + Cl\u207b\",\n    \"B. HCl + H\u2082O \u2192 NaCl + H\u2082\",\n    \"C. HCl \u2192 H\u2082 + Cl\u2082\",\n    \"D. HCl + H\u2082O \u2192 OH\u207b + Cl\u2082\"\n  ],\n  correct: 0,\n  explanation: \"HCl water mein dissolve hone par H\u207a water molecule ke saath combine karke H\u2083O\u207a banata hai aur Cl\u207b ion form hota hai. Isliye hydrogen ions ko aqueous solution mein H\u207a(aq) ya H\u2083O\u207a ke form mein show kiya jata hai.\"\n},\n\n{\n  question: \"9. Concentrated acid ko dilute karte waqt correct method kya hai?\",\n  options: &#91;\n    \"A. Water ko slowly acid mein add karna\",\n    \"B. Acid ko slowly water mein add karna\",\n    \"C. Acid aur water ko ek saath add karna\",\n    \"D. Acid ko heat karna\"\n  ],\n  correct: 1,\n  explanation: \"Acid ko dilute karna highly exothermic process hai. Isliye concentrated acid ko slowly water mein add karna chahiye with constant stirring. Water ko concentrated acid mein add karne par heat rapidly generate ho sakti hai, jisse mixture splash karke burns cause kar sakta hai.\"\n},\n\n{\n  question: \"10. Jab acid ko water mein dilute kiya jata hai, to hydronium ions (H\u2083O\u207a) ki concentration per unit volume par kya effect hota hai?\",\n  options: &#91;\n    \"A. Increase hoti hai\",\n    \"B. Decrease hoti hai\",\n    \"C. Same rehti hai\",\n    \"D. H\u2083O\u207a completely disappear ho jata hai\"\n  ],\n  correct: 1,\n  explanation: \"Dilution mein acid ke saath water ki quantity increase hoti hai. Isliye solution ke per unit volume mein H\u2083O\u207a ions ki concentration decrease ho jati hai. Isi process ko dilution 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\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n\n      ${q.options.map((opt, i) => `\n\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n\n      `).join('')}\n\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\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\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) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\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\">ch2 part 3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 pH Scale and Acids, Bases and Salts&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}\n\n.options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n}\n\n.options label:hover {\n    background: #f0f0f0;\n}\n\n.correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n}\n\n.wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n}\n\n.explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n}\n\n.controls {\n    text-align: center;\n    margin-top: 15px;\n}\n\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 pH Scale and Acids, Bases and Salts&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. pH scale ka use kis cheez ko measure karne ke liye kiya jata hai?\",\noptions: &#91;\n\"A. Temperature\",\n\"B. Hydrogen ion concentration aur acidic\/basic nature\",\n\"C. Pressure\",\n\"D. Density\"\n],\ncorrect: 1,\nexplanation: \"pH ek number hai jo solution ki &lt;b>acidic ya basic nature&lt;\/b> ko indicate karta hai. pH hydrogen ion concentration se related hota hai.\"\n},\n\n{\nquestion: \"2. pH scale par neutral solution ka pH kitna hota hai?\",\noptions: &#91;\n\"A. 0\",\n\"B. 5\",\n\"C. 7\",\n\"D. 14\"\n],\ncorrect: 2,\nexplanation: \"&lt;b>Neutral solution ka pH 7&lt;\/b> hota hai. pH 7 se kam acidic aur 7 se zyada basic\/alkaline solution ko represent karta hai.\"\n},\n\n{\nquestion: \"3. Agar hydronium ion (H\u2083O\u207a) concentration increase ho, to pH value par kya effect hoga?\",\noptions: &#91;\n\"A. pH increase hoga\",\n\"B. pH decrease hoga\",\n\"C. pH 7 ho jayega\",\n\"D. Koi change nahi hoga\"\n],\ncorrect: 1,\nexplanation: \"&lt;b>Higher H\u2083O\u207a concentration ka matlab lower pH&lt;\/b> hota hai. Isliye solution zyada acidic hota jata hai.\"\n},\n\n{\nquestion: \"4. Strong acid aur weak acid mein main difference kya hota hai?\",\noptions: &#91;\n\"A. Strong acid zyada colourless hota hai\",\n\"B. Weak acid ka taste hamesha sweet hota hai\",\n\"C. Strong acid zyada H\u207a ions produce karta hai\",\n\"D. Weak acid OH\u207b ions produce karta hai\"\n],\ncorrect: 2,\nexplanation: \"Same concentration par jo acid &lt;b>more H\u207a ions produce&lt;\/b> karta hai, use strong acid kehte hain. Jo less H\u207a ions produce kare, woh weak acid hota hai.\"\n},\n\n{\nquestion: \"5. Human body normally kis pH range mein properly work karti hai?\",\noptions: &#91;\n\"A. 1.0\u20132.0\",\n\"B. 4.0\u20135.0\",\n\"C. 7.0\u20137.8\",\n\"D. 10.0\u201314.0\"\n],\ncorrect: 2,\nexplanation: \"Human body &lt;b>7.0 se 7.8 ke narrow pH range&lt;\/b> mein properly function karti hai. Living organisms pH changes ke liye sensitive hote hain.\"\n},\n\n{\nquestion: \"6. Rain water ka pH agar 5.6 se kam ho, to use kya kaha jata hai?\",\noptions: &#91;\n\"A. Hard water\",\n\"B. Acid rain\",\n\"C. Distilled water\",\n\"D. Alkaline rain\"\n],\ncorrect: 1,\nexplanation: \"Jab rain water ka &lt;b>pH 5.6 se less&lt;\/b> ho jata hai, use acid rain kaha jata hai. Acid rain rivers ke water ka pH bhi decrease kar sakti hai.\"\n},\n\n{\nquestion: \"7. Indigestion ke time antacids ka use kyun kiya jata hai?\",\noptions: &#91;\n\"A. Excess acid ko neutralise karne ke liye\",\n\"B. Food ko sweet banane ke liye\",\n\"C. Stomach mein acid increase karne ke liye\",\n\"D. Water ko remove karne ke liye\"\n],\ncorrect: 0,\nexplanation: \"Indigestion mein stomach mein &lt;b>excess hydrochloric acid&lt;\/b> ho sakta hai. Antacids basic nature ke hote hain aur excess acid ko neutralise karte hain. &lt;b>Magnesium hydroxide (Milk of Magnesia)&lt;\/b> ek mild base hai.\"\n},\n\n{\nquestion: \"8. Tooth decay generally kis pH se neeche start hota hai?\",\noptions: &#91;\n\"A. 7.5\",\n\"B. 6.5\",\n\"C. 5.5\",\n\"D. 9.5\"\n],\ncorrect: 2,\nexplanation: \"Mouth ka pH &lt;b>5.5 se below&lt;\/b> hone par tooth enamel corrode hona start ho sakta hai. Mouth bacteria sugar aur food particles ko degrade karke acids produce karte hain.\"\n},\n\n{\nquestion: \"9. Bee-sting ke pain aur irritation mein baking soda ka use kyun relief de sakta hai?\",\noptions: &#91;\n\"A. Baking soda ek mild base hai jo acid ko neutralise karta hai\",\n\"B. Baking soda ek strong acid hai\",\n\"C. Baking soda tooth enamel dissolve karta hai\",\n\"D. Baking soda H\u207a ions produce karta hai\"\n],\ncorrect: 0,\nexplanation: \"Bee-sting mein &lt;b>acidic substance&lt;\/b> pain aur irritation cause kar sakta hai. Baking soda ek mild base hai, jo acid ko neutralise karke relief de sakta hai.\"\n},\n\n{\nquestion: \"10. Nettle plant ke stinging hairs mein kaunsa acid hota hai?\",\noptions: &#91;\n\"A. Hydrochloric acid\",\n\"B. Sulphuric acid\",\n\"C. Methanoic acid\",\n\"D. Nitric acid\"\n],\ncorrect: 2,\nexplanation: \"Nettle ke &lt;b>stinging hairs methanoic acid&lt;\/b> inject karte hain, jiski wajah se burning pain hota hai. Ye plants ka ek type of chemical defence mechanism 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\n        &lt;div class=\"options\">\n            ${q.options.map((opt, i) => `\n                &lt;label>\n                    &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n                    ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n                    ${opt}\n                &lt;\/label>\n            `).join('')}\n        &lt;\/div>\n\n        &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n            ${q.explanation}\n        &lt;\/div>\n    `;\n\n    document.getElementById(\"prevBtn\").style.display =\n        currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"nextBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"submitBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion &lt; questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n    }\n}\n\nfunction prevQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n    }\n}\n\nfunction saveAnswer() {\n\n    const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n    userAnswers&#91;currentQuestion] =\n        selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) => {\n        if (userAnswers&#91;index] === q.correct) 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\n            &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n            &lt;div class=\"explanation\" style=\"display:block;\">\n                ${q.explanation}\n            &lt;\/div>\n            &lt;hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML =\n        `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.push({\n        name,\n        score,\n        date: new Date().toLocaleString()\n    });\n\n    localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.sort((a, b) => b.score - a.score);\n\n    document.getElementById(\"scoreList\").innerHTML =\n        scores.map(s =>\n            `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n        ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch2 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>Acids, Bases and Salts \u2013 Chemistry Quiz Set 2&lt;\/title>\n\n  &lt;style>\n    body {\n      font-family: Arial, sans-serif;\n      background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n      display: flex;\n      justify-content: center;\n      align-items: flex-start;\n      padding: 30px;\n      min-height: 100vh;\n    }\n\n    .quiz-container {\n      background: #fff;\n      padding: 25px;\n      border-radius: 12px;\n      box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n      width: 90%;\n      max-width: 800px;\n    }\n\n    h2 { text-align: center; color: #1e3c72; }\n\n    .question { font-weight: bold; margin: 10px 0; }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover { background: #f0f0f0; }\n\n    .correct {\n      background-color: #c8f7c5 !important;\n      border-color: #28a745 !important;\n    }\n\n    .wrong {\n      background-color: #f8d7da !important;\n      border-color: #dc3545 !important;\n    }\n\n    .explanation {\n      background: #e9ecef;\n      padding: 10px;\n      margin-top: 10px;\n      border-left: 5px solid #2a5298;\n      display: none;\n    }\n\n    .controls { text-align: center; margin-top: 15px; }\n\n    button {\n      background-color: #2a5298;\n      color: white;\n      border: none;\n      padding: 10px 20px;\n      border-radius: 6px;\n      cursor: pointer;\n      margin: 5px;\n    }\n\n    button:hover { background-color: #1e3c72; }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 { text-align: center; }\n\n    ol { padding-left: 20px; }\n  &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\uddea Acids, Bases and Salts \u2013 Chemistry Quiz (Set 2)&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. Strong acid aur strong base se bana salt generally kaisa hota hai?\",\n    options: &#91;\n      \"A. Acidic\",\n      \"B. Basic\",\n      \"C. Neutral\",\n      \"D. Highly acidic\"\n    ],\n    correct: 2,\n    explanation: \"Strong acid + strong base se bana salt generally neutral hota hai aur iska pH 7 hota hai. Sodium chloride (NaCl) iska example hai.\"\n  },\n\n  {\n    question: \"2. Strong acid aur weak base se bana salt generally kaisa hota hai?\",\n    options: &#91;\n      \"A. Basic\",\n      \"B. Acidic\",\n      \"C. Neutral\",\n      \"D. Always alkaline\"\n    ],\n    correct: 1,\n    explanation: \"Strong acid + weak base se bana salt acidic nature ka hota hai. Iska pH generally 7 se less hota hai.\"\n  },\n\n  {\n    question: \"3. Common salt ka chemical name kya hai?\",\n    options: &#91;\n      \"A. Sodium carbonate\",\n      \"B. Sodium hydroxide\",\n      \"C. Sodium chloride\",\n      \"D. Sodium hydrogencarbonate\"\n    ],\n    correct: 2,\n    explanation: \"Common salt ka chemical name sodium chloride (NaCl) hai. Ye hydrochloric acid aur sodium hydroxide ke reaction se bhi ban sakta hai.\"\n  },\n\n  {\n    question: \"4. Brine ke electrolysis ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Neutralisation process\",\n      \"B. Chlor-alkali process\",\n      \"C. Crystallisation process\",\n      \"D. Displacement process\"\n    ],\n    correct: 1,\n    explanation: \"Aqueous sodium chloride solution, yani brine, mein electricity pass karne par sodium hydroxide, chlorine aur hydrogen bante hain. Is process ko chlor-alkali process kehte hain.\"\n  },\n\n  {\n    question: \"5. Chlor-alkali process mein chlorine gas kis electrode par release hoti hai?\",\n    options: &#91;\n      \"A. Cathode\",\n      \"B. Anode\",\n      \"C. Both electrodes\",\n      \"D. Salt bridge\"\n    ],\n    correct: 1,\n    explanation: \"Brine ke electrolysis mein chlorine gas anode par aur hydrogen gas cathode par release hoti hai. Sodium hydroxide solution cathode ke paas form hota hai.\"\n  },\n\n  {\n    question: \"6. Bleaching powder banane ke liye chlorine kis compound ke saath react karta hai?\",\n    options: &#91;\n      \"A. Sodium chloride\",\n      \"B. Calcium carbonate\",\n      \"C. Dry slaked lime\",\n      \"D. Sodium hydroxide\"\n    ],\n    correct: 2,\n    explanation: \"Chlorine gas ko dry slaked lime &#91;Ca(OH)\u2082] ke saath react karane se bleaching powder produce hota hai. Iska representation Ca(ClO)\u2082 diya jata hai.\"\n  },\n\n  {\n    question: \"7. Baking soda ka chemical name kya hai?\",\n    options: &#91;\n      \"A. Sodium carbonate\",\n      \"B. Sodium hydrogencarbonate\",\n      \"C. Sodium chloride\",\n      \"D. Sodium hydroxide\"\n    ],\n    correct: 1,\n    explanation: \"Baking soda ka chemical name sodium hydrogencarbonate (NaHCO\u2083) hai. Ye ek mild, non-corrosive basic salt hai.\"\n  },\n\n  {\n    question: \"8. Baking powder mein baking soda ke saath kaunsa weak edible acid use hota hai?\",\n    options: &#91;\n      \"A. Hydrochloric acid\",\n      \"B. Sulphuric acid\",\n      \"C. Tartaric acid\",\n      \"D. Nitric acid\"\n    ],\n    correct: 2,\n    explanation: \"Baking powder mein baking soda + tartaric acid hota hai. Reaction ke during CO\u2082 gas produce hoti hai, jo bread ya cake ko soft aur spongy banati hai.\"\n  },\n\n  {\n    question: \"9. Sodium hydrogencarbonate (NaHCO\u2083) ko heat karne par kya banta hai?\",\n    options: &#91;\n      \"A. Sodium carbonate, water aur carbon dioxide\",\n      \"B. Sodium chloride aur oxygen\",\n      \"C. Sodium hydroxide aur hydrogen\",\n      \"D. Calcium carbonate aur water\"\n    ],\n    correct: 0,\n    explanation: \"Heating par reaction hoti hai:&lt;br>&lt;strong>2NaHCO\u2083 \u2192 Na\u2082CO\u2083 + H\u2082O + CO\u2082&lt;\/strong>&lt;br>Isliye baking soda heat hone par sodium carbonate, water aur carbon dioxide produce karta hai.\"\n  },\n\n  {\n    question: \"10. Washing soda ka important use kya hai?\",\n    options: &#91;\n      \"A. Permanent hardness of water remove karna\",\n      \"B. Tooth decay badhana\",\n      \"C. Oxygen produce karna\",\n      \"D. Acids ko strong banana\"\n    ],\n    correct: 0,\n    explanation: \"Washing soda, Na\u2082CO\u2083\u00b710H\u2082O, ek basic salt hai. Iska use glass, soap aur paper industries, cleaning aur permanent hardness of water remove karne mein hota hai.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch2 part 5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n  &lt;meta charset=\"UTF-8\">\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  &lt;title>\ud83e\udde0 Acids, Bases and Salts \u2013 Practice Quiz&lt;\/title>\n  &lt;style>\n    body {\n      font-family: Arial, sans-serif;\n      background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n      display: flex;\n      justify-content: center;\n      align-items: flex-start;\n      padding: 30px;\n      min-height: 100vh;\n      box-sizing: border-box;\n    }\n    .quiz-container {\n      background: #fff;\n      padding: 25px;\n      border-radius: 12px;\n      box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n      width: 90%;\n      max-width: 800px;\n    }\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\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Acids, Bases and Salts \u2013 Practice Quiz&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\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. Copper sulphate crystals mein water of crystallisation ke kitne molecules hote hain?\",\n    options: &#91;\n      \"A. 2\",\n      \"B. 3\",\n      \"C. 5\",\n      \"D. 10\"\n    ],\n    correct: 2,\n    explanation: \"Hydrated copper sulphate ka formula &lt;b>CuSO\u2084\u00b75H\u2082O&lt;\/b> hai. Iska matlab ek formula unit copper sulphate ke saath &lt;b>5 water molecules&lt;\/b> fixed hote hain.\"\n  },\n  {\n    question: \"2. Copper sulphate crystals ko heat karne par unka blue colour kis colour mein change ho jata hai?\",\n    options: &#91;\n      \"A. Green\",\n      \"B. White\",\n      \"C. Yellow\",\n      \"D. Black\"\n    ],\n    correct: 1,\n    explanation: \"Heating par copper sulphate crystals ka &lt;b>water of crystallisation remove&lt;\/b> ho jata hai. Is wajah se blue crystals &lt;b>white&lt;\/b> ho jate hain.\"\n  },\n  {\n    question: \"3. White anhydrous copper sulphate mein water add karne par kya hota hai?\",\n    options: &#91;\n      \"A. Red colour appear hota hai\",\n      \"B. Blue colour wapas appear hota hai\",\n      \"C. Black colour appear hota hai\",\n      \"D. Koi change nahi hota\"\n    ],\n    correct: 1,\n    explanation: \"Water add karne par copper sulphate dobara hydrated form mein aa jata hai aur uska &lt;b>blue colour reappear&lt;\/b> ho jata hai.\"\n  },\n  {\n    question: \"4. Water of crystallisation ka correct meaning kya hai?\",\n    options: &#91;\n      \"A. Salt mein accidentally present water\",\n      \"B. Salt ko dissolve karne wala water\",\n      \"C. One formula unit of salt mein present fixed number of water molecules\",\n      \"D. Sirf liquid water\"\n    ],\n    correct: 2,\n    explanation: \"&lt;b>Water of crystallisation&lt;\/b> ek salt ke one formula unit mein present &lt;b>fixed number of water molecules&lt;\/b> ko kehte hain. Example: CuSO\u2084\u00b75H\u2082O.\"\n  },\n  {\n    question: \"5. Gypsum ka chemical formula kya hai?\",\n    options: &#91;\n      \"A. CaSO\u2084\u00b72H\u2082O\",\n      \"B. CaSO\u2084\u00b75H\u2082O\",\n      \"C. Na\u2082CO\u2083\u00b710H\u2082O\",\n      \"D. CaCO\u2083\"\n    ],\n    correct: 0,\n    explanation: \"Gypsum ka formula &lt;b>CaSO\u2084\u00b72H\u2082O&lt;\/b> hai. Ismein &lt;b>2 water molecules&lt;\/b> water of crystallisation ke form mein present hote hain.\"\n  },\n  {\n    question: \"6. Gypsum ko 373 K par heat karne par kya banta hai?\",\n    options: &#91;\n      \"A. Sodium carbonate\",\n      \"B. Plaster of Paris\",\n      \"C. Baking soda\",\n      \"D. Bleaching powder\"\n    ],\n    correct: 1,\n    explanation: \"Gypsum ko &lt;b>373 K&lt;\/b> par heat karne par water molecules ka kuch part remove hota hai aur &lt;b>calcium sulphate hemihydrate (CaSO\u2084\u00b7\u00bdH\u2082O)&lt;\/b> banta hai, jise Plaster of Paris kehte hain.\"\n  },\n  {\n    question: \"7. Plaster of Paris ko water ke saath mix karne par kya banta hai?\",\n    options: &#91;\n      \"A. Gypsum\",\n      \"B. Sodium chloride\",\n      \"C. Copper sulphate\",\n      \"D. Calcium carbonate\"\n    ],\n    correct: 0,\n    explanation: \"Plaster of Paris water ke saath react karke dobara &lt;b>gypsum (CaSO\u2084\u00b72H\u2082O)&lt;\/b> banata hai. Is process mein ek &lt;b>hard solid mass&lt;\/b> form hota hai.\"\n  },\n  {\n    question: \"8. Doctors Plaster of Paris ka use kis purpose ke liye karte hain?\",\n    options: &#91;\n      \"A. Fever treat karne ke liye\",\n      \"B. Fractured bones ko right position mein support karne ke liye\",\n      \"C. Tooth decay prevent karne ke liye\",\n      \"D. Acidity reduce karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Plaster of Paris water ke saath mix hokar hard mass banata hai. Isliye doctors ise &lt;b>fractured bones ko support&lt;\/b> dene aur correct position mein rakhne ke liye use karte hain.\"\n  },\n  {\n    question: \"9. Neutral solution ka pH kitna hota hai?\",\n    options: &#91;\n      \"A. 0\",\n      \"B. 5\",\n      \"C. 7\",\n      \"D. 14\"\n    ],\n    correct: 2,\n    explanation: \"&lt;b>Neutral solution ka pH exactly 7&lt;\/b> hota hai. pH less than 7 acidic aur pH more than 7 basic solution ko indicate karta hai.\"\n  },\n  {\n    question: \"10. Concentrated acid ko water mein mix karna kaisa process hai?\",\n    options: &#91;\n      \"A. Endothermic\",\n      \"B. Highly exothermic\",\n      \"C. Neutral process\",\n      \"D. Photochemical process\"\n    ],\n    correct: 1,\n    explanation: \"Concentrated acid ya base ko water ke saath mix karna &lt;b>highly exothermic&lt;\/b> hota hai, yani heat release hoti hai. Isliye concentrated acid ko &lt;b>slowly water mein add&lt;\/b> karna chahiye.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n  ).join('');\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch2 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>\ud83e\udde0 Science Quiz \u2013 Acids, Bases and Salts&lt;\/title>\n\n&lt;style>\nbody {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n}\n.quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; }\n.options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n}\n.wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n}\n.explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Acids, Bases and Salts&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. Agar koi solution red litmus ko blue kar deta hai, to uska pH likely kya hoga?\",\noptions: &#91;\n\"A. 1\",\n\"B. 4\",\n\"C. 5\",\n\"D. 10\"\n],\ncorrect: 3,\nexplanation: \"Red litmus ko blue karne wala solution &lt;b>basic\/alkaline&lt;\/b> hota hai. Basic solutions ka pH &lt;b>7 se greater&lt;\/b> hota hai, isliye 10 correct hai.\"\n},\n\n{\nquestion: \"2. Ek solution crushed egg-shells ke saath react karke aisi gas produce karta hai jo lime-water ko milky bana deti hai. Solution mein kya present hai?\",\noptions: &#91;\n\"A. NaCl\",\n\"B. HCl\",\n\"C. LiCl\",\n\"D. KCl\"\n],\ncorrect: 1,\nexplanation: \"Egg-shells mein mainly &lt;b>calcium carbonate (CaCO\u2083)&lt;\/b> hota hai. HCl ke saath react karne par &lt;b>CO\u2082 gas&lt;\/b> produce hoti hai, jo lime-water ko milky kar deti hai.\"\n},\n\n{\nquestion: \"3. 10 mL NaOH solution ko completely neutralise karne ke liye 8 mL HCl solution required hai. Same NaOH solution ke 20 mL ko neutralise karne ke liye kitna HCl solution chahiye?\",\noptions: &#91;\n\"A. 4 mL\",\n\"B. 8 mL\",\n\"C. 12 mL\",\n\"D. 16 mL\"\n],\ncorrect: 3,\nexplanation: \"NaOH ki quantity double ho gayi hai: &lt;b>10 mL \u2192 20 mL&lt;\/b>. Isliye required HCl bhi double hoga: &lt;b>8 mL \u00d7 2 = 16 mL&lt;\/b>.\"\n},\n\n{\nquestion: \"4. Indigestion ke treatment ke liye kaunsi type ki medicine use ki jati hai?\",\noptions: &#91;\n\"A. Antibiotic\",\n\"B. Analgesic\",\n\"C. Antacid\",\n\"D. Antiseptic\"\n],\ncorrect: 2,\nexplanation: \"Indigestion mein stomach mein excess acid ho sakta hai. &lt;b>Antacids basic nature&lt;\/b> ke hote hain aur excess stomach acid ko neutralise karke relief dete hain.\"\n},\n\n{\nquestion: \"5. Dilute sulphuric acid aur zinc granules ke reaction mein kaunsi gas evolve hoti hai?\",\noptions: &#91;\n\"A. Oxygen\",\n\"B. Carbon dioxide\",\n\"C. Hydrogen\",\n\"D. Chlorine\"\n],\ncorrect: 2,\nexplanation: \"Zinc dilute sulphuric acid ke saath react karke &lt;b>zinc sulphate aur hydrogen gas&lt;\/b> banata hai.&lt;br>&lt;br>&lt;b>Balanced equation:&lt;\/b>&lt;br>Zn + H\u2082SO\u2084 \u2192 ZnSO\u2084 + H\u2082\"\n},\n\n{\nquestion: \"6. Alcohol aur glucose mein hydrogen present hone ke baad bhi unhe acids kyun nahi kaha jata? Is baat ko prove karne ke liye kya observe kiya ja sakta hai?\",\noptions: &#91;\n\"A. Unke solutions electricity conduct nahi karte\",\n\"B. Unka colour blue hota hai\",\n\"C. Woh red litmus ko blue karte hain\",\n\"D. Woh HCl produce karte hain\"\n],\ncorrect: 0,\nexplanation: \"Alcohol aur glucose mein hydrogen atoms present hain, lekin water mein ye &lt;b>H\u207a ions produce nahi karte&lt;\/b>. Isliye unhe acids nahi kaha jata aur unke aqueous solutions electricity conduct nahi karte.\"\n},\n\n{\nquestion: \"7. Distilled water electricity conduct nahi karta, whereas rain water electricity conduct karta hai. Iska main reason kya hai?\",\noptions: &#91;\n\"A. Distilled water hot hota hai\",\n\"B. Rain water mein dissolved salts\/ions present hote hain\",\n\"C. Distilled water mein oxygen nahi hoti\",\n\"D. Rain water ka colour different hota hai\"\n],\ncorrect: 1,\nexplanation: \"Distilled water mein ions ki quantity bahut negligible hoti hai. Rain water atmosphere se &lt;b>dissolved salts and other substances&lt;\/b> le leta hai, jisse ions present hote hain aur electricity conduct hoti hai.\"\n},\n\n{\nquestion: \"8. Dry HCl gas dry litmus paper ko acidic behaviour kyun nahi dikhati?\",\noptions: &#91;\n\"A. HCl gas mein chlorine nahi hota\",\n\"B. HCl sirf sunlight mein acid banta hai\",\n\"C. Water ki absence mein H\u207a ions produce nahi hote\",\n\"D. Dry litmus paper basic hota hai\"\n],\ncorrect: 2,\nexplanation: \"HCl ka acidic behaviour water ki presence mein hota hai, kyunki water mein HCl &lt;b>H\u2083O\u207a ions&lt;\/b> produce karta hai. Dry HCl gas mein water absent hone ke karan acidic behaviour show nahi hota.\"\n},\n\n{\nquestion: \"9. Solutions A, B, C, D aur E ke pH respectively 4, 1, 11, 7 aur 9 hain. Kaunsa solution strongly acidic hai?\",\noptions: &#91;\n\"A. A\",\n\"B. B\",\n\"C. C\",\n\"D. E\"\n],\ncorrect: 1,\nexplanation: \"pH jitna &lt;b>lower&lt;\/b>, solution utna more acidic hota hai. Solution B ka pH &lt;b>1&lt;\/b> hai, isliye ye strongly acidic hai.\"\n},\n\n{\nquestion: \"10. Equal magnesium ribbons ko same amount aur concentration ke HCl aur CH\u2083COOH ke saath react karaya jata hai. Kis test tube mein fizzing more vigorous hogi?\",\noptions: &#91;\n\"A. HCl wale test tube mein\",\n\"B. Acetic acid wale test tube mein\",\n\"C. Dono mein same fizzing hogi\",\n\"D. Kisi mein fizzing nahi hogi\"\n],\ncorrect: 0,\nexplanation: \"&lt;b>HCl strong acid&lt;\/b> hai, isliye same concentration par ye acetic acid se more H\u207a ions provide karta hai. Magnesium ke saath hydrogen gas faster produce hoti hai, isliye HCl wale test tube mein fizzing more vigorous hogi.\"\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\n        &lt;div class=\"options\">\n            ${q.options.map((opt, i) => `\n                &lt;label>\n                    &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n                    ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n                    ${opt}\n                &lt;\/label>\n            `).join('')}\n        &lt;\/div>\n\n        &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n            ${q.explanation}\n        &lt;\/div>\n    `;\n\n    document.getElementById(\"prevBtn\").style.display =\n        currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"nextBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n    document.getElementById(\"submitBtn\").style.display =\n        currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion &lt; questions.length - 1) {\n        currentQuestion++;\n        showQuestion();\n    }\n}\n\nfunction prevQuestion() {\n\n    saveAnswer();\n\n    if (currentQuestion > 0) {\n        currentQuestion--;\n        showQuestion();\n    }\n}\n\nfunction saveAnswer() {\n\n    const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n    userAnswers&#91;currentQuestion] =\n        selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n    saveAnswer();\n\n    score = 0;\n\n    questions.forEach((q, index) => {\n        if (userAnswers&#91;index] === q.correct) 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\n            &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n            &lt;div class=\"explanation\" style=\"display:block;\">\n                ${q.explanation}\n            &lt;\/div>\n            &lt;hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n\n    document.getElementById(\"result\").innerHTML =\n        `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.push({\n        name,\n        score,\n        date: new Date().toLocaleString()\n    });\n\n    localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n    let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n    scores.sort((a, b) => b.score - a.score);\n\n    document.getElementById(\"scoreList\").innerHTML =\n        scores.map(s =>\n            `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n        ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n","protected":false},"excerpt":{"rendered":"<p>ch2 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-5439","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5439","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=5439"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5439\/revisions"}],"predecessor-version":[{"id":5440,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5439\/revisions\/5440"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}