{"id":5502,"date":"2026-11-23T04:19:16","date_gmt":"2026-11-23T04:19:16","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5502"},"modified":"2026-11-23T04:19:16","modified_gmt":"2026-11-23T04:19:16","slug":"class-9-science-chapter-6","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5502","title":{"rendered":"class 9 science chapter 6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch6 part1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Force and Its Effects - Science Quiz | APICAL CLASSES&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 12px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 12px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Force and Its Effects&lt;\/h2>\n&lt;p style=\"text-align:center;\">&lt;b>APICAL CLASSES&lt;\/b>&lt;\/p>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n{\n  question: \"1. Ek ball rest position mein hai. Agar us par force apply kiya jaaye, to force kya kar sakta hai?\",\n  options: &#91;\n    \"A. Ball ko move kara sakta hai\",\n    \"B. Ball ka mass change kar sakta hai\",\n    \"C. Ball ko invisible bana sakta hai\",\n    \"D. Ball ka temperature hamesha zero kar sakta hai\"\n  ],\n  correct: 0,\n  explanation: \"Force kisi &lt;b>stationary object ko motion mein laa sakta hai&lt;\/b>.\"\n},\n{\n  question: \"2. Cricket bat se moving ball par force lagane par ball ki direction change ho jaati hai. Ye force ka kaunsa effect show karta hai?\",\n  options: &#91;\n    \"A. Force object ka colour change karta hai\",\n    \"B. Force motion ki direction change kar sakta hai\",\n    \"C. Force object ka mass destroy karta hai\",\n    \"D. Force object ko hamesha stop karta hai\"\n  ],\n  correct: 1,\n  explanation: \"Force moving object ki &lt;b>speed aur direction&lt;\/b>, dono mein change kar sakta hai.\"\n},\n{\n  question: \"3. Fingers se lemon ko squeeze karne par lemon ka shape change ho jaata hai. Ye force ka kya effect hai?\",\n  options: &#91;\n    \"A. Force shape change kar sakta hai\",\n    \"B. Force mass increase karta hai\",\n    \"C. Force density zero karta hai\",\n    \"D. Force object ko gas bana deta hai\"\n  ],\n  correct: 0,\n  explanation: \"Lemon par applied force uski &lt;b>shape change&lt;\/b> kar deta hai. Force object ko deform bhi kar sakta hai.\"\n},\n{\n  question: \"4. Force ko completely describe karne ke liye magnitude ke saath aur kya specify karna zaroori hai?\",\n  options: &#91;\n    \"A. Colour\",\n    \"B. Direction\",\n    \"C. Temperature\",\n    \"D. Volume\"\n  ],\n  correct: 1,\n  explanation: \"Force ek &lt;b>vector quantity&lt;\/b> hai, isliye uski &lt;b>magnitude aur direction&lt;\/b> dono specify karni hoti hain.\"\n},\n{\n  question: \"5. Frictional force generally moving object ki motion ke kis direction mein act karta hai?\",\n  options: &#91;\n    \"A. Motion ki same direction mein\",\n    \"B. Motion ki opposite direction mein\",\n    \"C. Hamesha upward\",\n    \"D. Hamesha downward\"\n  ],\n  correct: 1,\n  explanation: \"Friction generally object ki motion ko oppose karta hai, isliye force &lt;b>motion ki opposite direction&lt;\/b> mein act karta hai.\"\n},\n{\n  question: \"6. Like poles of two magnets ek-doosre par kaunsi force lagate hain?\",\n  options: &#91;\n    \"A. Attractive magnetic force\",\n    \"B. Repulsive magnetic force\",\n    \"C. Gravitational force only\",\n    \"D. Buoyant force\"\n  ],\n  correct: 1,\n  explanation: \"Magnetic force mein &lt;b>like poles repel&lt;\/b> aur unlike poles attract karte hain.\"\n},\n{\n  question: \"7. Force ka SI unit kya hai?\",\n  options: &#91;\n    \"A. Joule (J)\",\n    \"B. Watt (W)\",\n    \"C. Newton (N)\",\n    \"D. Pascal (Pa)\"\n  ],\n  correct: 2,\n  explanation: \"Force ka SI unit &lt;b>newton&lt;\/b> hai aur iska symbol &lt;b>N&lt;\/b> hai.\"\n},\n{\n  question: \"8. Force ki magnitude kya express karti hai?\",\n  options: &#91;\n    \"A. Force ki direction\",\n    \"B. Force ki strength\",\n    \"C. Object ka mass\",\n    \"D. Object ka volume\"\n  ],\n  correct: 1,\n  explanation: \"Force ki &lt;b>magnitude uski strength&lt;\/b> ko express karti hai.\"\n},\n{\n  question: \"9. Spring balance ka use kis quantity ko measure karne ke liye kiya ja sakta hai?\",\n  options: &#91;\n    \"A. Sirf temperature\",\n    \"B. Force ki magnitude\",\n    \"C. Sirf distance\",\n    \"D. Sirf time\"\n  ],\n  correct: 1,\n  explanation: \"Spring balance se &lt;b>weight&lt;\/b>, jo gravitational force hai, measure kiya ja sakta hai. Isliye spring balance generally &lt;b>force ki magnitude&lt;\/b> measure kar sakta hai.\"\n},\n{\n  question: \"10. Everyday life mein directly feel ki ja sakne wali very small forces approximately kis order ki hoti hain?\",\n  options: &#91;\n    \"A. Kilonewtons (10\u00b3 N)\",\n    \"B. Newtons (1 N)\",\n    \"C. Millinewtons (10\u207b\u00b3 N)\",\n    \"D. Yoctonewtons (10\u207b\u00b2\u2074 N)\"\n  ],\n  correct: 2,\n  explanation: \"Everyday life mein light touch jaise very small forces ka order approximately &lt;b>millinewtons (10\u207b\u00b3 N)&lt;\/b> hota hai. Specialized experiments mein scientists isse bhi bahut smaller forces measure kar sakte hain.\"\n}\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p style=\"text-align:right;\">Question ${currentQuestion + 1} of ${questions.length}&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  if (quizSubmitted) return;\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  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\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== q.correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;b>Explanation:&lt;\/b> ${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;b>${userName}&lt;\/b>, ${\n      score >= 8 ? \"Excellent work!\" :\n      score >= 5 ? \"Good effort! Keep practising.\" :\n      \"Keep learning and try again!\"\n    }&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/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\">ch6 part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES - Science Quiz: Force&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.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  line-height: 1.5;\n  display: none;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#result {\n  text-align: center;\n  margin-top: 20px;\n}\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 APICAL CLASSES \u2013 Science Quiz&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">Force and Balanced &amp; Unbalanced Forces&lt;\/h3>\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\">&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. Jab ek box ko surface par push kiya jaata hai, to push ke opposite direction mein kaunsa force act karta hai?\",\n    options: &#91;\n      \"A. Gravitational force\",\n      \"B. Frictional force\",\n      \"C. Buoyant force\",\n      \"D. Magnetic force\"\n    ],\n    correct: 1,\n    explanation: \"Friction motion ke opposite direction mein act karta hai aur box ki motion ko oppose karta hai.\"\n  },\n  {\n    question: \"2. Paani par floating ball par kaun-se do forces act karte hain?\",\n    options: &#91;\n      \"A. Frictional force aur magnetic force\",\n      \"B. Gravitational force aur frictional force\",\n      \"C. Gravitational force aur buoyant force\",\n      \"D. Magnetic force aur buoyant force\"\n    ],\n    correct: 2,\n    explanation: \"Earth ka gravitational force ball par downward act karta hai, jabki water ka buoyant force upward act karta hai.\"\n  },\n  {\n    question: \"3. Tug of war mein dono teams rope ko equal force se opposite directions mein pull karti hain. Rope par kya effect hoga?\",\n    options: &#91;\n      \"A. Rope left side move karegi\",\n      \"B. Rope right side move karegi\",\n      \"C. Rope move nahi karegi\",\n      \"D. Rope circular motion karegi\"\n    ],\n    correct: 2,\n    explanation: \"Equal magnitude ke opposite forces ek-doosre ko balance kar dete hain, isliye net force zero hota hai.\"\n  },\n  {\n    question: \"4. Equal magnitude aur opposite direction mein acting karne wale forces ko kya kaha jaata hai?\",\n    options: &#91;\n      \"A. Unbalanced forces\",\n      \"B. Balanced forces\",\n      \"C. Magnetic forces\",\n      \"D. Frictional forces\"\n    ],\n    correct: 1,\n    explanation: \"Jab forces magnitude mein equal aur direction mein opposite hote hain, to unhe balanced forces kehte hain.\"\n  },\n  {\n    question: \"5. Tug of war mein ek team doosri team se zyada force lagati hai. Rope kis direction mein move karegi?\",\n    options: &#91;\n      \"A. Smaller force ki direction mein\",\n      \"B. Larger force ki direction mein\",\n      \"C. Opposite to both forces\",\n      \"D. Rope move nahi karegi\"\n    ],\n    correct: 1,\n    explanation: \"Unequal opposite forces ka net force larger force ki direction mein hota hai, isliye rope usi direction mein move karti hai.\"\n  },\n  {\n    question: \"6. Do opposite forces 50 N aur 30 N hain. Net force ka magnitude kitna hoga?\",\n    options: &#91;\n      \"A. 20 N\",\n      \"B. 30 N\",\n      \"C. 50 N\",\n      \"D. 80 N\"\n    ],\n    correct: 0,\n    explanation: \"Opposite aur unequal forces ke liye net force = difference = 50 N \u2212 30 N = 20 N.\"\n  },\n  {\n    question: \"7. Agar do forces 40 N aur 25 N opposite directions mein act kar rahe hain, to net force kis direction mein hoga?\",\n    options: &#91;\n      \"A. 25 N force ki direction mein\",\n      \"B. 40 N force ki direction mein\",\n      \"C. Dono ke perpendicular\",\n      \"D. Net force zero hoga\"\n    ],\n    correct: 1,\n    explanation: \"Net force hamesha larger magnitude wale force ki direction mein hota hai.\"\n  },\n  {\n    question: \"8. Ek stalled car ko do log same direction mein 100 N aur 150 N force se push karte hain. Net force kitna hoga?\",\n    options: &#91;\n      \"A. 50 N\",\n      \"B. 100 N\",\n      \"C. 150 N\",\n      \"D. 250 N\"\n    ],\n    correct: 3,\n    explanation: \"Same direction mein forces add hote hain: 100 N + 150 N = 250 N.\"\n  },\n  {\n    question: \"9. Jab ek object par acting forces balanced hote hain, to net force ka value kya hota hai?\",\n    options: &#91;\n      \"A. Zero\",\n      \"B. One\",\n      \"C. Maximum\",\n      \"D. Negative\"\n    ],\n    correct: 0,\n    explanation: \"Balanced forces ek-doosre ko cancel kar dete hain, isliye object par net force zero hota hai.\"\n  },\n  {\n    question: \"10. Niche diye gaye statements mein se unbalanced forces ke baare mein correct statement kaunsa hai?\",\n    options: &#91;\n      \"A. Unbalanced forces ka net force hamesha zero hota hai.\",\n      \"B. Unbalanced forces equal aur opposite hote hain.\",\n      \"C. Unbalanced forces ke case mein non-zero net force act karta hai.\",\n      \"D. Unbalanced forces object ko kabhi move nahi karte.\"\n    ],\n    correct: 2,\n    explanation: \"Jab forces balanced nahi hote, to non-zero net force act karta hai aur object ki motion mein change ho sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet submitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p style=\"color:#555;\">Question ${currentQuestion + 1} of ${questions.length}&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(a => a === null || a === undefined).length;\n\n  if (unanswered > 0) {\n    if (!confirm(`You have ${unanswered} unanswered question(s). Do you want to submit anyway?`)) {\n      return;\n    }\n  }\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  submitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>&lt;strong>${userName}&lt;\/strong>&lt;\/p>\n    &lt;p>${score >= 8 ? \"Excellent Work! \ud83c\udf89\" : score >= 5 ? \"Good Attempt! Keep Practising.\" : \"Keep Learning and Try Again!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n  ).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\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\">ch6 part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Force and Net Force&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 Force and Net Force&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. Do forces 10 N aur 6 N ek block par same direction mein act kar rahe hain. Net force ka magnitude aur direction kya hoga?\",\noptions: &#91;\n\"A. 4 N, left\",\n\"B. 16 N, right\",\n\"C. 16 N, left\",\n\"D. 4 N, right\"\n],\ncorrect: 1,\nexplanation: \"Same direction ke forces add hote hain: 10 N + 6 N = &lt;b>16 N&lt;\/b>, aur direction right hogi.\"\n},\n\n{\nquestion: \"2. Ek block par 10 N ka force right aur 6 N ka force left direction mein act kar raha hai. Net force kya hoga?\",\noptions: &#91;\n\"A. 16 N right\",\n\"B. 4 N left\",\n\"C. 4 N right\",\n\"D. 16 N left\"\n],\ncorrect: 2,\nexplanation: \"Opposite forces mein difference liya jaata hai: 10 N \u2212 6 N = &lt;b>4 N&lt;\/b>. Larger force right mein hai.\"\n},\n\n{\nquestion: \"3. Agar 6 N ka force right aur 10 N ka force left direction mein act kare, to net force kya hoga?\",\noptions: &#91;\n\"A. 4 N left\",\n\"B. 4 N right\",\n\"C. 16 N left\",\n\"D. 16 N right\"\n],\ncorrect: 0,\nexplanation: \"10 N \u2212 6 N = &lt;b>4 N&lt;\/b>. Larger force 10 N left direction mein hai, isliye net force left hoga.\"\n},\n\n{\nquestion: \"4. Do forces 10 N aur 6 N ek object par opposite directions mein act kar rahe hain. Net force find karne ke liye kya kiya jaata hai?\",\noptions: &#91;\n\"A. Dono forces ko multiply karte hain\",\n\"B. Dono forces ko divide karte hain\",\n\"C. Dono forces ko add karte hain\",\n\"D. Dono forces ke magnitudes ka difference lete hain\"\n],\ncorrect: 3,\nexplanation: \"Opposite direction ke unequal forces ke case mein net force = &lt;b>larger force \u2212 smaller force&lt;\/b>.\"\n},\n\n{\nquestion: \"5. Agar do forces ek-doosre ke angle par act kar rahe hon, to unka exact net force calculate karna kis level par detail mein seekha jaata hai?\",\noptions: &#91;\n\"A. Isi basic section mein complete method\",\n\"B. Higher grades mein\",\n\"C. Sirf primary classes mein\",\n\"D. Force calculation possible nahi hai\"\n],\ncorrect: 1,\nexplanation: \"Chapter mein bataya gaya hai ki angled forces ka net force calculate karna &lt;b>higher grades&lt;\/b> mein detail mein seekhenge.\"\n},\n\n{\nquestion: \"6. Equal aur opposite forces kisi extended object ke do ends par apply kiye jaayen, to kya ho sakta hai?\",\noptions: &#91;\n\"A. Object rotate kar sakta hai\",\n\"B. Object ka mass zero ho jaata hai\",\n\"C. Object dissolve ho jaata hai\",\n\"D. Object hamesha rest mein rahta hai\"\n],\ncorrect: 0,\nexplanation: \"Extended object par equal aur opposite forces rotation produce kar sakte hain, jaise &lt;b>handlebar ya tap ko turn karna&lt;\/b>.\"\n},\n\n{\nquestion: \"7. Weightlifter ek barbell ko steady position mein hold kar raha hai. Barbell par kaun-se do important forces act karte hain?\",\noptions: &#91;\n\"A. Magnetic force aur frictional force\",\n\"B. Gravitational force aur weightlifter ka upward force\",\n\"C. Buoyant force aur magnetic force\",\n\"D. Sirf gravitational force\"\n],\ncorrect: 1,\nexplanation: \"Gravity barbell ko downward pull karti hai, jabki weightlifter ka applied force upward hota hai.\"\n},\n\n{\nquestion: \"8. Weightlifter barbell ko steady rakhta hai, yani barbell rest mein hai. Is situation mein us par upward aur downward forces kaise honge?\",\noptions: &#91;\n\"A. Equal aur balanced\",\n\"B. Unequal aur balanced\",\n\"C. Equal aur same direction\",\n\"D. Zero aur opposite direction\"\n],\ncorrect: 0,\nexplanation: \"Barbell steady hai, isliye upward aur downward forces balance kar rahe hain. Net force &lt;b>zero&lt;\/b> hai.\"\n},\n\n{\nquestion: \"9. Arm-wrestling mein players R aur S ke arms front direction mein tilt kar rahe hain. Is situation se kya conclude kiya ja sakta hai?\",\noptions: &#91;\n\"A. Forces balanced hain kyunki dono players force laga rahe hain\",\n\"B. Forces balanced nahi hain\",\n\"C. Dono forces hamesha zero hain\",\n\"D. Sirf gravity act kar rahi hai\"\n],\ncorrect: 1,\nexplanation: \"Arms ka tilt hona batata hai ki forces balanced nahi hain; ek player ka force doosre se larger hai.\"\n},\n\n{\nquestion: \"10. Arm-wrestling mein agar R aur S ke arms front direction mein tilt ho rahe hain, to larger force kis player ne lagaya hoga?\",\noptions: &#91;\n\"A. Jo player opposite direction mein arm ko tilt kar raha hai\",\n\"B. Jo player arm ko front direction mein tilt karne mein cause kar raha hai\",\n\"C. Dono players ne exactly equal force lagaya\",\n\"D. Kisi player ne force nahi lagaya\"\n],\ncorrect: 1,\nexplanation: \"Unequal forces hone par arm &lt;b>larger force ki direction&lt;\/b> mein tilt hota hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n\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\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        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;p>&lt;strong>${userName}&lt;\/strong>, ${\n      percentage >= 80 ? \"Excellent work!\" :\n      percentage >= 50 ? \"Good effort! Keep practising.\" :\n      \"Keep learning and try again!\"\n    }&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/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\">ch6 part4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Frictional Force&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { 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; }\ninput&#91;type=\"text\"] {\n  padding: 10px;\n  width: 65%;\n  max-width: 300px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n@media(max-width:600px) {\n  body { padding: 10px; }\n  .quiz-container { width: 100%; padding: 15px; }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Frictional Force&lt;\/h2>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n{\n  question: \"1. Agar floor par rakhe box ko forward direction mein push kiya jaaye aur box initially move na kare, to iska main reason kya hai?\",\n  options: &#91;\n    \"A. Gravitational force\",\n    \"B. Normal force\",\n    \"C. Frictional force\",\n    \"D. Buoyant force\"\n  ],\n  correct: 2,\n  explanation: \"Friction applied force ke opposite direction mein act karta hai aur initially box ki motion ko oppose karta hai.\"\n},\n{\n  question: \"2. Box ko move karne ke liye applied force ko frictional force ke comparison mein kaisa hona chahiye?\",\n  options: &#91;\n    \"A. Friction se smaller\",\n    \"B. Friction ke equal hi hona chahiye\",\n    \"C. Friction se larger\",\n    \"D. Zero hona chahiye\"\n  ],\n  correct: 2,\n  explanation: \"Box tab move karega jab applied force ka magnitude maximum static friction se larger ho, jisse net force motion ki direction mein act kare.\"\n},\n{\n  question: \"3. Pushed box par frictional force kis direction mein act karta hai?\",\n  options: &#91;\n    \"A. Applied force ki same direction mein\",\n    \"B. Motion ya applied force ki opposite direction mein\",\n    \"C. Hamesha upward direction mein\",\n    \"D. Hamesha downward direction mein\"\n  ],\n  correct: 1,\n  explanation: \"Friction generally object ki relative motion ya motion ki tendency ko oppose karta hai.\"\n},\n{\n  question: \"4. Horizontal floor par rakhe box par gravitational force aur normal force kis direction mein act karte hain?\",\n  options: &#91;\n    \"A. Dono upward\",\n    \"B. Dono downward\",\n    \"C. Gravity downward aur normal force upward\",\n    \"D. Gravity upward aur normal force downward\"\n  ],\n  correct: 2,\n  explanation: \"Weight\/gravitational force downward act karta hai, jabki surface ka normal force surface ke perpendicular upward act karta hai.\"\n},\n{\n  question: \"5. Horizontal surface par resting box ke gravitational force aur normal force ke baare mein kaunsa statement correct hai?\",\n  options: &#91;\n    \"A. Dono unbalanced hote hain\",\n    \"B. Dono balanced hote hain\",\n    \"C. Sirf normal force act karta hai\",\n    \"D. Sirf gravitational force act karta hai\"\n  ],\n  correct: 1,\n  explanation: \"Resting box ke case mein downward weight aur upward normal force balance karte hain, isliye vertical direction mein net force zero hota hai.\"\n},\n{\n  question: \"6. Moving box par air bhi frictional force laga sakti hai. Lekin many cases mein ise neglect kyun kiya ja sakta hai?\",\n  options: &#91;\n    \"A. Air box par force nahi lagati\",\n    \"B. Air friction ka magnitude bahut small hota hai\",\n    \"C. Air friction hamesha zero hota hai\",\n    \"D. Air friction gravity ke equal hota hai\"\n  ],\n  correct: 1,\n  explanation: \"Moving box par air resistance act karta hai, lekin many situations mein iska magnitude itna small hota hai ki use neglect kiya ja sakta hai.\"\n},\n{\n  question: \"7. Agar moving box par applied force hata diya jaaye, to box kuch distance travel karne ke baad stop kyun hota hai?\",\n  options: &#91;\n    \"A. Normal force use stop karta hai\",\n    \"B. Gravitational force horizontal direction mein act karta hai\",\n    \"C. Friction motion ke opposite direction mein act karta hai\",\n    \"D. Air box ko hamesha accelerate karti hai\"\n  ],\n  correct: 2,\n  explanation: \"Applied force hatne ke baad friction box ki motion ko oppose karta hai, isliye box slow hokar rest mein aa jaata hai.\"\n},\n{\n  question: \"8. Bicycle ko pedal karna band karne ke baad bicycle kuch distance travel karke ruk jaati hai. Iska main reason kya hai?\",\n  options: &#91;\n    \"A. Frictional force\",\n    \"B. Buoyant force\",\n    \"C. Magnetic force\",\n    \"D. Normal force\"\n  ],\n  correct: 0,\n  explanation: \"Pedalling band hone par bicycle ko forward push nahi milta, jabki friction motion ko oppose karta rehta hai. Isliye bicycle eventually stop ho jaati hai.\"\n},\n{\n  question: \"9. Agar kisi moving object ko friction ke effect ke against continuously moving rakhna ho, to kya karna padega?\",\n  options: &#91;\n    \"A. Continuously appropriate force apply karna padega\",\n    \"B. Gravity ko remove karna padega\",\n    \"C. Normal force ko double karna padega\",\n    \"D. Object ka mass zero karna padega\"\n  ],\n  correct: 0,\n  explanation: \"Friction motion ke opposite act karta hai. Motion ko maintain karne ke liye applied force se friction ko counter karna padta hai.\"\n},\n{\n  question: \"10. Activity 6.1 mein friction ki dependence investigate karne ke liye coins ko kin surfaces par move\/test kiya ja sakta hai?\",\n  options: &#91;\n    \"A. Sirf water surface par\",\n    \"B. Wooden, cemented, laminated aur polished marble\/tiled surfaces par\",\n    \"C. Sirf glass surface par\",\n    \"D. Sirf soil par\"\n  ],\n  correct: 1,\n  explanation: \"Activity mein different horizontal surfaces use karke dekha jaata hai ki friction surfaces ki nature par depend karta hai.\"\n}\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">Q${currentQuestion + 1}. ${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  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${index + 1}. ${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(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\">ch6 part5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Friction | APICAL CLASSES&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 12px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n  line-height: 1.5;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 12px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 Science Quiz \u2013 Friction&lt;\/h2>\n&lt;p style=\"text-align:center;\">&lt;b>APICAL CLASSES&lt;\/b>&lt;\/p>\n\n&lt;div id=\"nameSection\">\n  &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n  &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n  &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n&lt;\/div>\n\n&lt;div id=\"quizSection\" style=\"display:none;\">\n  &lt;div id=\"questionContainer\">&lt;\/div>\n\n  &lt;div class=\"controls\">\n    &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n    &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n    &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n  &lt;div id=\"scoreboard\">\n    &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n    &lt;ol id=\"scoreList\">&lt;\/ol>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n{\n  question: \"1. Rubber band se release hone ke baad coins ka stack initially move kyun karta hai?\",\n  options: &#91;\n    \"A. Normal force ke kaaran\",\n    \"B. Rubber band ke forward force ke kaaran\",\n    \"C. Gravitational force ke kaaran\",\n    \"D. Air friction ke kaaran\"\n  ],\n  correct: 1,\n  explanation: \"Stretched rubber band stack ko forward direction mein force deta hai. Is force ke friction se larger hone par net force forward hota hai aur coins move karte hain.\"\n},\n{\n  question: \"2. Coins ka stack rubber band ke contact se bahar aane ke baad dheere-dheere slow kyun hota hai?\",\n  options: &#91;\n    \"A. Gravity motion ke opposite act karti hai\",\n    \"B. Normal force motion ko stop karta hai\",\n    \"C. Friction motion ke opposite direction mein act karta hai\",\n    \"D. Rubber band backward pull karta rehta hai\"\n  ],\n  correct: 2,\n  explanation: \"Rubber band se contact khatam hone ke baad rubber band ka force nahi lagta, lekin friction continue karta hai aur coins ki velocity gradually decrease karta hai.\"\n},\n{\n  question: \"3. Rubber band se release hone se just pehle coins ka stack stationary hai. Is situation mein forces kaise hain?\",\n  options: &#91;\n    \"A. Balanced\",\n    \"B. Unbalanced\",\n    \"C. Sirf friction acting hai\",\n    \"D. Sirf rubber band ka force acting hai\"\n  ],\n  correct: 0,\n  explanation: \"Release se pehle stack stationary hai, isliye us par acting forces balanced hain aur net force zero hai.\"\n},\n{\n  question: \"4. Rubber band release karne ke turant baad coins ki velocity zero se increase hoti hai. Iska kya matlab hai?\",\n  options: &#91;\n    \"A. Net force zero hai\",\n    \"B. Net force acceleration produce kar raha hai\",\n    \"C. Friction zero ho gaya hai\",\n    \"D. Normal force disappear ho gaya hai\"\n  ],\n  correct: 1,\n  explanation: \"Velocity zero se increase hone ka matlab hai ki coins accelerate kar rahe hain. Ye forward direction mein net force ke kaaran hota hai.\"\n},\n{\n  question: \"5. Agar same amount se stretched rubber band ko different surfaces par use kiya jaaye, to coins different distances travel karte hain. Isse kya conclusion milta hai?\",\n  options: &#91;\n    \"A. Rubber band ka force har surface par completely different hota hai\",\n    \"B. Frictional force surfaces ke according different hota hai\",\n    \"C. Coins ka mass change ho jaata hai\",\n    \"D. Gravity har surface par change hoti hai\"\n  ],\n  correct: 1,\n  explanation: \"Same rubber-band stretch ke baad distance different hona show karta hai ki different surfaces par frictional force different hota hai.\"\n},\n{\n  question: \"6. Wooden table ki comparison mein laminated surface par coins zyada distance travel karte hain. Iska likely reason kya hai?\",\n  options: &#91;\n    \"A. Laminated surface par friction smaller hai\",\n    \"B. Laminated surface par gravity smaller hai\",\n    \"C. Coins ka weight decrease ho gaya\",\n    \"D. Rubber band zyada stretch hua\"\n  ],\n  correct: 0,\n  explanation: \"Smaller friction velocity ko more slowly decrease karta hai, isliye coins larger distance travel karte hain.\"\n},\n{\n  question: \"7. Activity 6.1 ke according, polished marble ya tile floor par coins generally kya karenge?\",\n  options: &#91;\n    \"A. Sabse chhoti distance travel karenge\",\n    \"B. Sabse jaldi rest mein aayenge\",\n    \"C. Larger distance travel karenge aur velocity slowly decrease hogi\",\n    \"D. Motion start hi nahi karenge\"\n  ],\n  correct: 2,\n  explanation: \"Polished marble\/tile relatively smoother surface hai, isliye friction smaller ho sakta hai. Smaller friction ke kaaran coins zyada distance travel karte hain.\"\n},\n{\n  question: \"8. Activity 6.2 mein wooden block aur surface ke beech friction ko measure karne ke liye kaunsa instrument use kiya jaata hai?\",\n  options: &#91;\n    \"A. Thermometer\",\n    \"B. Measuring cylinder\",\n    \"C. Spring balance\",\n    \"D. Stopwatch\"\n  ],\n  correct: 2,\n  explanation: \"Spring balance se block ko gradually pull kiya jaata hai aur reading observe karke frictional force ka approximate measure milta hai.\"\n},\n{\n  question: \"9. Spring balance ki reading block ko just move karne ke time kya indicate karti hai?\",\n  options: &#91;\n    \"A. Block ka temperature\",\n    \"B. Frictional force ka approximate magnitude\",\n    \"C. Block ka volume\",\n    \"D. Gravitational acceleration\"\n  ],\n  correct: 1,\n  explanation: \"Spring balance ki reading frictional force ka approximate measure deti hai. &lt;b>Smaller reading = smaller friction&lt;\/b>, aur &lt;b>larger reading = larger friction&lt;\/b>.\"\n},\n{\n  question: \"10. Agar kisi surface par spring balance ki reading sabse chhoti hai, to us surface ke friction ke baare mein kya kaha ja sakta hai?\",\n  options: &#91;\n    \"A. Friction sabse bada hai\",\n    \"B. Friction comparatively chhota hai\",\n    \"C. Friction zero hona compulsory hai\",\n    \"D. Friction measure nahi kiya ja sakta\"\n  ],\n  correct: 1,\n  explanation: \"Activity 6.2 ke according, smaller spring-balance reading smaller friction ko indicate karti hai. Aise surface par coins ki velocity bhi more slowly decrease hoti hai aur woh larger distance travel karte hain.\"\n}\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p style=\"text-align:right;\">Question ${currentQuestion + 1} of ${questions.length}&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;b>Explanation:&lt;\/b> ${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;b>${userName}&lt;\/b>, ${\n      score >= 8 ? \"Excellent work!\" :\n      score >= 5 ? \"Good effort! Keep practising.\" :\n      \"Keep learning and try again!\"\n    }&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/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\">ch6 part6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES - Science Quiz: Newton's First Law&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  line-height: 1.5;\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#result { text-align: center; margin-top: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 APICAL CLASSES \u2013 Science Quiz&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">Newton's First Law of Motion and Inertia&lt;\/h3>\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\">&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. Galileo Galilei ke according, agar ek body horizontal plane par move kar rahi ho aur uski motion ke saare impediments remove kar diye jaayen, to body kya karegi?\",\n    options: &#91;\n      \"A. Turant rest mein aa jaayegi\",\n      \"B. Dheere-dheere ruk jaayegi\",\n      \"C. Indefinitely move karti rahegi\",\n      \"D. Circular motion karne lagegi\"\n    ],\n    correct: 2,\n    explanation: \"Galileo ne thought experiments ke through explain kiya ki agar friction jaise impediments remove ho jaayen, to moving body indefinitely move karti rahegi.\"\n  },\n  {\n    question: \"2. Isaac Newton ne objects ki rest ya uniform motion ki state mein change ko resist karne ki tendency ko kya naam diya?\",\n    options: &#91;\n      \"A. Momentum\",\n      \"B. Inertia\",\n      \"C. Acceleration\",\n      \"D. Friction\"\n    ],\n    correct: 1,\n    explanation: \"Newton ne object ki apni state of rest ya uniform motion mein change ko resist karne ki tendency ko inertia kaha.\"\n  },\n  {\n    question: \"3. Newton ne apne three laws of motion kis year mein present kiye the?\",\n    options: &#91;\n      \"A. 1587\",\n      \"B. 1687\",\n      \"C. 1787\",\n      \"D. 1887\"\n    ],\n    correct: 1,\n    explanation: \"Newton ne motion ke three laws 1687 mein present kiye, jo science ke history mein ek important development tha.\"\n  },\n  {\n    question: \"4. Force ki SI unit ka naam kis scientist ke naam par rakha gaya hai?\",\n    options: &#91;\n      \"A. Galileo\",\n      \"B. Albert Einstein\",\n      \"C. Isaac Newton\",\n      \"D. Archimedes\"\n    ],\n    correct: 2,\n    explanation: \"Force ki SI unit newton hai, jo scientist Isaac Newton ke naam par named hai. Iska symbol N hai.\"\n  },\n  {\n    question: \"5. Newton ke first law ke according, agar kisi object par net force zero ho, to object kya karega?\",\n    options: &#91;\n      \"A. Hamesha accelerate karega\",\n      \"B. Apni state of rest ya uniform motion maintain karega\",\n      \"C. Hamesha slow hoga\",\n      \"D. Direction automatically change karega\"\n    ],\n    correct: 1,\n    explanation: \"Zero net force ke case mein object rest mein hai to rest mein rahega, aur motion mein hai to constant velocity se move karta rahega.\"\n  },\n  {\n    question: \"6. Ek object rest mein hai aur uski velocity zero hai. Agar us par net force zero rahe, to kya hoga?\",\n    options: &#91;\n      \"A. Object move karna start karega\",\n      \"B. Object ki velocity increase hogi\",\n      \"C. Object rest mein hi rahega\",\n      \"D. Object ki direction change hogi\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s first law ke according, rest mein object tab tak rest mein rahega jab tak us par non-zero net force act nahi karta.\"\n  },\n  {\n    question: \"7. Constant velocity ka correct meaning kya hai?\",\n    options: &#91;\n      \"A. Sirf speed constant rahe\",\n      \"B. Sirf direction constant rahe\",\n      \"C. Velocity ka magnitude aur direction dono constant rahein\",\n      \"D. Object ki acceleration continuously increase ho\"\n    ],\n    correct: 2,\n    explanation: \"Constant velocity ka matlab hai velocity ke magnitude aur direction dono mein koi change na ho.\"\n  },\n  {\n    question: \"8. Agar koi object non-zero constant velocity se move kar raha hai aur net force zero hai, to uski motion kaisi hogi?\",\n    options: &#91;\n      \"A. Straight line mein same direction aur same speed se\",\n      \"B. Circular path mein\",\n      \"C. Zig-zag path mein\",\n      \"D. Increasing speed ke saath\"\n    ],\n    correct: 0,\n    explanation: \"Non-zero constant velocity mein magnitude aur direction dono constant hote hain, isliye object straight line mein same speed aur direction se move karta hai.\"\n  },\n  {\n    question: \"9. Agar friction zero ho aur ek object already constant velocity se move kar raha ho, to use moving rakhne ke liye continuously force apply karna padega?\",\n    options: &#91;\n      \"A. Haan, continuously force required hai\",\n      \"B. Nahi, further force required nahi hai\",\n      \"C. Sirf gravitational force required hai\",\n      \"D. Sirf normal force required hai\"\n    ],\n    correct: 1,\n    explanation: \"Friction zero hone par moving object ko constant velocity maintain karne ke liye additional force ki zarurat nahi hoti.\"\n  },\n  {\n    question: \"10. Ek moving object ki velocity ko change karna ya object ko stop karna ho, to kya required hoga?\",\n    options: &#91;\n      \"A. Net force\",\n      \"B. Zero force\",\n      \"C. Sirf normal force\",\n      \"D. Sirf gravitational force\"\n    ],\n    correct: 0,\n    explanation: \"Velocity ka magnitude ya direction change karne, ya moving object ko stop karne ke liye net force apply karna padta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p style=\"color:#555;\">Question ${currentQuestion + 1} of ${questions.length}&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(\n    answer => answer === null || answer === undefined\n  ).length;\n\n  if (unanswered > 0) {\n    if (!confirm(`You have ${unanswered} unanswered question(s). Do you want to submit anyway?`)) {\n      return;\n    }\n  }\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>&lt;strong>${escapeHTML(userName)}&lt;\/strong>&lt;\/p>\n    &lt;p>${score >= 8 ? \"Excellent Work! \ud83c\udf89\" : score >= 5 ? \"Good Attempt! Keep Practising.\" : \"Keep Learning and Try Again!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n  ).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\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\">ch6 part7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Newton's First Law of Motion&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    margin: 0;\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; line-height: 1.6; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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 Science Quiz \u2013 Newton's First Law of Motion&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. Ek moving box par person ka forward force friction ke backward force ke exactly equal hai. Box ki motion ka kya hoga?\",\n    options: &#91;\n      \"A. Box turant stop ho jaayega\",\n      \"B. Box accelerate karega\",\n      \"C. Box constant velocity se move karta rahega\",\n      \"D. Box ki direction automatically change hogi\"\n    ],\n    correct: 2,\n    explanation: \"Dono forces equal aur opposite hain, isliye net force zero hai. Newton\u2019s first law ke according box constant velocity se move karta rahega.\"\n  },\n  {\n    question: \"2. Example 6.2 mein box par applied force aur frictional force equal aur opposite hain. Net force kitna hoga?\",\n    options: &#91;\n      \"A. Applied force ke equal\",\n      \"B. Frictional force ke equal\",\n      \"C. Zero\",\n      \"D. Double force\"\n    ],\n    correct: 2,\n    explanation: \"Equal aur opposite forces ek-doosre ko balance karte hain, isliye net force zero hota hai.\"\n  },\n  {\n    question: \"3. Agar koi object constant velocity se move kar raha hai, to us par net force kya hoga?\",\n    options: &#91;\n      \"A. Zero\",\n      \"B. Maximum\",\n      \"C. Constant but non-zero\",\n      \"D. Continuously increasing\"\n    ],\n    correct: 0,\n    explanation: \"Constant velocity ka matlab acceleration zero hai. Newton\u2019s first law ke according acceleration zero hone par net force bhi zero hota hai.\"\n  },\n  {\n    question: \"4. No net force acting on an object ke case mein kaunsi situation possible hai?\",\n    options: &#91;\n      \"A. Object rest mein hai aur rest mein hi rahta hai\",\n      \"B. Object ki speed continuously increase hoti hai\",\n      \"C. Object constant acceleration se move karta hai\",\n      \"D. Object ki direction continuously change hoti hai\"\n    ],\n    correct: 0,\n    explanation: \"Net force zero hone par object agar initially rest mein hai, to woh rest mein hi rahega.\"\n  },\n  {\n    question: \"5. Agar koi object already move kar raha hai aur us par net force zero hai, to kya hoga?\",\n    options: &#91;\n      \"A. Woh immediately stop karega\",\n      \"B. Woh constant velocity se move karta rahega\",\n      \"C. Uski velocity continuously increase hogi\",\n      \"D. Uski direction automatically change hogi\"\n    ],\n    correct: 1,\n    explanation: \"Newton\u2019s first law ke according zero net force mein moving object same constant velocity maintain karta hai.\"\n  },\n  {\n    question: \"6. No net force acting object ke liye kaunsi situation possible nahi hai?\",\n    options: &#91;\n      \"A. Object rest mein rahe\",\n      \"B. Object constant velocity se move kare\",\n      \"C. Object constant acceleration se move kare\",\n      \"D. Object zero acceleration ke saath move kare\"\n    ],\n    correct: 2,\n    explanation: \"Constant non-zero acceleration ke liye net force required hota hai. Zero net force mein acceleration zero hota hai.\"\n  },\n  {\n    question: \"7. Agar object rest mein hai aur us par net force zero hai, to uska position-time graph kaisa hoga?\",\n    options: &#91;\n      \"A. Horizontal straight line\",\n      \"B. Sloping straight line\",\n      \"C. Curved line\",\n      \"D. Zig-zag line\"\n    ],\n    correct: 0,\n    explanation: \"Rest mein object ka position time ke saath change nahi hota, isliye position-time graph horizontal straight line hota hai.\"\n  },\n  {\n    question: \"8. Resting object ka velocity-time graph kaisa hoga?\",\n    options: &#91;\n      \"A. Upward sloping line\",\n      \"B. Downward sloping line\",\n      \"C. Time-axis par horizontal line\",\n      \"D. Curved line\"\n    ],\n    correct: 2,\n    explanation: \"Resting object ki velocity continuously zero hoti hai, isliye velocity-time graph time-axis par horizontal line hota hai.\"\n  },\n  {\n    question: \"9. Constant velocity se moving object ka velocity-time graph kaisa hoga?\",\n    options: &#91;\n      \"A. Time-axis ke parallel horizontal straight line\",\n      \"B. Upward sloping straight line\",\n      \"C. Downward sloping straight line\",\n      \"D. Parabolic curve\"\n    ],\n    correct: 0,\n    explanation: \"Constant velocity mein velocity change nahi hoti, isliye velocity-time graph horizontal straight line hota hai.\"\n  },\n  {\n    question: \"10. Constant velocity se moving object ka position-time graph kaisa hota hai?\",\n    options: &#91;\n      \"A. Horizontal line\",\n      \"B. Straight sloping line\",\n      \"C. Circular curve\",\n      \"D. Random curve\"\n    ],\n    correct: 1,\n    explanation: \"Constant velocity mein object equal time intervals mein equal displacement cover karta hai, isliye position-time graph straight sloping line hota hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;p>${score >= 8 ? \"Excellent Work! \ud83c\udf89\" : score >= 5 ? \"Good Effort! \ud83d\udc4d\" : \"Keep Practising! \ud83d\udcda\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = 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\">ch6 part8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Newton's Second Law of Motion&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 15px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\nhr {\n  border: 0;\n  border-top: 1px solid #ddd;\n  margin: 20px 0;\n}\n@media (max-width: 600px) {\n  body {\n    padding: 12px;\n  }\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Newton's Second Law of Motion&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. Newton\u2019s second law ke according, force kisi object ki motion mein kya produce karta hai?\",\n    options: &#91;\"A. Mass\", \"B. Acceleration\", \"C. Density\", \"D. Volume\"],\n    correct: 1,\n    explanation: \"Net force object ki velocity mein change produce karta hai, aur velocity ka change acceleration kehlata hai.\"\n  },\n  {\n    question: \"2. Ek ball ko gently push karne par woh slowly move karna start karti hai. Iska matlab applied force se acceleration kaisa hoga?\",\n    options: &#91;\"A. Bahut large\", \"B. Zero\", \"C. Small\", \"D. Infinite\"],\n    correct: 2,\n    explanation: \"Gentle push mein force ka magnitude small hota hai, isliye same object ke liye acceleration bhi comparatively small hota hai.\"\n  },\n  {\n    question: \"3. Agar same ball ko stronger force se push kiya jaaye, to uski acceleration par kya effect hoga?\",\n    options: &#91;\"A. Acceleration larger hogi\", \"B. Acceleration zero ho jaayegi\", \"C. Acceleration same rahegi\", \"D. Acceleration hamesha negative hogi\"],\n    correct: 0,\n    explanation: \"Same object ke liye force ka magnitude badhne par acceleration bhi increase hoti hai.\"\n  },\n  {\n    question: \"4. Same object aur same surface ke liye force aur acceleration ke beech kya relationship investigate kiya ja raha hai?\",\n    options: &#91;\"A. Larger force \u2192 larger acceleration\", \"B. Larger force \u2192 smaller acceleration\", \"C. Force badhne par acceleration zero\", \"D. Force aur acceleration ka koi relation nahi\"],\n    correct: 0,\n    explanation: \"Activity ka hypothesis hai ki same object par larger force apply karne se larger acceleration produce hoti hai.\"\n  },\n  {\n    question: \"5. Different magnitudes ki force apply karne ke liye Activity 6.3 mein kis cheez ka use kiya ja sakta hai?\",\n    options: &#91;\"A. Different coloured pencils\", \"B. Different weights\/coins\", \"C. Different size tables\", \"D. Different temperatures\"],\n    correct: 1,\n    explanation: \"Different weights different gravitational forces provide karte hain. Activity mein cup mein coins ya other objects rakhkar applied force change ki ja sakti hai.\"\n  },\n  {\n    question: \"6. Activity 6.3 mein cup neeche ki taraf kyun move karta hai?\",\n    options: &#91;\"A. Magnetic force ke kaaran\", \"B. Friction ke kaaran\", \"C. Earth ke gravitational force ke kaaran\", \"D. Normal force ke kaaran\"],\n    correct: 2,\n    explanation: \"Earth cup ko downward gravitational force se pull karti hai, jisse cup neeche move karta hai.\"\n  },\n  {\n    question: \"7. Activity 6.3 mein cup ki downward motion cart ko kaise pull karti hai?\",\n    options: &#91;\"A. Thread ke through\", \"B. Pencil ke through\", \"C. Wheels ke through\", \"D. Table ke through\"],\n    correct: 0,\n    explanation: \"Cup se attached thread pipe ke over se pass hota hai. Cup downward move karta hai aur thread ke through cart ko pull karta hai.\"\n  },\n  {\n    question: \"8. Activity 6.3 mein cardboard box mein pencils ka main purpose kya hai?\",\n    options: &#91;\"A. Cart ka mass measure karna\", \"B. Axles ki tarah kaam karna\", \"C. Force produce karna\", \"D. Thread ko cut karna\"],\n    correct: 1,\n    explanation: \"Do pencils box ke sides ke through insert ki jaati hain aur axles ki tarah kaam karti hain, jin par wheels attached hote hain.\"\n  },\n  {\n    question: \"9. Activity 6.3 mein cart ki motion ko record karne ke liye kya use kiya jaata hai?\",\n    options: &#91;\"A. Stopwatch only\", \"B. Slow-motion video recording\", \"C. Thermometer\", \"D. Spring balance\"],\n    correct: 1,\n    explanation: \"Cart ko start line se release karke doosre end tak uski motion ko slow-motion video mein record kiya jaata hai, taaki motion ka analysis kiya ja sake.\"\n  },\n  {\n    question: \"10. Activity 6.3 mein cup ke saath objects\/coins ki quantity badhakar kya investigate kiya ja sakta hai?\",\n    options: &#91;\"A. Different forces ke effect on cart acceleration\", \"B. Cart ka colour change\", \"C. Table ka temperature\", \"D. Wheel ka shape change\"],\n    correct: 0,\n    explanation: \"Cup mein different weights rakhne se gravitational force aur cart par pulling force ka magnitude change hota hai. Isse force aur acceleration ke relationship ko investigate kiya jaata hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value, 10) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n\n    const optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== q.correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#039;\"\n  })&#91;char]);\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\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 = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(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\">ch6 part9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Newton's Second Law of Motion Quiz | APICAL CLASSES&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  .brand {\n    text-align: center;\n    color: #555;\n    font-weight: bold;\n    letter-spacing: 1px;\n  }\n  .question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .options input { margin-right: 8px; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  input&#91;type=\"text\"] {\n    padding: 10px;\n    width: 65%;\n    max-width: 300px;\n    border: 1px solid #aaa;\n    border-radius: 6px;\n  }\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  .result-summary {\n    text-align: center;\n    margin: 20px 0;\n    padding: 15px;\n    background: #eef3f7;\n    border-radius: 8px;\n  }\n  @media(max-width:600px) {\n    body { padding: 10px; }\n    .quiz-container { width: 100%; padding: 15px; }\n  }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;div class=\"brand\">APICAL CLASSES&lt;\/div>\n  &lt;h2>\ud83e\udde0 Newton's Second Law of Motion Quiz&lt;\/h2>\n  &lt;p style=\"text-align:center;\">Activities 6.3 &amp; 6.4 | 10 MCQs&lt;\/p>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Activity 6.3 mein cart dono cases mein zero velocity se start karta hai aur same distance travel karta hai. Agar applied force increase ki jaaye, to cart ki acceleration par kya effect hoga?\",\n    options: &#91;\n      \"A. Acceleration decrease hogi\",\n      \"B. Acceleration increase hogi\",\n      \"C. Acceleration zero ho jaayegi\",\n      \"D. Acceleration same rahegi\"\n    ],\n    correct: 1,\n    explanation: \"Same mass ke liye net force badhne par acceleration bhi badhti hai. Isliye larger force \u2192 larger acceleration.\"\n  },\n  {\n    question: \"2. Activity 6.3 mein cup ka mass double karne se cart par applied force ka kya effect hota hai?\",\n    options: &#91;\n      \"A. Applied force increase hoti hai\",\n      \"B. Applied force decrease hoti hai\",\n      \"C. Applied force zero ho jaati hai\",\n      \"D. Applied force direction change karti hai\"\n    ],\n    correct: 0,\n    explanation: \"Cup ka mass double karne par us par gravitational force increase hoti hai, jisse cart ko pull karne wali force bhi increase hoti hai.\"\n  },\n  {\n    question: \"3. Same force ko lighter aur heavier objects par apply kiya jaaye, to kis object ki acceleration larger hogi?\",\n    options: &#91;\n      \"A. Heavier object ki\",\n      \"B. Lighter object ki\",\n      \"C. Dono ki equal\",\n      \"D. Dono ki zero\"\n    ],\n    correct: 1,\n    explanation: \"Same force ke liye acceleration mass ke inversely related hoti hai. Smaller mass \u2192 larger acceleration.\"\n  },\n  {\n    question: \"4. Activity 6.4 mein force ko constant rakhkar cart ka mass double kiya jaata hai. Acceleration par kya effect hoga?\",\n    options: &#91;\n      \"A. Acceleration double hogi\",\n      \"B. Acceleration zero hogi\",\n      \"C. Acceleration decrease hogi\",\n      \"D. Acceleration same rahegi\"\n    ],\n    correct: 2,\n    explanation: \"Given force ke liye acceleration mass ke inversely proportional hoti hai. Mass increase karne par acceleration decrease hoti hai.\"\n  },\n  {\n    question: \"5. Newton\u2019s second law ke according acceleration aur net force ke beech kya relationship hai, jab mass fixed ho?\",\n    options: &#91;\n      \"A. a \u221d F\",\n      \"B. a \u221d 1\/F\",\n      \"C. a \u221d m\",\n      \"D. a \u221d 1\/m\"\n    ],\n    correct: 0,\n    explanation: \"Fixed mass ke liye acceleration net force ke directly proportional hoti hai. Force badhega to acceleration bhi badhegi.\"\n  },\n  {\n    question: \"6. Newton\u2019s second law ke according acceleration aur mass ke beech kya relationship hai, jab force fixed ho?\",\n    options: &#91;\n      \"A. a \u221d m\",\n      \"B. a \u221d 1\/m\",\n      \"C. a \u221d F\",\n      \"D. a \u221d F\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"Given force ke liye acceleration mass ke inversely proportional hoti hai. Mass badhne par acceleration decrease hoti hai.\"\n  },\n  {\n    question: \"7. Newton\u2019s second law ka correct mathematical equation kaunsa hai?\",\n    options: &#91;\n      \"A. F = m\/a\",\n      \"B. F = a\/m\",\n      \"C. F = ma\",\n      \"D. F = m + a\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s second law ke according Force = mass \u00d7 acceleration, yani F = ma.\"\n  },\n  {\n    question: \"8. 1 kg mass ke object ko 1 m\/s\u00b2 acceleration produce karne ke liye kitni force required hai?\",\n    options: &#91;\n      \"A. 0.1 N\",\n      \"B. 1 N\",\n      \"C. 9.8 N\",\n      \"D. 10 N\"\n    ],\n    correct: 1,\n    explanation: \"F = ma = 1 kg \u00d7 1 m\/s\u00b2 = 1 kg m\/s\u00b2 = 1 N. Isliye 1 N woh force hai jo 1 kg mass ko 1 m\/s\u00b2 acceleration deti hai.\"\n  },\n  {\n    question: \"9. 2 kg mass ke object par 10 N net force act kar raha hai. Object ki acceleration kitni hogi?\",\n    options: &#91;\n      \"A. 2 m\/s\u00b2\",\n      \"B. 5 m\/s\u00b2\",\n      \"C. 10 m\/s\u00b2\",\n      \"D. 20 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"F = ma, so a = F\/m = 10\/2 = 5 m\/s\u00b2.\"\n  },\n  {\n    question: \"10. Earth ke surface ke near acceleration due to gravitational force ka standard value kya maana jaata hai?\",\n    options: &#91;\n      \"A. 9.8 m\/s\u00b2\",\n      \"B. 8.9 m\/s\u00b2\",\n      \"C. 98 m\/s\u00b2\",\n      \"D. 10.8 m\/s\u00b2\"\n    ],\n    correct: 0,\n    explanation: \"Earth ke near gravitational acceleration g = 9.8 m\/s\u00b2 hota hai. Quick calculations ke liye ise approximately 10 m\/s\u00b2 bhi liya ja sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  score = 0;\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;div class=\"result-summary\">\n      &lt;h3>\ud83c\udfaf ${userName}, Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n      &lt;p>Correct Answers: ${score}&lt;\/p>\n      &lt;p>Incorrect or Unattempted: ${questions.length - score}&lt;\/p>\n      &lt;h3>${score >= 8 ? \"Excellent Work! \ud83c\udfc6\" :\n            score >= 5 ? \"Good Effort! \ud83d\udc4d\" :\n            \"Keep Practising! \ud83d\udcda\"}&lt;\/h3>\n    &lt;\/div>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n    ).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\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\">ch6 part10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES - Newton's Second Law and Momentum Quiz&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n  line-height: 1.5;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\n#result {\n  color: #1e3c72;\n}\n@media (max-width: 600px) {\n  body {\n    padding: 10px;\n  }\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n&lt;h2>\ud83e\udde0 APICAL CLASSES&lt;br>Newton's Second Law of Motion and Momentum 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\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n\n{\n  question: \"1. Activity 6.3 mein force ko theoretically double karne par acceleration ideally kya honi chahiye?\",\n  options: &#91;\"A. Half\", \"B. Same\", \"C. Double\", \"D. Zero\"],\n  correct: 2,\n  explanation: \"Same mass ke liye Newton\u2019s second law ke according acceleration force ke directly proportional hoti hai. Isliye force double hone par acceleration ideally double honi chahiye.\"\n},\n\n{\n  question: \"2. Activity 6.4 mein cart ka mass double karne par, same force ke liye theoretical acceleration kya hogi?\",\n  options: &#91;\"A. Double\", \"B. Half\", \"C. Four times\", \"D. Same\"],\n  correct: 1,\n  explanation: \"Same force ke liye acceleration mass ke inversely proportional hoti hai. Isliye mass double hone par acceleration theoretically half ho jaati hai.\"\n},\n\n{\n  question: \"3. Activities mein theoretical value se acceleration thodi different kyun mil sakti hai?\",\n  options: &#91;\n    \"A. Gravity completely disappear ho jaati hai\",\n    \"B. Measurement errors aur friction ke kaaran\",\n    \"C. Mass suddenly zero ho jaata hai\",\n    \"D. Velocity hamesha constant hoti hai\"\n  ],\n  correct: 1,\n  explanation: \"Practical experiment mein measurement errors aur cart ke wheels aur surface ke beech friction ideal result se difference create kar sakte hain.\"\n},\n\n{\n  question: \"4. Momentum ko kaise define kiya jaata hai?\",\n  options: &#91;\n    \"A. Mass \u00f7 velocity\",\n    \"B. Mass + velocity\",\n    \"C. Mass \u00d7 velocity\",\n    \"D. Velocity \u00f7 mass\"\n  ],\n  correct: 2,\n  explanation: \"Momentum object ke mass aur velocity ka product hota hai. Isliye p = mv.\"\n},\n\n{\n  question: \"5. Kisi object ke momentum ki direction kis direction mein hoti hai?\",\n  options: &#91;\n    \"A. Mass ki direction mein\",\n    \"B. Velocity ki direction mein\",\n    \"C. Acceleration ke opposite\",\n    \"D. Hamesha downward\"\n  ],\n  correct: 1,\n  explanation: \"Momentum ek vector quantity hai aur uski direction velocity ki direction same hoti hai.\"\n},\n\n{\n  question: \"6. Newton\u2019s second law ke complete form ke according, rate of change of momentum kis ke proportional hota hai?\",\n  options: &#91;\n    \"A. Object ke mass ke\",\n    \"B. Object ki speed ke\",\n    \"C. Net force ke\",\n    \"D. Object ke volume ke\"\n  ],\n  correct: 2,\n  explanation: \"Newton\u2019s second law ke according momentum ke change ki rate net force ke proportional hoti hai aur change net force ki direction mein hota hai.\"\n},\n\n{\n  question: \"7. Cricket fielder fast-moving ball catch karte waqt apne hands ko ball ke saath gradually backward kyun le jaata hai?\",\n  options: &#91;\n    \"A. Ball ki speed increase karne ke liye\",\n    \"B. Ball ko zyada distance tak le jaane ke liye\",\n    \"C. Ball ko stop karne ka time increase karne ke liye\",\n    \"D. Ball ka mass decrease karne ke liye\"\n  ],\n  correct: 2,\n  explanation: \"Hands ko backward move karne se ball ko stop hone mein zyada time milta hai. Isse acceleration ka magnitude aur required force dono kam hote hain.\"\n},\n\n{\n  question: \"8. Fielder ke hands ko backward move karne se ball par required force kyun kam hota hai?\",\n  options: &#91;\n    \"A. Stopping time increase hone se acceleration kam hoti hai\",\n    \"B. Ball ka mass kam ho jaata hai\",\n    \"C. Gravity zero ho jaati hai\",\n    \"D. Momentum instantly zero ho jaata hai\"\n  ],\n  correct: 0,\n  explanation: \"Same change in velocity ko longer time mein karne par acceleration smaller hoti hai. Newton\u2019s second law ke according smaller acceleration ka matlab smaller force hai.\"\n},\n\n{\n  question: \"9. Vehicles mein airbags passenger ko serious injury se bachane mein kaise help karte hain?\",\n  options: &#91;\n    \"A. Collision ke time passenger ka mass kam kar dete hain\",\n    \"B. Impact ka time increase karke acceleration aur force reduce karte hain\",\n    \"C. Vehicle ki speed automatically increase kar dete hain\",\n    \"D. Passenger ko vehicle se bahar push kar dete hain\"\n  ],\n  correct: 1,\n  explanation: \"Airbag soft cushion provide karta hai aur hitting ka time increase karta hai. Isse acceleration aur person par exerted force reduce hota hai, injury ka risk kam hota hai.\"\n},\n\n{\n  question: \"10. Fresh coconut ko hard surface par high velocity se hit karne par shell crack kyun ho sakta hai?\",\n  options: &#91;\n    \"A. Coconut ki velocity bahut slowly change hoti hai\",\n    \"B. Coconut ko stop hone mein bahut long time lagta hai\",\n    \"C. Coconut ki velocity very short time mein zero hoti hai, jisse large force act karta hai\",\n    \"D. Coconut ka mass impact ke time zero ho jaata hai\"\n  ],\n  correct: 2,\n  explanation: \"Coconut high velocity se aakar very short time mein stop hota hai. Velocity ka rapid change large acceleration\/deceleration produce karta hai, isliye ground coconut par large force lagata hai aur shell crack ho sakta hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p>&lt;strong>Question ${currentQuestion + 1} of ${questions.length}&lt;\/strong>&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(answer => answer === null || answer === undefined).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      `You have ${unanswered} unanswered question(s). Do you still want to submit?`\n    );\n\n    if (!confirmSubmit) return;\n  }\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;correct]}&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>&lt;strong>Student:&lt;\/strong> ${escapeHTML(userName)}&lt;\/p>\n    &lt;p>${score === questions.length ? \"Excellent! Perfect Score! \ud83c\udf89\" :\n       score >= 7 ? \"Very Good! Keep Practicing! \ud83d\udc4f\" :\n       score >= 5 ? \"Good Effort! Revise and Try Again! \ud83d\udc4d\" :\n       \"Keep Practicing! You Can Improve! \ud83d\udcaa\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `\n    &lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>\n  `).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#039;\"\n  })&#91;char]);\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\">ch6 part11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Newton's Second Law of Motion&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    margin: 0;\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; line-height: 1.6; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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 Science Quiz \u2013 Newton's Second Law of Motion&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. Ek weightlifter 10 kg mass ka barbell har side par hold kar rahi hai aur bar ka mass bhi 10 kg hai. Barbell ka total mass kitna hoga?\",\n    options: &#91;\n      \"A. 20 kg\",\n      \"B. 25 kg\",\n      \"C. 30 kg\",\n      \"D. 40 kg\"\n    ],\n    correct: 2,\n    explanation: \"Dono sides ka mass = 10 + 10 = 20 kg. Bar ka mass 10 kg hai. Total mass = 20 + 10 = 30 kg.\"\n  },\n  {\n    question: \"2. 30 kg ke barbell par Earth ki gravitational force kitni hogi? Take g = 9.8 m\/s\u00b2.\",\n    options: &#91;\n      \"A. 196 N\",\n      \"B. 294 N\",\n      \"C. 300 N\",\n      \"D. 392 N\"\n    ],\n    correct: 1,\n    explanation: \"Gravitational force F = mg = 30 \u00d7 9.8 = 294 N.\"\n  },\n  {\n    question: \"3. Weightlifter 30 kg barbell ko steady hold kar rahi hai. Barbell ko steady rakhne ke liye weightlifter ko kitna upward force lagana hoga?\",\n    options: &#91;\n      \"A. 30 N\",\n      \"B. 150 N\",\n      \"C. 294 N\",\n      \"D. 588 N\"\n    ],\n    correct: 2,\n    explanation: \"Barbell steady hai, isliye net force zero hona chahiye. Downward gravitational force 294 N ko balance karne ke liye 294 N upward force required hai.\"\n  },\n  {\n    question: \"4. Rahul 25 kg ke stationary block ko 50 N force se push karta hai. Friction bhi maximum 50 N hai. 2 seconds mein block kitna displacement karega?\",\n    options: &#91;\n      \"A. 0 m\",\n      \"B. 0.2 m\",\n      \"C. 0.4 m\",\n      \"D. 1 m\"\n    ],\n    correct: 0,\n    explanation: \"Applied force = friction = 50 N. Net force = 0, isliye acceleration zero hai aur stationary block move nahi karega. Displacement 0 m hoga.\"\n  },\n  {\n    question: \"5. 25 kg block par 55 N forward force aur 50 N friction opposite direction mein act kar rahe hain. Block par net force kitna hoga?\",\n    options: &#91;\n      \"A. 105 N\",\n      \"B. 55 N\",\n      \"C. 50 N\",\n      \"D. 5 N\"\n    ],\n    correct: 3,\n    explanation: \"Opposite forces ko subtract karte hain: 55 N \u2212 50 N = 5 N forward.\"\n  },\n  {\n    question: \"6. 25 kg block par net force 5 N hai. Block ki acceleration kitni hogi?\",\n    options: &#91;\n      \"A. 0.1 m\/s\u00b2\",\n      \"B. 0.2 m\/s\u00b2\",\n      \"C. 2 m\/s\u00b2\",\n      \"D. 5 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"Newton\u2019s second law: a = F\/m = 5\/25 = 0.2 m\/s\u00b2.\"\n  },\n  {\n    question: \"7. Q6 wale block ki initial velocity 0 m\/s hai aur acceleration 0.2 m\/s\u00b2 hai. 2 seconds mein displacement kitna hoga?\",\n    options: &#91;\n      \"A. 0.2 m\",\n      \"B. 0.4 m\",\n      \"C. 0.8 m\",\n      \"D. 1.0 m\"\n    ],\n    correct: 1,\n    explanation: \"s = ut + \u00bdat\u00b2. Yahan u = 0, a = 0.2 aur t = 2 s. Isliye s = \u00bd \u00d7 0.2 \u00d7 4 = 0.4 m.\"\n  },\n  {\n    question: \"8. 1500 kg sports car 0 se 10 m\/s velocity 5 seconds mein reach karti hai. Car par force kitna hoga?\",\n    options: &#91;\n      \"A. 1500 N\",\n      \"B. 2000 N\",\n      \"C. 3000 N\",\n      \"D. 5000 N\"\n    ],\n    correct: 2,\n    explanation: \"Acceleration = (10 \u2212 0)\/5 = 2 m\/s\u00b2. Force = ma = 1500 \u00d7 2 = 3000 N east.\"\n  },\n  {\n    question: \"9. Sports car 5 s se 10 s tak constant velocity se move karti hai. Is interval mein net force kitna hoga?\",\n    options: &#91;\n      \"A. 3000 N\",\n      \"B. 1500 N\",\n      \"C. 500 N\",\n      \"D. 0 N\"\n    ],\n    correct: 3,\n    explanation: \"Constant velocity ka matlab acceleration zero hai. F = ma, isliye net force = 1500 \u00d7 0 = 0 N.\"\n  },\n  {\n    question: \"10. Sports car 10 s se 15 s mein 10 m\/s se 0 m\/s par slow hoti hai. Car ka mass 1500 kg hai. Force ki magnitude aur direction kya hogi?\",\n    options: &#91;\n      \"A. 3000 N east\",\n      \"B. 3000 N west\",\n      \"C. 1500 N west\",\n      \"D. 1500 N east\"\n    ],\n    correct: 1,\n    explanation: \"Acceleration = (0 \u2212 10)\/5 = \u22122 m\/s\u00b2. Force = 1500 \u00d7 (\u22122) = \u22123000 N. Negative sign batata hai ki force motion ke opposite, yani west direction mein hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &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 saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;p>${score >= 8 ? \"Excellent Work! \ud83c\udf89\" : score >= 5 ? \"Good Effort! \ud83d\udc4d\" : \"Keep Practising! \ud83d\udcda\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = 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\">ch6 part12<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Newton's Third Law of Motion&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.question {\n  font-weight: bold;\n  margin: 15px 0;\n  line-height: 1.6;\n}\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover {\n  background: #f0f0f0;\n}\n.options input {\n  margin-right: 8px;\n}\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover {\n  background-color: #1e3c72;\n}\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 {\n  text-align: center;\n}\nol {\n  padding-left: 20px;\n}\nhr {\n  border: 0;\n  border-top: 1px solid #ddd;\n  margin: 20px 0;\n}\n@media (max-width: 600px) {\n  body {\n    padding: 12px;\n  }\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n  }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Newton's Third Law of Motion&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. Newton\u2019s Third Law mainly kis situation ko explain karta hai?\",\n    options: &#91;\n      \"A. Sirf ek object par lagne wali force\",\n      \"B. Do interacting objects ke force interaction ko\",\n      \"C. Sirf gravitational force ko\",\n      \"D. Sirf friction ko\"\n    ],\n    correct: 1,\n    explanation: \"Force tab arise hota hai jab at least two objects interact karte hain. Newton\u2019s Third Law in dono objects ke mutual forces ko explain karta hai.\"\n  },\n  {\n    question: \"2. Jab koi person apne foot se ball ko push karta hai, to person ko ball ki taraf se kya experience hota hai?\",\n    options: &#91;\n      \"A. Koi force nahi\",\n      \"B. Ball ki taraf se opposite force\",\n      \"C. Sirf gravitational force\",\n      \"D. Sirf upward force\"\n    ],\n    correct: 1,\n    explanation: \"Person ball par force lagata hai, aur ball bhi person ke foot par opposite direction mein force lagati hai. Ye Newton\u2019s Third Law ka example hai.\"\n  },\n  {\n    question: \"3. Activity 6.5 mein wheeled chair par baitha person table ko forward push karta hai. Chair kis direction mein move karegi?\",\n    options: &#91;\n      \"A. Forward\",\n      \"B. Opposite direction, yani backward\",\n      \"C. Upward\",\n      \"D. Chair move nahi karegi\"\n    ],\n    correct: 1,\n    explanation: \"Person table ko forward force deta hai. Table person par opposite direction mein force lagata hai, isliye wheeled chair backward move karti hai.\"\n  },\n  {\n    question: \"4. Activity 6.5 mein person table ko apni taraf pull karta hai. Is situation mein chair kis direction mein move karegi?\",\n    options: &#91;\n      \"A. Table se opposite direction\",\n      \"B. Table ki taraf\",\n      \"C. Upward\",\n      \"D. Random direction\"\n    ],\n    correct: 1,\n    explanation: \"Jab person table ko apni taraf pull karta hai, table person par opposite direction mein force lagata hai. Isliye chair table ki taraf move karti hai.\"\n  },\n  {\n    question: \"5. Bicycle par bina pedalling ke forward move karne ke liye person ground ko kis direction mein push karta hai?\",\n    options: &#91;\n      \"A. Forward\",\n      \"B. Backward\",\n      \"C. Upward\",\n      \"D. Sideways\"\n    ],\n    correct: 1,\n    explanation: \"Feet se ground ko backward push karne par ground feet par opposite, yani forward frictional force lagata hai. Isse person aur bicycle forward move karte hain.\"\n  },\n  {\n    question: \"6. Walking ya running ke time ground person ko forward kaise move karta hai?\",\n    options: &#91;\n      \"A. Ground person ko gravitational force deta hai\",\n      \"B. Ground person ke feet par forward frictional force lagata hai\",\n      \"C. Ground person ko upward magnetic force deta hai\",\n      \"D. Ground ki force zero hoti hai\"\n    ],\n    correct: 1,\n    explanation: \"Hum feet se ground ko backward push karte hain. Ground friction ke through forward force feet par lagata hai, jisse hum forward move karte hain.\"\n  },\n  {\n    question: \"7. Walking ke time friction normally motion ko oppose karne ke bajay forward movement mein help kyun karta hai?\",\n    options: &#91;\n      \"A. Foot ground ko backward push karta hai aur friction forward act karta hai\",\n      \"B. Friction hamesha motion ki direction mein hota hai\",\n      \"C. Gravity friction ko cancel kar deti hai\",\n      \"D. Foot ground ko forward push karta hai\"\n    ],\n    correct: 0,\n    explanation: \"Walking mein foot ground ko backward push karne ki tendency rakhta hai. Ground ka friction forward direction mein act karta hai aur walking mein help karta hai.\"\n  },\n  {\n    question: \"8. Agar ground aur feet ke beech friction bilkul na ho, to walking ke time kya ho sakta hai?\",\n    options: &#91;\n      \"A. Person bahut fast chalega\",\n      \"B. Foot backward slip karega aur person gir sakta hai\",\n      \"C. Person automatically jump karega\",\n      \"D. Walking aur easy ho jayegi\"\n    ],\n    correct: 1,\n    explanation: \"Friction na hone par foot ground ko effectively push nahi kar paayega aur backward slip kar sakta hai. Isse person gir sakta hai.\"\n  },\n  {\n    question: \"9. Footwear ke soles par grooves kyun banaye jaate hain?\",\n    options: &#91;\n      \"A. Weight reduce karne ke liye\",\n      \"B. Friction increase karne ke liye\",\n      \"C. Speed increase karne ke liye\",\n      \"D. Shoes ko waterproof banane ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Grooves floor aur sole ke beech friction increase karte hain, jisse walking ke time slipping ka risk kam hota hai.\"\n  },\n  {\n    question: \"10. Wet polished floor, ice, ya water\/snow-covered road par walking ya driving risky kyun hoti hai?\",\n    options: &#91;\n      \"A. Friction bahut increase ho jaata hai\",\n      \"B. Friction decrease ho jaata hai\",\n      \"C. Gravitational force zero ho jaata hai\",\n      \"D. Objects ka mass increase ho jaata hai\"\n    ],\n    correct: 1,\n    explanation: \"Wet floor, ice aur water\/snow surfaces par friction kam ho jaata hai. Isliye feet ya tyres easily slip kar sakte hain, making walking and driving risky.\"\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    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value, 10)\n    : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n\n    const optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== q.correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#039;\"\n  })&#91;char]);\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\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 = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(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\">ch6 part13<\/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>Newton's Third Law Quiz | APICAL CLASSES&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  .brand {\n    text-align: center;\n    color: #555;\n    font-weight: bold;\n    letter-spacing: 1px;\n  }\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n    line-height: 1.6;\n  }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .options input { margin-right: 8px; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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  input&#91;type=\"text\"] {\n    padding: 10px;\n    width: 65%;\n    max-width: 300px;\n    border: 1px solid #aaa;\n    border-radius: 6px;\n  }\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  .result-summary {\n    text-align: center;\n    margin: 20px 0;\n    padding: 15px;\n    background: #eef3f7;\n    border-radius: 8px;\n  }\n  @media(max-width:600px) {\n    body { padding: 10px; }\n    .quiz-container { width: 100%; padding: 15px; }\n  }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;div class=\"brand\">APICAL CLASSES&lt;\/div>\n  &lt;h2>\ud83e\udde0 Newton's Third Law of Motion Quiz&lt;\/h2>\n  &lt;p style=\"text-align:center;\">Action and Reaction, Walking and Friction | 10 MCQs&lt;\/p>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Jab ek girl table ko forward direction mein push karti hai, table girl par force kis direction mein lagata hai?\",\n    options: &#91;\n      \"A. Forward\",\n      \"B. Backward\",\n      \"C. Upward\",\n      \"D. Downward\"\n    ],\n    correct: 1,\n    explanation: \"Girl table par forward force lagati hai. Newton\u2019s Third Law ke according table girl par opposite direction, yani backward force lagata hai.\"\n  },\n  {\n    question: \"2. Jab girl table ko reverse direction mein pull karti hai, table girl par force kis direction mein lagata hai?\",\n    options: &#91;\n      \"A. Girl ke pull ke opposite direction mein\",\n      \"B. Girl ke pull ki same direction mein\",\n      \"C. Sirf downward\",\n      \"D. Sirf upward\"\n    ],\n    correct: 0,\n    explanation: \"Action aur reaction forces opposite directions mein act karte hain. Isliye table girl par opposite direction mein force lagata hai.\"\n  },\n  {\n    question: \"3. Bicycle par rider ground ko backward push karta hai. Ground rider aur bicycle ko kis direction mein push karta hai?\",\n    options: &#91;\n      \"A. Backward\",\n      \"B. Forward\",\n      \"C. Downward\",\n      \"D. Sideways\"\n    ],\n    correct: 1,\n    explanation: \"Rider ground ko backward push karta hai. Ground reaction force ke roop mein rider ke feet par forward force lagata hai, jisse bicycle forward move karti hai.\"\n  },\n  {\n    question: \"4. Walking ke time foot ground ko kis direction mein push karta hai?\",\n    options: &#91;\n      \"A. Forward\",\n      \"B. Backward\",\n      \"C. Upward\",\n      \"D. Left side\"\n    ],\n    correct: 1,\n    explanation: \"Walking mein foot ground ko backward push karta hai. Iske response mein ground foot par forward frictional force lagata hai.\"\n  },\n  {\n    question: \"5. Walking ke time ground ka frictional force person ke foot par kis direction mein act karta hai?\",\n    options: &#91;\n      \"A. Backward\",\n      \"B. Forward\",\n      \"C. Downward\",\n      \"D. Upward\"\n    ],\n    correct: 1,\n    explanation: \"Foot ground ko backward push karta hai aur foot ke backward slip karne ki tendency hoti hai. Isliye friction forward direction mein act karta hai.\"\n  },\n  {\n    question: \"6. Agar walking ke time friction bilkul na ho, to kya hoga?\",\n    options: &#91;\n      \"A. Person easily run karega\",\n      \"B. Foot backward slip kar sakta hai aur person gir sakta hai\",\n      \"C. Person ki speed automatically increase hogi\",\n      \"D. Person hawa mein float karega\"\n    ],\n    correct: 1,\n    explanation: \"Friction ke bina foot aur ground ke beech proper grip nahi hogi. Foot backward slip kar sakta hai aur person fall kar sakta hai.\"\n  },\n  {\n    question: \"7. Footwear ke soles par grooves banane ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Shoes ko lightweight banana\",\n      \"B. Friction increase karna\",\n      \"C. Shoes ka colour change karna\",\n      \"D. Shoes ko flexible banana\"\n    ],\n    correct: 1,\n    explanation: \"Grooves floor aur footwear ke soles ke beech friction increase karte hain, jisse slipping kam hoti hai.\"\n  },\n  {\n    question: \"8. Vehicles ke tyres par treads ka main function kya hai?\",\n    options: &#91;\n      \"A. Tyre ka mass increase karna\",\n      \"B. Road aur tyre ke beech friction increase karna\",\n      \"C. Engine ki power increase karna\",\n      \"D. Vehicle ki height increase karna\"\n    ],\n    correct: 1,\n    explanation: \"Tyre ke treads road ke saath friction\/grip badhate hain, jisse vehicle ko control karna easier hota hai.\"\n  },\n  {\n    question: \"9. Wet polished floor par walking difficult kyun hoti hai?\",\n    options: &#91;\n      \"A. Friction decrease ho jaata hai\",\n      \"B. Friction bahut increase ho jaata hai\",\n      \"C. Gravitational force disappear ho jaata hai\",\n      \"D. Person ka mass decrease ho jaata hai\"\n    ],\n    correct: 0,\n    explanation: \"Wet polished surface par feet aur floor ke beech friction kam ho jaata hai. Isliye feet easily slip kar sakte hain.\"\n  },\n  {\n    question: \"10. Water ya snow-covered road par driving risky kyun hoti hai?\",\n    options: &#91;\n      \"A. Tyres aur road ke beech friction kam ho jaata hai\",\n      \"B. Tyres aur road ke beech friction bahut increase ho jaata hai\",\n      \"C. Vehicle ka mass suddenly increase ho jaata hai\",\n      \"D. Engine automatically stop ho jaata hai\"\n    ],\n    correct: 0,\n    explanation: \"Water ya snow road aur tyres ke beech friction ko reduce kar sakta hai. Isse tyre slip hone ka risk badhta hai aur vehicle control karna difficult ho sakta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  score = 0;\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;div class=\"result-summary\">\n      &lt;h3>\ud83c\udfaf ${escapeHTML(userName)}, Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n      &lt;p>Correct Answers: ${score}&lt;\/p>\n      &lt;p>Incorrect or Unattempted: ${questions.length - score}&lt;\/p>\n      &lt;h3>${score >= 8 ? \"Excellent Work! \ud83c\udfc6\" :\n            score >= 5 ? \"Good Effort! \ud83d\udc4d\" :\n            \"Keep Practising! \ud83d\udcda\"}&lt;\/h3>\n    &lt;\/div>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n    ).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\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\">ch6 part14<\/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>APICAL CLASSES - Newton's Third Law Quiz&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n  line-height: 1.5;\n}\n.options label:hover { background: #f0f0f0; }\n.options input { margin-right: 8px; }\n.correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n.wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n#result { color: #1e3c72; }\n@media (max-width: 600px) {\n  body { padding: 10px; }\n  .quiz-container { width: 100%; padding: 15px; }\n}\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 APICAL CLASSES&lt;br>Newton's Third Law of Motion 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. Activity 6.6 mein do identical spring balances ko table par horizontal position mein rakha gaya aur unke hooks ko aapas mein connect kiya gaya. Ek spring balance ka free end fixed rakha gaya aur doosre ko opposite direction mein pull kiya gaya. Agar dono spring balances stationary hain, unki readings kaisi hongi?\",\n    options: &#91;\n      \"A. Dono readings equal hongi\",\n      \"B. Ek reading zero hogi\",\n      \"C. Dono readings different hongi\",\n      \"D. Dono readings hamesha zero hongi\"\n    ],\n    correct: 0,\n    explanation: \"Experiment mein dono spring balances ki readings same milti hain. Ye equal magnitude wali opposite forces ko show karta hai.\"\n  },\n  {\n    question: \"2. Activity 6.6 mein agar student connected spring balance ko pehle 2 N force se aur phir 5 N force se pull karta hai, to stationary condition mein doosre spring balance ki reading kya hogi?\",\n    options: &#91;\n      \"A. Pehle 2 N, phir 5 N\",\n      \"B. Pehle 5 N, phir 2 N\",\n      \"C. Dono baar 0 N\",\n      \"D. Dono baar 1 N\"\n    ],\n    correct: 0,\n    explanation: \"Do spring balances ek-doosre par equal magnitude ki forces lagate hain. Applied force badhne par doosre balance ki reading bhi same amount se badhegi.\"\n  },\n  {\n    question: \"3. Activity 6.6 mein ek spring balance ko fixed object se hold kiya gaya hai aur doosre spring balance ko 8 N force se pull kiya gaya. Agar system stationary hai, fixed spring balance approximately kya reading show karega?\",\n    options: &#91;\n      \"A. 0 N\",\n      \"B. 4 N\",\n      \"C. 8 N\",\n      \"D. 16 N\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s Third Law ke according second spring balance bhi 8 N equal and opposite force experience karega, isliye reading 8 N hogi.\"\n  },\n  {\n    question: \"4. Activity 6.6 mein dono spring balances ki readings equal milne se kya conclusion nikalta hai?\",\n    options: &#91;\n      \"A. Forces unequal hain\",\n      \"B. Forces equal magnitude aur opposite direction mein hain\",\n      \"C. Sirf ek object par force act kar raha hai\",\n      \"D. Forces same direction mein hain\"\n    ],\n    correct: 1,\n    explanation: \"Equal spring-balance readings indicate karti hain ki interacting objects ek-doosre par equal magnitude ki opposite forces laga rahe hain.\"\n  },\n  {\n    question: \"5. Newton\u2019s Third Law ke according, jab Object A, Object B par force lagata hai, to Object B kya karta hai?\",\n    options: &#91;\n      \"A. Koi force nahi lagata\",\n      \"B. A par equal magnitude ki opposite force lagata hai\",\n      \"C. A par double force lagata hai\",\n      \"D. A par same direction mein force lagata hai\"\n    ],\n    correct: 1,\n    explanation: \"Third Law ke according force pair mein hota hai: equal magnitude, opposite direction, aur dono forces different objects par act karte hain.\"\n  },\n  {\n    question: \"6. Ek person coconut tree climb karte waqt apne legs se tree trunk ko downward push karta hai. Iske response mein tree trunk person par kya force lagata hai?\",\n    options: &#91;\n      \"A. Downward frictional force\",\n      \"B. Upward frictional force\",\n      \"C. No force\",\n      \"D. Horizontal gravitational force\"\n    ],\n    correct: 1,\n    explanation: \"Person trunk ko downward push karta hai. Trunk person ke legs par upward frictional force lagata hai, jo climbing mein help karta hai.\"\n  },\n  {\n    question: \"7. Ek person smooth tree trunk ko climb karne ki koshish karta hai. Smooth trunk par friction kam hone ke kaaran climbing difficult kyun hoti hai?\",\n    options: &#91;\n      \"A. Person ko upward reaction force kam milta hai\",\n      \"B. Person ka mass kam ho jaata hai\",\n      \"C. Gravity completely disappear ho jaati hai\",\n      \"D. Tree person ko downward pull karna band kar deta hai\"\n    ],\n    correct: 0,\n    explanation: \"Smooth surface par friction kam hota hai. Isliye trunk person ke legs ko sufficient upward frictional force nahi de paata.\"\n  },\n  {\n    question: \"8. Ek canoeist paddle se water ko backward push karta hai. Newton\u2019s Third Law ke according water paddle par kya karta hai?\",\n    options: &#91;\n      \"A. Paddle ko backward push karta hai\",\n      \"B. Paddle par equal forward force lagata hai\",\n      \"C. Paddle par koi force nahi lagata\",\n      \"D. Paddle ko downward push karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Canoeist water ko backward push karta hai. Water reaction ke roop mein paddle par equal forward force lagata hai, jisse canoe forward move karti hai.\"\n  },\n  {\n    question: \"9. Ek canoeist normally paddle se water ko backward push karta hai. Agar woh water ko aur zyada force se backward push kare, to canoe ki motion mein kya change expected hai?\",\n    options: &#91;\n      \"A. Forward force increase hogi aur canoe ki velocity increase hogi\",\n      \"B. Forward force decrease hogi\",\n      \"C. Canoe immediately backward move karegi\",\n      \"D. Canoe ki velocity hamesha zero rahegi\"\n    ],\n    correct: 0,\n    explanation: \"Harder push ka matlab water par greater force. Reaction ke roop mein water paddle par greater forward force lagata hai, jisse canoe ki velocity increase hoti hai.\"\n  },\n  {\n    question: \"10. Canoeist paddle ko backward push karta hai aur water paddle ko forward push karta hai. Dono forces equal aur opposite hone ke baad bhi canoe move kyun karti hai?\",\n    options: &#91;\n      \"A. Dono forces same object par act karte hain\",\n      \"B. Dono forces different objects par act karte hain\",\n      \"C. Reaction force hamesha zero hota hai\",\n      \"D. Action force reaction se greater hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Canoeist\/paddle ka force water par act karta hai, jabki water ka reaction force paddle par act karta hai. Isliye forces different objects par hain aur ek-doosre ko cancel nahi karte.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;p>&lt;strong>Question ${currentQuestion + 1} of ${questions.length}&lt;\/strong>&lt;\/p>\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(\n    answer => answer === null || answer === undefined\n  ).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      `You have ${unanswered} unanswered question(s). Do you still want to submit?`\n    );\n    if (!confirmSubmit) return;\n  }\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;correct]}&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>&lt;strong>Student:&lt;\/strong> ${escapeHTML(userName)}&lt;\/p>\n    &lt;p>${score === questions.length ? \"Excellent! Perfect Score! \ud83c\udf89\" :\n      score >= 7 ? \"Very Good! Keep Practicing! \ud83d\udc4f\" :\n      score >= 5 ? \"Good Effort! Revise and Try Again! \ud83d\udc4d\" :\n      \"Keep Practicing! You Can Improve! \ud83d\udcaa\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `\n    &lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>\n  `).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#039;\"\n  })&#91;char]);\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\">ch6 part15<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Newton's Third Law of Motion&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.options input { margin-right: 8px; }\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\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 Science Quiz \u2013 Newton's Third Law of Motion&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 6.7 mein ek inflated balloon par straw ko adhesive tape se attach karke ek taut thread straw ke through pass kiya gaya. Jab balloon ke neck par bandhi thread hata di jaati hai, to balloon kis direction mein move karta hai?\",\n    options: &#91;\n      \"A. Air ke rushing-out direction mein\",\n      \"B. Air ke rushing-out direction ke opposite\",\n      \"C. Sirf downward\",\n      \"D. Balloon move nahi karta\"\n    ],\n    correct: 1,\n    explanation: \"Balloon se air ek direction mein bahar nikalti hai. Air balloon par equal and opposite force lagati hai, isliye balloon opposite direction mein move karta hai.\"\n  },\n  {\n    question: \"2. Activity 6.7 mein balloon ke stretched material ka air molecules par kya effect hota hai?\",\n    options: &#91;\n      \"A. Air molecules ko balloon ke andar rokta hai\",\n      \"B. Air molecules ko bahar expel karne ke liye force lagata hai\",\n      \"C. Air molecules ka mass increase karta hai\",\n      \"D. Air molecules ko freeze karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Balloon ka stretched material shrink hote waqt andar ke air molecules ko force se bahar push karta hai.\"\n  },\n  {\n    question: \"3. Balloon se air bahar nikalne par balloon opposite direction mein kyun move karta hai?\",\n    options: &#91;\n      \"A. Air balloon par equal and opposite force lagati hai\",\n      \"B. Gravity balloon ko push karti hai\",\n      \"C. Balloon ka mass suddenly zero ho jaata hai\",\n      \"D. Air balloon ko same direction mein push karti hai\"\n    ],\n    correct: 0,\n    explanation: \"Balloon air ko ek direction mein push karta hai. Reaction ke roop mein escaping air balloon par opposite direction mein force lagati hai.\"\n  },\n  {\n    question: \"4. Rocket engine gases ko mainly kis direction mein expel karta hai, jisse rocket upward move kar sake?\",\n    options: &#91;\n      \"A. Upward\",\n      \"B. Downward\",\n      \"C. Sideways\",\n      \"D. Random direction\"\n    ],\n    correct: 1,\n    explanation: \"Rocket engine gases ko downward expel karta hai. Exhaust gases ke reaction force se rocket par upward force lagta hai.\"\n  },\n  {\n    question: \"5. Rocket ground se lift off kab karega?\",\n    options: &#91;\n      \"A. Jab rocket ka weight upward force se greater ho\",\n      \"B. Jab upward thrust rocket ke weight se greater ho\",\n      \"C. Jab engine gases produce karna band kar de\",\n      \"D. Jab rocket par net force zero ho\"\n    ],\n    correct: 1,\n    explanation: \"Jab rocket par upward force uske weight se greater hota hai, net force upward hota hai aur rocket lift off karta hai.\"\n  },\n  {\n    question: \"6. Space mein moving rocket apne engine se exhaust gases ko motion ki direction mein fire karta hai. Rocket par force kis direction mein lagega?\",\n    options: &#91;\n      \"A. Motion ki same direction mein\",\n      \"B. Motion ke opposite direction mein\",\n      \"C. Hamesha upward\",\n      \"D. Hamesha downward\"\n    ],\n    correct: 1,\n    explanation: \"Exhaust gases motion ki direction mein expel hone par gases rocket par opposite direction mein reaction force lagati hain. Isse rocket slow hota hai.\"\n  },\n  {\n    question: \"7. Chandrayaan-3 ke Vikram lander ne Moon par soft landing ke liye rocket propulsion ka use karke apni velocity ko reduce kiya. Ye kaise possible hua?\",\n    options: &#91;\n      \"A. Exhaust gases ko motion ke opposite effect wali direction mein expel karke\",\n      \"B. Gravity ko completely remove karke\",\n      \"C. Landing ke time mass increase karke\",\n      \"D. Engine ko permanently off karke\"\n    ],\n    correct: 0,\n    explanation: \"Exhaust gases ko appropriate direction mein expel karne se reaction force lander ki motion ko oppose kar sakta hai, jisse velocity reduce hoti hai.\"\n  },\n  {\n    question: \"8. Newton\u2019s Third Law kin forces par apply hota hai?\",\n    options: &#91;\n      \"A. Sirf contact forces par\",\n      \"B. Sirf gravitational forces par\",\n      \"C. Contact aur non-contact dono forces par\",\n      \"D. Sirf frictional forces par\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s Third Law contact aur non-contact dono types of forces par apply hota hai.\"\n  },\n  {\n    question: \"9. Do bar magnets ek-doosre ke paas rakhe gaye aur ek magnet doosre par magnetic force lagata hai. Newton\u2019s Third Law ke according kya hoga?\",\n    options: &#91;\n      \"A. Sirf pehla magnet force experience karega\",\n      \"B. Doosra magnet bhi equal magnitude ki opposite magnetic force lagayega\",\n      \"C. Dono magnets par same direction mein force lagega\",\n      \"D. Magnetic force sirf contact hone par lagega\"\n    ],\n    correct: 1,\n    explanation: \"Magnetic force non-contact force hai, phir bhi action-reaction pair banta hai. Dono magnets ek-doosre par equal and opposite forces lagate hain.\"\n  },\n  {\n    question: \"10. Do similarly charged balloons ek-doosre ke paas rakhe gaye. Newton\u2019s Third Law ke according unke beech kya hoga?\",\n    options: &#91;\n      \"A. Sirf ek balloon doosre ko repel karega\",\n      \"B. Dono balloons equal and opposite electrostatic forces lagayenge\",\n      \"C. Dono balloons attract karenge\",\n      \"D. Koi force nahi lagega kyunki balloons touch nahi kar rahe\"\n    ],\n    correct: 1,\n    explanation: \"Similarly charged balloons ek-doosre ko electrostatic repulsion dete hain. Ye non-contact force hai aur dono balloons par equal magnitude ki opposite forces act karti hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  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\">Question ${currentQuestion + 1} of ${questions.length}&lt;br>&lt;br>${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;correct]}&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;h3>${percentage >= 40 ? \"Well Done! \ud83c\udf89\" : \"Keep Practising! \ud83d\udcaa\"}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&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\">ch6 part16<\/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>Newton's Third Law and System of Objects Quiz&lt;\/title>\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 20px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 15px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 12px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n  line-height: 1.5;\n}\n.options label:hover { background: #f0f0f0; }\n.options input { margin-right: 8px; }\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: 12px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 20px; }\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; }\ninput&#91;type=\"text\"] {\n  width: 95%;\n  padding: 10px;\n  margin: 10px 0;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n}\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: 25px; }\nhr { border: 0; border-top: 1px solid #ddd; margin: 25px 0; }\n#progress { text-align: center; color: #555; margin: 10px 0; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 Newton's Third Law and System of Objects \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=\"progress\">&lt;\/div>\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 Quiz&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. Earth aur ek fruit ek-doosre par equal and opposite gravitational forces lagate hain. Phir fruit Earth ki taraf noticeably kyun move karta hai, lekin Earth ka movement notice nahi hota?\",\n  options: &#91;\n    \"A. Earth par gravitational force nahi lagta\",\n    \"B. Earth ka mass bahut large hai, isliye uski acceleration extremely small hoti hai\",\n    \"C. Fruit par force Earth se zyada hota hai\",\n    \"D. Earth stationary hone ke kaaran force receive nahi karti\"\n  ],\n  correct: 1,\n  explanation: \"Forces equal hain, lekin a = F\/m. Earth ka mass bahut bada hai, isliye same force se Earth ki acceleration bahut small hoti hai aur notice nahi hoti.\"\n},\n{\n  question: \"2. Ek 0.1 kg bullet ko 5 kg gun se fire kiya jaata hai. Bullet par firing ke time 2 N force lagti hai. Newton\u2019s Third Law ke according gun par recoil force kitna hoga?\",\n  options: &#91;\n    \"A. 0.2 N\",\n    \"B. 2 N\",\n    \"C. 10 N\",\n    \"D. 50 N\"\n  ],\n  correct: 1,\n  explanation: \"Newton\u2019s Third Law ke according gun aur bullet ek-doosre par equal magnitude ki opposite forces lagate hain. Isliye gun par recoil force 2 N hai.\"\n},\n{\n  question: \"3. 0.1 kg bullet par 2 N force lagti hai. Bullet ki initial acceleration kitni hogi?\",\n  options: &#91;\n    \"A. 0.4 m\/s\u00b2\",\n    \"B. 2 m\/s\u00b2\",\n    \"C. 20 m\/s\u00b2\",\n    \"D. 200 m\/s\u00b2\"\n  ],\n  correct: 2,\n  explanation: \"Newton\u2019s Second Law: a = F\/m = 2\/0.1 = 20 m\/s\u00b2.\"\n},\n{\n  question: \"4. Usi example mein gun ka mass 5 kg hai aur recoil force 2 N hai. Gun ki initial acceleration ki magnitude kitni hogi?\",\n  options: &#91;\n    \"A. 0.4 m\/s\u00b2\",\n    \"B. 2 m\/s\u00b2\",\n    \"C. 5 m\/s\u00b2\",\n    \"D. 20 m\/s\u00b2\"\n  ],\n  correct: 0,\n  explanation: \"a = F\/m = 2\/5 = 0.4 m\/s\u00b2. Gun ka mass bullet se zyada hai, isliye uski acceleration smaller hai.\"\n},\n{\n  question: \"5. Bullet aur gun par action-reaction forces equal hone ke baad bhi unki accelerations unequal kyun hoti hain?\",\n  options: &#91;\n    \"A. Forces actually unequal hoti hain\",\n    \"B. Bullet aur gun ki masses different hoti hain\",\n    \"C. Gun par gravity nahi lagti\",\n    \"D. Bullet par Newton\u2019s Second Law apply nahi hota\"\n  ],\n  correct: 1,\n  explanation: \"Same force ke liye acceleration mass par depend karti hai: a = F\/m. Bullet ka mass kam hai, isliye uski acceleration gun se much greater hai.\"\n},\n{\n  question: \"6. Do boxes of masses m\u2081 aur m\u2082 ek frictionless horizontal surface par string se connected hain. Ek external force F Box 1 ko right direction mein pull karta hai. Agar dono boxes ko ek single system maana jaaye, total mass kya hoga?\",\n  options: &#91;\n    \"A. m\u2081 \u2212 m\u2082\",\n    \"B. m\u2081\/m\u2082\",\n    \"C. m\u2081 + m\u2082\",\n    \"D. F + m\u2081 + m\u2082\"\n  ],\n  correct: 2,\n  explanation: \"System mein dono boxes aur connecting string considered hote hain. Isliye total mass m\u2081 + m\u2082 hota hai.\"\n},\n{\n  question: \"7. Do connected boxes ka total mass (m\u2081 + m\u2082) hai aur un par frictionless surface par external force F lag raha hai. System ki acceleration ka correct expression kya hai?\",\n  options: &#91;\n    \"A. a = F(m\u2081 + m\u2082)\",\n    \"B. a = (m\u2081 + m\u2082)\/F\",\n    \"C. a = F\/(m\u2081 + m\u2082)\",\n    \"D. a = F + m\u2081 + m\u2082\"\n  ],\n  correct: 2,\n  explanation: \"Newton\u2019s Second Law ke according acceleration = net external force \/ total system mass. Isliye a = F\/(m\u2081 + m\u2082).\"\n},\n{\n  question: \"8. Do connected boxes ko ek single system treat karte waqt boxes ke beech tension T ko external force mein include kyun nahi kiya jaata?\",\n  options: &#91;\n    \"A. Tension zero hoti hai\",\n    \"B. Tension ek internal force hai\",\n    \"C. Tension gravitational force hai\",\n    \"D. Tension sirf Box 1 par act karti hai\"\n  ],\n  correct: 1,\n  explanation: \"Tension system ke objects ke beech act karti hai, isliye ye internal force hai. System analysis mein mainly external forces consider kiye jaate hain.\"\n},\n{\n  question: \"9. Frictionless horizontal surface par connected two-box system par downward gravitational force aur upward normal force bhi act karte hain. Agar system vertically accelerate nahi kar raha, to in forces ka kya relation hoga?\",\n  options: &#91;\n    \"A. Gravitational force normal force se greater hogi\",\n    \"B. Normal force gravitational force se greater hogi\",\n    \"C. Dono balanced hongi\",\n    \"D. Dono zero hongi\"\n  ],\n  correct: 2,\n  explanation: \"System par downward gravitational force (m\u2081 + m\u2082)g aur upward normal force N\u2081 + N\u2082 act karti hai. Horizontal surface par vertical direction mein ye forces balanced hoti hain.\"\n},\n{\n  question: \"10. Walking ke time arms aur legs ki movement complex hoti hai. Newton\u2019s laws se overall motion ko simple way mein study karne ke liye body ko kaise consider kiya ja sakta hai?\",\n  options: &#91;\n    \"A. Har body part ko completely ignore karke\",\n    \"B. Body ko ek single object\/system treat karke\",\n    \"C. Sirf legs ko consider karke\",\n    \"D. Sirf arms ko consider karke\"\n  ],\n  correct: 1,\n  explanation: \"Complex individual movements ke bawajood overall motion ko study karne ke liye poori body ko ek single object maana ja sakta hai. Isse analysis simpler ho jaata hai.\"\n}\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  userAnswers = new Array(questions.length).fill(null);\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  document.getElementById(\"progress\").textContent =\n    \"Question \" + (currentQuestion + 1) + \" of \" + questions.length;\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(answer => answer === null).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      \"You have \" + unanswered + \" unanswered question(s). Do you still want to submit?\"\n    );\n    if (!confirmSubmit) return;\n  }\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 escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, char => ({\n    \"&amp;\": \"&amp;amp;\",\n    \"&lt;\": \"&amp;lt;\",\n    \">\": \"&amp;gt;\",\n    '\"': \"&amp;quot;\",\n    \"'\": \"&amp;#39;\"\n  })&#91;char]);\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    const 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\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;correct]}&lt;br>&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"progress\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>${score >= 8 ? \"Excellent Work! \ud83c\udf89\" : score >= 5 ? \"Good Attempt! Keep Practising.\" : \"Keep Practising. You Can Improve!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${Number(s.score)}\/10 (${escapeHTML(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\">ch6 part17<\/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>Newton's Laws of Motion Quiz | APICAL CLASSES&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 {\n    text-align: center;\n    color: #1e3c72;\n  }\n  .subtitle {\n    text-align: center;\n    color: #555;\n    font-weight: bold;\n  }\n  .question {\n    font-weight: bold;\n    margin: 15px 0;\n    line-height: 1.6;\n  }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 12px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n  .options label:hover {\n    background: #f0f0f0;\n  }\n  .options input {\n    margin-right: 8px;\n  }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 12px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    border-radius: 5px;\n    line-height: 1.6;\n    display: none;\n  }\n  .controls {\n    text-align: center;\n    margin-top: 20px;\n  }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 11px 22px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n    font-size: 15px;\n  }\n  button:hover {\n    background-color: #1e3c72;\n  }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 {\n    text-align: center;\n  }\n  ol {\n    padding-left: 25px;\n  }\n  #userName {\n    padding: 11px;\n    width: 65%;\n    max-width: 300px;\n    border: 1px solid #aaa;\n    border-radius: 5px;\n  }\n  #nameSection {\n    text-align: center;\n    padding: 20px 0;\n  }\n  #result {\n    text-align: center;\n    margin-top: 20px;\n    color: #1e3c72;\n  }\n  .progress {\n    text-align: right;\n    color: #555;\n    font-size: 14px;\n  }\n  @media(max-width: 600px) {\n    body { padding: 10px; }\n    .quiz-container { width: 100%; padding: 15px; }\n    #userName { width: 90%; }\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 APICAL CLASSES&lt;\/h2>\n  &lt;p class=\"subtitle\">Newton's Laws of Motion \u2013 Practice Quiz&lt;\/p>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start the quiz:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Enter Your Name\">\n    &lt;br>&lt;br>\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div class=\"progress\" id=\"progress\">&lt;\/div>\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 Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Ek table ko horizontal force F lagakar floor par constant velocity se move kiya ja raha hai. Table par floor dwara lagne wali frictional force ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. F se greater\",\n      \"B. F se smaller\",\n      \"C. F ke equal\",\n      \"D. Zero\"\n    ],\n    correct: 2,\n    explanation: \"Table constant velocity se move kar raha hai, isliye acceleration zero hai aur net force zero hoga. Isliye frictional force applied force F ke equal magnitude ki hogi aur opposite direction mein act karegi.\"\n  },\n  {\n    question: \"2. Ek ball smooth, frictionless surface par move kar rahi hai. Agar ball par koi net force apply na ho, to uski velocity kya hogi?\",\n    options: &#91;\n      \"A. Increase hogi\",\n      \"B. Decrease hogi\",\n      \"C. Same rahegi\",\n      \"D. Zero ho jayegi\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s First Law ke according net force zero hone par moving object constant velocity se move karta rahega.\"\n  },\n  {\n    question: \"3. Ek ball smooth frictionless surface par move kar rahi hai. Agar net force ball ki motion ki direction mein lagaya jaaye, to ball ki velocity ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. Increase hoga\",\n      \"B. Decrease hoga\",\n      \"C. Same rahega\",\n      \"D. Immediately zero ho jayega\"\n    ],\n    correct: 0,\n    explanation: \"Net force motion ki direction mein hone par acceleration bhi usi direction mein hoti hai. Isliye ball ki speed\/velocity ka magnitude increase hota hai.\"\n  },\n  {\n    question: \"4. Ek ball smooth frictionless surface par right direction mein move kar rahi hai. Agar net force left direction mein lagaya jaaye, to ball ki speed kya hogi?\",\n    options: &#91;\n      \"A. Increase hogi\",\n      \"B. Decrease hogi\",\n      \"C. Same rahegi\",\n      \"D. Hamesha double hogi\"\n    ],\n    correct: 1,\n    explanation: \"Force motion ke opposite direction mein hai, isliye acceleration bhi opposite direction mein hogi aur ball ki speed decrease hogi.\"\n  },\n  {\n    question: \"5. Newton\u2019s First Law ke according ek object rest mein hai aur us par net force zero hai. Object ka kya hoga?\",\n    options: &#91;\n      \"A. Automatically move karega\",\n      \"B. Rest mein hi rahega\",\n      \"C. Constant acceleration se move karega\",\n      \"D. Uski mass change hogi\"\n    ],\n    correct: 1,\n    explanation: \"Newton\u2019s First Law ke according net force zero hone par rest object rest mein hi remain karta hai.\"\n  },\n  {\n    question: \"6. Newton\u2019s Second Law ke according kisi object par net force lagne par acceleration ki direction kiske same hoti hai?\",\n    options: &#91;\n      \"A. Velocity ke opposite\",\n      \"B. Net force ke same\",\n      \"C. Gravity ke same only\",\n      \"D. Friction ke same only\"\n    ],\n    correct: 1,\n    explanation: \"Newton\u2019s Second Law ke according object ki acceleration net force ki direction mein hoti hai.\"\n  },\n  {\n    question: \"7. Agar kisi object par same mass ke saath net force ko double kar diya jaaye, to acceleration par kya effect hoga?\",\n    options: &#91;\n      \"A. Half ho jayegi\",\n      \"B. Same rahegi\",\n      \"C. Double ho jayegi\",\n      \"D. Zero ho jayegi\"\n    ],\n    correct: 2,\n    explanation: \"Newton\u2019s Second Law ke according same mass ke liye acceleration net force ke directly proportional hoti hai.\"\n  },\n  {\n    question: \"8. Same net force ke under agar kisi object ka mass double kar diya jaaye, to uski acceleration kya hogi?\",\n    options: &#91;\n      \"A. Double\",\n      \"B. Half\",\n      \"C. Four times\",\n      \"D. Same\"\n    ],\n    correct: 1,\n    explanation: \"Same force ke liye acceleration mass ke inversely proportional hoti hai. Mass double karne par acceleration half ho jaati hai.\"\n  },\n  {\n    question: \"9. Smooth horizontal surface par block P par 5 N right aur 4 N left forces act kar rahe hain. Block P par net force kitna hoga?\",\n    options: &#91;\n      \"A. 9 N right\",\n      \"B. 9 N left\",\n      \"C. 1 N right\",\n      \"D. 1 N left\"\n    ],\n    correct: 2,\n    explanation: \"Opposite direction ki forces subtract hoti hain: 5 N \u2212 4 N = 1 N right. Isliye P net force experience karta hai.\"\n  },\n  {\n    question: \"10. Smooth horizontal surface par block P par 5 N right aur 4 N left forces act kar rahe hain, jabki block Q constant velocity se move kar raha hai. Kaunsa statement correct hai?\",\n    options: &#91;\n      \"A. P aur Q dono net force experience karte hain\",\n      \"B. P net force experience nahi karta, Q net force experience karta hai\",\n      \"C. P net force experience karta hai, Q net force experience nahi karta\",\n      \"D. P aur Q dono net force experience nahi karte\"\n    ],\n    correct: 2,\n    explanation: \"P par net force = 5 \u2212 4 = 1 N, isliye P par net force hai. Q constant velocity se move kar raha hai, isliye uska acceleration aur net force zero hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  document.getElementById(\"progress\").textContent =\n    \"Question \" + (currentQuestion + 1) + \" of \" + questions.length;\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value, 10)\n    : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== q.correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.getElementById(\"progress\").textContent = \"Quiz Completed\";\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>${escapeHTML(userName)}&lt;\/strong>, ${\n      score >= 8 ? \"Excellent performance!\" :\n      score >= 5 ? \"Good effort! Keep practising.\" :\n      \"Keep learning and try again!\"\n    }&lt;\/p>\n  `;\n}\n\nfunction escapeHTML(str) {\n  return String(str).replace(\/&#91;&amp;&lt;>\"']\/g, function(char) {\n    return {\n      \"&amp;\": \"&amp;amp;\",\n      \"&lt;\": \"&amp;lt;\",\n      \">\": \"&amp;gt;\",\n      '\"': \"&amp;quot;\",\n      \"'\": \"&amp;#039;\"\n    }&#91;char];\n  });\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (e) {\n    scores = &#91;];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.length\n      ? scores.map(s =>\n          `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n        ).join(\"\")\n      : \"&lt;li>No scores yet. Be the first to play!&lt;\/li>\";\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\">ch6 part18<\/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>APICAL CLASSES - Newton's Laws of Motion Quiz&lt;\/title>\n&lt;style>\n* { box-sizing: border-box; }\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 12px;\n  min-height: 100vh;\n  margin: 0;\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: 100%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.brand { text-align: center; color: #2a5298; font-weight: bold; }\n.question { font-weight: bold; margin: 15px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 12px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.2s;\n  line-height: 1.5;\n}\n.options label:hover { background: #f0f0f0; }\n.options input { margin-right: 8px; }\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: 12px;\n  margin-top: 12px;\n  border-left: 5px solid #2a5298;\n  border-radius: 5px;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 20px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 11px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n  font-size: 15px;\n}\nbutton:hover { background-color: #1e3c72; }\ninput&#91;type=\"text\"] {\n  width: 100%;\n  padding: 12px;\n  margin: 10px 0;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n  font-size: 16px;\n}\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: 25px; }\n.progress {\n  color: #555;\n  text-align: right;\n  font-size: 14px;\n}\n#result { text-align: center; margin-top: 20px; }\n@media(max-width:600px) {\n  .quiz-container { padding: 17px; }\n  body { padding: 12px 7px; }\n  button { padding: 10px 14px; }\n}\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;div class=\"brand\">APICAL CLASSES&lt;\/div>\n  &lt;h2>\ud83e\udde0 Newton\u2019s Second and Third Laws of Motion&lt;\/h2>\n  &lt;p style=\"text-align:center;\">Science Practice Quiz&lt;\/p>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div class=\"progress\" id=\"progress\">&lt;\/div>\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 Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n{\n  question: \"1. Kerala ki snake boat race mein 100 oarsmen rowing kar rahe hain. 95 oarsmen boat ko forward propel karne ke liye backward direction mein 200 N each force lagate hain, jabki 5 oarsmen galti se opposite direction mein 200 N each force lagate hain. Drag aur air friction ignore karne par boat par net force kitna hoga?\",\n  options: &#91;\n    \"A. 18,000 N forward\",\n    \"B. 19,000 N forward\",\n    \"C. 20,000 N forward\",\n    \"D. 18,000 N backward\"\n  ],\n  correct: 0,\n  explanation: \"95 oarsmen ka force = 95 \u00d7 200 = 19,000 N forward. Opposite 5 oarsmen = 5 \u00d7 200 = 1,000 N backward. Net force = 19,000 \u2212 1,000 = 18,000 N forward.\"\n},\n{\n  question: \"2. Jab kisi object par net force act karta hai, to Newton\u2019s Second Law ke according acceleration ke baare mein kaunsa statement correct hai?\",\n  options: &#91;\n    \"A. Acceleration force ke opposite direction mein hoti hai aur force ke proportional hoti hai.\",\n    \"B. Acceleration force ki direction mein hoti hai aur force ke proportional hoti hai.\",\n    \"C. Acceleration force ki direction mein hoti hai aur mass ke proportional hoti hai.\",\n    \"D. Acceleration force ke opposite direction mein hoti hai aur mass ke inversely proportional hoti hai.\"\n  ],\n  correct: 1,\n  explanation: \"Newton\u2019s Second Law ke according acceleration net force ki direction mein hoti hai aur fixed mass ke liye acceleration net force ke directly proportional hoti hai.\"\n},\n{\n  question: \"3. Ek sailor small boat se shore ki taraf forward jump karta hai. Sailor ke jump karne par boat kis direction mein move karegi aur kyun?\",\n  options: &#91;\n    \"A. Forward, kyunki sailor boat ko forward push karta hai.\",\n    \"B. Backward, kyunki sailor boat par backward reaction force lagata hai.\",\n    \"C. Forward, kyunki gravity boat ko forward pull karti hai.\",\n    \"D. Boat move nahi karegi, kyunki sailor aur boat connected hain.\"\n  ],\n  correct: 1,\n  explanation: \"Sailor boat ko jump karte waqt forward push karta hai. Newton\u2019s Third Law ke according boat sailor par forward force aur sailor par opposite reaction, jisse boat backward move karti hai.\"\n},\n{\n  question: \"4. High jump athlete ke landing area mein soft mat ya sand bed kyun rakha jaata hai?\",\n  options: &#91;\n    \"A. Athlete ki mass reduce karne ke liye\",\n    \"B. Athlete ko zyada speed dene ke liye\",\n    \"C. Stopping time increase karke force ko reduce karne ke liye\",\n    \"D. Athlete ki acceleration increase karne ke liye\"\n  ],\n  correct: 2,\n  explanation: \"Soft mat\/sand athlete ko suddenly stop nahi karta; stopping time increase hota hai. Same change in velocity longer time mein hone se acceleration aur impact force kam hota hai.\"\n},\n{\n  question: \"5. Ek loaded hand cart aur ek identical empty hand cart collision karte hain. Newton\u2019s Third Law ke according collision ke dauran dono carts ek-doosre par kya force lagayenge?\",\n  options: &#91;\n    \"A. Loaded cart greater force lagayega.\",\n    \"B. Empty cart greater force lagayega.\",\n    \"C. Dono equal magnitude ki opposite forces lagayenge.\",\n    \"D. Sirf loaded cart force lagayega.\"\n  ],\n  correct: 2,\n  explanation: \"Newton\u2019s Third Law ke according interaction ke forces equal magnitude aur opposite direction mein hote hain. Cart ka mass different hone se accelerations different ho sakti hain, forces nahi.\"\n},\n{\n  question: \"6. Ek 50 g bullet 100 m\/s ki speed se move karte hue wooden block mein enter karti hai aur 50 cm distance ke baad rest mein aa jaati hai. Agar acceleration constant hai, bullet par stopping force ki magnitude approximately kitni hogi?\",\n  options: &#91;\n    \"A. 50 N\",\n    \"B. 100 N\",\n    \"C. 500 N\",\n    \"D. 1000 N\"\n  ],\n  correct: 2,\n  explanation: \"m = 0.05 kg, u = 100 m\/s, v = 0, s = 0.5 m.&lt;br>v\u00b2 = u\u00b2 + 2as&lt;br>0 = 100\u00b2 + 2a(0.5), so a = \u221210,000 m\/s\u00b2.&lt;br>F = ma = 0.05 \u00d7 10,000 = 500 N. Force motion ke opposite direction mein hai.\"\n},\n{\n  question: \"7. Ek football ka mass 0.4 kg hai. Player ball ko 108 km\/h ki speed tak kick karta hai aur ball par average force 800 N lagta hai. Foot aur ball ke contact ka time approximately kitna hoga?\",\n  options: &#91;\n    \"A. 0.0015 s\",\n    \"B. 0.015 s\",\n    \"C. 0.15 s\",\n    \"D. 1.5 s\"\n  ],\n  correct: 1,\n  explanation: \"108 km\/h = 30 m\/s. Assuming ball initially rest par thi, F = ma se 800 = 0.4 \u00d7 (30\/t). Isliye t = 0.015 s.\"\n},\n{\n  question: \"8. Ek 2 kg object 10 m\/s ki constant velocity se move kar raha hai. Rough patch par friction 7 N hai aur motion ke opposite additional 3 N force bhi lagti hai. Object kitni distance travel karke rest mein aa jayega?\",\n  options: &#91;\n    \"A. 5 m\",\n    \"B. 10 m\",\n    \"C. 20 m\",\n    \"D. 25 m\"\n  ],\n  correct: 1,\n  explanation: \"Total opposing force = 7 + 3 = 10 N.&lt;br>a = F\/m = \u221210\/2 = \u22125 m\/s\u00b2.&lt;br>v\u00b2 = u\u00b2 + 2as: 0 = 100 + 2(\u22125)s.&lt;br>Isliye s = 10 m.\"\n},\n{\n  question: \"9. Ek tractor harrow of mass m\u2081 ko force F se pull karta hai aur acceleration a\u2081 produce hoti hai. Wahi tractor trolley of mass m\u2082 ko same force F se pull karta hai aur acceleration a\u2082 produce hoti hai. Agar tractor dono ko together same force F se pull kare, to combined acceleration kya hogi?\",\n  options: &#91;\n    \"A. a\u2081 + a\u2082\",\n    \"B. a\u2081a\u2082\",\n    \"C. (a\u2081 + a\u2082)\/(a\u2081a\u2082)\",\n    \"D. a\u2081a\u2082\/(a\u2081 + a\u2082)\"\n  ],\n  correct: 3,\n  explanation: \"a\u2081 = F\/m\u2081 aur a\u2082 = F\/m\u2082. Combined mass m\u2081 + m\u2082 hoga, so acceleration = F\/(m\u2081 + m\u2082). Simplify karne par a = a\u2081a\u2082\/(a\u2081 + a\u2082).\"\n},\n{\n  question: \"10. Ek bar magnet ko compass ke paas laane par magnet aur compass needle ek-doosre par equal and opposite magnetic forces lagate hain. Phir compass needle visibly move karti hai, lekin bar magnet almost stationary kyun dikhta hai?\",\n  options: &#91;\n    \"A. Bar magnet par force act nahi karta.\",\n    \"B. Compass needle par greater force act karta hai.\",\n    \"C. Dono forces equal hain, lekin bar magnet ka mass bahut greater hone se uski acceleration bahut small hoti hai.\",\n    \"D. Magnetic force sirf compass needle par act karta hai.\"\n  ],\n  correct: 2,\n  explanation: \"Newton\u2019s Third Law ke according forces equal and opposite hain. Lekin a = F\/m; bar magnet ka mass much larger hai, isliye uski acceleration bahut small aur practically unnoticeable hoti 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) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  document.getElementById(\"progress\").textContent =\n    \"Question \" + (currentQuestion + 1) + \" of \" + questions.length;\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  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 submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(answer => answer === null || answer === undefined).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      \"You have \" + unanswered + \" unanswered question(s). Do you still want to submit?\"\n    );\n    if (!confirmSubmit) return;\n  }\n\n  score = 0;\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\n    const optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === q.correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== q.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\">\n        &lt;strong>Explanation:&lt;\/strong>&lt;br>${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"progress\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>&lt;strong>Student:&lt;\/strong> ${escapeHTML(userName)}&lt;\/p>\n    &lt;p>${score >= 8 ? \"Excellent work! \ud83c\udf89\" : score >= 5 ? \"Good effort! Keep practising.\" : \"Keep learning and try again!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({\n    name: name,\n    score: 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 =\n    scores.map(s =>\n      `&lt;li>${escapeHTML(s.name)} - ${s.score}\/10 (${escapeHTML(s.date)})&lt;\/li>`\n    ).join(\"\");\n}\n\nfunction escapeHTML(value) {\n  return String(value).replace(\/&#91;&amp;&lt;>\"']\/g, function(char) {\n    return {\n      \"&amp;\": \"&amp;amp;\",\n      \"&lt;\": \"&amp;lt;\",\n      \">\": \"&amp;gt;\",\n      '\"': \"&amp;quot;\",\n      \"'\": \"&amp;#039;\"\n    }&#91;char];\n  });\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch6 part1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5502","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5502","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=5502"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5502\/revisions"}],"predecessor-version":[{"id":5503,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5502\/revisions\/5503"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}