{"id":5497,"date":"2026-11-21T14:26:20","date_gmt":"2026-11-21T14:26:20","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5497"},"modified":"2026-11-21T14:26:21","modified_gmt":"2026-11-21T14:26:21","slug":"class-9-science-chapter-4","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5497","title":{"rendered":"class 9 science chapter 4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch4 part1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n  &lt;meta charset=\"UTF-8\">\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  &lt;title>\ud83e\udde0 Science Quiz \u2013 Motion in a Straight Line&lt;\/title>\n\n  &lt;style>\n    body {\n      font-family: Arial, sans-serif;\n      background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n      display: flex;\n      justify-content: center;\n      align-items: flex-start;\n      padding: 30px;\n      min-height: 100vh;\n    }\n\n    .quiz-container {\n      background: #fff;\n      padding: 25px;\n      border-radius: 12px;\n      box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n      width: 90%;\n      max-width: 800px;\n    }\n\n    h2 {\n      text-align: center;\n      color: #1e3c72;\n    }\n\n    .question {\n      font-weight: bold;\n      margin: 10px 0;\n      line-height: 1.6;\n    }\n\n    .options label {\n      display: block;\n      margin: 8px 0;\n      padding: 10px;\n      border-radius: 6px;\n      border: 1px solid #ccc;\n      cursor: pointer;\n      transition: 0.3s;\n    }\n\n    .options label:hover {\n      background: #f0f0f0;\n    }\n\n    .correct {\n      background-color: #c8f7c5 !important;\n      border-color: #28a745 !important;\n    }\n\n    .wrong {\n      background-color: #f8d7da !important;\n      border-color: #dc3545 !important;\n    }\n\n    .explanation {\n      background: #e9ecef;\n      padding: 10px;\n      margin-top: 10px;\n      border-left: 5px solid #2a5298;\n      display: none;\n      line-height: 1.6;\n    }\n\n    .controls {\n      text-align: center;\n      margin-top: 15px;\n    }\n\n    button {\n      background-color: #2a5298;\n      color: white;\n      border: none;\n      padding: 10px 20px;\n      border-radius: 6px;\n      cursor: pointer;\n      margin: 5px;\n    }\n\n    button:hover {\n      background-color: #1e3c72;\n    }\n\n    #scoreboard {\n      margin-top: 25px;\n      background: #eef3f7;\n      padding: 15px;\n      border-radius: 8px;\n    }\n\n    #scoreboard h3 {\n      text-align: center;\n    }\n\n    ol {\n      padding-left: 20px;\n    }\n  &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 Motion in a Straight Line&lt;\/h2>\n\n    &lt;div id=\"nameSection\">\n      &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n      &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n      &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"quizSection\" style=\"display:none;\">\n\n      &lt;div id=\"questionContainer\">&lt;\/div>\n\n      &lt;div class=\"controls\">\n        &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n        &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n        &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n      &lt;\/div>\n\n      &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n      &lt;div id=\"scoreboard\">\n        &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n        &lt;ol id=\"scoreList\">&lt;\/ol>\n      &lt;\/div>\n\n    &lt;\/div>\n  &lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Jab koi object straight line mein move karta hai, toh uski motion ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Circular motion\",\n      \"B. Oscillatory motion\",\n      \"C. Linear motion\",\n      \"D. Random motion\"\n    ],\n    correct: 2,\n    explanation: \"Jab object straight line mein move karta hai, us motion ko &lt;b>linear motion&lt;\/b> ya motion in a straight line kehte hain.\"\n  },\n\n  {\n    question: \"2. Scientists complex motion ko study karne ke liye pehle usse idealised aur simplified forms mein kyon study karte hain?\",\n    options: &#91;\n      \"A. Complex phenomena ko easily understand aur analyse karne ke liye\",\n      \"B. Motion ko completely stop karne ke liye\",\n      \"C. Sirf distance measure karne ke liye\",\n      \"D. Objects ka mass change karne ke liye\"\n    ],\n    correct: 0,\n    explanation: \"Nature mein motion bahut complex ho sakti hai. Isliye scientists pehle uske &lt;b>simple and idealised forms&lt;\/b> ko study karte hain.\"\n  },\n\n  {\n    question: \"3. Nimn mein se kaunsa example linear motion ko represent karta hai?\",\n    options: &#91;\n      \"A. Ceiling fan ka ghoomna\",\n      \"B. Straight track par train ka move karna\",\n      \"C. Pendulum ka aage-peeche swing karna\",\n      \"D. Earth ka Sun ke around revolve karna\"\n    ],\n    correct: 1,\n    explanation: \"Straight track par train &lt;b>straight line&lt;\/b> mein move karti hai, isliye yeh linear motion ka example hai.\"\n  },\n\n  {\n    question: \"4. Kisi object ki position describe karne ke liye sabse pehle kya specify karna zaroori hai?\",\n    options: &#91;\n      \"A. Object ka colour\",\n      \"B. Object ka mass\",\n      \"C. Ek fixed reference point\",\n      \"D. Object ka temperature\"\n    ],\n    correct: 2,\n    explanation: \"Position describe karne ke liye ek &lt;b>fixed reference point&lt;\/b> choose kiya jata hai. Object ki distance aur direction isi point ke respect mein batayi jaati hai.\"\n  },\n\n  {\n    question: \"5. Kisi object ki position ko completely describe karne ke liye reference point ke respect mein kya specify karna hota hai?\",\n    options: &#91;\n      \"A. Sirf distance\",\n      \"B. Sirf direction\",\n      \"C. Distance aur direction dono\",\n      \"D. Sirf speed\"\n    ],\n    correct: 2,\n    explanation: \"Position batane ke liye object ki &lt;b>distance aur direction dono&lt;\/b> reference point ke respect mein specify karni hoti hain.\"\n  },\n\n  {\n    question: \"6. Ek athlete straight track par start point O se running karti hai. Agar kuch time baad uski position reference point O se 40 m right side mein hai, toh uski position ko generally kaise represent kiya jayega?\",\n    options: &#91;\n      \"A. \u221240 m\",\n      \"B. 0 m\",\n      \"C. +40 m\",\n      \"D. +80 m\"\n    ],\n    correct: 2,\n    explanation: \"Reference point O ke &lt;b>right side ki positions generally positive&lt;\/b> li jaati hain. Isliye 40 m right = &lt;b>+40 m&lt;\/b>.\"\n  },\n\n  {\n    question: \"7. Agar kisi object ki position reference point O ke left side mein 20 m hai, toh position ko generally kis sign ke saath represent kiya jayega?\",\n    options: &#91;\n      \"A. +20 m\",\n      \"B. \u221220 m\",\n      \"C. 0 m\",\n      \"D. +40 m\"\n    ],\n    correct: 1,\n    explanation: \"Reference point ke &lt;b>left side ki positions generally negative&lt;\/b> li jaati hain. Isliye position = &lt;b>\u221220 m&lt;\/b>.\"\n  },\n\n  {\n    question: \"8. Ek object tab motion mein kaha jayega jab uski position reference point ke respect mein kya kare?\",\n    options: &#91;\n      \"A. Time ke saath change ho\",\n      \"B. Hamesha same rahe\",\n      \"C. Sirf positive ho\",\n      \"D. Sirf negative ho\"\n    ],\n    correct: 0,\n    explanation: \"Agar object ki &lt;b>position reference point ke respect mein time ke saath change hoti hai&lt;\/b>, toh object motion mein hai.\"\n  },\n\n  {\n    question: \"9. Ek object road par khada hai aur 10 minutes tak uski position ek fixed reference point ke respect mein change nahi hoti. Object ki state kya hogi?\",\n    options: &#91;\n      \"A. Uniform motion\",\n      \"B. Circular motion\",\n      \"C. At rest\",\n      \"D. Oscillatory motion\"\n    ],\n    correct: 2,\n    explanation: \"Agar reference point ke respect mein object ki &lt;b>position time ke saath change nahi hoti&lt;\/b>, toh object &lt;b>at rest&lt;\/b> hota hai.\"\n  },\n\n  {\n    question: \"10. Straight-line motion mein direction ko represent karne ke liye generally kaunse signs use kiye jaate hain?\",\n    options: &#91;\n      \"A. \u00d7 aur \u00f7\",\n      \"B. + aur \u2212\",\n      \"C. = aur \u2260\",\n      \"D. &lt; aur >\"\n    ],\n    correct: 1,\n    explanation: \"Straight line par object do directions mein move kar sakta hai. In directions ko represent karne ke liye generally &lt;b>positive (+) aur negative (\u2212) signs&lt;\/b> use kiye jaate hain.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Motion, Distance and Displacement 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    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: 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: 12px;\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}\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#userName {\n    padding: 10px;\n    width: 90%;\n    max-width: 350px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n    margin-bottom: 10px;\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#result {\n    text-align: center;\n    margin-top: 20px;\n}\n.progress {\n    text-align: center;\n    color: #555;\n    margin-bottom: 12px;\n}\nhr {\n    border: none;\n    border-top: 1px solid #ddd;\n    margin: 20px 0;\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 APICAL CLASSES \u2013 Motion, Distance &amp; Displacement 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;br>\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 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{\nquestion: \"1. Ek athlete point O se start karti hai, point B tak 40 m jaati hai, phir point A tak 100 m jaati hai aur finally wapas point B par ruk jaati hai. Usne total kitni distance travel ki?\",\noptions: &#91;\n\"A. 40 m\",\n\"B. 60 m\",\n\"C. 100 m\",\n\"D. 160 m\"\n],\ncorrect: 3,\nexplanation: \"&lt;strong>Answer: D. 160 m&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Total distance = O se A tak 100 m + A se B tak 60 m = &lt;strong>160 m&lt;\/strong>. Distance mein poora path consider kiya jata hai.\"\n},\n\n{\nquestion: \"2. Usi athlete ke starting point O aur stopping point B ke beech distance 40 m hai. Athlete ka displacement kitna hoga?\",\noptions: &#91;\n\"A. 40 m\",\n\"B. 60 m\",\n\"C. 100 m\",\n\"D. 160 m\"\n],\ncorrect: 0,\nexplanation: \"&lt;strong>Answer: A. 40 m&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Displacement &lt;strong>initial position se final position ka net change&lt;\/strong> hota hai. O se B = &lt;strong>40 m&lt;\/strong>.\"\n},\n\n{\nquestion: \"3. Displacement ko completely describe karne ke liye kya specify karna zaroori hai?\",\noptions: &#91;\n\"A. Sirf numerical value\",\n\"B. Sirf distance\",\n\"C. Magnitude aur direction\",\n\"D. Sirf time\"\n],\ncorrect: 2,\nexplanation: \"&lt;strong>Answer: C. Magnitude aur direction&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Displacement ek &lt;strong>vector quantity&lt;\/strong> hai, isliye iske liye &lt;strong>magnitude + direction&lt;\/strong> dono specify karne hote hain.\"\n},\n\n{\nquestion: \"4. Athlete t = 0 s par O se start karti hai aur t = 16 s par B par stop karti hai. Agar B, O ke right side mein 40 m hai, toh displacement kya hoga?\",\noptions: &#91;\n\"A. \u221240 m\",\n\"B. +40 m\",\n\"C. +160 m\",\n\"D. \u2212160 m\"\n],\ncorrect: 1,\nexplanation: \"&lt;strong>Answer: B. +40 m&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Final position B, initial position O ke &lt;strong>right side&lt;\/strong> mein 40 m hai. Right direction ko positive lene par displacement = &lt;strong>+40 m&lt;\/strong>.\"\n},\n\n{\nquestion: \"5. Distance travelled aur displacement mein main difference kya hai?\",\noptions: &#91;\n\"A. Distance mein direction required hoti hai, displacement mein nahi\",\n\"B. Distance total path length batati hai, displacement initial aur final position ka net change batata hai\",\n\"C. Dono hamesha equal hote hain\",\n\"D. Distance vector hai aur displacement scalar hai\"\n],\ncorrect: 1,\nexplanation: \"&lt;strong>Answer: B. Distance total path length batati hai, displacement initial aur final position ka net change batata hai&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> &lt;strong>Distance = total path travelled&lt;\/strong>, jabki &lt;strong>displacement = initial se final position ka net change&lt;\/strong>.\"\n},\n\n{\nquestion: \"6. SI unit of both distance and displacement kya hai?\",\noptions: &#91;\n\"A. Second (s)\",\n\"B. Kilogram (kg)\",\n\"C. Metre (m)\",\n\"D. Metre per second (m\/s)\"\n],\ncorrect: 2,\nexplanation: \"&lt;strong>Answer: C. Metre (m)&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Distance aur displacement dono length-related physical quantities hain, isliye dono ka &lt;strong>SI unit metre (m)&lt;\/strong> hai.\"\n},\n\n{\nquestion: \"7. Ek runner 50 m east jaata hai aur phir same path par 20 m west return karta hai. Total distance aur displacement ka magnitude respectively kya hoga?\",\noptions: &#91;\n\"A. 30 m, 70 m\",\n\"B. 70 m, 30 m\",\n\"C. 50 m, 20 m\",\n\"D. 20 m, 50 m\"\n],\ncorrect: 1,\nexplanation: \"&lt;strong>Answer: B. 70 m, 30 m&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Total distance = 50 + 20 = &lt;strong>70 m&lt;\/strong>. Net displacement = 50 \u2212 20 = &lt;strong>30 m east&lt;\/strong>.\"\n},\n\n{\nquestion: \"8. \u201ct = 10 s\u201d kya represent karta hai?\",\noptions: &#91;\n\"A. Time interval\",\n\"B. Instant of time\",\n\"C. Total distance\",\n\"D. Displacement\"\n],\ncorrect: 1,\nexplanation: \"&lt;strong>Answer: B. Instant of time&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> &lt;strong>Instant of time&lt;\/strong> clock ki ek single reading hoti hai, jaise t = 10 s. Do instants ke beech ka duration &lt;strong>time interval&lt;\/strong> hota hai.\"\n},\n\n{\nquestion: \"9. Agar ek object t = 5 s se t = 12 s tak move karta hai, toh is duration ka time interval kitna hoga?\",\noptions: &#91;\n\"A. 5 s\",\n\"B. 7 s\",\n\"C. 12 s\",\n\"D. 17 s\"\n],\ncorrect: 1,\nexplanation: \"&lt;strong>Answer: B. 7 s&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> Time interval = final time \u2212 initial time = 12 \u2212 5 = &lt;strong>7 s&lt;\/strong>.\"\n},\n\n{\nquestion: \"10. Kaunsi physical quantity ko describe karne ke liye sirf numerical value aur unit sufficient hote hain, direction ki need nahi hoti?\",\noptions: &#91;\n\"A. Displacement\",\n\"B. Velocity\",\n\"C. Scalar quantity\",\n\"D. Vector quantity\"\n],\ncorrect: 2,\nexplanation: \"&lt;strong>Answer: C. Scalar quantity&lt;\/strong>&lt;br>&lt;br>&lt;strong>Explanation:&lt;\/strong> &lt;strong>Scalar quantities&lt;\/strong> ko sirf magnitude\/numerical value aur unit se describe kiya ja sakta hai. Vector quantities ke liye &lt;strong>magnitude aur direction&lt;\/strong> dono required hote hain.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n    userName = document.getElementById(\"userName\").value.trim();\n\n    if (!userName) {\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\").innerHTML =\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    if (userAnswers.some(answer => answer === null || answer === undefined)) {\n        alert(\"Please attempt all questions before submitting.\");\n        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    showResults();\n    saveScore(userName, score);\n    loadScoreboard();\n}\n\nfunction showResults() {\n    const container = document.getElementById(\"questionContainer\");\n    container.innerHTML = \"\";\n\n    questions.forEach((q, index) => {\n        const selected = userAnswers&#91;index];\n        const correct = q.correct;\n\n        let optsHTML = q.options.map((opt, i) => {\n            let cls = \"\";\n\n            if (i === correct) cls = \"correct\";\n            if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n            return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n        }).join(\"\");\n\n        container.innerHTML += `\n            &lt;div class=\"question\">${q.question}&lt;\/div>\n            &lt;div class=\"options\">${optsHTML}&lt;\/div>\n            &lt;div class=\"explanation\" style=\"display:block;\">\n                ${q.explanation}\n            &lt;\/div>\n            &lt;hr>\n        `;\n    });\n\n    document.querySelector(\".controls\").style.display = \"none\";\n    document.getElementById(\"progress\").style.display = \"none\";\n\n    const percentage = (score \/ questions.length) * 100;\n\n    document.getElementById(\"result\").innerHTML = `\n        &lt;h3>\ud83c\udf89 Quiz Completed!&lt;\/h3>\n        &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n        &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n        &lt;p>&lt;strong>Student Name:&lt;\/strong> ${escapeHTML(userName)}&lt;\/p>\n        &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\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 = 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&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Distance and Displacement | 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  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n  input&#91;type=\"text\"] {\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 APICAL CLASSES \u2013 SCIENCE QUIZ&lt;\/h2>\n  &lt;h3 style=\"text-align:center;\">Topic: Distance and Displacement&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\" 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. Straight-line motion mein total distance travelled aur displacement ka magnitude kab equal hota hai?\",\n    options: &#91;\n      \"A. Jab object baar-baar direction change kare\",\n      \"B. Jab object bina turn back kiye ek hi direction mein move kare\",\n      \"C. Jab object starting point par wapas aa jaye\",\n      \"D. Jab object rest mein ho\"\n    ],\n    correct: 1,\n    explanation: \"Agar object straight line mein sirf ek direction mein move karta hai aur turn back nahi karta, toh distance aur displacement ka magnitude equal hota hai.\"\n  },\n  {\n    question: \"2. Ek ball O se vertically upward throw ki jaati hai. Woh A par 40 cm aur B par 80 cm height tak pahunchti hai. O se B tak ball ki total distance aur displacement ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. Distance 80 cm, displacement 80 cm\",\n      \"B. Distance 40 cm, displacement 80 cm\",\n      \"C. Distance 80 cm, displacement 40 cm\",\n      \"D. Distance 160 cm, displacement 80 cm\"\n    ],\n    correct: 0,\n    explanation: \"O se B tak ball sirf upward direction mein gayi hai. Isliye total distance = 80 cm aur displacement ka magnitude = 80 cm upward.\"\n  },\n  {\n    question: \"3. Ball O se 120 cm upward jaakar B point tak pahunchti hai aur phir 40 cm neeche C point par aati hai. O se C tak total distance aur displacement ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. 80 cm, 160 cm\",\n      \"B. 160 cm, 80 cm\",\n      \"C. 120 cm, 40 cm\",\n      \"D. 40 cm, 120 cm\"\n    ],\n    correct: 1,\n    explanation: \"Total distance = 120 + 40 = 160 cm. Final position C, O se 80 cm upar hai, isliye displacement = 80 cm upward.\"\n  },\n  {\n    question: \"4. Ek ball O se 140 cm upward jaakar phir same straight line mein wapas O par aa jaati hai. Ball ke complete motion ke liye displacement kya hoga?\",\n    options: &#91;\n      \"A. 140 cm upward\",\n      \"B. 280 cm\",\n      \"C. 140 cm downward\",\n      \"D. 0 cm\"\n    ],\n    correct: 3,\n    explanation: \"Ball ka initial aur final position same O hai. Isliye net change in position, yani displacement, zero hai.\"\n  },\n  {\n    question: \"5. Usi motion mein, jisme ball O se 140 cm upward jaakar wapas O par aati hai, total distance travelled kitni hogi?\",\n    options: &#91;\n      \"A. 0 cm\",\n      \"B. 140 cm\",\n      \"C. 280 cm\",\n      \"D. 70 cm\"\n    ],\n    correct: 2,\n    explanation: \"Upward distance = 140 cm aur downward distance = 140 cm. Total distance = 140 + 140 = 280 cm.\"\n  },\n  {\n    question: \"6. Ball O se upward move karke B tak jaati hai aur phir C tak neeche aati hai. Inmein se displacement ke baare mein kaunsa statement correct hai?\",\n    options: &#91;\n      \"A. Displacement ka magnitude total distance se greater ho sakta hai\",\n      \"B. Displacement ka magnitude total distance ke equal ya less hota hai\",\n      \"C. Displacement hamesha total distance se greater hota hai\",\n      \"D. Displacement hamesha zero hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Displacement ka magnitude total distance se kabhi greater nahi ho sakta. Yeh distance ke equal ya usse less ho sakta hai.\"\n  },\n  {\n    question: \"7. Athlete straight track par O se B tak jaati hai aur phir wapas O par aa jaati hai. Kis situation mein uska displacement zero hoga?\",\n    options: &#91;\n      \"A. Jab woh B par rukegi\",\n      \"B. Jab woh O par wapas aayegi\",\n      \"C. Jab woh halfway point par hogi\",\n      \"D. Jab woh maximum speed se chalegi\"\n    ],\n    correct: 1,\n    explanation: \"Displacement initial aur final position ke beech net change hai. Final position agar starting point O ho, toh displacement zero hoga.\"\n  },\n  {\n    question: \"8. Vehicle ke fuel consumption ka relation mainly kis quantity se hota hai?\",\n    options: &#91;\n      \"A. Displacement\",\n      \"B. Total distance travelled\",\n      \"C. Direction only\",\n      \"D. Initial position\"\n    ],\n    correct: 1,\n    explanation: \"Vehicle ko fuel consume karke actual path par travel karna padta hai. Isliye fuel consumption ka relation total distance travelled se hota hai, displacement se nahi.\"\n  },\n  {\n    question: \"9. Ek ball inclined track par O se A, B, C aur D ki taraf roll karti hai. Agar ball continuously ek hi direction mein inclined straight path par move kar rahi hai, toh O se kisi bhi intermediate point tak distance aur displacement ke magnitude mein kya relation hoga?\",\n    options: &#91;\n      \"A. Distance \u0939\u092e\u0947\u0936\u093e displacement se greater hogi\",\n      \"B. Displacement \u0939\u092e\u0947\u0936\u093e zero hoga\",\n      \"C. Distance aur displacement ka magnitude equal hoga\",\n      \"D. Displacement distance se greater hoga\"\n    ],\n    correct: 2,\n    explanation: \"Ball bina turn back kiye ek hi direction mein straight path par move kar rahi hai. Isliye distance aur displacement ka magnitude equal hoga.\"\n  },\n  {\n    question: \"10. Ek ball O se 100 cm upward jaati hai aur phir 60 cm downward move karti hai. Is motion se kaunsa conclusion correct hai?\",\n    options: &#91;\n      \"A. Total distance = 40 cm aur displacement = 160 cm\",\n      \"B. Total distance = 160 cm aur displacement = 40 cm upward\",\n      \"C. Total distance = 40 cm aur displacement = 40 cm downward\",\n      \"D. Total distance = 100 cm aur displacement = 60 cm upward\"\n    ],\n    correct: 1,\n    explanation: \"Total distance = 100 + 60 = 160 cm. Final position O se 40 cm upar hai, isliye displacement = 40 cm upward.\"\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    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\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    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\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\" 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>Percentage: ${((score \/ questions.length) * 100).toFixed(1)}%&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s =>\n    `&lt;li>${escapeHTML(s.name)} - ${s.score}\/${questions.length} (${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\">ch4 part4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Average Speed and Motion&lt;\/title>\n\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\n  h2 {\n    text-align: center;\n    color: #1e3c72;\n  }\n\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n&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 Average Speed and 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\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Kisi object ki average speed kaise calculate ki jaati hai?\",\n    options: &#91;\n      \"A. Total displacement \u00f7 time interval\",\n      \"B. Total distance travelled \u00f7 time interval\",\n      \"C. Time interval \u00f7 total distance\",\n      \"D. Total distance \u00d7 time interval\"\n    ],\n    correct: 1,\n    explanation: \"Average speed = &lt;b>total distance travelled \/ total time interval&lt;\/b>. Yeh batata hai ki object average mein kitni fast move kar raha hai.\"\n  },\n\n  {\n    question: \"2. Ek car 120 km ki distance 3 hours mein travel karti hai. Car ki average speed kya hogi?\",\n    options: &#91;\n      \"A. 30 km\/h\",\n      \"B. 40 km\/h\",\n      \"C. 60 km\/h\",\n      \"D. 360 km\/h\"\n    ],\n    correct: 1,\n    explanation: \"Average speed = 120 \u00f7 3 = &lt;b>40 km\/h&lt;\/b>.\"\n  },\n\n  {\n    question: \"3. Average speed ke paas direction hoti hai ya nahi?\",\n    options: &#91;\n      \"A. Hamesha upward direction hoti hai\",\n      \"B. Hamesha downward direction hoti hai\",\n      \"C. Iski koi direction nahi hoti\",\n      \"D. Direction sirf circular motion mein hoti hai\"\n    ],\n    correct: 2,\n    explanation: \"Distance mein direction nahi hoti, sirf numerical value hoti hai. Isliye distance se calculate ki gayi &lt;b>average speed bhi directionless&lt;\/b> hoti hai.\"\n  },\n\n  {\n    question: \"4. Ek object straight line mein equal time intervals mein equal distances travel karta hai. Yeh motion kis type ka hoga?\",\n    options: &#91;\n      \"A. Non-uniform motion\",\n      \"B. Uniform motion\",\n      \"C. Circular motion\",\n      \"D. Oscillatory motion\"\n    ],\n    correct: 1,\n    explanation: \"Equal time intervals mein &lt;b>equal distances&lt;\/b> travel karna uniform motion ki condition hai. Ismein object constant speed se move karta hai.\"\n  },\n\n  {\n    question: \"5. Ek train straight track par har 10 seconds mein 200 m, 200 m aur 200 m travel karti hai. Train ka motion kaisa hai?\",\n    options: &#91;\n      \"A. Uniform motion\",\n      \"B. Non-uniform motion\",\n      \"C. Rest\",\n      \"D. Random motion\"\n    ],\n    correct: 0,\n    explanation: \"Har equal time interval (10 s) mein equal distance (200 m) travel ho rahi hai, isliye motion &lt;b>uniform&lt;\/b> hai.\"\n  },\n\n  {\n    question: \"6. Ek car straight road par successive equal time intervals mein 20 m, 35 m aur 50 m travel karti hai. Car ke speed ke baare mein kya conclude hoga?\",\n    options: &#91;\n      \"A. Speed decreasing hai\",\n      \"B. Speed constant hai\",\n      \"C. Speed increasing hai\",\n      \"D. Speed zero hai\"\n    ],\n    correct: 2,\n    explanation: \"Equal time intervals mein distances &lt;b>20 \u2192 35 \u2192 50 m&lt;\/b> increase ho rahi hain. Isliye car ki speed &lt;b>increasing&lt;\/b> hai.\"\n  },\n\n  {\n    question: \"7. Agar ek object equal time intervals mein unequal distances travel karta hai, toh uska motion kya kehlata hai?\",\n    options: &#91;\n      \"A. Uniform motion\",\n      \"B. Non-uniform motion\",\n      \"C. Rest\",\n      \"D. Constant motion\"\n    ],\n    correct: 1,\n    explanation: \"Equal time intervals mein &lt;b>unequal distances&lt;\/b> travel karne par object non-uniform motion mein hota hai.\"\n  },\n\n  {\n    question: \"8. Ek cyclist 150 m distance 30 seconds mein cover karta hai. Uski average speed kya hogi?\",\n    options: &#91;\n      \"A. 3 m\/s\",\n      \"B. 5 m\/s\",\n      \"C. 30 m\/s\",\n      \"D. 180 m\/s\"\n    ],\n    correct: 1,\n    explanation: \"Average speed = 150 \u00f7 30 = &lt;b>5 m\/s&lt;\/b>.\"\n  },\n\n  {\n    question: \"9. Uniform straight-line motion mein object ki speed kaisi hoti hai?\",\n    options: &#91;\n      \"A. Constant\",\n      \"B. Continuously increasing\",\n      \"C. Continuously decreasing\",\n      \"D. Kabhi zero aur kabhi infinite\"\n    ],\n    correct: 0,\n    explanation: \"Uniform motion mein object equal time intervals mein equal distances travel karta hai, isliye uski &lt;b>speed constant&lt;\/b> hoti hai.\"\n  },\n\n  {\n    question: \"10. Ancient India mein distance travelled ko time taken se divide karke speed ka concept kis mathematical tradition mein bhi milta hai?\",\n    options: &#91;\n      \"A. Aryabhatiya aur Ganitakaumudi\",\n      \"B. Ramayana aur Mahabharata\",\n      \"C. Arthashastra aur Manusmriti\",\n      \"D. Panchatantra aur Charaka Samhita\"\n    ],\n    correct: 0,\n    explanation: \"Speed ko distance travelled \u00f7 time taken ke roop mein samajhne ka concept &lt;b>Aryabhatiya (5th century CE)&lt;\/b> aur &lt;b>Ganitakaumudi (14th century CE)&lt;\/b> jaise mathematical works mein milta hai.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>${userName}, Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 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>\ud83e\udde0 Science Quiz \u2013 Speed and Velocity&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Speed and Velocity&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>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Do postmen ek-doosre ki taraf 210 yojanas ki distance se walk karna start karte hain. Pehla postman 9 yojanas\/day aur doosra 5 yojanas\/day chalta hai. Dono ek din mein milkar kitni distance cover karenge?\",\n    options: &#91;\n      \"A. 4 yojanas\",\n      \"B. 9 yojanas\",\n      \"C. 14 yojanas\",\n      \"D. 45 yojanas\"\n    ],\n    correct: 2,\n    explanation: \"Dono ek-doosre ki taraf aa rahe hain, isliye combined distance per day = 9 + 5 = &lt;b>14 yojanas\/day&lt;\/b>.\"\n  },\n\n  {\n    question: \"2. Do postmen 210 yojanas apart hain aur unki speeds 9 yojanas\/day aur 5 yojanas\/day hain. Woh kitne din mein milenge?\",\n    options: &#91;\n      \"A. 10 days\",\n      \"B. 12 days\",\n      \"C. 15 days\",\n      \"D. 20 days\"\n    ],\n    correct: 2,\n    explanation: \"Combined speed = 9 + 5 = 14 yojanas\/day.&lt;br>Time = Distance \u00f7 Speed = 210 \u00f7 14 = &lt;b>15 days&lt;\/b>.\"\n  },\n\n  {\n    question: \"3. 15 days mein 9 yojanas\/day ki speed se chalne wala postman kitni distance cover karega?\",\n    options: &#91;\n      \"A. 75 yojanas\",\n      \"B. 105 yojanas\",\n      \"C. 135 yojanas\",\n      \"D. 150 yojanas\"\n    ],\n    correct: 2,\n    explanation: \"Distance = Speed \u00d7 Time = 9 \u00d7 15 = &lt;b>135 yojanas&lt;\/b>.\"\n  },\n\n  {\n    question: \"4. Speed aur velocity mein main difference kya hai?\",\n    options: &#91;\n      \"A. Speed direction batati hai, velocity nahi\",\n      \"B. Speed sirf magnitude batati hai, velocity magnitude ke saath direction bhi batati hai\",\n      \"C. Dono hamesha same physical quantity hain\",\n      \"D. Velocity mein time ka koi role nahi hota\"\n    ],\n    correct: 1,\n    explanation: \"Speed batati hai object &lt;b>kitni fast&lt;\/b> move kar raha hai. Velocity speed ke saath &lt;b>direction of motion&lt;\/b> bhi batati hai.\"\n  },\n\n  {\n    question: \"5. Average velocity ko calculate karne ke liye kaunsi quantity use ki jaati hai?\",\n    options: &#91;\n      \"A. Total distance \u00f7 time interval\",\n      \"B. Displacement \u00f7 time interval\",\n      \"C. Time interval \u00f7 displacement\",\n      \"D. Distance \u00d7 time interval\"\n    ],\n    correct: 1,\n    explanation: \"Average velocity = &lt;b>Displacement \u00f7 Time interval&lt;\/b>. Ismein displacement ki direction bhi consider hoti hai.\"\n  },\n\n  {\n    question: \"6. Ek student 20 m east direction mein 5 seconds mein move karta hai. Uski average velocity kya hogi?\",\n    options: &#91;\n      \"A. 4 m\/s east\",\n      \"B. 4 m\/s west\",\n      \"C. 25 m\/s east\",\n      \"D. 100 m\/s east\"\n    ],\n    correct: 0,\n    explanation: \"Average velocity = Displacement \u00f7 Time = 20 \u00f7 5 = &lt;b>4 m\/s east&lt;\/b>. Direction displacement ke same hoti hai.\"\n  },\n\n  {\n    question: \"7. Straight-line motion mein velocity ki direction ko mathematically kaise indicate kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Sirf unit se\",\n      \"B. Sirf time se\",\n      \"C. + ya \u2212 sign se\",\n      \"D. Sirf mass se\"\n    ],\n    correct: 2,\n    explanation: \"Straight-line motion mein ek direction ko &lt;b>positive (+)&lt;\/b> aur opposite direction ko &lt;b>negative (\u2212)&lt;\/b> sign se represent kiya ja sakta hai.\"\n  },\n\n  {\n    question: \"8. Average speed aur average velocity ki SI unit kya hai?\",\n    options: &#91;\n      \"A. km\/h only\",\n      \"B. metre (m)\",\n      \"C. metre per second (m\/s)\",\n      \"D. second per metre (s\/m)\"\n    ],\n    correct: 2,\n    explanation: \"Average speed aur average velocity dono ki SI unit &lt;b>m\/s&lt;\/b> ya &lt;b>m s\u207b\u00b9&lt;\/b> hai. Inhe commonly km\/h mein bhi express kiya ja sakta hai.\"\n  },\n\n  {\n    question: \"9. \u201cAverage velocity is the average rate of change of position with respect to time.\u201d Is statement ka correct meaning kya hai?\",\n    options: &#91;\n      \"A. Position mein change ko time interval se divide karna\",\n      \"B. Time ko position se divide karna\",\n      \"C. Distance ko mass se divide karna\",\n      \"D. Position aur time ko multiply karna\"\n    ],\n    correct: 0,\n    explanation: \"Average velocity = &lt;b>Change in position (displacement) \u00f7 Corresponding time interval&lt;\/b>. Isliye yeh position ke change ki rate batati hai.\"\n  },\n\n  {\n    question: \"10. Ek car 100 m east direction mein 10 s mein move karti hai. Agar east ko positive direction maana jaye, toh car ki average velocity kya hogi?\",\n    options: &#91;\n      \"A. \u221210 m\/s\",\n      \"B. +10 m\/s\",\n      \"C. +100 m\/s\",\n      \"D. \u2212100 m\/s\"\n    ],\n    correct: 1,\n    explanation: \"Average velocity = 100 \u00f7 10 = &lt;b>10 m\/s&lt;\/b>. East ko positive maana gaya hai, isliye velocity &lt;b>+10 m\/s&lt;\/b> hogi.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES - Motion 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  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 22px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\ninput&#91;type=\"text\"] {\n  padding: 11px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n  margin: 10px 0;\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#scoreList { padding-left: 25px; }\n#result { text-align: center; margin-top: 20px; }\n.progress {\n  text-align: center;\n  color: #555;\n  margin-bottom: 15px;\n  font-weight: bold;\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;h2>\ud83e\udde0 APICAL CLASSES&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">\n    Distance, Displacement, Average Speed &amp; Velocity Quiz\n  &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;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. Sarang ek swimming pool mein 50 m distance ka ek end se doosre end tak jaata hai aur phir wapas starting point par aata hai. Agar total time 50 s hai, toh uski total distance travelled kitni hogi?\",\n    options: &#91;\"A. 0 m\", \"B. 25 m\", \"C. 50 m\", \"D. 100 m\"],\n    correct: 3,\n    explanation: \"Sarang 50 m aage aur 50 m wapas swim karta hai. Total distance = 50 + 50 = &lt;b>100 m&lt;\/b>.\"\n  },\n  {\n    question: \"2. Sarang 50 m aage jaakar same starting point par wapas aata hai. 50 s ke complete motion ke baad uska displacement kya hoga?\",\n    options: &#91;\"A. 100 m\", \"B. 50 m\", \"C. 25 m\", \"D. 0 m\"],\n    correct: 3,\n    explanation: \"Initial aur final position same hai, isliye net displacement &lt;b>0 m&lt;\/b> hai.\"\n  },\n  {\n    question: \"3. Sarang 100 m total distance 50 s mein cover karta hai. Uski average speed kya hogi?\",\n    options: &#91;\"A. 0.5 m\/s\", \"B. 1 m\/s\", \"C. 2 m\/s\", \"D. 50 m\/s\"],\n    correct: 2,\n    explanation: \"Average speed = Total distance \u00f7 Time = 100 \u00f7 50 = &lt;b>2 m\/s&lt;\/b>.\"\n  },\n  {\n    question: \"4. Sarang ka displacement 0 m hai aur total time 50 s hai. Uski average velocity kya hogi?\",\n    options: &#91;\"A. 0 m\/s\", \"B. 1 m\/s\", \"C. 2 m\/s\", \"D. 50 m\/s\"],\n    correct: 0,\n    explanation: \"Average velocity = Displacement \u00f7 Time = 0 \u00f7 50 = &lt;b>0 m\/s&lt;\/b>.\"\n  },\n  {\n    question: \"5. Sarang ke complete swimming motion mein average speed aur average velocity ke values different kyun hain?\",\n    options: &#91;\n      \"A. Kyunki speed direction ke saath calculate hoti hai\",\n      \"B. Kyunki velocity total distance se calculate hoti hai\",\n      \"C. Kyunki Sarang starting point par wapas aa gaya, isliye displacement zero ho gaya\",\n      \"D. Kyunki time interval zero tha\"\n    ],\n    correct: 2,\n    explanation: \"Sarang ne distance travel ki, isliye average speed non-zero hai. Lekin starting point par wapas aane ke kaaran displacement &lt;b>zero&lt;\/b> hai, isliye average velocity zero hai.\"\n  },\n  {\n    question: \"6. Ek object ki average velocity 20 seconds ke large time interval ke liye 5 m\/s hai. Kya uski velocity kisi particular instant par bhi exactly 5 m\/s hona zaroori hai?\",\n    options: &#91;\n      \"A. Haan, hamesha\",\n      \"B. Nahi, zaroori nahi\",\n      \"C. Sirf circular motion mein\",\n      \"D. Sirf rest mein\"\n    ],\n    correct: 1,\n    explanation: \"Large time interval ki &lt;b>average velocity&lt;\/b> aur kisi particular instant ki velocity different ho sakti hain.\"\n  },\n  {\n    question: \"7. Kisi particular instant par object ki velocity ko kya kaha jaata hai?\",\n    options: &#91;\n      \"A. Average speed\",\n      \"B. Average velocity\",\n      \"C. Instantaneous velocity\",\n      \"D. Total displacement\"\n    ],\n    correct: 2,\n    explanation: \"Kisi specific instant par object ki velocity ko &lt;b>instantaneous velocity&lt;\/b> kehte hain.\"\n  },\n  {\n    question: \"8. Jab average velocity calculate karne ka time interval progressively smaller hota jaata hai aur infinitesimally small ho jaata hai, toh average velocity kis quantity ke paas approach karti hai?\",\n    options: &#91;\n      \"A. Total distance\",\n      \"B. Instantaneous velocity\",\n      \"C. Average speed\",\n      \"D. Displacement\"\n    ],\n    correct: 1,\n    explanation: \"Time interval ko bahut chhota karne par average velocity &lt;b>instantaneous velocity&lt;\/b> ke paas approach karti hai.\"\n  },\n  {\n    question: \"9. Moving vehicle ka speedometer kisi particular instant par kya batata hai?\",\n    options: &#91;\n      \"A. Total distance travelled\",\n      \"B. Average velocity only\",\n      \"C. Instantaneous speed ke approximately equal value\",\n      \"D. Total displacement\"\n    ],\n    correct: 2,\n    explanation: \"Speedometer ki reading approximately us instant ki &lt;b>speed&lt;\/b>, yani instantaneous velocity ke magnitude, ke equal hoti hai.\"\n  },\n  {\n    question: \"10. Vehicle ke speedometer ki reading kisi instant par 60 km\/h hai aur tyres jis direction mein point kar rahe hain, wahi vehicle ki motion direction hai. Is information se kya determine kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Sirf total distance\",\n      \"B. Instantaneous velocity ka magnitude aur direction\",\n      \"C. Sirf total displacement\",\n      \"D. Sirf time interval\"\n    ],\n    correct: 1,\n    explanation: \"Speedometer approximately &lt;b>velocity ka magnitude&lt;\/b> batata hai, aur tyres ki direction &lt;b>velocity ki direction&lt;\/b> batati hai. Dono milkar instantaneous velocity describe karte hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    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.findIndex(answer => answer === null);\n\n  if (unanswered !== -1) {\n    alert(\"Please answer all questions before submitting. Question \" + (unanswered + 1) + \" is unanswered.\");\n    currentQuestion = unanswered;\n    showQuestion();\n    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  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  let reviewHTML = \"\";\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\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">\n        ${opt}\n        ${i === correct ? \" \u2713 Correct Answer\" : \"\"}\n        ${selected === i &amp;&amp; selected !== correct ? \" \u2717 Your Answer\" : \"\"}\n      &lt;\/label>`;\n    }).join(\"\");\n\n    reviewHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  container.innerHTML = reviewHTML;\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"progress\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h2>Quiz Completed!&lt;\/h2>\n    &lt;h3>Student: ${escapeHTML(userName)}&lt;\/h3>\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\n  `;\n}\n\nfunction escapeHTML(value) {\n  return 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 = 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}\/${questions.length} (${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\">ch4 part7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES \u2013 Average Acceleration 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.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  margin-bottom: 15px;\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@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&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;\">Topic: Average Acceleration&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    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n    &lt;div id=\"result\" style=\"text-align:center;margin-top:20px;\">&lt;\/div>\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Ek vehicle rest se suddenly move karta hai aur passenger ko jolt feel hota hai. Yeh jolt mainly kis change ko show karta hai?\",\n    options: &#91;\n      \"A. Position ka change\",\n      \"B. Velocity ka change\",\n      \"C. Mass ka change\",\n      \"D. Distance ka change\"\n    ],\n    correct: 1,\n    explanation: \"Vehicle rest se move karte waqt velocity change hoti hai. Isi sudden change in velocity ke kaaran passenger ko jolt feel hota hai.\"\n  },\n  {\n    question: \"2. Average acceleration ko kaise define kiya jaata hai?\",\n    options: &#91;\n      \"A. Total distance \u00f7 time interval\",\n      \"B. Change in displacement \u00f7 distance\",\n      \"C. Change in velocity \u00f7 time interval\",\n      \"D. Time interval \u00f7 change in velocity\"\n    ],\n    correct: 2,\n    explanation: \"Average acceleration = change in velocity \/ time interval.\"\n  },\n  {\n    question: \"3. Ek car ki initial velocity 10 m\/s aur final velocity 30 m\/s hai. Velocity ka yeh change 5 s mein hota hai. Car ki average acceleration kya hogi?\",\n    options: &#91;\n      \"A. 2 m\/s\u00b2\",\n      \"B. 4 m\/s\u00b2\",\n      \"C. 6 m\/s\u00b2\",\n      \"D. 8 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"Average acceleration = (30 \u2212 10) \u00f7 5 = 20 \u00f7 5 = 4 m\/s\u00b2.\"\n  },\n  {\n    question: \"4. Agar kisi object ki velocity 20 m\/s se 8 m\/s ho jaati hai 4 seconds mein, toh average acceleration kya hogi?\",\n    options: &#91;\n      \"A. +3 m\/s\u00b2\",\n      \"B. \u22123 m\/s\u00b2\",\n      \"C. +7 m\/s\u00b2\",\n      \"D. \u22127 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"Average acceleration = (8 \u2212 20) \u00f7 4 = \u221212 \u00f7 4 = \u22123 m\/s\u00b2. Negative sign velocity ke decrease ko show karta hai.\"\n  },\n  {\n    question: \"5. Average acceleration ki SI unit kya hai?\",\n    options: &#91;\n      \"A. m\/s\",\n      \"B. m\",\n      \"C. m\/s\u00b2\",\n      \"D. km\/h\"\n    ],\n    correct: 2,\n    explanation: \"Acceleration velocity ke change ko time se divide karke milti hai, isliye SI unit metre per second squared (m\/s\u00b2) hai.\"\n  },\n  {\n    question: \"6. Straight-line motion mein agar object ki velocity ka magnitude increase ho raha hai, toh average acceleration ki direction kaisi hogi?\",\n    options: &#91;\n      \"A. Velocity ki direction ke same\",\n      \"B. Velocity ki direction ke opposite\",\n      \"C. Hamesha downward\",\n      \"D. Hamesha zero\"\n    ],\n    correct: 0,\n    explanation: \"Jab straight-line motion mein velocity ka magnitude increase hota hai, toh average acceleration velocity ki direction mein hoti hai.\"\n  },\n  {\n    question: \"7. Straight-line motion mein ek car ki speed decrease ho rahi hai. Average acceleration ki direction kya hogi?\",\n    options: &#91;\n      \"A. Velocity ki same direction\",\n      \"B. Velocity ke opposite direction\",\n      \"C. Motion ke perpendicular\",\n      \"D. Hamesha upward\"\n    ],\n    correct: 1,\n    explanation: \"Jab velocity ka magnitude decrease hota hai, toh acceleration ki direction velocity ke opposite hoti hai. Car slow down kar rahi hoti hai.\"\n  },\n  {\n    question: \"8. Ek object ki speed constant hai, lekin uski direction change ho rahi hai. Kya acceleration ho sakti hai?\",\n    options: &#91;\n      \"A. Nahi, kyunki speed constant hai\",\n      \"B. Haan, kyunki velocity mein direction bhi included hoti hai\",\n      \"C. Nahi, kyunki acceleration sirf speed change se hoti hai\",\n      \"D. Sirf object rest mein ho toh\"\n    ],\n    correct: 1,\n    explanation: \"Velocity mein magnitude aur direction dono hote hain. Direction change hone par speed constant rehne ke baad bhi velocity change hoti hai, isliye acceleration ho sakti hai.\"\n  },\n  {\n    question: \"9. Average acceleration kis-kis change ke kaaran ho sakti hai?\",\n    options: &#91;\n      \"A. Sirf velocity ke magnitude ke change se\",\n      \"B. Sirf velocity ki direction ke change se\",\n      \"C. Magnitude, direction, ya dono ke change se\",\n      \"D. Sirf mass ke change se\"\n    ],\n    correct: 2,\n    explanation: \"Acceleration velocity ke change ko represent karti hai. Velocity ka magnitude, direction, ya dono change ho sakte hain.\"\n  },\n  {\n    question: \"10. Ek car 0 km\/h se 100 km\/h tak 10 seconds mein accelerate karti hai. Is situation mein average acceleration find karne ke liye sabse important information kya hai?\",\n    options: &#91;\n      \"A. Sirf car ka mass\",\n      \"B. Initial velocity, final velocity aur time interval\",\n      \"C. Sirf total distance\",\n      \"D. Sirf car ka colour\"\n    ],\n    correct: 1,\n    explanation: \"Average acceleration calculate karne ke liye initial velocity, final velocity aur time interval required hote hain. Formula hai: change in velocity \u00f7 time interval.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n  if (!userName) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;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, 10) : 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  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    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\" 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).toFixed(1);\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 === questions.length ? \"Excellent! All answers are correct.\" :\n      score >= questions.length * 0.6 ? \"Well done! Keep practising.\" :\n      \"Keep learning and try again!\"}&lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#91;];\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,\n    score,\n    total: questions.length,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = &#91;];\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 = scores.map(s => `\n    &lt;li>${escapeHTML(s.name)} - ${s.score}\/${s.total || 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&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Acceleration&lt;\/title>\n\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\n  h2 {\n    text-align: center;\n    color: #1e3c72;\n  }\n\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n&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 Acceleration&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Ek bus 36 km\/h ki velocity se move kar rahi hai. Driver accelerator press karta hai aur 10 s mein velocity 54 km\/h ho jaati hai. Bus ki average acceleration kya hogi?\",\n    options: &#91;\n      \"A. 0.5 m\/s\u00b2\",\n      \"B. 1.5 m\/s\u00b2\",\n      \"C. 5 m\/s\u00b2\",\n      \"D. 18 m\/s\u00b2\"\n    ],\n    correct: 0,\n    explanation: \"36 km\/h = 10 m\/s aur 54 km\/h = 15 m\/s. Average acceleration = (15 \u2212 10) \u00f7 10 = &lt;b>0.5 m\/s\u00b2&lt;\/b>.\"\n  },\n\n  {\n    question: \"2. Usi bus ki velocity accelerator press karne ke baad 10 m\/s se 15 m\/s ho jaati hai. Is case mein acceleration ki direction kya hogi?\",\n    options: &#91;\n      \"A. Velocity ke opposite\",\n      \"B. Velocity ke same direction\",\n      \"C. Hamesha perpendicular\",\n      \"D. Zero direction\"\n    ],\n    correct: 1,\n    explanation: \"Bus ki velocity ka magnitude increase ho raha hai, isliye acceleration &lt;b>velocity ki direction&lt;\/b> mein hogi.\"\n  },\n\n  {\n    question: \"3. Bus 54 km\/h ki velocity se chal rahi hai aur brakes lagane par 5 s mein completely stop ho jaati hai. Bus ki average acceleration kya hogi?\",\n    options: &#91;\n      \"A. +3 m\/s\u00b2\",\n      \"B. \u22123 m\/s\u00b2\",\n      \"C. +15 m\/s\u00b2\",\n      \"D. \u221215 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"54 km\/h = 15 m\/s. Average acceleration = (0 \u2212 15) \u00f7 5 = &lt;b>\u22123 m\/s\u00b2&lt;\/b>. Negative sign batata hai ki acceleration velocity ke opposite direction mein hai.\"\n  },\n\n  {\n    question: \"4. Bus jab 54 km\/h ki velocity se chal rahi ho aur brakes lagne par 5 s mein stop ho jaaye, toh negative acceleration ka kya meaning hai?\",\n    options: &#91;\n      \"A. Bus backward move kar rahi hai\",\n      \"B. Bus ki mass decrease ho rahi hai\",\n      \"C. Acceleration velocity ke opposite direction mein hai\",\n      \"D. Bus ki distance zero ho gayi hai\"\n    ],\n    correct: 2,\n    explanation: \"Negative sign chosen positive direction ke opposite acceleration ko show karta hai. Yahan bus &lt;b>slow down&lt;\/b> kar rahi hai.\"\n  },\n\n  {\n    question: \"5. Ek bus straight highway par 80 km\/h ki constant velocity se move kar rahi hai. Bus ki acceleration kya hogi?\",\n    options: &#91;\n      \"A. 80 m\/s\u00b2\",\n      \"B. 8 m\/s\u00b2\",\n      \"C. 1 m\/s\u00b2\",\n      \"D. 0 m\/s\u00b2\"\n    ],\n    correct: 3,\n    explanation: \"Acceleration velocity ke change par depend karti hai. &lt;b>Constant velocity&lt;\/b> mein velocity change nahi hoti, isliye acceleration &lt;b>zero&lt;\/b> hoti hai.\"\n  },\n\n  {\n    question: \"6. Kaunsa statement acceleration ke baare mein correct hai?\",\n    options: &#91;\n      \"A. Fast-moving object ki acceleration hamesha high hoti hai\",\n      \"B. Slow-moving object ki acceleration hamesha zero hoti hai\",\n      \"C. Acceleration velocity ke change hone ki rate par depend karti hai\",\n      \"D. Acceleration sirf object ke mass par depend karti hai\"\n    ],\n    correct: 2,\n    explanation: \"Object kitni fast move kar raha hai, yeh alone acceleration decide nahi karta. Acceleration batati hai ki &lt;b>velocity kitni quickly change ho rahi hai&lt;\/b>.\"\n  },\n\n  {\n    question: \"7. Ek object ko height se drop kiya jaata hai. Har successive 1 second mein uski velocity 9.8 m\/s se increase hoti hai. Is object ki average acceleration kya hogi?\",\n    options: &#91;\n      \"A. 4.9 m\/s\u00b2\",\n      \"B. 9.8 m\/s\u00b2\",\n      \"C. 19.6 m\/s\u00b2\",\n      \"D. 98 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"Har 1 second mein velocity 9.8 m\/s se increase ho rahi hai. Isliye average acceleration = &lt;b>9.8 m\/s\u00b2&lt;\/b>.\"\n  },\n\n  {\n    question: \"8. Dropped object ke liye 0\u20131 s, 1\u20132 s, 2\u20133 s aur 3\u20134 s ke intervals mein average acceleration respectively \u22129.8 m\/s\u00b2, \u22129.8 m\/s\u00b2, \u22129.8 m\/s\u00b2 aur \u22129.8 m\/s\u00b2 milti hai. Isse kya conclude hota hai?\",\n    options: &#91;\n      \"A. Acceleration changing hai\",\n      \"B. Acceleration constant hai\",\n      \"C. Object rest mein hai\",\n      \"D. Velocity constant hai\"\n    ],\n    correct: 1,\n    explanation: \"Har successive 1-second interval mein acceleration ka same value &lt;b>\u22129.8 m\/s\u00b2&lt;\/b> hai, isliye acceleration constant hai.\"\n  },\n\n  {\n    question: \"9. Ek object ko Earth ke gravitational force ke kaaran downward drop kiya jaata hai aur downward direction ko positive maana gaya hai. Agar velocity downward direction mein increase ho rahi hai, toh acceleration ki direction kya hogi?\",\n    options: &#91;\n      \"A. Upward\",\n      \"B. Downward\",\n      \"C. Horizontal\",\n      \"D. Zero\"\n    ],\n    correct: 1,\n    explanation: \"Velocity ka magnitude downward direction mein increase ho raha hai, isliye acceleration bhi &lt;b>downward direction&lt;\/b> mein hogi. Is acceleration ko gravitational acceleration, &lt;b>g&lt;\/b>, kehte hain.\"\n  },\n\n  {\n    question: \"10. Motion problem solve karte waqt agar origin aur positive direction choose kar li gayi hai, toh us choice ke baare mein kya rule follow karna chahiye?\",\n    options: &#91;\n      \"A. Har calculation ke baad direction change kar sakte hain\",\n      \"B. Sirf positive direction change karni chahiye\",\n      \"C. Chosen origin aur positive direction ko problem solve karte waqt change nahi karna chahiye\",\n      \"D. Origin ki zaroorat hi nahi hoti\"\n    ],\n    correct: 2,\n    explanation: \"Origin aur positive direction &lt;b>convenience ke according choose&lt;\/b> kar sakte hain, lekin choose karne ke baad complete problem mein &lt;b>same convention maintain&lt;\/b> karna chahiye.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n\n  userAnswers&#91;currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n\n  saveAnswer();\n\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>${userName}, Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Graphical Representation 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}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 10px 0; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Graphical Representation 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. Motion ko graphically represent karne ka main advantage kya hai?\",\n    options: &#91;\n      \"A. Sirf object ka mass find karna\",\n      \"B. Position, velocity aur acceleration mein time ke saath changes ko visually represent karna\",\n      \"C. Sirf distance ko measure karna\",\n      \"D. Sirf object ka colour identify karna\"\n    ],\n    correct: 1,\n    explanation: \"Graphs motion ko visual form mein show karte hain aur position, velocity aur acceleration ke changes ko samajhne mein help karte hain.\"\n  },\n  {\n    question: \"2. Table mein ek vehicle ki position 0 s par 0 m, 1 s par 20 m, 2 s par 40 m aur 3 s par 60 m hai. Position-time graph banate waqt time ko kis axis par represent kiya jaayega?\",\n    options: &#91;\n      \"A. Y-axis\",\n      \"B. Z-axis\",\n      \"C. X-axis\",\n      \"D. Origin par\"\n    ],\n    correct: 2,\n    explanation: \"Position-time graph mein time X-axis par aur position Y-axis par represent ki jaati hai.\"\n  },\n  {\n    question: \"3. Position-time graph mein vertical Y-axis par kya represent kiya jaayega jab horizontal X-axis par time represent kiya gaya ho?\",\n    options: &#91;\n      \"A. Position\",\n      \"B. Time\",\n      \"C. Mass\",\n      \"D. Acceleration only\"\n    ],\n    correct: 0,\n    explanation: \"Position-time graph mein generally time X-axis par aur position Y-axis par li jaati hai.\"\n  },\n  {\n    question: \"4. Graph paper par do perpendicular lines X-axis aur Y-axis ko draw kiya gaya hain. In dono lines ka intersection point kya kehlata hai?\",\n    options: &#91;\n      \"A. Scale\",\n      \"B. Origin O\",\n      \"C. Slope\",\n      \"D. Position point\"\n    ],\n    correct: 1,\n    explanation: \"X-axis aur Y-axis ka intersection point origin O kehlata hai.\"\n  },\n  {\n    question: \"5. Vehicle ke position-time graph ke liye X-axis par 5 divisions = 1 s aur Y-axis par 5 divisions = 20 m ka scale choose kiya gaya. 3 s aur 60 m ko represent karne ke liye kaunsa point plot karna hoga?\",\n    options: &#91;\n      \"A. (3 s, 20 m)\",\n      \"B. (20 s, 3 m)\",\n      \"C. (3 s, 60 m)\",\n      \"D. (60 s, 3 m)\"\n    ],\n    correct: 2,\n    explanation: \"Graph par point ko (time, position) ke form mein plot kiya jaata hai. Yahan time = 3 s aur position = 60 m.\"\n  },\n  {\n    question: \"6. Table mein vehicle ki position 0 s par 0 m di gayi hai. Position-time graph mein is information ko kis point se represent kiya jaayega?\",\n    options: &#91;\n      \"A. Origin O\",\n      \"B. X-axis par 20 m\",\n      \"C. Y-axis par 1 s\",\n      \"D. (20, 20) point\"\n    ],\n    correct: 0,\n    explanation: \"Time = 0 s aur position = 0 m dono zero hain, isliye point origin O par plot hoga.\"\n  },\n  {\n    question: \"7. Kisi graph par time = 1 s aur position = 20 m ka point plot karna hai. Is point ko accurately locate karne ke liye kya kiya jaata hai?\",\n    options: &#91;\n      \"A. Sirf X-axis par 20 m mark karte hain\",\n      \"B. 1 s se Y-axis ke parallel aur 20 m se X-axis ke parallel lines draw karke intersection locate karte hain\",\n      \"C. Sirf Y-axis par 1 s mark karte hain\",\n      \"D. Origin ko hata dete hain\"\n    ],\n    correct: 1,\n    explanation: \"X-axis par 1 s aur Y-axis par 20 m locate karke corresponding parallel lines draw karte hain. Dono lines ka intersection required point hota hai.\"\n  },\n  {\n    question: \"8. Vehicle ke data mein time 0, 1, 2, 3, 4, 5, 6 s ke corresponding positions 0, 20, 40, 60, 80, 100, 120 m hain. Sabhi points ko plot karke join karne par graph kaisa milega?\",\n    options: &#91;\n      \"A. Straight line\",\n      \"B. Circle\",\n      \"C. Zig-zag line\",\n      \"D. Closed curve\"\n    ],\n    correct: 0,\n    explanation: \"Har equal time interval mein position 20 m se increase ho rahi hai. Isliye plotted points ek straight line form karte hain.\"\n  },\n  {\n    question: \"9. Graph banate waqt scale choose karne ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Graph ko bina data ke banana\",\n      \"B. Data ko available graph-paper space mein accurately aur conveniently represent karna\",\n      \"C. Sirf X-axis ko bada karna\",\n      \"D. Sirf Y-axis ko remove karna\"\n    ],\n    correct: 1,\n    explanation: \"Suitable scale se data ko graph paper par accurately, clearly aur conveniently plot kiya ja sakta hai.\"\n  },\n  {\n    question: \"10. Position-time graph banane ka correct sequence kaunsa hai?\",\n    options: &#91;\n      \"A. Points plot karo \u2192 axes hatao \u2192 scale choose karo \u2192 line draw karo\",\n      \"B. Axes draw karo \u2192 quantities decide karo \u2192 suitable scale choose karo \u2192 values mark karo \u2192 points plot karo \u2192 points join karo\",\n      \"C. Scale choose karo \u2192 graph paper hatao \u2192 points guess karo\",\n      \"D. Sirf X-axis draw karke graph complete karo\"\n    ],\n    correct: 1,\n    explanation: \"Position-time graph banane ke liye pehle axes, phir quantities aur scale decide karte hain, values mark karke points plot karte hain aur finally points ko join karke graph banate hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    return alert(\"Please enter your name.\");\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\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    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>APICAL CLASSES - Position-Time Graph 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: 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  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: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\ninput&#91;type=\"text\"] {\n  padding: 11px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n  margin: 10px 0;\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  text-align: center;\n  color: #555;\n  margin-bottom: 15px;\n  font-weight: bold;\n}\n#result { text-align: center; margin-top: 20px; }\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;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">\n    Position-Time Graph Quiz\n  &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;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 vehicle rest se start karta hai aur uski positions 0 s par 0 m, 2 s par 1 m, 4 s par 4 m, 6 s par 9 m, 8 s par 16 m, 10 s par 25 m aur 12 s par 36 m hain. In points ko position-time graph par plot karne par graph kaisa hoga?\",\n    options: &#91;\n      \"A. Straight line\",\n      \"B. Curved line\",\n      \"C. Horizontal line\",\n      \"D. Vertical line\"\n    ],\n    correct: 1,\n    explanation: \"Equal time intervals mein position increase hone ki amount same nahi hai. Isliye points &lt;b>straight line par nahi&lt;\/b>, balki curve par aate hain.\"\n  },\n  {\n    question: \"2. Position-time graph mein agar graph ek straight line ho, toh object ke motion ke baare mein kya pata chalta hai?\",\n    options: &#91;\n      \"A. Velocity constant hai\",\n      \"B. Velocity continuously increase ho rahi hai\",\n      \"C. Object rest mein hai\",\n      \"D. Acceleration hamesha increasing hai\"\n    ],\n    correct: 0,\n    explanation: \"Straight-line position-time graph ka &lt;b>slope constant&lt;\/b> hota hai. Isliye object constant velocity se move karta hai.\"\n  },\n  {\n    question: \"3. Position-time graph mein agar graph curved ho, toh generally object ke motion ko kaise describe kiya jaata hai?\",\n    options: &#91;\n      \"A. Constant velocity motion\",\n      \"B. Accelerated motion\",\n      \"C. Rest only\",\n      \"D. Zero displacement motion\"\n    ],\n    correct: 1,\n    explanation: \"Curved position-time graph ka slope change hota rehta hai. Iska matlab velocity constant nahi hai, yani object generally &lt;b>accelerated motion&lt;\/b> mein hai.\"\n  },\n  {\n    question: \"4. Ek position-time graph mein object 2\u20133 s ke interval mein 20 m displacement aur 5\u20136 s ke interval mein bhi 20 m displacement karta hai. Equal time intervals mein equal displacement hone se kya indicate hota hai?\",\n    options: &#91;\n      \"A. Velocity ka magnitude constant hai\",\n      \"B. Velocity zero hai\",\n      \"C. Velocity continuously decrease ho rahi hai\",\n      \"D. Object directionless hai\"\n    ],\n    correct: 0,\n    explanation: \"Equal time intervals mein equal displacement ka magnitude &lt;b>constant velocity&lt;\/b> ko indicate karta hai.\"\n  },\n  {\n    question: \"5. Ek position-time graph mein 4\u20136 s ke interval mein displacement 5 m hai aur 10\u201312 s ke interval mein displacement 15 m hai. Dono intervals equal duration ke hain. Isse kya conclude hoga?\",\n    options: &#91;\n      \"A. Velocity ka magnitude decrease ho raha hai\",\n      \"B. Velocity ka magnitude increase ho raha hai\",\n      \"C. Velocity constant hai\",\n      \"D. Object rest mein hai\"\n    ],\n    correct: 1,\n    explanation: \"Dono time intervals 2 s ke hain, lekin later interval mein displacement zyada hai. Isliye &lt;b>velocity ka magnitude increase&lt;\/b> ho raha hai.\"\n  },\n  {\n    question: \"6. Position-time graph se kisi particular instant par object ki kaunsi information directly obtain ki ja sakti hai?\",\n    options: &#91;\n      \"A. Object ka mass\",\n      \"B. Object ki position\",\n      \"C. Object ka temperature\",\n      \"D. Object ka volume\"\n    ],\n    correct: 1,\n    explanation: \"Position-time graph directly batata hai ki &lt;b>given time par object kis position par hai&lt;\/b>.\"\n  },\n  {\n    question: \"7. Position-time graph mein do points A aur B ke corresponding positions s\u2081 = 40 m aur s\u2082 = 80 m hain. Unke corresponding times t\u2081 = 2 s aur t\u2082 = 4 s hain. A se B ke beech average velocity ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. 10 m\/s\",\n      \"B. 20 m\/s\",\n      \"C. 40 m\/s\",\n      \"D. 60 m\/s\"\n    ],\n    correct: 1,\n    explanation: \"Average velocity = Change in position \u00f7 Change in time = (80 \u2212 40) \u00f7 (4 \u2212 2) = 40 \u00f7 2 = &lt;b>20 m\/s&lt;\/b>.\"\n  },\n  {\n    question: \"8. Position-time graph mein line AB ka slope kis physical quantity ke baare mein information deta hai?\",\n    options: &#91;\n      \"A. Mass\",\n      \"B. Average velocity\",\n      \"C. Force\",\n      \"D. Temperature\"\n    ],\n    correct: 1,\n    explanation: \"Position-time graph ka slope = Change in position \u00f7 Change in time, jo &lt;b>average velocity&lt;\/b> ko represent karta hai.\"\n  },\n  {\n    question: \"9. Position-time graph mein line AB ke liye BC = 40 m aur CA = 2 s hai. Graph ki slope aur average velocity ka magnitude kya hoga?\",\n    options: &#91;\n      \"A. 10 m\/s\",\n      \"B. 20 m\/s\",\n      \"C. 40 m\/s\",\n      \"D. 80 m\/s\"\n    ],\n    correct: 1,\n    explanation: \"Slope = BC \u00f7 CA = 40 \u00f7 2 = &lt;b>20 m\/s&lt;\/b>. Position-time graph mein yahi average velocity ka magnitude deta hai.\"\n  },\n  {\n    question: \"10. Position-time graph ka slope physically kya represent karta hai?\",\n    options: &#91;\n      \"A. X-axis ki quantity ke change ke respect mein Y-axis ki quantity ke change ki rate\",\n      \"B. Sirf total distance\",\n      \"C. Object ka mass per unit time\",\n      \"D. Sirf acceleration\"\n    ],\n    correct: 0,\n    explanation: \"Graph ka slope batata hai ki &lt;b>Y-axis wali physical quantity X-axis wali quantity ke respect mein kitni rapidly change ho rahi hai&lt;\/b>. Position-time graph mein yeh average velocity deta 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.findIndex(answer => answer === null);\n\n  if (unanswered !== -1) {\n    alert(\"Please answer all questions before submitting. Question \" + (unanswered + 1) + \" is unanswered.\");\n    currentQuestion = unanswered;\n    showQuestion();\n    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 showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  let reviewHTML = \"\";\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\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">\n        ${opt}\n        ${i === correct ? \" \u2713 Correct Answer\" : \"\"}\n        ${selected === i &amp;&amp; selected !== correct ? \" \u2717 Your Answer\" : \"\"}\n      &lt;\/label>`;\n    }).join(\"\");\n\n    reviewHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  container.innerHTML = reviewHTML;\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"progress\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h2>Quiz Completed!&lt;\/h2>\n    &lt;h3>Student: ${escapeHTML(userName)}&lt;\/h3>\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\n  `;\n}\n\nfunction escapeHTML(value) {\n  return 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 = 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}\/${questions.length} (${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\">ch4 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>APICAL CLASSES \u2013 Position-Time and Velocity-Time Graphs 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.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  margin-bottom: 15px;\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@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 \u2013 SCIENCE QUIZ&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">\n    Topic: Position-Time and Velocity-Time Graphs\n  &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\" 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 position-time graph mein vehicle ki position 40 m par constant rehti hai aur time ke saath change nahi hoti. Vehicle ki motion kya hai?\",\n    options: &#91;\n      \"A. Vehicle constant velocity se move kar raha hai\",\n      \"B. Vehicle accelerated motion mein hai\",\n      \"C. Vehicle rest mein hai\",\n      \"D. Vehicle ki velocity continuously increase ho rahi hai\"\n    ],\n    correct: 2,\n    explanation: \"Position time ke saath change nahi ho rahi, isliye vehicle 40 m position par stationary hai.\"\n  },\n  {\n    question: \"2. Position-time graph mein agar line time-axis ke parallel ho, toh iska kya meaning hota hai?\",\n    options: &#91;\n      \"A. Object constant velocity se move kar raha hai\",\n      \"B. Object stationary hai\",\n      \"C. Object ki velocity continuously increase ho rahi hai\",\n      \"D. Object ki acceleration maximum hai\"\n    ],\n    correct: 1,\n    explanation: \"Time badhne ke baad bhi position same rahe toh object rest mein hota hai. Isliye graph time-axis ke parallel hota hai.\"\n  },\n  {\n    question: \"3. Do objects A aur B ke position-time graphs same time interval ke liye diye gaye hain. B ki line A se zyada steep hai. Kis object ki average velocity ka magnitude greater hoga?\",\n    options: &#91;\n      \"A. A\",\n      \"B. B\",\n      \"C. Dono ki same\",\n      \"D. Dono ki zero\"\n    ],\n    correct: 1,\n    explanation: \"Position-time graph ka slope average velocity batata hai. B ki line steeper hai, isliye B ki velocity ka magnitude greater hai.\"\n  },\n  {\n    question: \"4. Do objects A aur B same time interval mein move karte hain. A ka displacement 30 m aur B ka displacement 60 m hai. Kis object ki average velocity ka magnitude greater hoga?\",\n    options: &#91;\n      \"A. A\",\n      \"B. B\",\n      \"C. Dono equal\",\n      \"D. Information insufficient\"\n    ],\n    correct: 1,\n    explanation: \"Same time interval mein jis object ka displacement greater hai, uski average velocity ka magnitude bhi greater hoga. B ka displacement 60 m hai.\"\n  },\n  {\n    question: \"5. Velocity-time graph kya represent karta hai?\",\n    options: &#91;\n      \"A. Position ka change with time\",\n      \"B. Velocity ka change with time\",\n      \"C. Distance ka change with mass\",\n      \"D. Acceleration ka change with distance\"\n    ],\n    correct: 1,\n    explanation: \"Velocity-time graph object ki velocity aur time ke relationship ko show karta hai.\"\n  },\n  {\n    question: \"6. Ek car straight highway par constant velocity 20 m\/s se move kar rahi hai. Uska velocity-time graph kaisa hoga?\",\n    options: &#91;\n      \"A. Time-axis ke parallel straight line\",\n      \"B. Vertical straight line\",\n      \"C. Curved line\",\n      \"D. Downward sloping line\"\n    ],\n    correct: 0,\n    explanation: \"Constant velocity ka matlab time ke saath velocity change nahi ho rahi. Isliye velocity-time graph X-axis ke parallel straight line hota hai.\"\n  },\n  {\n    question: \"7. Constant velocity se move karne wali car ke velocity-time graph mein acceleration kya hogi?\",\n    options: &#91;\n      \"A. Zero\",\n      \"B. 5 m\/s\u00b2\",\n      \"C. 20 m\/s\u00b2\",\n      \"D. Infinite\"\n    ],\n    correct: 0,\n    explanation: \"Acceleration velocity ke change ki rate hai. Constant velocity mein velocity change nahi hoti, isliye acceleration 0 hoti hai.\"\n  },\n  {\n    question: \"8. Ek car rest se start karti hai aur velocity time ke saath uniformly increase hoti hai. Uska velocity-time graph ek upward straight line hai. Is motion ke baare mein kya correct hai?\",\n    options: &#91;\n      \"A. Constant velocity hai\",\n      \"B. Constant acceleration hai\",\n      \"C. Acceleration zero hai\",\n      \"D. Velocity decreasing hai\"\n    ],\n    correct: 1,\n    explanation: \"Velocity equal time intervals mein uniformly increase kar rahi hai, isliye acceleration constant hai.\"\n  },\n  {\n    question: \"9. Ek car ki velocity time ke saath uniformly decrease hoti hai aur velocity-time graph downward sloping straight line hai. Acceleration ki direction kaisi hogi?\",\n    options: &#91;\n      \"A. Velocity ke same direction\",\n      \"B. Velocity ke opposite direction\",\n      \"C. Hamesha upward\",\n      \"D. Acceleration zero hogi\"\n    ],\n    correct: 1,\n    explanation: \"Jab velocity ka magnitude decrease hota hai, acceleration velocity ke opposite direction mein hoti hai.\"\n  },\n  {\n    question: \"10. Velocity-time graph mein ek straight line X-axis ke parallel hai aur velocity 15 m\/s par constant hai. Is graph se kya conclude hoga?\",\n    options: &#91;\n      \"A. Object rest mein hai\",\n      \"B. Object 15 m\/s ki constant velocity se move kar raha hai\",\n      \"C. Object ki velocity 15 m\/s\u00b2 se increase ho rahi hai\",\n      \"D. Object ki acceleration continuously increase ho rahi hai\"\n    ],\n    correct: 1,\n    explanation: \"X-axis ke parallel velocity-time line ka matlab velocity constant hai. Yahan velocity 15 m\/s hai aur acceleration 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    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;p style=\"color:#555;\">Question ${currentQuestion + 1} of ${questions.length}&lt;\/p>\n\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\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] = 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    const correct = q.correct;\n\n    const optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).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).toFixed(1);\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>${\n      score === questions.length\n        ? \"Excellent! All answers are correct.\"\n        : score >= questions.length * 0.6\n        ? \"Well done! Keep practising.\"\n        : \"Keep learning and try again!\"\n    }&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,\n    score,\n    total: questions.length,\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 = scores.map(s => `\n    &lt;li>${escapeHTML(s.name)} - ${s.score}\/${s.total || 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\">ch4 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>Velocity-Time Graph Quiz | APICAL CLASSES&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: 15px 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: 12px;\n  margin-top: 10px;\n  margin-bottom: 15px;\n  border-left: 5px solid #2a5298;\n  border-radius: 5px;\n  line-height: 1.6;\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#userName {\n  padding: 10px;\n  width: 90%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n}\n#result { text-align: center; margin-top: 20px; }\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 Velocity-Time Graph Quiz&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">APICAL CLASSES&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. Velocity-time graph se velocity ke alawa kaunsi physical quantities calculate ki ja sakti hain?\",\n  options: &#91;\n    \"A. Mass aur density\",\n    \"B. Acceleration aur displacement\",\n    \"C. Force aur pressure\",\n    \"D. Volume aur temperature\"\n  ],\n  correct: 1,\n  explanation: \"Velocity-time graph ka slope acceleration deta hai, aur graph ke neeche ka area displacement deta hai.\"\n},\n{\n  question: \"2. Velocity-time graph ki straight line ka slope kya represent karta hai?\",\n  options: &#91;\n    \"A. Distance\",\n    \"B. Displacement\",\n    \"C. Acceleration\",\n    \"D. Position\"\n  ],\n  correct: 2,\n  explanation: \"Slope = change in velocity \/ change in time, yani acceleration.\"\n},\n{\n  question: \"3. Agar velocity-time graph X-axis ke parallel straight line ho, toh uska slope kya hoga?\",\n  options: &#91;\n    \"A. Zero\",\n    \"B. One\",\n    \"C. Maximum\",\n    \"D. Negative\"\n  ],\n  correct: 0,\n  explanation: \"X-axis ke parallel line ki height change nahi hoti, isliye slope zero hota hai. Iska matlab velocity constant aur acceleration zero hai.\"\n},\n{\n  question: \"4. Ek velocity-time graph mein velocity 5 m\/s se 10 m\/s ho jaati hai 10 s se 20 s ke beech. Average acceleration ka magnitude kya hoga?\",\n  options: &#91;\n    \"A. 0.25 m\/s\u00b2\",\n    \"B. 0.5 m\/s\u00b2\",\n    \"C. 1.5 m\/s\u00b2\",\n    \"D. 2 m\/s\u00b2\"\n  ],\n  correct: 1,\n  explanation: \"Acceleration = (10 \u2212 5) \/ (20 \u2212 10) = 5\/10 = 0.5 m\/s\u00b2.\"\n},\n{\n  question: \"5. Agar velocity-time graph mein velocity time ke saath decrease ho rahi hai, toh acceleration ka sign generally kya hoga, jab positive direction velocity ki direction mein li gayi ho?\",\n  options: &#91;\n    \"A. Positive\",\n    \"B. Zero\",\n    \"C. Negative\",\n    \"D. Infinite\"\n  ],\n  correct: 2,\n  explanation: \"Velocity decrease hone par acceleration velocity ke opposite direction mein hoti hai, isliye sign negative hota hai.\"\n},\n{\n  question: \"6. Velocity-time graph aur time-axis ke beech enclosed area kya represent karta hai?\",\n  options: &#91;\n    \"A. Acceleration\",\n    \"B. Displacement\",\n    \"C. Speed\",\n    \"D. Force\"\n  ],\n  correct: 1,\n  explanation: \"Velocity-time graph ke neeche ka area = displacement for that time interval.\"\n},\n{\n  question: \"7. Ek car 20 m\/s ki constant velocity se 6 s tak move karti hai. Velocity-time graph ke neeche ka area kitna hoga?\",\n  options: &#91;\n    \"A. 26 m\",\n    \"B. 60 m\",\n    \"C. 120 m\",\n    \"D. 240 m\"\n  ],\n  correct: 2,\n  explanation: \"Area = velocity \u00d7 time = 20 \u00d7 6 = 120 m. Ye car ka displacement hai.\"\n},\n{\n  question: \"8. Ek car 10 s se 20 s ke beech move karti hai. Is interval mein velocity 5 m\/s se 10 m\/s tak uniformly increase hoti hai. Velocity-time graph ke neeche ka area 10\u201320 s ke beech kitna displacement show karega?\",\n  options: &#91;\n    \"A. 50 m\",\n    \"B. 75 m\",\n    \"C. 100 m\",\n    \"D. 150 m\"\n  ],\n  correct: 1,\n  explanation: \"Area = rectangle + triangle = (5 \u00d7 10) + \u00bd \u00d7 10 \u00d7 5 = 50 + 25 = 75 m.\"\n},\n{\n  question: \"9. Velocity-time graph mein kisi time interval ke liye graph ke neeche area negative aaye, toh iska kya indication hoga?\",\n  options: &#91;\n    \"A. Displacement ki direction negative hai\",\n    \"B. Acceleration hamesha zero hai\",\n    \"C. Object rest mein hai\",\n    \"D. Distance negative hai\"\n  ],\n  correct: 0,\n  explanation: \"Velocity ka negative sign displacement ki direction ko indicate karta hai. Isliye negative area negative displacement show karta hai.\"\n},\n{\n  question: \"10. Velocity-time graph se acceleration aur displacement nikalne ke liye respectively kya use kiya jaata hai?\",\n  options: &#91;\n    \"A. Area aur slope\",\n    \"B. Slope aur area\",\n    \"C. Height aur slope\",\n    \"D. Height aur area\"\n  ],\n  correct: 1,\n  explanation: \"Velocity-time graph ka slope \u2192 acceleration aur graph ke neeche ka area \u2192 displacement deta 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  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;p style=\"text-align:right;color:#555;\">\n      Question ${currentQuestion + 1} of ${questions.length}\n    &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  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 (submitted) 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  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\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\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\" style=\"display:block;\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;q.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>Congratulations, ${escapeHTML(userName)}!&lt;\/h3>\n    &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n    &lt;p>${score >= 8 ? \"Excellent Work!\" : score >= 5 ? \"Good Effort! Keep Practising.\" : \"Keep Learning and Try Again!\"}&lt;\/p>\n  `;\n}\n\nfunction escapeHTML(str) {\n  return str.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 = 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(String(s.name))} - ${s.score}\/10 (${escapeHTML(String(s.date))})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 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;title>\ud83e\udde0 Science Quiz \u2013 Kinematic Equations&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; line-height: 1.6; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n  .controls { text-align: center; margin-top: 15px; }\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: 60%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n  }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n&lt;div class=\"quiz-container\">\n  &lt;h2>\ud83e\udde0 Science Quiz \u2013 Kinematic Equations&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\nconst questions = &#91;\n  {\n    question: \"1. Kinematic equations ka use kis type ke motion ko analyse karne ke liye kiya jaata hai?\",\n    options: &#91;\n      \"A. Circular motion with changing acceleration\",\n      \"B. Straight-line motion with constant acceleration\",\n      \"C. Random motion without acceleration\",\n      \"D. Circular motion with zero velocity\"\n    ],\n    correct: 1,\n    explanation: \"Kinematic equations specifically &lt;b>straight-line motion with constant acceleration&lt;\/b> ko describe karti hain.\"\n  },\n  {\n    question: \"2. Ek object ki initial velocity 5 m\/s hai aur acceleration 2 m\/s\u00b2 hai. 4 s ke baad final velocity kya hogi?\",\n    options: &#91;\n      \"A. 7 m\/s\",\n      \"B. 10 m\/s\",\n      \"C. 13 m\/s\",\n      \"D. 15 m\/s\"\n    ],\n    correct: 2,\n    explanation: \"v = u + at = 5 + (2 \u00d7 4) = &lt;b>13 m\/s&lt;\/b>.\"\n  },\n  {\n    question: \"3. Equation v = u + at mein \u2018u\u2019 kya represent karta hai?\",\n    options: &#91;\n      \"A. Final velocity\",\n      \"B. Initial velocity\",\n      \"C. Acceleration\",\n      \"D. Displacement\"\n    ],\n    correct: 1,\n    explanation: \"Equation mein &lt;b>u initial velocity&lt;\/b>, v final velocity, a acceleration aur t time interval ko represent karta hai.\"\n  },\n  {\n    question: \"4. Ek object rest se start karta hai. Uski acceleration 3 m\/s\u00b2 hai. 5 s mein woh kitna displacement cover karega?\",\n    options: &#91;\n      \"A. 15 m\",\n      \"B. 30 m\",\n      \"C. 37.5 m\",\n      \"D. 45 m\"\n    ],\n    correct: 2,\n    explanation: \"Rest se start hone par u = 0.&lt;br>s = ut + \u00bdat\u00b2&lt;br>= 0 + \u00bd \u00d7 3 \u00d7 5\u00b2&lt;br>= &lt;b>37.5 m&lt;\/b>.\"\n  },\n  {\n    question: \"5. Equation s = ut + \u00bdat\u00b2 mein \u2018s\u2019 kis physical quantity ko represent karta hai?\",\n    options: &#91;\n      \"A. Speed\",\n      \"B. Displacement\",\n      \"C. Final velocity\",\n      \"D. Time\"\n    ],\n    correct: 1,\n    explanation: \"Is kinematic equation mein &lt;b>s displacement&lt;\/b> ko represent karta hai.\"\n  },\n  {\n    question: \"6. Ek car ki initial velocity 10 m\/s hai. Acceleration 2 m\/s\u00b2 hai aur car 5 s tak accelerate karti hai. Uska displacement kitna hoga?\",\n    options: &#91;\n      \"A. 50 m\",\n      \"B. 60 m\",\n      \"C. 75 m\",\n      \"D. 100 m\"\n    ],\n    correct: 2,\n    explanation: \"s = ut + \u00bdat\u00b2&lt;br>= (10 \u00d7 5) + \u00bd \u00d7 2 \u00d7 25&lt;br>= 50 + 25 = &lt;b>75 m&lt;\/b>.\"\n  },\n  {\n    question: \"7. Kinematic equation v\u00b2 = u\u00b2 + 2as mein kaunsi physical quantity directly present nahi hai?\",\n    options: &#91;\n      \"A. Initial velocity\",\n      \"B. Final velocity\",\n      \"C. Time\",\n      \"D. Acceleration\"\n    ],\n    correct: 2,\n    explanation: \"Is equation mein &lt;b>u, v, a aur s&lt;\/b> hain, lekin &lt;b>time t directly present nahi hai&lt;\/b>.\"\n  },\n  {\n    question: \"8. Ek object 4 m\/s ki initial velocity se move karta hai aur 3 m\/s\u00b2 ki constant acceleration ke saath 2 s tak move karta hai. Final velocity kya hogi?\",\n    options: &#91;\n      \"A. 6 m\/s\",\n      \"B. 8 m\/s\",\n      \"C. 10 m\/s\",\n      \"D. 12 m\/s\"\n    ],\n    correct: 2,\n    explanation: \"v = u + at = 4 + (3 \u00d7 2) = &lt;b>10 m\/s&lt;\/b>.\"\n  },\n  {\n    question: \"9. Ek object ki initial velocity 10 m\/s, final velocity 20 m\/s aur displacement 75 m hai. Acceleration kitni hogi?\",\n    options: &#91;\n      \"A. 1 m\/s\u00b2\",\n      \"B. 2 m\/s\u00b2\",\n      \"C. 3 m\/s\u00b2\",\n      \"D. 4 m\/s\u00b2\"\n    ],\n    correct: 1,\n    explanation: \"v\u00b2 = u\u00b2 + 2as&lt;br>400 = 100 + 2 \u00d7 a \u00d7 75&lt;br>300 = 150a&lt;br>a = &lt;b>2 m\/s\u00b2&lt;\/b>.\"\n  },\n  {\n    question: \"10. Kinematic equations ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Sirf object ka mass calculate karna\",\n      \"B. Motion ke future position ya velocity ko predict karna\",\n      \"C. Sirf force calculate karna\",\n      \"D. Sirf distance aur speed ko compare karna\"\n    ],\n    correct: 1,\n    explanation: \"Kinematic equations motion ka mathematical description deti hain aur &lt;b>future time par object ki position ya velocity predict&lt;\/b> karne mein help 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\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\">${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        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#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: 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 (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>${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\">ch4 part14<\/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>APICAL CLASSES - Motion and Braking Distance 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.brand {\n  text-align: center;\n  color: #2a5298;\n  font-weight: bold;\n  letter-spacing: 2px;\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 { 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: 10px;\n  border-left: 5px solid #2a5298;\n  border-radius: 5px;\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#progress {\n  text-align: center;\n  font-weight: bold;\n  color: #555;\n}\n#result {\n  text-align: center;\n  margin-top: 20px;\n}\ninput&#91;type=\"text\"] {\n  padding: 10px;\n  width: 90%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n  font-size: 15px;\n}\n@media(max-width:600px) {\n  body { padding: 10px; }\n  .quiz-container { width: 100%; padding: 16px; }\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 Motion and Braking Distance 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;p id=\"progress\">&lt;\/p>\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. Ek car 54 km\/h ki speed se move kar rahi hai. Brakes lagane par acceleration \u22124 m\/s\u00b2 ho jaati hai. Car ko stop hone se pehle kitna distance travel karna padega?\",\n  options: &#91;\"A. 18.75 m\", \"B. 28.125 m\", \"C. 36.25 m\", \"D. 45 m\"],\n  correct: 1,\n  explanation: \"54 km\/h = 15 m\/s. Using v\u00b2 = u\u00b2 + 2as: 0 = 15\u00b2 \u2212 8s, so s = 225\/8 = 28.125 m.\"\n},\n{\n  question: \"2. Same braking acceleration \u22124 m\/s\u00b2 ke saath ek car 108 km\/h ki speed se chal rahi hai. Stop hone se pehle car kitna distance travel karegi?\",\n  options: &#91;\"A. 56.25 m\", \"B. 75 m\", \"C. 112.5 m\", \"D. 135 m\"],\n  correct: 2,\n  explanation: \"108 km\/h = 30 m\/s. 0 = 30\u00b2 \u2212 8s. Therefore, s = 900\/8 = 112.5 m.\"\n},\n{\n  question: \"3. Agar ek car ki speed 54 km\/h se 108 km\/h ho jaaye aur braking acceleration same rahe, toh stopping distance par kya effect hoga?\",\n  options: &#91;\"A. Half ho jayegi\", \"B. Double ho jayegi\", \"C. Four times ho jayegi\", \"D. Same rahegi\"],\n  correct: 2,\n  explanation: \"Stopping distance s \u221d u\u00b2. Speed double hone par stopping distance 2\u00b2 = 4 times ho jaati hai.\"\n},\n{\n  question: \"4. Example 4.8 mein braking ke baad car ka final velocity kya hai?\",\n  options: &#91;\"A. 4 m\/s\", \"B. 15 m\/s\", \"C. 30 m\/s\", \"D. 0 m\/s\"],\n  correct: 3,\n  explanation: \"Braking ke baad jab car completely stop ho jaati hai, uski final velocity 0 m\/s hoti hai.\"\n},\n{\n  question: \"5. 54 km\/h ko SI unit m\/s mein convert karne par kya value milegi?\",\n  options: &#91;\"A. 10 m\/s\", \"B. 12.5 m\/s\", \"C. 15 m\/s\", \"D. 18 m\/s\"],\n  correct: 2,\n  explanation: \"54 \u00d7 5\/18 = 15 m\/s.\"\n},\n{\n  question: \"6. Moving vehicle ke brakes lagane ke baad bhi vehicle kuch distance travel karta hai. Is stopping distance ko kaunse factors affect kar sakte hain?\",\n  options: &#91;\"A. Sirf vehicle ki colour\", \"B. Initial velocity, road surface aur braking capacity\", \"C. Sirf vehicle ka horn\", \"D. Sirf vehicle ki height\"],\n  correct: 1,\n  explanation: \"Stopping distance initial velocity, road condition, braking capacity aur driver ke reaction time par depend karti hai.\"\n},\n{\n  question: \"7. Wet road par braking conditions dry road ke comparison mein different ho sakti hain. Isliye safe driving ke liye kya karna chahiye?\",\n  options: &#91;\"A. Vehicle ke aage bahut kam distance rakhna\", \"B. Safe following distance maintain karna\", \"C. Speed ko hamesha maximum rakhna\", \"D. Brakes ka use bilkul nahi karna\"],\n  correct: 1,\n  explanation: \"Wet road jaise conditions mein stopping distance badh sakti hai, isliye sufficient safe distance maintain karna important hai.\"\n},\n{\n  question: \"8. Driver ka reaction time stopping distance ko kyun affect karta hai?\",\n  options: &#91;\"A. Reaction ke dauran vehicle distance travel kar sakta hai\", \"B. Reaction time vehicle ka mass badha deta hai\", \"C. Reaction time acceleration ko hamesha zero kar deta hai\", \"D. Reaction time road ko dry kar deta hai\"],\n  correct: 0,\n  explanation: \"Brakes apply hone se pehle driver ko danger notice karke react karne mein time lagta hai. Is duration mein vehicle aage distance travel karta hai.\"\n},\n{\n  question: \"9. V2V communication technology ka main purpose kya hai?\",\n  options: &#91;\"A. Vehicles ka fuel automatically fill karna\", \"B. Vehicles ke beech signals exchange karke possible collision ke warning dena\", \"C. Vehicle ki speed ko hamesha double karna\", \"D. Road ki length measure karna\"],\n  correct: 1,\n  explanation: \"V2V (Vehicle-to-Vehicle) communication vehicles ko signals exchange karne aur possible collision ke baare mein drivers ko warn karne mein help karti hai.\"\n},\n{\n  question: \"10. Agar braking acceleration ka magnitude 4 m\/s\u00b2 hai aur car ki initial speed 30 m\/s hai, toh stop hone se pehle distance kitna hoga?\",\n  options: &#91;\"A. 56.25 m\", \"B. 75 m\", \"C. 112.5 m\", \"D. 120 m\"],\n  correct: 2,\n  explanation: \"Using v\u00b2 = u\u00b2 + 2as: 0 = 30\u00b2 + 2(\u22124)s. Therefore, 0 = 900 \u2212 8s, so s = 900\/8 = 112.5 m.\"\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  currentQuestion = 0;\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 ? 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.findIndex(answer => answer === null);\n\n  if (unanswered !== -1) {\n    alert(\"Please attempt all questions. Question \" + (unanswered + 1) + \" is unanswered.\");\n    currentQuestion = unanswered;\n    showQuestion();\n    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 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      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> ${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>\ud83c\udf89 Quiz Completed!&lt;\/h3>\n    &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n    &lt;p>&lt;strong>Student Name:&lt;\/strong> ${escapeHTML(userName)}&lt;\/p>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\n  `;\n}\n\nfunction escapeHTML(value) {\n  const div = document.createElement(\"div\");\n  div.textContent = value;\n  return div.innerHTML;\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  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\">ch4 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>\ud83e\udde0 APICAL CLASSES \u2013 Science Quiz&lt;\/title>\n\n&lt;style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n.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: 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: 12px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  line-height: 1.6;\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#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n#result {\n  text-align: center;\n  margin-top: 20px;\n  color: #1e3c72;\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 \u2013 SCIENCE QUIZ&lt;\/h2>\n  &lt;p class=\"subtitle\">Motion in Two Dimensions &amp; Uniform Circular Motion&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=\"questionCounter\">&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&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: \"Q1. Vehicle ka kisi doosre vehicle ko overtake karna, kicked ball ka curved path follow karna, aur satellite ka circular path mein move karna kis type of motion ke examples hain?\",\n    options: &#91;\n      \"A. Motion in one dimension\",\n      \"B. Motion in two dimensions\",\n      \"C. Motion at rest\",\n      \"D. Uniform linear motion\"\n    ],\n    correct: 1,\n    explanation: \"Motion jo plane mein hoti hai, use motion in two dimensions kaha jaata hai.\"\n  },\n  {\n    question: \"Q2. Ek child merry-go-round par circular path mein A se B aur phir C tak move karta hai. Is motion mein distance aur displacement ke beech kya relationship hoga?\",\n    options: &#91;\n      \"A. Dono hamesha equal honge\",\n      \"B. Distance zero aur displacement non-zero hoga\",\n      \"C. Distance curved path ABC aur displacement straight-line AC hoga\",\n      \"D. Distance aur displacement dono zero honge\"\n    ],\n    correct: 2,\n    explanation: \"Distance actual curved path ABC hota hai, jabki displacement initial aur final position ke beech straight-line AC hota hai.\"\n  },\n  {\n    question: \"Q3. Radius R wale circular path par ek object ek complete revolution karta hai. Object dwara travelled distance kitna hoga?\",\n    options: &#91;\n      \"A. R\",\n      \"B. 2R\",\n      \"C. \u03c0R\",\n      \"D. 2\u03c0R\"\n    ],\n    correct: 3,\n    explanation: \"Circle ki circumference 2\u03c0R hoti hai. Ek complete revolution mein object itna distance travel karta hai.\"\n  },\n  {\n    question: \"Q4. Radius R ke circular path par object ek complete revolution ke baad apni original position par return karta hai. Uska displacement kya hoga?\",\n    options: &#91;\n      \"A. R\",\n      \"B. 2R\",\n      \"C. 2\u03c0R\",\n      \"D. 0\"\n    ],\n    correct: 3,\n    explanation: \"Initial aur final position same hai, isliye complete revolution ke baad displacement zero hota hai.\"\n  },\n  {\n    question: \"Q5. Ek object radius R ke circular path par ek revolution T seconds mein complete karta hai. Uski average speed ka expression kya hoga?\",\n    options: &#91;\n      \"A. 2\u03c0R\/T\",\n      \"B. R\/T\",\n      \"C. 2\u03c0T\/R\",\n      \"D. T\/2\u03c0R\"\n    ],\n    correct: 0,\n    explanation: \"Average speed = Total distance \/ Time. One revolution ka distance 2\u03c0R hai, isliye average speed = 2\u03c0R\/T.\"\n  },\n  {\n    question: \"Q6. Uniform circular motion ki correct definition kya hai?\",\n    options: &#91;\n      \"A. Circular path par changing speed ke saath motion\",\n      \"B. Straight line mein constant speed ke saath motion\",\n      \"C. Circular path par constant speed ke saath motion\",\n      \"D. Circular path par zero velocity ke saath motion\"\n    ],\n    correct: 2,\n    explanation: \"Jab object circular path par constant speed se move karta hai, usse uniform circular motion kehte hain.\"\n  },\n  {\n    question: \"Q7. Uniform circular motion mein object ki speed constant hoti hai. Phir bhi velocity change kyun hoti hai?\",\n    options: &#91;\n      \"A. Mass continuously change hota hai\",\n      \"B. Direction of velocity continuously change hoti hai\",\n      \"C. Distance zero hota hai\",\n      \"D. Time ruk jaata hai\"\n    ],\n    correct: 1,\n    explanation: \"Velocity mein magnitude ke saath direction bhi important hoti hai. Circular motion mein direction continuously change hoti hai.\"\n  },\n  {\n    question: \"Q8. Ek circular path par moving marble ko ring hata kar release kar diya jaata hai. Marble kis direction mein move karega?\",\n    options: &#91;\n      \"A. Circle ke centre ki taraf\",\n      \"B. Circle ke opposite direction mein\",\n      \"C. Us point par circle ki tangent ki direction mein\",\n      \"D. Random direction mein\"\n    ],\n    correct: 2,\n    explanation: \"Ring remove hone ke instant par marble tangent direction mein straight line mein move karta hai.\"\n  },\n  {\n    question: \"Q9. Uniform circular motion mein acceleration zero kyun nahi hoti, jabki speed constant hoti hai?\",\n    options: &#91;\n      \"A. Object ka mass change hota hai\",\n      \"B. Object ki direction of velocity continuously change hoti hai\",\n      \"C. Object ki speed continuously increase hoti hai\",\n      \"D. Object circular path mein rest mein hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Acceleration velocity ke change ki wajah se hoti hai. Uniform circular motion mein speed constant hai, lekin velocity ki direction continuously change hoti hai, isliye acceleration non-zero hoti hai.\"\n  },\n  {\n    question: \"Q10. Uniform circular motion ko real-world motion ka idealised model kyun kaha jaata hai?\",\n    options: &#91;\n      \"A. Real world mein circular motion kabhi nahi hoti\",\n      \"B. Real situations mein constant speed aur perfectly circular path ki conditions hamesha satisfy nahi hoti\",\n      \"C. Circular motion mein acceleration hamesha zero hoti hai\",\n      \"D. Real objects circular motion nahi kar sakte\"\n    ],\n    correct: 1,\n    explanation: \"Real world mein constant speed aur perfect circular path ki conditions often exactly meet nahi hoti, lekin uniform circular motion complex motions ko samajhne ke liye useful model 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  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(\"questionCounter\").innerHTML =\n    \"&lt;strong>Question \" + (currentQuestion + 1) +\n    \" of \" + questions.length + \"&lt;\/strong>\";\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value, 10) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\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  let resultHTML = \"\";\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\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    resultHTML += `\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>&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  container.innerHTML = resultHTML;\n\n  document.getElementById(\"questionCounter\").style.display = \"none\";\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  const percentage = ((score \/ questions.length) * 100).toFixed(1);\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>\ud83c\udf89 Quiz Completed!&lt;\/h3>\n    &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n    &lt;h3>Percentage: ${percentage}%&lt;\/h3>\n  `;\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    if (!Array.isArray(scores)) scores = &#91;];\n  } catch (error) {\n    scores = &#91;];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    total: questions.length,\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 =\n    scores.map(s => `\n      &lt;li>\n        ${escapeHTML(s.name)} -\n        ${s.score}\/${s.total || 10}\n        (${escapeHTML(s.date || \"\")})\n      &lt;\/li>\n    `).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 part16<\/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>Motion and Kinematic Equations Quiz | APICAL CLASSES&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: 15px 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: 12px;\n  margin-top: 10px;\n  margin-bottom: 15px;\n  border-left: 5px solid #2a5298;\n  border-radius: 5px;\n  line-height: 1.6;\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#userName {\n  padding: 10px;\n  width: 90%;\n  max-width: 350px;\n  border: 1px solid #aaa;\n  border-radius: 6px;\n}\n#result { text-align: center; margin-top: 20px; }\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 Motion and Kinematic Equations Quiz&lt;\/h2>\n  &lt;h3 style=\"text-align:center;color:#2a5298;\">APICAL CLASSES&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. Kisi object ki position ko describe karne ke liye reference point ke respect mein kin quantities ki zaroorat hoti hai?\",\n  options: &#91;\n    \"A. Sirf time\",\n    \"B. Distance aur direction\",\n    \"C. Mass aur volume\",\n    \"D. Speed aur acceleration\"\n  ],\n  correct: 1,\n  explanation: \"Reference point se object ki distance aur direction uski position ko describe karti hai.\"\n},\n{\n  question: \"2. Agar kisi object ki position reference point ke respect mein time ke saath change hoti hai, toh object ko kya kaha jaata hai?\",\n  options: &#91;\n    \"A. Rest mein\",\n    \"B. Stationary\",\n    \"C. Motion mein\",\n    \"D. Balanced\"\n  ],\n  correct: 2,\n  explanation: \"Position agar time ke saath change ho rahi hai, toh object motion mein hai.\"\n},\n{\n  question: \"3. Displacement kya represent karta hai?\",\n  options: &#91;\n    \"A. Total distance travelled\",\n    \"B. Net change in position between two instants\",\n    \"C. Total time taken\",\n    \"D. Change in speed only\"\n  ],\n  correct: 1,\n  explanation: \"Displacement object ki initial aur final position ke beech net change hota hai.\"\n},\n{\n  question: \"4. Ek object 150 m distance 30 s mein travel karta hai. Uski average speed kya hogi?\",\n  options: &#91;\n    \"A. 3 m\/s\",\n    \"B. 5 m\/s\",\n    \"C. 10 m\/s\",\n    \"D. 15 m\/s\"\n  ],\n  correct: 1,\n  explanation: \"Average speed = total distance \/ time = 150\/30 = 5 m\/s.\"\n},\n{\n  question: \"5. Average velocity calculate karne ke liye kaunsi quantity use hoti hai?\",\n  options: &#91;\n    \"A. Total distance\",\n    \"B. Displacement\",\n    \"C. Mass\",\n    \"D. Volume\"\n  ],\n  correct: 1,\n  explanation: \"Average velocity = displacement \/ time interval.\"\n},\n{\n  question: \"6. Ek object ki velocity 10 m\/s se 20 m\/s ho jaati hai 5 s mein. Uski average acceleration kya hogi?\",\n  options: &#91;\n    \"A. 1 m\/s\u00b2\",\n    \"B. 2 m\/s\u00b2\",\n    \"C. 5 m\/s\u00b2\",\n    \"D. 10 m\/s\u00b2\"\n  ],\n  correct: 1,\n  explanation: \"Average acceleration = (v \u2212 u)\/t = (20 \u2212 10)\/5 = 2 m\/s\u00b2.\"\n},\n{\n  question: \"7. Ek object straight line mein constant acceleration ke saath move kar raha hai. Agar u = 5 m\/s, a = 2 m\/s\u00b2 aur t = 4 s hai, toh final velocity kya hogi?\",\n  options: &#91;\n    \"A. 7 m\/s\",\n    \"B. 9 m\/s\",\n    \"C. 13 m\/s\",\n    \"D. 15 m\/s\"\n  ],\n  correct: 2,\n  explanation: \"v = u + at = 5 + (2 \u00d7 4) = 13 m\/s.\"\n},\n{\n  question: \"8. Ek object ki initial velocity 4 m\/s, acceleration 2 m\/s\u00b2 aur time 3 s hai. Uska displacement kitna hoga?\",\n  options: &#91;\n    \"A. 12 m\",\n    \"B. 15 m\",\n    \"C. 18 m\",\n    \"D. 21 m\"\n  ],\n  correct: 3,\n  explanation: \"s = ut + \u00bdat\u00b2 = (4 \u00d7 3) + \u00bd \u00d7 2 \u00d7 3\u00b2 = 12 + 9 = 21 m.\"\n},\n{\n  question: \"9. Kinematic equation v\u00b2 = u\u00b2 + 2as mein agar u = 0, a = 4 m\/s\u00b2 aur s = 8 m ho, toh final velocity kya hogi?\",\n  options: &#91;\n    \"A. 4 m\/s\",\n    \"B. 6 m\/s\",\n    \"C. 8 m\/s\",\n    \"D. 16 m\/s\"\n  ],\n  correct: 2,\n  explanation: \"v\u00b2 = 0\u00b2 + 2 \u00d7 4 \u00d7 8 = 64, therefore v = 8 m\/s.\"\n},\n{\n  question: \"10. Jab koi object circular path par constant speed se move karta hai, toh uski motion ko kya kaha jaata hai?\",\n  options: &#91;\n    \"A. Uniform linear motion\",\n    \"B. Non-uniform linear motion\",\n    \"C. Uniform circular motion\",\n    \"D. Random motion\"\n  ],\n  correct: 2,\n  explanation: \"Circular path par constant (uniform) speed se hone wali motion ko uniform circular motion kehte hain.\"\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=\"text-align:right;color:#555;\">\n      Question ${currentQuestion + 1} of ${questions.length}\n    &lt;\/p>\n\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\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] = selected\n    ? parseInt(selected.value)\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 (submitted) 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  submitted = 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) 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\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        &lt;strong>Correct Answer:&lt;\/strong> ${q.options&#91;q.correct]}&lt;br>\n        &lt;strong>Explanation:&lt;\/strong> ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Congratulations, ${escapeHTML(userName)}!&lt;\/h3>\n    &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n    &lt;p>\n      ${score >= 8\n        ? \"Excellent Work!\"\n        : score >= 5\n        ? \"Good Effort! Keep Practising.\"\n        : \"Keep Learning and Try Again!\"}\n    &lt;\/p>\n  `;\n}\n\nfunction escapeHTML(str) {\n  return str.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 = 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(String(s.name))} - ${s.score}\/10 (${escapeHTML(String(s.date))})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch4 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;title>\ud83e\udde0 Science Quiz \u2013 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}\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 {\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.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: 60%;\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 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 person ghar se 250 m door shop tak jaata hai, phir bag lene ke liye ghar wapas aata hai, dobara shop jaata hai aur provisions lekar phir ghar wapas aa jaata hai. Uska total distance aur displacement kya hoga?\",\n    options: &#91;\n      \"A. Distance = 500 m, displacement = 0 m\",\n      \"B. Distance = 750 m, displacement = 250 m\",\n      \"C. Distance = 1000 m, displacement = 0 m\",\n      \"D. Distance = 1000 m, displacement = 250 m\"\n    ],\n    correct: 2,\n    explanation: \"Person ne 250 m ki journey &lt;b>4 times&lt;\/b> ki.&lt;br>Total distance = 250 \u00d7 4 = &lt;b>1000 m&lt;\/b>.&lt;br>Starting aur final position same hai, isliye displacement = &lt;b>0 m&lt;\/b>.\"\n  },\n  {\n    question: \"2. Ek student ground floor se 4th floor tak jaata hai aur phir 2nd floor par apni classroom mein wapas aata hai. Har floor ki height 3 m hai. Total vertical distance aur displacement kya hoga?\",\n    options: &#91;\n      \"A. Distance = 12 m, displacement = 6 m\",\n      \"B. Distance = 18 m, displacement = 6 m\",\n      \"C. Distance = 18 m, displacement = 12 m\",\n      \"D. Distance = 6 m, displacement = 18 m\"\n    ],\n    correct: 1,\n    explanation: \"Ground se 4th floor = 4 \u00d7 3 = &lt;b>12 m&lt;\/b>.&lt;br>4th se 2nd floor = 2 \u00d7 3 = &lt;b>6 m&lt;\/b>.&lt;br>Total distance = 12 + 6 = &lt;b>18 m&lt;\/b>.&lt;br>Displacement = &lt;b>6 m upward&lt;\/b>.\"\n  },\n  {\n    question: \"3. Ek scooter ka speedometer constant speed show kar raha hai. Kya scooter phir bhi accelerate kar sakta hai?\",\n    options: &#91;\n      \"A. Nahi, constant speed ka matlab acceleration hamesha zero hai\",\n      \"B. Haan, agar scooter ki direction continuously change ho rahi ho\",\n      \"C. Nahi, acceleration sirf speed badhne par hoti hai\",\n      \"D. Haan, lekin sirf jab scooter rest mein ho\"\n    ],\n    correct: 1,\n    explanation: \"Acceleration velocity ke change hone ki wajah se hoti hai. &lt;b>Speed constant&lt;\/b> hone ke baad bhi direction change hone par velocity change hoti hai, isliye acceleration ho sakti hai.\"\n  },\n  {\n    question: \"4. Ek car rest se start karti hai aur 6 s mein 24 m\/s ki velocity reach karti hai. Average acceleration aur 6 s mein travelled distance kya hoga?\",\n    options: &#91;\n      \"A. 4 m\/s\u00b2 aur 72 m\",\n      \"B. 4 m\/s\u00b2 aur 144 m\",\n      \"C. 6 m\/s\u00b2 aur 72 m\",\n      \"D. 6 m\/s\u00b2 aur 144 m\"\n    ],\n    correct: 0,\n    explanation: \"a = (v \u2212 u)\/t = (24 \u2212 0)\/6 = &lt;b>4 m\/s\u00b2&lt;\/b>.&lt;br>s = ut + \u00bdat\u00b2&lt;br>= 0 + \u00bd \u00d7 4 \u00d7 6\u00b2&lt;br>= &lt;b>72 m&lt;\/b>.\"\n  },\n  {\n    question: \"5. Ek motorbike 28 m\/s ki initial velocity se move kar rahi hai aur 98 m travel karne ke baad stop ho jaati hai. Uski acceleration aur stopping time kya hoga?\",\n    options: &#91;\n      \"A. \u22122 m\/s\u00b2, 10 s\",\n      \"B. \u22124 m\/s\u00b2, 7 s\",\n      \"C. \u22124 m\/s\u00b2, 14 s\",\n      \"D. \u22127 m\/s\u00b2, 4 s\"\n    ],\n    correct: 1,\n    explanation: \"v\u00b2 = u\u00b2 + 2as&lt;br>0 = 28\u00b2 + 2 \u00d7 a \u00d7 98&lt;br>a = &lt;b>\u22124 m\/s\u00b2&lt;\/b>.&lt;br>v = u + at&lt;br>0 = 28 \u2212 4t&lt;br>t = &lt;b>7 s&lt;\/b>.\"\n  },\n  {\n    question: \"6. Position-time graph mein do objects A aur B ke graphs ki slopes kisi point par equal hain. Us point par unki velocities ke baare mein kya kaha ja sakta hai?\",\n    options: &#91;\n      \"A. Dono ki velocity equal hai\",\n      \"B. Dono ka displacement equal hai\",\n      \"C. Dono ki acceleration equal hai\",\n      \"D. Dono ki distance equal hai\"\n    ],\n    correct: 0,\n    explanation: \"Position-time graph ka &lt;b>slope velocity&lt;\/b> represent karta hai. Isliye equal slopes ka matlab &lt;b>equal velocity&lt;\/b> hai.\"\n  },\n  {\n    question: \"7. Do objects A aur B ke position-time graphs mein 0 se 10 s ke interval mein unki initial aur final positions same hain. Is information se kya definitely conclude kiya ja sakta hai?\",\n    options: &#91;\n      \"A. Dono ki average velocity equal hai\",\n      \"B. Dono ki average speed equal hai\",\n      \"C. Dono ki instantaneous velocity har moment equal hai\",\n      \"D. Dono ne exactly same path follow kiya hai\"\n    ],\n    correct: 0,\n    explanation: \"Average velocity = &lt;b>Displacement \/ Time&lt;\/b>.&lt;br>Same initial aur final positions ka matlab dono ka displacement same hai. Time interval bhi same hai, isliye average velocity equal hogi.\"\n  },\n  {\n    question: \"8. Ek truck 54 km\/h ki speed se chal raha tha aur 36 s mein speed ko 36 km\/h tak reduce karta hai. Constant acceleration maan kar is duration mein truck ne kitna distance travel kiya?\",\n    options: &#91;\n      \"A. 360 m\",\n      \"B. 400 m\",\n      \"C. 450 m\",\n      \"D. 540 m\"\n    ],\n    correct: 2,\n    explanation: \"54 km\/h = &lt;b>15 m\/s&lt;\/b> aur 36 km\/h = &lt;b>10 m\/s&lt;\/b>.&lt;br>Average velocity = (15 + 10)\/2 = &lt;b>12.5 m\/s&lt;\/b>.&lt;br>Distance = 12.5 \u00d7 36 = &lt;b>450 m&lt;\/b>.\"\n  },\n  {\n    question: \"9. Ek car rest se 5 s mein uniformly 20 m\/s tak accelerate karti hai, phir 10 s tak 20 m\/s ki constant speed se chalti hai, aur finally 6 s mein uniformly stop ho jaati hai. Total distance kitna hoga?\",\n    options: &#91;\n      \"A. 250 m\",\n      \"B. 300 m\",\n      \"C. 310 m\",\n      \"D. 350 m\"\n    ],\n    correct: 2,\n    explanation: \"First part: s\u2081 = \u00bd \u00d7 20 \u00d7 5 = &lt;b>50 m&lt;\/b>.&lt;br>Second part: s\u2082 = 20 \u00d7 10 = &lt;b>200 m&lt;\/b>.&lt;br>Third part: s\u2083 = \u00bd \u00d7 20 \u00d7 6 = &lt;b>60 m&lt;\/b>.&lt;br>Total distance = 50 + 200 + 60 = &lt;b>310 m&lt;\/b>.\"\n  },\n  {\n    question: \"10. Ek bus 36 km\/h ki speed se chal rahi hai. Driver ko 30 m ahead obstacle dikhta hai. Reaction time 0.5 s hai. Brake lagne ke baad bus ki constant deceleration 2.5 m\/s\u00b2 hai. Kya bus obstacle se pehle stop ho jayegi?\",\n    options: &#91;\n      \"A. Haan, 5 m pehle stop hogi\",\n      \"B. Haan, 10 m pehle stop hogi\",\n      \"C. Nahi, bus exactly obstacle tak jaakar stop hogi\",\n      \"D. Nahi, bus obstacle se 10 m pehle hi stop hogi\"\n    ],\n    correct: 0,\n    explanation: \"36 km\/h = &lt;b>10 m\/s&lt;\/b>.&lt;br>Reaction distance = 10 \u00d7 0.5 = &lt;b>5 m&lt;\/b>.&lt;br>Braking distance = u\u00b2\/(2a) = 100\/(2 \u00d7 2.5) = &lt;b>20 m&lt;\/b>.&lt;br>Total stopping distance = 5 + 20 = &lt;b>25 m&lt;\/b>.&lt;br>Obstacle 30 m ahead hai, isliye bus &lt;b>5 m pehle stop hogi&lt;\/b>.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\"\n          ${userAnswers&#91;currentQuestion] == i ? \"checked\" : \"\"}>\n          ${opt}\n        &lt;\/label>\n      `).join(\"\")}\n    &lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  quizSubmitted = true;\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = &#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: 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 (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>${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\">ch4 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>Motion and Displacement Quiz | APICAL CLASSES&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: 20px;\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: 100%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.brand {\n  text-align: center;\n  color: #2a5298;\n  font-weight: bold;\n  letter-spacing: 2px;\n  margin-bottom: 20px;\n}\n.question { font-weight: bold; margin: 15px 0; line-height: 1.6; }\n.options label {\n  display: block;\n  margin: 9px 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; }\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#userName {\n  padding: 11px;\n  width: 100%;\n  margin: 10px 0;\n  border: 1px solid #aaa;\n  border-radius: 5px;\n}\n.progress {\n  color: #555;\n  font-size: 14px;\n  text-align: right;\n}\n#result {\n  text-align: center;\n  margin-top: 20px;\n  line-height: 1.6;\n}\n@media(max-width:600px) {\n  body { padding: 10px; }\n  .quiz-container { padding: 16px; }\n  h2 { font-size: 20px; }\n  button { padding: 10px 14px; }\n}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div class=\"quiz-container\">\n\n  &lt;div class=\"brand\">APICAL CLASSES&lt;\/div>\n  &lt;h2>\ud83e\udde0 Motion, Velocity and Displacement 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 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{\nquestion: \"1. Ek student kehta hai, \u201cEarth Sun ke around move karti hai.\u201d Earth par rakhi hui ek book ko Earth ke reference frame mein kaise consider kiya ja sakta hai?\",\noptions: &#91;\n\"A. Book hamesha motion mein hai\",\n\"B. Book Earth ke respect mein rest mein ho sakti hai\",\n\"C. Book ka acceleration hamesha maximum hai\",\n\"D. Book ki velocity hamesha zero nahi ho sakti\"\n],\ncorrect: 1,\nexplanation: \"Motion ya rest reference point\/frame par depend karta hai. Earth ke respect mein book ki position change nahi ho rahi, isliye book Earth ke respect mein rest mein hai.\"\n},\n{\nquestion: \"2. Ek cyclist ke velocity-time graph mein kisi time interval ke dauran velocity constant 4 m\/s hai. Is interval mein velocity-time graph ke neeche ka area kya represent karega?\",\noptions: &#91;\n\"A. Acceleration\",\n\"B. Displacement\",\n\"C. Force\",\n\"D. Average acceleration\"\n],\ncorrect: 1,\nexplanation: \"Velocity-time graph ke neeche ka area displacement represent karta hai. Constant velocity ke case mein area = velocity \u00d7 time.\"\n},\n{\nquestion: \"3. Ek cyclist 20 s tak 5 m\/s ki constant velocity se move karta hai. Is duration mein displacement kitna hoga?\",\noptions: &#91;\n\"A. 25 m\",\n\"B. 50 m\",\n\"C. 100 m\",\n\"D. 125 m\"\n],\ncorrect: 2,\nexplanation: \"Displacement = velocity \u00d7 time = 5 \u00d7 20 = 100 m.\"\n},\n{\nquestion: \"4. Kisi cyclist ki velocity 120 s ke interval mein 6 m\/s se 0 m\/s ho jaati hai. Constant acceleration assume karne par average acceleration kya hogi?\",\noptions: &#91;\n\"A. +0.05 m\/s\u00b2\",\n\"B. \u22120.05 m\/s\u00b2\",\n\"C. \u22120.5 m\/s\u00b2\",\n\"D. +0.5 m\/s\u00b2\"\n],\ncorrect: 1,\nexplanation: \"a = (v \u2212 u)\/t = (0 \u2212 6)\/120 = \u22120.05 m\/s\u00b2. Negative sign batata hai ki velocity decrease ho rahi hai.\"\n},\n{\nquestion: \"5. Ek car 2 minutes tak 6 m\/s ki constant velocity se move karti hai. Iske baad woh 1 m\/s\u00b2 acceleration ke saath 6 s tak accelerate karti hai. Total displacement kya hoga?\",\noptions: &#91;\n\"A. 720 m\",\n\"B. 756 m\",\n\"C. 774 m\",\n\"D. 792 m\"\n],\ncorrect: 2,\nexplanation: \"First 120 s: s\u2081 = 6 \u00d7 120 = 720 m.&lt;br>Next 6 s: s\u2082 = 6 \u00d7 6 + \u00bd \u00d7 1 \u00d7 6\u00b2 = 36 + 18 = 54 m.&lt;br>Total displacement = 720 + 54 = 774 m. Correct answer 774 m hai.\"\n},\n{\nquestion: \"6. Car A rest se start karke 5 s mein 5 m\/s velocity attain karti hai. Car A ki acceleration kya hogi?\",\noptions: &#91;\n\"A. 0.5 m\/s\u00b2\",\n\"B. 1 m\/s\u00b2\",\n\"C. 2 m\/s\u00b2\",\n\"D. 5 m\/s\u00b2\"\n],\ncorrect: 1,\nexplanation: \"a = (v \u2212 u)\/t = (5 \u2212 0)\/5 = 1 m\/s\u00b2.\"\n},\n{\nquestion: \"7. Car B rest se start karke 10 s mein 3 m\/s velocity attain karti hai. Car B ki acceleration kya hogi?\",\noptions: &#91;\n\"A. 0.3 m\/s\u00b2\",\n\"B. 0.5 m\/s\u00b2\",\n\"C. 1.5 m\/s\u00b2\",\n\"D. 3 m\/s\u00b2\"\n],\ncorrect: 0,\nexplanation: \"a = (v \u2212 u)\/t = (3 \u2212 0)\/10 = 0.3 m\/s\u00b2.\"\n},\n{\nquestion: \"8. Car A rest se start karti hai aur 5 s mein 5 m\/s velocity tak pahunchti hai. Is 5 s mein uska displacement kitna hoga, assuming constant acceleration?\",\noptions: &#91;\n\"A. 10 m\",\n\"B. 12.5 m\",\n\"C. 20 m\",\n\"D. 25 m\"\n],\ncorrect: 1,\nexplanation: \"Average velocity = (0 + 5)\/2 = 2.5 m\/s.&lt;br>Displacement = 2.5 \u00d7 5 = 12.5 m.\"\n},\n{\nquestion: \"9. Rohan 6 PM se 7:30 PM tak clock ki minute hand ke tip ko observe karta hai. Minute hand ki length 7 cm hai. Is duration mein tip kitna distance travel karega?\",\noptions: &#91;\n\"A. 7\u03c0 cm\",\n\"B. 14\u03c0 cm\",\n\"C. 21\u03c0 cm\",\n\"D. 28\u03c0 cm\"\n],\ncorrect: 2,\nexplanation: \"1.5 hours mein minute hand 1.5 revolutions complete karegi. One revolution distance = 2\u03c0r = 14\u03c0 cm. Therefore distance = 1.5 \u00d7 14\u03c0 = 21\u03c0 cm.\"\n},\n{\nquestion: \"10. Rohan ke clock experiment mein minute hand ki tip 6 PM se 7:30 PM tak move karti hai. Is duration ke baad tip ka displacement kitna hoga?\",\noptions: &#91;\n\"A. 0 cm\",\n\"B. 7 cm\",\n\"C. 14 cm\",\n\"D. 21\u03c0 cm\"\n],\ncorrect: 2,\nexplanation: \"1.5 revolutions ke baad tip starting point ke exactly opposite position par hoti hai. Diameter = 2r = 2 \u00d7 7 = 14 cm, isliye displacement 14 cm 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  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  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  saveAnswer();\n\n  const unanswered = userAnswers.findIndex(answer => answer === null);\n  if (unanswered !== -1) {\n    alert(\"Please answer all questions before submitting. Question \" + (unanswered + 1) + \" is unanswered.\");\n    currentQuestion = unanswered;\n    showQuestion();\n    return;\n  }\n\n  if (quizSubmitted) return;\n  quizSubmitted = true;\n\n  score = 0;\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  saveScore(userName, score);\n  showResults();\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  let reviewHTML = \"\";\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}\n        ${i === q.correct ? \" \u2713 Correct Answer\" : \"\"}\n        ${selected === i &amp;&amp; selected !== q.correct ? \" \u2717 Your Answer\" : \"\"}\n      &lt;\/label>`;\n    }).join(\"\");\n\n    reviewHTML += `\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> ${q.explanation}\n      &lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  container.innerHTML = reviewHTML;\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"progress\").style.display = \"none\";\n\n  const percentage = (score \/ questions.length) * 100;\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h2>\ud83c\udf89 Quiz Completed!&lt;\/h2>\n    &lt;h3>${userName}&lt;\/h3>\n    &lt;h2>Your Score: ${score} \/ ${questions.length}&lt;\/h2>\n    &lt;h3>Percentage: ${percentage.toFixed(1)}%&lt;\/h3>\n    &lt;button onclick=\"location.reload()\">Try Again&lt;\/button>\n  `;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  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, 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&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n","protected":false},"excerpt":{"rendered":"<p>ch4 part1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5497","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5497","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=5497"}],"version-history":[{"count":2,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5497\/revisions"}],"predecessor-version":[{"id":5499,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5497\/revisions\/5499"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}