{"id":5425,"date":"2026-11-13T14:08:30","date_gmt":"2026-11-13T14:08:30","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5425"},"modified":"2026-11-13T14:08:31","modified_gmt":"2026-11-13T14:08:31","slug":"class-8-science-chapter-11","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5425","title":{"rendered":"class 8 science chapter 11"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ch11 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\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Phases of the Moon&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 Phases of the Moon&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;\">\n        Submit\n      &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. Moon apni light khud produce karta hai ya sunlight ko reflect karta hai?\",\n    options: &#91;\n      \"A. Moon apni light khud produce karta hai\",\n      \"B. Moon sunlight ko reflect karta hai\",\n      \"C. Moon stars ki light produce karta hai\",\n      \"D. Moon Earth ki light produce karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Moon ek natural satellite hai. Yeh Sun ki light ko reflect karta hai, isliye humein bright dikhai deta hai.&lt;br>&lt;br>Example: Jaise mirror sunlight ko reflect karta hai, waise hi Moon bhi sunlight reflect karta hai.\"\n  },\n\n  {\n    question: \"2. Moon ka shape humein har raat badalta hua kyun dikhai deta hai?\",\n    options: &#91;\n      \"A. Moon ka actual shape badalta hai\",\n      \"B. Moon ka kuch hissa toot jata hai\",\n      \"C. Earth se Moon ka illuminated portion alag-alag dikhai deta hai\",\n      \"D. Moon apni light band kar deta hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon spherical hai aur Sun ki light se uska aadha hissa illuminated hota hai. Moon ke Earth ke around move karne ke kaaran humein illuminated portion alag-alag dikhai deta hai.&lt;br>&lt;br>Example: Kabhi Moon patli crescent jaisa dikhta hai, kabhi half circle aur kabhi full circle.\"\n  },\n\n  {\n    question: \"3. Full Moon day ko Hindi mein kya kehte hain?\",\n    options: &#91;\n      \"A. Amavasya\",\n      \"B. Purnima\",\n      \"C. Krishna Paksha\",\n      \"D. Shukla Paksha\"\n    ],\n    correct: 1,\n    explanation: \"Jab Moon ka bright portion humein poore circle ke roop mein dikhai deta hai, us din ko Full Moon day ya Purnima kehte hain.&lt;br>&lt;br>Example: Purnima ki raat Moon poora gol aur bright dikhai deta hai.\"\n  },\n\n  {\n    question: \"4. New Moon day ko Hindi mein kya kehte hain?\",\n    options: &#91;\n      \"A. Purnima\",\n      \"B. Gibbous Moon\",\n      \"C. Amavasya\",\n      \"D. Crescent Moon\"\n    ],\n    correct: 2,\n    explanation: \"New Moon day par Moon ka illuminated portion Earth se lagbhag dikhai nahi deta. Isliye Moon ko aasman mein dekhna mushkil hota hai.&lt;br>&lt;br>Example: Amavasya ki raat humein aam taur par Moon ka bright disc dikhai nahi deta.\"\n  },\n\n  {\n    question: \"5. Moon ke bright portion ke decrease hone wale period ko kya kehte hain?\",\n    options: &#91;\n      \"A. Waxing period\",\n      \"B. Waning period\",\n      \"C. Solar period\",\n      \"D. Eclipse period\"\n    ],\n    correct: 1,\n    explanation: \"Full Moon ke baad Moon ka visible bright portion dheere-dheere kam hota hai. Is period ko waning period kehte hain. India mein ise Krishna Paksha bhi kaha jata hai.&lt;br>&lt;br>Example: Full Moon ke baad Moon ka bright circle dheere-dheere half circle aur phir crescent jaisa ho jata hai.\"\n  },\n\n  {\n    question: \"6. Moon ke bright portion ke increase hone wale period ko kya kehte hain?\",\n    options: &#91;\n      \"A. Waning period\",\n      \"B. Krishna Paksha\",\n      \"C. Waxing period\",\n      \"D. New Moon period\"\n    ],\n    correct: 2,\n    explanation: \"New Moon ke baad Moon ka visible bright portion dheere-dheere badhta hai. Is period ko waxing period ya Shukla Paksha kehte hain.&lt;br>&lt;br>Example: Patle crescent se Moon half circle aur phir full circle jaisa dikhne lagta hai.\"\n  },\n\n  {\n    question: \"7. Ek Full Moon se agle Full Moon tak ka cycle lagbhag kitne samay mein complete hota hai?\",\n    options: &#91;\n      \"A. 7 days\",\n      \"B. 10 days\",\n      \"C. 15 days\",\n      \"D. 1 month\"\n    ],\n    correct: 3,\n    explanation: \"Moon ke phases ka ek complete cycle ek Full Moon se agle Full Moon tak lagbhag 29.5 days ka hota hai, jise aam taur par about one month kaha jata hai.&lt;br>&lt;br>Example: Agar ek Full Moon aaj hai, toh agla Full Moon lagbhag 29\u201330 din baad hoga.\"\n  },\n\n  {\n    question: \"8. Moon ka visible bright portion full circle se half circle tak lagbhag kitne samay mein kam hota hai?\",\n    options: &#91;\n      \"A. Ek din\",\n      \"B. Ek week\",\n      \"C. Ek month\",\n      \"D. Ek saal\"\n    ],\n    correct: 1,\n    explanation: \"Full Moon ke baad lagbhag ek week mein Moon ka bright portion half circle jaisa dikhne lagta hai. Iske baad bright portion aur kam hota rehta hai.&lt;br>&lt;br>Example: Purnima ke kuch din baad Moon ka shape poore circle ke bajay aadhe circle jaisa dikh sakta hai.\"\n  },\n\n  {\n    question: \"9. Moon ko daytime mein dekhna possible hai ya nahi?\",\n    options: &#91;\n      \"A. Nahi, Moon sirf raat mein dikhta hai\",\n      \"B. Haan, Moon daytime mein bhi dikh sakta hai\",\n      \"C. Sirf eclipse ke time dikhta hai\",\n      \"D. Sirf Purnima ko dikhta hai\"\n    ],\n    correct: 1,\n    explanation: \"Moon din mein bhi sky mein present ho sakta hai. Agar uski position aur brightness suitable ho, toh sunlight ke bawajood hum use dekh sakte hain.&lt;br>&lt;br>Example: Meera ne Makar Sankranti ke din Ahmedabad mein daytime sky mein Moon dekha.\"\n  },\n\n  {\n    question: \"10. Moon ke changing visible shapes ko kya kaha jata hai?\",\n    options: &#91;\n      \"A. Constellations\",\n      \"B. Phases of the Moon\",\n      \"C. Solar system\",\n      \"D. Lunar surface\"\n    ],\n    correct: 1,\n    explanation: \"Earth se Moon ke bright portion ka roz alag shape mein dikhna, Moon ke phases kehlata hai. Ye phases Moon ke Earth ke around move karne ke kaaran dikhai dete hain.&lt;br>&lt;br>Example: New Moon, Crescent Moon, Half Moon, Gibbous Moon aur Full Moon, Moon ke different phases 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\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\n            type=\"radio\"\n            name=\"option\"\n            value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}\n          >\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\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n\n  });\n\n  showResults();\n\n  saveScore(userName, score);\n\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\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Moon and Its Phases&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83c\udf19 Science Quiz \u2013 Moon and Its Phases&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n  {\n    question: \"11. Moon ka shape actually spherical hone ke baad bhi humein kabhi crescent aur kabhi half circle kyun dikhai deta hai?\",\n    options: &#91;\n      \"A. Moon ka shape daily change hota hai\",\n      \"B. Moon ki light daily change hoti hai\",\n      \"C. Moon ka illuminated portion Earth se alag-alag dikhai deta hai\",\n      \"D. Earth Moon ki light ko hamesha block karti hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon spherical hai aur Sun ki light reflect karta hai. Moon ke Earth ke around move karne se humein uska bright portion different shapes mein dikhai deta hai.&lt;br>&lt;br>Example: Kabhi Moon patla crescent dikhta hai aur kuch din baad half circle jaisa.\"\n  },\n  {\n    question: \"12. India mein Waxing Period ko generally kya kaha jata hai?\",\n    options: &#91;\n      \"A. Krishna Paksha\",\n      \"B. Shukla Paksha\",\n      \"C. Amavasya\",\n      \"D. Purnima\"\n    ],\n    correct: 1,\n    explanation: \"New Moon ke baad Moon ka bright portion badhne lagta hai. Is period ko Waxing Period ya Shukla Paksha kehte hain.&lt;br>&lt;br>Example: Amavasya ke baad Moon dheere-dheere bada aur bright dikhne lagta hai.\"\n  },\n  {\n    question: \"13. India mein Waning Period ko generally kya kaha jata hai?\",\n    options: &#91;\n      \"A. Shukla Paksha\",\n      \"B. Purnima\",\n      \"C. Krishna Paksha\",\n      \"D. Waxing Period\"\n    ],\n    correct: 2,\n    explanation: \"Full Moon ke baad Moon ka visible bright portion kam hone lagta hai. Is period ko Waning Period ya Krishna Paksha kehte hain.&lt;br>&lt;br>Example: Purnima ke baad Moon ka poora bright circle dheere-dheere chhota dikhne lagta hai.\"\n  },\n  {\n    question: \"14. Full Moon ke baad Moon ka bright portion pehle kis tarah change hota hai?\",\n    options: &#91;\n      \"A. Full circle se half circle ki taraf kam hota hai\",\n      \"B. Crescent se full circle ban jata hai\",\n      \"C. Moon ka size double ho jata hai\",\n      \"D. Moon gayab hokar turant wapas aa jata hai\"\n    ],\n    correct: 0,\n    explanation: \"Full Moon ke baad waning phase start hota hai. Lagbhag ek week mein bright portion half circle jaisa dikh sakta hai.&lt;br>&lt;br>Example: Purnima ke kuch din baad Moon ka aadha illuminated portion dikhai de sakta hai.\"\n  },\n  {\n    question: \"15. New Moon ke baad Moon ka bright portion kis direction mein change hota hai?\",\n    options: &#91;\n      \"A. Dheere-dheere badhta hai\",\n      \"B. Hamesha same rehta hai\",\n      \"C. Turant gayab ho jata hai\",\n      \"D. Moon ka actual size badhta hai\"\n    ],\n    correct: 0,\n    explanation: \"New Moon ke baad waxing phase start hota hai. Moon ka visible bright portion dheere-dheere increase hota hai.&lt;br>&lt;br>Example: Pehle thin crescent, phir half Moon aur phir Full Moon dikhai deta hai.\"\n  },\n  {\n    question: \"16. Moon ke phases ka main reason kya hai?\",\n    options: &#91;\n      \"A. Earth ka apni axis par rotate karna hi\",\n      \"B. Moon ka actual shape change hona\",\n      \"C. Moon ka Earth ke around move karna aur sunlight reflect karna\",\n      \"D. Clouds ka Moon ko cover karna\"\n    ],\n    correct: 2,\n    explanation: \"Moon ka aadha hissa sunlight se illuminated hota hai. Earth se humein us illuminated portion ka alag-alag hissa dikhai deta hai, jisse phases bante hain.&lt;br>&lt;br>Example: Moon ke orbit mein position badalne ke saath uska visible bright shape bhi badalta hai.\"\n  },\n  {\n    question: \"17. Kya Moon ka changing shape har baar lunar eclipse ke kaaran hota hai?\",\n    options: &#91;\n      \"A. Haan, har phase lunar eclipse hai\",\n      \"B. Nahi, phases aur lunar eclipse alag phenomena hain\",\n      \"C. Haan, sirf Full Moon par\",\n      \"D. Nahi, Moon sunlight reflect nahi karta\"\n    ],\n    correct: 1,\n    explanation: \"Moon ke phases uske illuminated portion ke alag-alag dikhne se hote hain. Lunar eclipse tab hota hai jab Earth ki shadow Moon par padti hai. Har Full Moon par lunar eclipse nahi hota.&lt;br>&lt;br>Example: Har mahine Moon ke phases dikhte hain, lekin lunar eclipse har mahine nahi hota.\"\n  },\n  {\n    question: \"18. Moon ko observe karte waqt sunrise ke samay pehle kis direction mein dekhne ka suggestion diya gaya hai?\",\n    options: &#91;\n      \"A. North\",\n      \"B. South\",\n      \"C. East\",\n      \"D. West\"\n    ],\n    correct: 3,\n    explanation: \"Activity mein Full Moon ke agle din sunrise ke samay Moon ko western direction mein dekhne ka suggestion diya gaya hai.&lt;br>&lt;br>Example: Sunrise ke baad west ki taraf sky ko observe karke Moon ko locate karne ki koshish kar sakte hain.\"\n  },\n  {\n    question: \"19. Moon ke phases observe karne ke liye daily record mein kya note karna chahiye?\",\n    options: &#91;\n      \"A. Sirf temperature\",\n      \"B. Date, Moon kab dikha aur bright portion ka shape\",\n      \"C. Sirf wind speed\",\n      \"D. Sirf stars ki sankhya\"\n    ],\n    correct: 1,\n    explanation: \"Daily observation se pata chalta hai ki Moon ka bright portion increase ho raha hai ya decrease, aur Moon sky mein kis position par dikh raha hai.&lt;br>&lt;br>Example: Notebook mein date likhkar Moon ka sketch banao aur bright part ko shade karo.\"\n  },\n  {\n    question: \"20. Moon ke phases ka ek complete cycle lagbhag kitne din mein hota hai?\",\n    options: &#91;\n      \"A. 7 days\",\n      \"B. 14 days\",\n      \"C. 29.5 days\",\n      \"D. 365 days\"\n    ],\n    correct: 2,\n    explanation: \"Ek Full Moon se agle Full Moon tak lagbhag 29.5 days lagte hain. Isi wajah se Moon ke phases ka cycle approximately ek month ka hota hai.&lt;br>&lt;br>Example: Agar ek Full Moon 1 tareekh ke aas-paas ho, toh agla Full Moon lagbhag 29\u201330 din baad ho sakta 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) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n\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\n  userAnswers&#91;currentQuestion] =\n    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\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\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\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  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\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\">ch11 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\n&lt;title>\ud83e\udde0 Science Quiz \u2013 Moon Phases and Eclipses&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 Moon Phases and Eclipses&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. Moon ki changing shapes ka main reason kya hai?\",\n    options: &#91;\n      \"A. Earth ki shadow har raat Moon par padti hai\",\n      \"B. Moon ka actual shape change hota hai\",\n      \"C. Moon ke illuminated portion ka Earth se alag-alag dikhna\",\n      \"D. Moon apni light produce karta hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon apni light produce nahi karta. Woh Sun ki light reflect karta hai. Moon ke Earth ke around revolve karne ke karan humein uska illuminated portion different shapes mein dikhai deta hai.&lt;br>&lt;br>Example: Kabhi Moon crescent, kabhi half Moon aur kabhi Full Moon jaisa dikhta hai.\"\n  },\n\n  {\n    question: \"2. Moon ka kaunsa portion sunlight se illuminated hota hai?\",\n    options: &#91;\n      \"A. Earth ki taraf wala portion hamesha\",\n      \"B. Sun ki taraf wala portion\",\n      \"C. Moon ka koi bhi portion nahi\",\n      \"D. Sirf Moon ka lower portion\"\n    ],\n    correct: 1,\n    explanation: \"Moon ka jo half Sun ki taraf hota hai, us par sunlight padti hai. Doosra half directly sunlight receive nahi karta.&lt;br>&lt;br>Example: Torch ke saamne rakhi ball ka torch ki taraf wala hissa bright hota hai, jabki doosra hissa dark rehta hai.\"\n  },\n\n  {\n    question: \"3. New Moon day par Moon humein kyun nahi dikhai deta?\",\n    options: &#91;\n      \"A. Moon destroy ho jata hai\",\n      \"B. Moon sunlight reflect karna band kar deta hai\",\n      \"C. Moon ka non-illuminated portion Earth ki taraf hota hai\",\n      \"D. Earth rotate karna band kar deti hai\"\n    ],\n    correct: 2,\n    explanation: \"New Moon ke samay Moon ka illuminated portion Earth se directly visible nahi hota. Isliye Moon ka bright disc humein nazar nahi aata.&lt;br>&lt;br>Example: Jab torch ki taraf rakhi ball ka dark side aapki taraf ho, toh aapko uska bright side nahi dikhega.\"\n  },\n\n  {\n    question: \"4. Full Moon day par Moon ki position Sun ke comparison mein kaisi hoti hai?\",\n    options: &#91;\n      \"A. Sun ke lagbhag opposite\",\n      \"B. Sun ke bilkul paas same direction mein\",\n      \"C. Earth ke andar\",\n      \"D. Sun ke peeche hamesha chhupa hua\"\n    ],\n    correct: 0,\n    explanation: \"Full Moon ke samay Earth lagbhag Sun aur Moon ke beech hoti hai. Is position mein Moon ka illuminated portion Earth se poora ya lagbhag poora dikhai deta hai.&lt;br>&lt;br>Example: Sunrise ke samay Sun east mein hota hai aur Full Moon lagbhag west mein set ho raha hota hai.\"\n  },\n\n  {\n    question: \"5. Gibbous phase mein Moon ka kitna illuminated portion humein dikhai deta hai?\",\n    options: &#91;\n      \"A. Koi bhi bright portion nahi\",\n      \"B. Half se kam\",\n      \"C. Half se zyada\",\n      \"D. Poora dark portion\"\n    ],\n    correct: 2,\n    explanation: \"Gibbous phase mein Moon ka visible illuminated portion half se zyada hota hai, lekin Full Moon se kam ho sakta hai.&lt;br>&lt;br>Example: Jab Moon ka three-fourths ke aas-paas bright portion dikhai deta hai, toh woh Gibbous phase hota hai.\"\n  },\n\n  {\n    question: \"6. Crescent phase mein Moon ka kitna illuminated portion visible hota hai?\",\n    options: &#91;\n      \"A. Half se kam\",\n      \"B. Half se zyada\",\n      \"C. Hamesha poora circle\",\n      \"D. Koi bhi illuminated portion nahi\"\n    ],\n    correct: 0,\n    explanation: \"Crescent phase mein Moon ka sirf ek patla, curved bright portion dikhai deta hai.&lt;br>&lt;br>Example: Amavasya ke baad kuch din tak Moon ek patli chamakti hui curve jaisa dikh sakta hai.\"\n  },\n\n  {\n    question: \"7. Moon ko ek baar Earth ke around revolution complete karne mein lagbhag kitna samay lagta hai?\",\n    options: &#91;\n      \"A. 24 hours\",\n      \"B. 7 days\",\n      \"C. Ek month\",\n      \"D. Ek year\"\n    ],\n    correct: 2,\n    explanation: \"Moon Earth ke around ek revolution lagbhag 27.3 days mein complete karta hai. Lekin ek Full Moon se agle Full Moon tak lagbhag 29.5 days lagte hain.&lt;br>&lt;br>Example: Moon ke phases ka complete cycle lagbhag 29\u201330 din ka hota hai.\"\n  },\n\n  {\n    question: \"8. Moon roz lagbhag 50 minutes baad same position par kyun pahunchta hai?\",\n    options: &#91;\n      \"A. Moon apni light badhata hai\",\n      \"B. Moon apni orbit mein aage move karta hai\",\n      \"C. Sun har din slow ho jata hai\",\n      \"D. Earth rotate nahi karti\"\n    ],\n    correct: 1,\n    explanation: \"Earth ek rotation lagbhag 24 hours mein complete karti hai. Is dauraan Moon bhi apni orbit mein aage badh jata hai, isliye Earth ko Moon ko lagbhag same position par dekhne ke liye kuch extra rotation karni padti hai.&lt;br>&lt;br>Example: Moon aam taur par roz lagbhag 50 minutes baad rise karta hai, halanki exact time location aur date ke hisaab se badalta hai.\"\n  },\n\n  {\n    question: \"9. Kya Moon ke phases Earth ki shadow ke Moon par padne ke kaaran hote hain?\",\n    options: &#91;\n      \"A. Haan, hamesha\",\n      \"B. Sirf Crescent phase mein\",\n      \"C. Nahi, phases Sun, Earth aur Moon ki relative positions ke kaaran hote hain\",\n      \"D. Sirf New Moon par\"\n    ],\n    correct: 2,\n    explanation: \"Moon ke phases uske illuminated portion ke Earth se alag-alag dikhne ke kaaran hote hain. Earth ki shadow Moon par padne se lunar eclipse hota hai.&lt;br>&lt;br>Example: Har month Moon ke phases hote hain, lekin har Full Moon par lunar eclipse nahi hota.\"\n  },\n\n  {\n    question: \"10. Lunar eclipse aur solar eclipse ke baare mein kaunsa statement correct hai?\",\n    options: &#91;\n      \"A. Lunar eclipse sirf New Moon par hota hai\",\n      \"B. Solar eclipse sirf Full Moon par hota hai\",\n      \"C. Lunar eclipse Full Moon par aur solar eclipse New Moon par ho sakta hai\",\n      \"D. Dono eclipses har month zaroor hote hain\"\n    ],\n    correct: 2,\n    explanation: \"Lunar eclipse tab hota hai jab Earth ki shadow Moon par padti hai. Solar eclipse tab hota hai jab Moon, Sun aur Earth ke beech aa jata hai. Moon ki orbit tilted hone ke kaaran eclipses har month nahi hote.&lt;br>&lt;br>Example: Full Moon ke din lunar eclipse possible hai, lekin tabhi jab Sun, Earth aur Moon suitable alignment mein hon.\"\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\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\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n\n  });\n\n  showResults();\n\n  saveScore(userName, score);\n\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\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n\n  });\n\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\">ch11 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 Moon Phases and Eclipses Quiz&lt;\/title>\n\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\n  h2 {\n    text-align: center;\n    color: #1e3c72;\n  }\n\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n    line-height: 1.6;\n  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n    line-height: 1.5;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n\n  @media(max-width:600px) {\n    body {\n      padding: 10px;\n    }\n\n    .quiz-container {\n      width: 100%;\n      padding: 15px;\n    }\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83e\udde0 Moon Phases and Eclipses Quiz&lt;\/h2>\n\n  &lt;div id=\"nameSection\">\n    &lt;p>&lt;strong>Enter your name to start:&lt;\/strong>&lt;\/p>\n    &lt;input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    &lt;button onclick=\"startQuiz()\">Start Quiz&lt;\/button>\n  &lt;\/div>\n\n  &lt;div id=\"quizSection\" style=\"display:none;\">\n\n    &lt;div id=\"questionContainer\">&lt;\/div>\n\n    &lt;div class=\"controls\">\n      &lt;button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous&lt;\/button>\n      &lt;button onclick=\"nextQuestion()\" id=\"nextBtn\">Next&lt;\/button>\n      &lt;button onclick=\"submitQuiz()\" id=\"submitBtn\" style=\"display:none;\">Submit&lt;\/button>\n    &lt;\/div>\n\n    &lt;div id=\"result\" style=\"text-align:center; margin-top:20px;\">&lt;\/div>\n\n    &lt;div id=\"scoreboard\">\n      &lt;h3>\ud83c\udfc6 Scoreboard&lt;\/h3>\n      &lt;ol id=\"scoreList\">&lt;\/ol>\n    &lt;\/div>\n\n  &lt;\/div>\n&lt;\/div>\n\n&lt;script>\n\nconst questions = &#91;\n\n  {\n    question: \"1. Moon ko sky mein lagbhag same position par dobara aane mein har din extra time kyun lagta hai?\",\n    options: &#91;\n      \"A. Earth rotate karna band kar deti hai\",\n      \"B. Moon apni orbit mein aage move karta hai\",\n      \"C. Sun apni position change nahi karta\",\n      \"D. Moon apni light produce karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth lagbhag 24 hours mein ek rotation complete karti hai. Lekin is dauraan Moon bhi Earth ke around aage badh jata hai, isliye Moon ko same position par dekhne ke liye Earth ko thoda aur rotate karna padta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Moon aam taur par har din lagbhag 50 minutes baad rise karta hai.\"\n  },\n\n  {\n    question: \"2. Moon ke phases hone ka main reason kya hai?\",\n    options: &#91;\n      \"A. Earth ki shadow har din Moon par padti hai\",\n      \"B. Moon ka actual shape change hota hai\",\n      \"C. Sun, Earth aur Moon ki relative positions change hoti hain\",\n      \"D. Moon ki light kabhi on aur kabhi off hoti hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon Sun ki light reflect karta hai. Moon ke Earth ke around revolve karne se humein uska illuminated portion different shapes mein dikhai deta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Moon kabhi crescent, kabhi half aur kabhi full circle jaisa dikhta hai.\"\n  },\n\n  {\n    question: \"3. Lunar eclipse kis Moon phase par ho sakta hai?\",\n    options: &#91;\n      \"A. New Moon\",\n      \"B. Full Moon\",\n      \"C. Crescent Moon only\",\n      \"D. Har phase par equally\"\n    ],\n    correct: 1,\n    explanation: \"Lunar eclipse tab hota hai jab Earth, Sun aur Moon ke beech aa jati hai aur Earth ki shadow Moon par padti hai. Iske liye Full Moon ke samay suitable alignment zaroori hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Purnima ke din lunar eclipse possible hai, lekin har Purnima ko nahi hota.\"\n  },\n\n  {\n    question: \"4. Solar eclipse kis Moon phase par ho sakta hai?\",\n    options: &#91;\n      \"A. Full Moon\",\n      \"B. Gibbous Moon only\",\n      \"C. New Moon\",\n      \"D. Half Moon only\"\n    ],\n    correct: 2,\n    explanation: \"Solar eclipse tab possible hota hai jab Moon, Sun aur Earth ke beech aa jata hai aur Sun ki light ka kuch hissa Earth tak pahunchne se block karta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Amavasya ke din solar eclipse ho sakta hai, lekin har Amavasya ko nahi hota.\"\n  },\n\n  {\n    question: \"5. Moon ke phases aur lunar eclipse mein kya difference hai?\",\n    options: &#91;\n      \"A. Dono Earth ki shadow ke kaaran hote hain\",\n      \"B. Phases illuminated portion ke visible hone se hote hain, lunar eclipse Earth ki shadow se hota hai\",\n      \"C. Dono sirf New Moon par hote hain\",\n      \"D. Dono mein Moon apni light produce karta hai\"\n    ],\n    correct: 1,\n    explanation: \"Moon ke phases mein humein Moon ka illuminated portion alag-alag dikhai deta hai. Lunar eclipse mein Earth ki shadow Moon par padti hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Har month Moon ke phases hote hain, lekin lunar eclipse har month nahi hota.\"\n  },\n\n  {\n    question: \"6. Eclipses har month kyun nahi hote?\",\n    options: &#91;\n      \"A. Moon har month Earth ke around move nahi karta\",\n      \"B. Sun har month light dena band kar deta hai\",\n      \"C. Moon ki orbit, Earth ki orbit ke plane ke respect mein slightly tilted hai\",\n      \"D. Earth har month rotate karna band kar deti hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon ki orbit tilted hone ke kaaran Sun, Earth aur Moon har New Moon ya Full Moon par ek straight line mein nahi aate. Isliye har month eclipse nahi hota.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Har Purnima ko Earth ki shadow Moon par nahi padti.\"\n  },\n\n  {\n    question: \"7. Earth ko Moon ko lagbhag same position par dekhne ke liye extra rotation kyun karni padti hai?\",\n    options: &#91;\n      \"A. Moon Earth ke around revolve karta rehta hai\",\n      \"B. Earth ka rotation direction daily change hota hai\",\n      \"C. Sun Moon ko push karta hai\",\n      \"D. Moon Earth ke saath bilkul stationary rehta hai\"\n    ],\n    correct: 0,\n    explanation: \"Jab Earth ek rotation complete karti hai, tab tak Moon apni orbit mein thoda aage badh chuka hota hai. Moon ko same direction mein dobara dekhne ke liye Earth ko kuch extra rotate karna padta hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Isi wajah se Moon ka rising time generally daily delay hota hai.\"\n  },\n\n  {\n    question: \"8. Moon ke phases ke liye kaunsi statement correct hai?\",\n    options: &#91;\n      \"A. Moon ka dark side hamesha Earth ki taraf hota hai\",\n      \"B. Moon ka shape har din badalta hai\",\n      \"C. Moon ka illuminated portion Earth se alag-alag dikhai deta hai\",\n      \"D. Earth ki shadow har phase mein Moon par padti hai\"\n    ],\n    correct: 2,\n    explanation: \"Moon ka actual shape spherical hi rehta hai. Uski orbit mein position change hone se Earth se visible bright portion change hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> New Moon par bright portion visible nahi hota, jabki Full Moon par lagbhag poora bright disc dikhai deta hai.\"\n  },\n\n  {\n    question: \"9. Agar Moon ki orbit tilted na hoti aur Sun, Earth aur Moon har month suitable alignment mein aate, toh kya ho sakta tha?\",\n    options: &#91;\n      \"A. Eclipses kabhi nahi hote\",\n      \"B. Har New Moon par solar eclipse aur har Full Moon par lunar eclipse ho sakta tha\",\n      \"C. Moon apni light produce karne lagta\",\n      \"D. Moon ke phases band ho jate\"\n    ],\n    correct: 1,\n    explanation: \"Eclipses ke liye teeno celestial bodies ka suitable alignment zaroori hai. Agar har New Moon aur Full Moon par alignment hota, toh eclipses har cycle mein possible hote.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Solar eclipse New Moon ke samay aur lunar eclipse Full Moon ke samay ho sakta hai.\"\n  },\n\n  {\n    question: \"10. Moon ka same position par dobara dikhne ka time lagbhag kitna late ho sakta hai?\",\n    options: &#91;\n      \"A. 5 minutes\",\n      \"B. 15 minutes\",\n      \"C. 50 minutes\",\n      \"D. 5 hours\"\n    ],\n    correct: 2,\n    explanation: \"Moon apni orbit mein aage badhta rehta hai. Earth ko Moon ko lagbhag same position par dekhne ke liye extra rotate karna padta hai. Isliye Moon ka rise ya same sky position par aana aam taur par lagbhag 50 minutes late hota hai.&lt;br>&lt;br>&lt;strong>Example:&lt;\/strong> Agar Moon aaj lagbhag 7 PM par rise karta hai, toh agle din woh lagbhag 7:50 PM par rise kar sakta hai. Exact time date aur location ke hisaab se badalta 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\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n  `;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`\n    ).join('');\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Earth, Sun and Time&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Earth, Sun and Time&lt;\/h2>\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. Earth par day aur night hone ka main reason kya hai?\",\n    options: &#91;\n      \"A. Earth ka Sun ke around revolution\",\n      \"B. Earth ka apni axis par rotation\",\n      \"C. Moon ka Earth ke around revolution\",\n      \"D. Sun ka Earth ke around rotation\"\n    ],\n    correct: 1,\n    explanation: \"Earth apni axis par rotate karti hai. Is rotation ke kaaran humein Sun east mein rise aur west mein set hota hua dikhai deta hai. Earth ka jo part Sun ki taraf hota hai, wahan day hota hai.&lt;br>&lt;br>Example: Jab India mein day hota hai, tab Earth ke doosre part mein night ho sakti hai.\"\n  },\n  {\n    question: \"2. Mean solar day ki duration kitni hoti hai?\",\n    options: &#91;\n      \"A. 12 hours\",\n      \"B. 23 hours\",\n      \"C. 24 hours\",\n      \"D. 365 days\"\n    ],\n    correct: 2,\n    explanation: \"Mean solar day woh average time hai jo Sun ko sky mein apni highest position se agle din phir highest position par pahunchne mein lagta hai.&lt;br>&lt;br>Example: Hum daily activities, jaise school jaana aur sona, ko 24-hour day ke according plan karte hain.\"\n  },\n  {\n    question: \"3. Sun jab sky mein apni highest position par hota hai, tab object ki shadow generally kaisi hoti hai?\",\n    options: &#91;\n      \"A. Sabse lambi\",\n      \"B. Sabse chhoti\",\n      \"C. Bilkul red\",\n      \"D. Hamesha invisible\"\n    ],\n    correct: 1,\n    explanation: \"Jab Sun sky mein highest position par hota hai, toh vertical object ki shadow generally din ki sabse chhoti hoti hai.&lt;br>&lt;br>Example: Ek vertical stick ki shadow midday ke aas-paas subah aur shaam ke comparison mein chhoti hoti hai.\"\n  },\n  {\n    question: \"4. Moon ke phases ka complete cycle lagbhag kitne din ka hota hai?\",\n    options: &#91;\n      \"A. 7 days\",\n      \"B. 15 days\",\n      \"C. 29.5 days\",\n      \"D. 365 days\"\n    ],\n    correct: 2,\n    explanation: \"Moon ko New Moon se next New Moon tak apne phases ka cycle complete karne mein lagbhag 29.5 days lagte hain. Isi natural cycle ko month define karne ka ek basis banaya gaya.&lt;br>&lt;br>Example: Ek Full Moon ke baad next Full Moon lagbhag 29\u201330 days mein aata hai.\"\n  },\n  {\n    question: \"5. Calendar mein month ko define karne ka ek natural basis kya hai?\",\n    options: &#91;\n      \"A. Earth ka daily rotation\",\n      \"B. Moon ke phases ka cycle\",\n      \"C. Sun ki brightness\",\n      \"D. Stars ka colour\"\n    ],\n    correct: 1,\n    explanation: \"Moon ke phases ka cycle lagbhag 29.5 days ka hota hai. Is natural cycle ne month jaise time unit ko develop karne mein important role play kiya.&lt;br>&lt;br>Example: Lunar calendars mein months ko Moon ke phases ke basis par determine kiya ja sakta hai.\"\n  },\n  {\n    question: \"6. Earth ko Sun ke around ek revolution complete karne mein lagbhag kitna time lagta hai?\",\n    options: &#91;\n      \"A. 24 hours\",\n      \"B. 29.5 days\",\n      \"C. 180 days\",\n      \"D. 365\u00bc days\"\n    ],\n    correct: 3,\n    explanation: \"Earth Sun ke around ek complete revolution lagbhag 365\u00bc days mein karti hai. Isi duration ko solar year ka basis mana jata hai.&lt;br>&lt;br>Example: Earth ke revolution aur seasons ke cycle ke basis par year ko define kiya jata hai.\"\n  },\n  {\n    question: \"7. Solar year ka relation kis natural cycle se hai?\",\n    options: &#91;\n      \"A. Moon ke daily movement se\",\n      \"B. Earth ke Sun ke around revolution aur seasons ke cycle se\",\n      \"C. Earth ke ek rotation se\",\n      \"D. Stars ke daily colour change se\"\n    ],\n    correct: 1,\n    explanation: \"Earth jab Sun ke around ek revolution complete karti hai, toh lagbhag ek seasonal cycle complete hota hai. Is duration ko solar year kehte hain.&lt;br>&lt;br>Example: Summer, rainy season aur winter jaise seasonal changes year ke cycle ka part hain.\"\n  },\n  {\n    question: \"8. Earth ke revolution ka duration 365\u00bc days hone ka kya result hai?\",\n    options: &#91;\n      \"A. Har year mein 100 days hote hain\",\n      \"B. Calendar year hamesha exactly 365 days ka hona chahiye\",\n      \"C. Har year lagbhag ek-quarter day extra hota hai\",\n      \"D. Moon ke phases band ho jate hain\"\n    ],\n    correct: 2,\n    explanation: \"Earth ko Sun ke around ek revolution complete karne mein 365 days se lagbhag 6 hours zyada lagte hain. Yeh extra time chaar saal mein lagbhag ek din ho jata hai.&lt;br>&lt;br>Example: Isi extra time ko account karne ke liye leap year mein February mein 29 days hote hain, aam taur par har chaar saal mein.\"\n  },\n  {\n    question: \"9. Sun ki sky mein apparent daily movement ka main reason kya hai?\",\n    options: &#91;\n      \"A. Sun ka Earth ke around daily revolution\",\n      \"B. Earth ka apni axis par rotation\",\n      \"C. Moon ka Earth se door jaana\",\n      \"D. Earth ka apna size change karna\"\n    ],\n    correct: 1,\n    explanation: \"Sun humein east se west ki taraf move karta hua dikhta hai, lekin yeh apparent motion mainly Earth ke west-to-east rotation ke kaaran hota hai.&lt;br>&lt;br>Example: Subah Sun eastern sky mein aur shaam ko western sky mein dikhai deta hai.\"\n  },\n  {\n    question: \"10. Day, month aur year ke natural bases ka correct combination kaunsa hai?\",\n    options: &#91;\n      \"A. Day\u2014Moon's revolution; Month\u2014Earth's rotation; Year\u2014Sun's rotation\",\n      \"B. Day\u2014Earth's rotation; Month\u2014Moon's phase cycle; Year\u2014Earth's revolution around Sun\",\n      \"C. Day\u2014Earth's revolution; Month\u2014Sun's rotation; Year\u2014Moon's rotation\",\n      \"D. Day\u2014Stars; Month\u2014Earth's rotation; Year\u2014Moon's phases only\"\n    ],\n    correct: 1,\n    explanation: \"Different natural cycles time measure karne ke liye use hote hain. Earth ka rotation day ka, Moon ke phases ka cycle month ka aur Earth ka Sun ke around revolution year ka basis hai.&lt;br>&lt;br>Example: Hum daily schedule ke liye day, monthly planning ke liye month aur birthdays ya annual exams ke liye year use 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  if (!userName) return alert(\"Please enter your name.\");\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  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>&lt;hr>\n    `;\n  });\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a,b) => b.score - a.score);\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`).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\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Lunar and Solar Calendars&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Lunar and Solar Calendars&lt;\/h2>\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. Lunar calendar kis natural cycle par based hota hai?\",\n    options: &#91;\n      \"A. Earth ke rotation par\",\n      \"B. Moon ke phases ke cycle par\",\n      \"C. Sun ke colour change par\",\n      \"D. Earth ke daily temperature par\"\n    ],\n    correct: 1,\n    explanation: \"Lunar calendar mein Moon ke phases ke cycle ko time measure karne ke liye use kiya jata hai. Ek lunar month lagbhag 29.5 days ka hota hai.&lt;br>&lt;br>Example: Moon ke ek New Moon se agle New Moon tak ke cycle ko ek lunar month ka basis banaya ja sakta hai.\"\n  },\n  {\n    question: \"2. Ek lunar year mein generally kitne lunar months hote hain?\",\n    options: &#91;\n      \"A. 10\",\n      \"B. 11\",\n      \"C. 12\",\n      \"D. 13\"\n    ],\n    correct: 2,\n    explanation: \"Ancient people ne observe kiya tha ki ek seasonal cycle mein lagbhag 12 lunar cycles fit hote hain. Isliye lunar year mein 12 lunar months rakhe gaye.&lt;br>&lt;br>Example: 12 lunar months ko approximately 354 days mein complete kiya jata hai.\"\n  },\n  {\n    question: \"3. Ek lunar month ki duration lagbhag kitni hoti hai?\",\n    options: &#91;\n      \"A. 24 days\",\n      \"B. 29.5 days\",\n      \"C. 30.5 days\",\n      \"D. 365 days\"\n    ],\n    correct: 1,\n    explanation: \"Moon ke phases ka ek complete cycle lagbhag 29.5 days leta hai. Lunar calendar ka month isi natural cycle par based hota hai.&lt;br>&lt;br>Example: Ek Full Moon se agle Full Moon tak approximately 29\u201330 days lagte hain.\"\n  },\n  {\n    question: \"4. Lunar year ki duration approximately kitni hoti hai?\",\n    options: &#91;\n      \"A. 300 days\",\n      \"B. 354 days\",\n      \"C. 365 days\",\n      \"D. 400 days\"\n    ],\n    correct: 1,\n    explanation: \"Lunar year mein 12 lunar months hote hain. Inki total duration approximately 354 days hoti hai, jo solar year se lagbhag 11 days kam hai.&lt;br>&lt;br>Example: Agar solar year 365 days ka ho, toh lunar year approximately 11 days chhota hota hai.\"\n  },\n  {\n    question: \"5. Lunar calendar mein seasons har saal same lunar months ke saath synchronised kyun nahi rehte?\",\n    options: &#91;\n      \"A. Moon apni light produce nahi karta\",\n      \"B. Earth rotate nahi karti\",\n      \"C. Lunar year solar year se chhota hota hai\",\n      \"D. Har lunar month 40 days ka hota hai\"\n    ],\n    correct: 2,\n    explanation: \"Lunar year lagbhag 354 days ka hota hai, jabki seasons ka cycle approximately 365 days mein repeat hota hai. Isliye lunar calendar ke months seasons ke comparison mein har saal shift ho sakte hain.&lt;br>&lt;br>Example: Koi festival jo lunar calendar ki date par based ho, woh Gregorian calendar mein har saal different date par aa sakta hai.\"\n  },\n  {\n    question: \"6. Solar calendar banane ka important reason kya tha?\",\n    options: &#91;\n      \"A. Moon ka size measure karna\",\n      \"B. Seasons ko calendar ke saath synchronised rakhna\",\n      \"C. Stars ki counting karna\",\n      \"D. Day aur night ko khatam karna\"\n    ],\n    correct: 1,\n    explanation: \"Agriculture ke liye seasons ka sahi samay par aana important tha. Solar calendars ko seasons ke cycle ke saath synchronised rakhne ke liye develop kiya gaya.&lt;br>&lt;br>Example: Farmers ko sowing aur harvesting ke liye seasonal timing jaanne mein calendar help karta hai.\"\n  },\n  {\n    question: \"7. Aaj widely used Gregorian calendar kis type ka calendar hai?\",\n    options: &#91;\n      \"A. Lunar calendar\",\n      \"B. Solar calendar\",\n      \"C. Star calendar\",\n      \"D. Daily calendar only\"\n    ],\n    correct: 1,\n    explanation: \"Gregorian calendar Earth ke Sun ke around revolution aur seasonal cycle par based solar calendar hai. Ismein normal year 365 days ka hota hai.&lt;br>&lt;br>Example: January se December tak ka commonly used calendar Gregorian calendar hai.\"\n  },\n  {\n    question: \"8. Gregorian calendar mein February mein normal year ke dauran kitne days hote hain?\",\n    options: &#91;\n      \"A. 27\",\n      \"B. 28\",\n      \"C. 29\",\n      \"D. 30\"\n    ],\n    correct: 1,\n    explanation: \"Gregorian calendar mein normal year 365 days ka hota hai. February mein 28 days hote hain, jabki leap year mein 29 days hote hain.&lt;br>&lt;br>Example: 2025 ek normal year tha, isliye February mein 28 days the.\"\n  },\n  {\n    question: \"9. Leap year mein February mein kitne days hote hain?\",\n    options: &#91;\n      \"A. 27\",\n      \"B. 28\",\n      \"C. 29\",\n      \"D. 30\"\n    ],\n    correct: 2,\n    explanation: \"Earth ko Sun ke around ek revolution complete karne mein approximately 365\u00bc days lagte hain. Extra quarter days lagbhag chaar saal mein ek extra day banate hain. Is adjustment ke liye leap year mein February mein 29 days hote hain.&lt;br>&lt;br>Example: 2024 ek leap year tha, isliye February mein 29 days the.\"\n  },\n  {\n    question: \"10. Gregorian calendar ke basic rule ke according, agar year 4 se completely divisible hai, toh kya hota hai?\",\n    options: &#91;\n      \"A. Year mein sirf 300 days hote hain\",\n      \"B. February mein 29 days ho sakte hain\",\n      \"C. December mein 32 days hote hain\",\n      \"D. Lunar months 13 ho jate hain\"\n    ],\n    correct: 1,\n    explanation: \"Gregorian calendar ke basic rule ke according, 4 se divisible year leap year hota hai. Lekin century years ke liye exception hai: woh leap year tabhi hote hain jab 400 se bhi divisible hon.&lt;br>&lt;br>Example: 2024, 4 se divisible hai, isliye leap year tha. Lekin 1900 leap year nahi tha, kyunki woh 400 se divisible nahi tha.\"\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  if (!userName) return alert(\"Please enter your name.\");\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  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n  document.getElementById(\"prevBtn\").style.display = currentQuestion === 0 ? \"none\" : \"inline-block\";\n  document.getElementById(\"nextBtn\").style.display = currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n  document.getElementById(\"submitBtn\").style.display = currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>&lt;hr>\n    `;\n  });\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML = `&lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>`;\n}\n\nfunction saveScore(name, score) {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.push({ name, score, date: new Date().toLocaleString() });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a,b) => b.score - a.score);\n  document.getElementById(\"scoreList\").innerHTML = scores.map(s => `&lt;li>${s.name} - ${s.score}\/10 (${s.date})&lt;\/li>`).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\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Lunar and Solar Calendars (Q11\u2013Q20)&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct { background-color: #c8f7c5 !important; border-color: #28a745 !important; }\n  .wrong { background-color: #f8d7da !important; border-color: #dc3545 !important; }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Lunar and Solar Calendars (Q11\u2013Q20)&lt;\/h2>\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: \"Q11. Lunar year aur solar year ke duration mein approximately kitne days ka difference hota hai?\",\n    options: &#91;\n      \"A. 3 days\",\n      \"B. 7 days\",\n      \"C. 11 days\",\n      \"D. 30 days\"\n    ],\n    correct: 2,\n    explanation: \"Lunar year approximately 354 days ka hota hai, jabki solar year lagbhag 365 days ka hota hai. Dono ke beech lagbhag 11 days ka difference hota hai.&lt;br>&lt;br>Example: Agar lunar year 354 days ka hai aur solar year 365 days ka, toh difference 365 \u2212 354 = 11 days hoga.\"\n  },\n  {\n    question: \"Q12. Ancient people ne lunar calendar banane ke liye kis observation ka use kiya?\",\n    options: &#91;\n      \"A. Ek season mein lagbhag 12 lunar cycles hote hain\",\n      \"B. Har month 40 days ka hota hai\",\n      \"C. Earth har month Sun ke around revolve karti hai\",\n      \"D. Sun ke phases change hote hain\"\n    ],\n    correct: 0,\n    explanation: \"Ancient people ne notice kiya ki ek seasonal cycle mein lagbhag 12 Moon-phase cycles fit hote hain. Is observation se lunar calendar develop hua.&lt;br>&lt;br>Example: 12 lunar months ko mila kar ek lunar year banaya jata hai.\"\n  },\n  {\n    question: \"Q13. Solar calendar mein months ke days ka total normal year mein kitna hota hai?\",\n    options: &#91;\n      \"A. 354 days\",\n      \"B. 360 days\",\n      \"C. 365 days\",\n      \"D. 366 days\"\n    ],\n    correct: 2,\n    explanation: \"Gregorian calendar jaise solar calendars mein normal year ko 365 days ka rakha jata hai, taaki calendar seasons ke saath synchronised rahe.&lt;br>&lt;br>Example: January ke 31, February ke 28 aur baaki months ke days milkar normal year mein 365 days bante hain.\"\n  },\n  {\n    question: \"Q14. Earth ko Sun ke around ek revolution complete karne mein extra quarter day kyun important hai?\",\n    options: &#91;\n      \"A. Isse Moon ka size badhta hai\",\n      \"B. Is extra time ko adjust karna padta hai\",\n      \"C. Isse har month 40 days ka ho jata hai\",\n      \"D. Isse Earth ka rotation band hota hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth ka revolution approximately 365\u00bc days leta hai. Calendar mein har year 365 days count karne par extra time jama hota rehta hai. Lagbhag chaar saal mein yeh ek day ke aas-paas ho jata hai.&lt;br>&lt;br>Example: Isi adjustment ke liye leap year mein February mein ek extra day add kiya jata hai.\"\n  },\n  {\n    question: \"Q15. Agriculture mein solar calendar ka kya benefit hai?\",\n    options: &#91;\n      \"A. Moon ko bright banana\",\n      \"B. Seasons ke time ka estimate lagana\",\n      \"C. Earth ka rotation slow karna\",\n      \"D. Din ko 30 hours ka banana\"\n    ],\n    correct: 1,\n    explanation: \"Farming mein sowing aur harvesting ke liye seasons ka time jaana zaroori hota hai. Solar calendar seasons ke cycle ke saath synchronised rehta hai.&lt;br>&lt;br>Example: Farmers calendar ki help se expected seasonal periods ke according farming activities plan kar sakte hain.\"\n  },\n  {\n    question: \"Q16. Kaunsa statement lunar calendar ke baare mein correct hai?\",\n    options: &#91;\n      \"A. Iska month Moon ke phases par based hota hai\",\n      \"B. Iska year hamesha 365 days ka hota hai\",\n      \"C. Ismein Moon ke phases ka koi role nahi hota\",\n      \"D. Ismein har month 31 days ka hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Lunar calendar mein Moon ke phases ka cycle month ka basis hota hai. Ek lunar month lagbhag 29.5 days ka hota hai.&lt;br>&lt;br>Example: New Moon se agle New Moon tak ka time ek lunar cycle hota hai.\"\n  },\n  {\n    question: \"Q17. Gregorian calendar mein leap year ka basic purpose kya hai?\",\n    options: &#91;\n      \"A. Calendar ko seasons ke saath synchronised rakhna\",\n      \"B. Har month ko 35 days ka banana\",\n      \"C. Moon ke phases ko rokna\",\n      \"D. Har saal ko 354 days ka banana\"\n    ],\n    correct: 0,\n    explanation: \"Earth ka actual revolution approximately 365\u00bc days leta hai. Leap year extra time ko adjust karta hai, jisse calendar aur seasons ke beech long-term mismatch kam hota hai.&lt;br>&lt;br>Example: February mein 29th day add karne se leap year mein total 366 days hote hain.\"\n  },\n  {\n    question: \"Q18. Inmein se kaunsa year leap year tha?\",\n    options: &#91;\n      \"A. 2023\",\n      \"B. 2024\",\n      \"C. 2025\",\n      \"D. 2026\"\n    ],\n    correct: 1,\n    explanation: \"2024, 4 se completely divisible hai. Yeh century year bhi nahi hai, isliye Gregorian calendar ke according leap year hai.&lt;br>&lt;br>Example: 2024 mein February 28 days ke bajay 29 days ka tha.\"\n  },\n  {\n    question: \"Q19. Agar lunar year 354 days ka hai, toh 2 lunar years ki duration kitni hogi?\",\n    options: &#91;\n      \"A. 600 days\",\n      \"B. 698 days\",\n      \"C. 708 days\",\n      \"D. 730 days\"\n    ],\n    correct: 2,\n    explanation: \"Ek lunar year approximately 354 days ka hota hai. Do lunar years ke liye 354 \u00d7 2 = 708 days honge.&lt;br>&lt;br>Example: 354 + 354 = 708 days.\"\n  },\n  {\n    question: \"Q20. Gregorian calendar mein century year 2000 leap year kyun tha?\",\n    options: &#91;\n      \"A. Kyunki woh 4 se divisible tha, bas itna hi rule hai\",\n      \"B. Kyunki woh 100 se divisible tha\",\n      \"C. Kyunki woh 400 se bhi divisible tha\",\n      \"D. Kyunki usmein February ke 30 days the\"\n    ],\n    correct: 2,\n    explanation: \"Gregorian calendar mein century years, jaise 1900 aur 2000, leap year tabhi hote hain jab woh 400 se completely divisible hon.&lt;br>&lt;br>Example: 2000 \u00f7 400 = 5, isliye 2000 leap year tha. Lekin 1900, 400 se divisible nahi tha, isliye leap year nahi tha.\"\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  if (!userName) return alert(\"Please enter your name.\");\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions&#91;currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    &lt;div class=\"question\">${q.question}&lt;\/div>\n    &lt;div class=\"options\">\n      ${q.options.map((opt, i) => `\n        &lt;label>\n          &lt;input type=\"radio\" name=\"option\" value=\"${i}\" ${userAnswers&#91;currentQuestion] == i ? 'checked' : ''}>\n          ${opt}\n        &lt;\/label>\n      `).join('')}\n    &lt;\/div>\n    &lt;div class=\"explanation\" id=\"explain${currentQuestion}\">${q.explanation}&lt;\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n  if (currentQuestion &lt; questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input&#91;name=\"option\"]:checked');\n  userAnswers&#91;currentQuestion] = selected ? parseInt(selected.value) : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n      if (i === correct) cls = \"correct\";\n      if (selected === i &amp;&amp; selected !== correct) cls = \"wrong\";\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join('');\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">${q.explanation}&lt;\/div>\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n  document.getElementById(\"result\").innerHTML =\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  scores.push({\n    name,\n    score,\n    date: new Date().toLocaleString()\n  });\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\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\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Luni-solar Calendar&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Luni-solar Calendar&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. Luni-solar calendar kya hota hai?\",\n    options: &#91;\n      \"A. Jo sirf Sun par based hota hai\",\n      \"B. Jo sirf Moon par based hota hai\",\n      \"C. Jo Moon ke phases aur seasons dono ko consider karta hai\",\n      \"D. Jo sirf stars par based hota hai\"\n    ],\n    correct: 2,\n    explanation: \"Luni-solar calendar Moon ke phases se days aur months count karta hai, lekin seasons ke saath synchronisation banaye rakhne ke liye adjustments bhi karta hai.&lt;br>&lt;br>Example: Indian calendars mein zaroorat padne par ek extra month add kiya ja sakta hai.\"\n  },\n  {\n    question: \"2. 12 lunar months milkar approximately kitne days ke hote hain?\",\n    options: &#91;\n      \"A. 300 days\",\n      \"B. 354 days\",\n      \"C. 365 days\",\n      \"D. 400 days\"\n    ],\n    correct: 1,\n    explanation: \"Ek lunar year mein 12 lunar months hote hain. Inki total duration approximately 354 days hoti hai.&lt;br>&lt;br>Example: Agar har lunar year 354 days ka ho, toh 12 lunar months milkar lagbhag 354 days honge.\"\n  },\n  {\n    question: \"3. Lunar year, solar year se approximately kitne days chhota hota hai?\",\n    options: &#91;\n      \"A. 5 days\",\n      \"B. 7 days\",\n      \"C. 11 days\",\n      \"D. 20 days\"\n    ],\n    correct: 2,\n    explanation: \"Lunar year approximately 354 days ka hota hai, jabki solar year approximately 365 days ka hota hai. Isliye difference lagbhag 11 days hai.&lt;br>&lt;br>Example: 365 \u2212 354 = 11 days.\"\n  },\n  {\n    question: \"4. Luni-solar calendars mein extra month kyun add kiya jata hai?\",\n    options: &#91;\n      \"A. Year ko 400 days ka banane ke liye\",\n      \"B. Lunar cycle aur solar year ko synchronised rakhne ke liye\",\n      \"C. Moon ki speed badhane ke liye\",\n      \"D. Har month ko 40 days ka banane ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Lunar year, solar year se chhota hota hai. Is difference ko adjust karne ke liye kuch saalon ke baad extra month add kiya jata hai.&lt;br>&lt;br>Example: Extra month add karne se calendar lunar months aur seasons ke beech ka difference kam karta hai.\"\n  },\n  {\n    question: \"5. Luni-solar calendar mein extra month ko kya kehte hain?\",\n    options: &#91;\n      \"A. Adhika Maasa\",\n      \"B. Uttarayan\",\n      \"C. Dakshinayan\",\n      \"D. Equinox\"\n    ],\n    correct: 0,\n    explanation: \"Adhika Maasa ek additional lunar month hai, jise kuch luni-solar calendars mein time adjustment ke liye add kiya jata hai.&lt;br>&lt;br>Example: Jab lunar months aur solar year ke beech difference accumulate ho jata hai, toh calendar mein Adhika Maasa include kiya ja sakta hai.\"\n  },\n  {\n    question: \"6. Adhika Maasa approximately kitne saal ke interval par add kiya jata hai?\",\n    options: &#91;\n      \"A. Har saal\",\n      \"B. Har 2\u20133 saal\",\n      \"C. Har 10 saal\",\n      \"D. Har 20 saal\"\n    ],\n    correct: 1,\n    explanation: \"Har lunar year mein approximately 11 days ka difference hota hai. Do se teen saal mein yeh difference lagbhag ek lunar month ke aas-paas ho sakta hai.&lt;br>&lt;br>Example: 11 days \u00d7 3 years = approximately 33 days. Is accumulated difference ko adjust karne ke liye extra month add kiya ja sakta hai.\"\n  },\n  {\n    question: \"7. Uttarayan kis period mein Sun ki apparent movement ko kehte hain?\",\n    options: &#91;\n      \"A. June se December\",\n      \"B. December se June\",\n      \"C. March se September\",\n      \"D. January se February\"\n    ],\n    correct: 1,\n    explanation: \"Sun ki apparent northward movement ko Uttarayan kaha jata hai. Textbook ke according, yeh December se June tak hoti hai.&lt;br>&lt;br>Example: December solstice ke baad Sun sunrise ke point par dheere-dheere northward shift hota hua dikhta hai.\"\n  },\n  {\n    question: \"8. Dakshinayan ka kya meaning hai?\",\n    options: &#91;\n      \"A. Sun ki apparent northward movement\",\n      \"B. Moon ka Earth ke around revolution\",\n      \"C. Sun ki apparent southward movement\",\n      \"D. Earth ka apni axis par rotation\"\n    ],\n    correct: 2,\n    explanation: \"June se December tak Sun ka sunrise point dheere-dheere southward shift hota hua dikhta hai. Is apparent movement ko Dakshinayan kehte hain.&lt;br>&lt;br>Example: June solstice ke baad sunrise ka point horizon par dheere-dheere south ki taraf move karta hua nazar aata hai.\"\n  },\n  {\n    question: \"9. Summer solstice aur winter solstice approximately kab hote hain?\",\n    options: &#91;\n      \"A. 21 March aur 23 September\",\n      \"B. 21 June aur 21 December\",\n      \"C. 1 January aur 1 July\",\n      \"D. 15 April aur 15 October\"\n    ],\n    correct: 1,\n    explanation: \"Northern Hemisphere mein summer solstice approximately 21 June aur winter solstice approximately 21 December ko hota hai. Exact date year ke according thodi vary kar sakti hai.&lt;br>&lt;br>Example: June solstice ke aas-paas Northern Hemisphere mein daytime duration saal ke maximum ke kareeb hoti hai.\"\n  },\n  {\n    question: \"10. Luni-solar calendar mein kaun-se do calendar systems ke elements combine hote hain?\",\n    options: &#91;\n      \"A. Solar aur lunar calendars\",\n      \"B. Gregorian aur digital calendars\",\n      \"C. Weekly aur daily calendars\",\n      \"D. Seasonal aur clock calendars\"\n    ],\n    correct: 0,\n    explanation: \"Luni-solar calendar Moon ke phases ko months count karne ke liye use karta hai aur solar year ke saath seasons ka connection banaye rakhne ke liye adjustments karta hai.&lt;br>&lt;br>Example: Lunar months ko follow karte hue extra month add karna, luni-solar calendar ka ek important feature 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    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\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${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}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">ch11 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 Indian National Calendar and Festivals&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Indian National Calendar and Festivals&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. Indian National Calendar ko kaun use karta hai?\",\n    options: &#91;\n      \"A. Sirf private companies\",\n      \"B. Government of India\",\n      \"C. Sirf schools\",\n      \"D. Sirf banks\"\n    ],\n    correct: 1,\n    explanation: \"Indian National Calendar ko Government of India, Gregorian calendar ke saath, multiple official purposes ke liye use karti hai.&lt;br>&lt;br>Example: Official records mein Gregorian calendar ke saath Indian National Calendar ka bhi use ho sakta hai.\"\n  },\n  {\n    question: \"2. Indian National Calendar kis type ka calendar hai?\",\n    options: &#91;\n      \"A. Lunar calendar\",\n      \"B. Luni-solar calendar\",\n      \"C. Solar calendar\",\n      \"D. Weekly calendar\"\n    ],\n    correct: 2,\n    explanation: \"Indian National Calendar solar calendar hai. Yeh Sun aur solar year par based hai aur regular year mein 365 days hote hain.&lt;br>&lt;br>Example: Is calendar mein year ki length seasons ke cycle ke saath aligned rehti hai.\"\n  },\n  {\n    question: \"3. Indian National Calendar ka New Year regular year mein kab start hota hai?\",\n    options: &#91;\n      \"A. 1 January\",\n      \"B. 22 March\",\n      \"C. 15 August\",\n      \"D. 21 June\"\n    ],\n    correct: 1,\n    explanation: \"Indian National Calendar ka year 22 March ko start hota hai, jo spring equinox ke agle din hota hai.&lt;br>&lt;br>Example: Regular year mein Chaitra month ka first day 22 March ko hota hai.\"\n  },\n  {\n    question: \"4. Indian National Calendar mein months mein kitne days hote hain?\",\n    options: &#91;\n      \"A. Har month mein 28 days\",\n      \"B. Har month mein 29 days\",\n      \"C. Har month mein 30 ya 31 days\",\n      \"D. Har month mein 35 days\"\n    ],\n    correct: 2,\n    explanation: \"Gregorian calendar se alag, Indian National Calendar mein months 30 ya 31 days ke hote hain.&lt;br>&lt;br>Example: Regular year mein second se sixth month tak 31 days hote hain, jabki baaki months mein 30 days hote hain.\"\n  },\n  {\n    question: \"5. Indian National Calendar ke leap year mein extra day kis month mein add kiya jata hai?\",\n    options: &#91;\n      \"A. Vaishakha\",\n      \"B. Chaitra\",\n      \"C. Kartika\",\n      \"D. Phalguna\"\n    ],\n    correct: 1,\n    explanation: \"Leap year mein Chaitra, jo Indian National Calendar ka first month hai, usmein ek extra day add kiya jata hai.&lt;br>&lt;br>Example: Regular year mein New Year 22 March ko start hota hai, jabki leap year mein 21 March ko start hota hai.\"\n  },\n  {\n    question: \"6. Diwali Moon ke kis phase par celebrate ki jati hai?\",\n    options: &#91;\n      \"A. Full Moon\",\n      \"B. Crescent Moon\",\n      \"C. New Moon\",\n      \"D. First Quarter Moon\"\n    ],\n    correct: 2,\n    explanation: \"Diwali, Kartika month ke New Moon day par celebrate ki jati hai. New Moon ko Amavasya bhi kehte hain.&lt;br>&lt;br>Example: Diwali ki date Gregorian calendar mein har saal change hoti hai, kyunki yeh lunar phase par based hai.\"\n  },\n  {\n    question: \"7. Holi kis lunar phase par celebrate ki jati hai?\",\n    options: &#91;\n      \"A. New Moon\",\n      \"B. Full Moon\",\n      \"C. Crescent Moon\",\n      \"D. Last Quarter Moon\"\n    ],\n    correct: 1,\n    explanation: \"Holi, Phalguna month ke Full Moon par celebrate ki jati hai. Full Moon ko Purnima kehte hain.&lt;br>&lt;br>Example: Holi ki Gregorian date har saal same nahi hoti, kyunki festival lunar calendar se related hai.\"\n  },\n  {\n    question: \"8. Eid-ul-Fitr kab celebrate ki jati hai?\",\n    options: &#91;\n      \"A. New Moon ke din\",\n      \"B. Full Moon ke din\",\n      \"C. Ramazan ke end mein crescent Moon sighting ke baad\",\n      \"D. Summer solstice ke din\"\n    ],\n    correct: 2,\n    explanation: \"Eid-ul-Fitr Ramazan ke month ke end par crescent Moon dikhne ke baad celebrate ki jati hai. Yeh Islamic lunar calendar se related hai.&lt;br>&lt;br>Example: Moon sighting aur lunar dates ke kaaran Eid-ul-Fitr ki Gregorian date har saal change hoti hai.\"\n  },\n  {\n    question: \"9. Luni-solar calendar par based festivals ki Gregorian dates mein change usually ek month se kam kyun hota hai?\",\n    options: &#91;\n      \"A. Kyunki har month mein 40 days hote hain\",\n      \"B. Kyunki extra month add karke lunar aur solar year ka difference adjust kiya jata hai\",\n      \"C. Kyunki Earth rotate nahi karti\",\n      \"D. Kyunki Moon ke phases change nahi hote\"\n    ],\n    correct: 1,\n    explanation: \"Luni-solar calendar mein kuch saalon ke baad Adhika Maasa ya extra month add hota hai. Isse lunar months aur solar seasons ke beech coordination bana rehta hai.&lt;br>&lt;br>Example: Is adjustment ke kaaran Diwali jaise festivals ki Gregorian dates change hoti hain, lekin unka seasonal position generally bana rehta hai.\"\n  },\n  {\n    question: \"10. Purely lunar calendar par based festival Gregorian calendar ke different months mein kyun aa sakta hai?\",\n    options: &#91;\n      \"A. Lunar year solar year se chhota hota hai aur difference adjust nahi kiya jata\",\n      \"B. Solar year sirf 200 days ka hota hai\",\n      \"C. Moon har saal same phase mein rehta hai\",\n      \"D. Gregorian calendar mein leap year nahi hota\"\n    ],\n    correct: 0,\n    explanation: \"Lunar year approximately 354 days ka hota hai, jabki solar year approximately 365 days ka hota hai. Purely lunar calendar seasons ke saath aligned rehne ke liye is difference ko adjust nahi karta.&lt;br>&lt;br>Example: Eid-ul-Fitr lunar calendar follow karti hai, isliye woh alag-alag Gregorian months mein aa sakti 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    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\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${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\">ch11 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;title>\ud83e\udde0 Science Quiz \u2013 Artificial Satellites and Space Technology&lt;\/title>\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n  h2 { text-align: center; color: #1e3c72; }\n  .question { font-weight: bold; margin: 10px 0; }\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n  .options label:hover { background: #f0f0f0; }\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n  }\n  .controls { text-align: center; margin-top: 15px; }\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n  button:hover { background-color: #1e3c72; }\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n  #scoreboard h3 { text-align: center; }\n  ol { padding-left: 20px; }\n&lt;\/style>\n&lt;\/head>\n&lt;body>\n  &lt;div class=\"quiz-container\">\n    &lt;h2>\ud83e\udde0 Science Quiz \u2013 Artificial Satellites and Space Technology&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. Artificial satellites ko space mein launch karne ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Earth ki gravity khatam karna\",\n      \"B. Communication, navigation aur scientific research mein help karna\",\n      \"C. Sun ki light ko block karna\",\n      \"D. Naye planets banana\"\n    ],\n    correct: 1,\n    explanation: \"Artificial satellites alag-alag useful tasks perform karte hain, jaise communication, navigation, weather monitoring aur disaster management.&lt;br>&lt;br>Example: GPS satellite ki help se hum mobile phone par apni location aur route find kar sakte hain.\"\n  },\n  {\n    question: \"2. Natural satellite aur artificial satellite mein kya difference hai?\",\n    options: &#91;\n      \"A. Natural satellite insaan banate hain\",\n      \"B. Artificial satellite naturally space mein banta hai\",\n      \"C. Natural satellite naturally exist karta hai, jabki artificial satellite humans banate hain\",\n      \"D. Dono ka koi difference nahi hai\"\n    ],\n    correct: 2,\n    explanation: \"Natural satellites nature mein exist karte hain, jabki artificial satellites humans banakar rockets ki help se space mein launch karte hain.&lt;br>&lt;br>Example: Moon Earth ka natural satellite hai, jabki Cartosat ek artificial satellite hai.\"\n  },\n  {\n    question: \"3. Weather forecasting mein artificial satellites kaise help karte hain?\",\n    options: &#91;\n      \"A. Clouds aur weather systems ko observe karke\",\n      \"B. Earth ko rotate karke\",\n      \"C. Rain ko completely stop karke\",\n      \"D. Sun ka temperature kam karke\"\n    ],\n    correct: 0,\n    explanation: \"Weather satellites clouds, storms aur atmospheric conditions ki information collect karte hain. Is information se weather forecasts banane mein help milti hai.&lt;br>&lt;br>Example: Cyclone ke movement ko satellite images se monitor karke logon ko warning di ja sakti hai.\"\n  },\n  {\n    question: \"4. GPS navigation ke liye satellites ka kya use hai?\",\n    options: &#91;\n      \"A. Mobile ki battery charge karna\",\n      \"B. Location aur direction determine karne mein help karna\",\n      \"C. Internet ko permanently free karna\",\n      \"D. Buildings ko move karna\"\n    ],\n    correct: 1,\n    explanation: \"Navigation satellites signals bhejte hain. GPS receiver in signals ki help se apni location calculate karta hai.&lt;br>&lt;br>Example: Google Maps par apni current location dekhna aur destination tak ka route follow karna.\"\n  },\n  {\n    question: \"5. Earth ki detailed images capture karne wale satellites ka use kis kaam mein hota hai?\",\n    options: &#91;\n      \"A. City planning aur map making\",\n      \"B. Food cook karne\",\n      \"C. Mobile screen repair karne\",\n      \"D. Earth ki rotation rokne\"\n    ],\n    correct: 0,\n    explanation: \"Earth observation satellites land, roads, vegetation aur settlements ki images capture karte hain. In images se maps aur city plans improve kiye ja sakte hain.&lt;br>&lt;br>Example: Kisi city mein naye roads ya buildings plan karne ke liye satellite images useful ho sakti hain.\"\n  },\n  {\n    question: \"6. Stars aur other celestial objects ka scientific observation karne ke liye India ne kaunsa mission launch kiya?\",\n    options: &#91;\n      \"A. Cartosat\",\n      \"B. AstroSat\",\n      \"C. Mangalyaan\",\n      \"D. Bhuvan\"\n    ],\n    correct: 1,\n    explanation: \"AstroSat ek Indian space observatory mission hai, jo stars aur other celestial objects ka scientific observation karta hai.&lt;br>&lt;br>Example: Scientists AstroSat se milne wale data ka use space objects ko study karne ke liye kar sakte hain.\"\n  },\n  {\n    question: \"7. India ke Aditya-L1 mission ka main objective kya hai?\",\n    options: &#91;\n      \"A. Moon ka mapping karna\",\n      \"B. Mars par land karna\",\n      \"C. Sun ka study karna\",\n      \"D. Earth ke oceans ko clean karna\"\n    ],\n    correct: 2,\n    explanation: \"Aditya-L1 India ka solar mission hai. Iska purpose Sun aur uski activities ko study karna hai.&lt;br>&lt;br>Example: Scientists Sun ke outer atmosphere aur solar activity ko samajhne ke liye Aditya-L1 ke observations ka use karte hain.\"\n  },\n  {\n    question: \"8. Space debris working satellites ke liye dangerous kyun hai?\",\n    options: &#91;\n      \"A. Yeh satellites se collide karke unhe damage kar sakta hai\",\n      \"B. Yeh Earth ki gravity ko completely khatam kar deta hai\",\n      \"C. Yeh sabhi stars ko cover kar deta hai\",\n      \"D. Yeh Moon ko Earth se door kar deta hai\"\n    ],\n    correct: 0,\n    explanation: \"Purane satellites aur rocket parts space mein debris ban sakte hain. High speed se move karne wala debris active satellites ko damage kar sakta hai.&lt;br>&lt;br>Example: Ek chhota metal fragment bhi fast-moving satellite se takrakar uske important instruments ko damage kar sakta hai.\"\n  },\n  {\n    question: \"9. Earth ke atmosphere mein enter karne par small space debris ka kya ho sakta hai?\",\n    options: &#91;\n      \"A. Woh ek naya satellite ban jata hai\",\n      \"B. Woh atmosphere mein jal sakta hai\",\n      \"C. Woh hamesha ke liye hawa mein float karta hai\",\n      \"D. Woh Moon ban jata hai\"\n    ],\n    correct: 1,\n    explanation: \"Earth ke atmosphere mein enter karte waqt debris bahut tez speed se travel karta hai aur heating ke kaaran chhote pieces aksar burn up ho jaate hain. Bade pieces ke kuch parts ground tak pahunch sakte hain.&lt;br>&lt;br>Example: Ek chhota fragment atmosphere mein jal kar destroy ho sakta hai, lekin ek bada fragment ground tak pahunchne ka risk rakh sakta hai.\"\n  },\n  {\n    question: \"10. Vikram Sarabhai ko Father of the Indian Space Programme kyun kaha jata hai?\",\n    options: &#91;\n      \"A. Unhone India mein space science aur satellite programme ko aage badhane mein pioneering role nibhaya\",\n      \"B. Unhone India ka pehla computer banaya\",\n      \"C. Unhone GPS invent kiya\",\n      \"D. Unhone Moon par pehla human bheja\"\n    ],\n    correct: 0,\n    explanation: \"Vikram Sarabhai ne India ke space programme ki foundation aur development mein important contribution diya. Unke honour mein Vikram Sarabhai Space Centre ka naam rakha gaya.&lt;br>&lt;br>Example: VSSC, Thiruvananthapuram mein, rockets aur launch vehicle technology develop karne ke liye kaam karta hai.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = &#91;];\nlet userName = \"\";\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    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\n  userAnswers&#91;currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\n}\n\nfunction submitQuiz() {\n  saveAnswer();\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers&#91;index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers&#91;index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) {\n        cls = \"correct\";\n      }\n\n      if (selected === i &amp;&amp; selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `&lt;label class=\"${cls}\">${opt}&lt;\/label>`;\n    }).join(\"\");\n\n    container.innerHTML += `\n      &lt;div class=\"question\">${q.question}&lt;\/div>\n      &lt;div class=\"options\">${optsHTML}&lt;\/div>\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${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\">ch11 part11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n&lt;meta charset=\"UTF-8\">\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n&lt;title>Science Quiz \u2013 Moon Phases, Earth and Satellites&lt;\/title>\n\n&lt;style>\n  body {\n    font-family: Arial, sans-serif;\n    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    padding: 30px;\n    min-height: 100vh;\n  }\n\n  .quiz-container {\n    background: #fff;\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n    width: 90%;\n    max-width: 800px;\n  }\n\n  h2 {\n    text-align: center;\n    color: #1e3c72;\n  }\n\n  .question {\n    font-weight: bold;\n    margin: 10px 0;\n    line-height: 1.6;\n  }\n\n  .options label {\n    display: block;\n    margin: 8px 0;\n    padding: 10px;\n    border-radius: 6px;\n    border: 1px solid #ccc;\n    cursor: pointer;\n    transition: 0.3s;\n  }\n\n  .options label:hover {\n    background: #f0f0f0;\n  }\n\n  .correct {\n    background-color: #c8f7c5 !important;\n    border-color: #28a745 !important;\n  }\n\n  .wrong {\n    background-color: #f8d7da !important;\n    border-color: #dc3545 !important;\n  }\n\n  .explanation {\n    background: #e9ecef;\n    padding: 10px;\n    margin-top: 10px;\n    border-left: 5px solid #2a5298;\n    display: none;\n    line-height: 1.6;\n  }\n\n  .controls {\n    text-align: center;\n    margin-top: 15px;\n  }\n\n  button {\n    background-color: #2a5298;\n    color: white;\n    border: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    cursor: pointer;\n    margin: 5px;\n  }\n\n  button:hover {\n    background-color: #1e3c72;\n  }\n\n  #scoreboard {\n    margin-top: 25px;\n    background: #eef3f7;\n    padding: 15px;\n    border-radius: 8px;\n  }\n\n  #scoreboard h3 {\n    text-align: center;\n  }\n\n  ol {\n    padding-left: 20px;\n  }\n\n  #userName {\n    padding: 10px;\n    width: 60%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n  }\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n&lt;div class=\"quiz-container\">\n\n  &lt;h2>\ud83c\udf19 Science Quiz \u2013 Moon Phases, Earth and Satellites&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. Moon ka kaunsa part humein Earth se visible hota hai?\",\n    options: &#91;\n      \"A. Hamesha poora Moon\",\n      \"B. Moon ka woh part jo sunlight reflect karke hamari taraf bhejta hai\",\n      \"C. Sirf Moon ka dark part\",\n      \"D. Sirf Moon ka south pole\"\n    ],\n    correct: 1,\n    explanation: \"Moon apni light produce nahi karta. Woh Sun ki light reflect karta hai. Humein Moon ka wahi illuminated part dikhai deta hai jiska reflected light hamari taraf aata hai.&lt;br>&lt;br>Example: Full Moon par humein Moon ka illuminated face almost poora circular dikhai deta hai.\"\n  },\n\n  {\n    question: \"2. Moon ki phases change hone ka main reason kya hai?\",\n    options: &#91;\n      \"A. Earth ki shadow har raat Moon par padti hai\",\n      \"B. Moon apni light produce karta hai\",\n      \"C. Earth ke around Moon ki movement ke kaaran humein uska illuminated part different amounts mein dikhta hai\",\n      \"D. Sun har month apni light band kar deta hai\"\n    ],\n    correct: 2,\n    explanation: \"Sun hamesha Moon ke ek half ko illuminate karta hai. Moon ke Earth ke around move karne par humein illuminated portion ka different view milta hai, jisse phases banti hain.&lt;br>&lt;br>Example: New Moon par Moon ka illuminated portion Earth se almost invisible hota hai, jabki Full Moon par poora visible face illuminated hota hai.\"\n  },\n\n  {\n    question: \"3. Agar kisi vyakti ka birthday Full Moon ke din ho, toh kya har saal uska birthday Full Moon par hi hoga?\",\n    options: &#91;\n      \"A. Haan, kyunki birthday ki date fixed hoti hai\",\n      \"B. Nahi, kyunki lunar cycle aur solar calendar ka cycle same nahi hota\",\n      \"C. Haan, kyunki Full Moon har 30 January ko hota hai\",\n      \"D. Nahi, kyunki Moon har saal disappear ho jata hai\"\n    ],\n    correct: 1,\n    explanation: \"Birthday Gregorian calendar ki fixed date par hota hai, lekin Moon ke phases lunar cycle follow karte hain. Isliye har saal birthday par same phase hona zaroori nahi hai.&lt;br>&lt;br>Example: 6 May ko ek saal Full Moon ho sakta hai, lekin agle saal 6 May ko Moon kisi aur phase mein ho sakta hai.\"\n  },\n\n  {\n    question: \"4. Kaunsa Moon phase sunset se sunrise tak poori raat sky mein visible reh sakta hai?\",\n    options: &#91;\n      \"A. New Moon\",\n      \"B. Crescent Moon\",\n      \"C. Full Moon\",\n      \"D. First Quarter Moon\"\n    ],\n    correct: 2,\n    explanation: \"Full Moon approximately sunset ke aas-paas rise karta hai aur sunrise ke aas-paas set hota hai. Isliye woh lagbhag poori raat sky mein visible ho sakta hai.&lt;br>&lt;br>Example: Full Moon night par Moon ko evening se early morning tak observe kiya ja sakta hai, agar sky clear ho.\"\n  },\n\n  {\n    question: \"5. Waxing Moon ka kya meaning hai?\",\n    options: &#91;\n      \"A. Moon ka illuminated visible portion badh raha hai\",\n      \"B. Moon ka illuminated visible portion ghat raha hai\",\n      \"C. Moon Earth ke around move nahi kar raha\",\n      \"D. Moon par Earth ki shadow hamesha pad rahi hai\"\n    ],\n    correct: 0,\n    explanation: \"New Moon ke baad Full Moon tak Moon ka illuminated visible portion gradually increase hota hai. Is phase ko waxing kehte hain.&lt;br>&lt;br>Example: Crescent Moon se First Quarter aur phir Gibbous Moon ki taraf badhna waxing ka example hai.\"\n  },\n\n  {\n    question: \"6. Lunar aur luni-solar calendars mein intercalary month add karne ka main purpose kya hai?\",\n    options: &#91;\n      \"A. Har month ko 40 days ka banana\",\n      \"B. Lunar months aur solar seasons ke beech coordination maintain karna\",\n      \"C. Earth ki rotation ko slow karna\",\n      \"D. Moon ko Earth ke paas lana\"\n    ],\n    correct: 1,\n    explanation: \"Lunar year solar year se approximately 11 days chhota hota hai. Luni-solar calendars mein kuch saalon ke baad extra month add karke is difference ko adjust kiya jata hai.&lt;br>&lt;br>Example: Adhika Maasa Indian luni-solar calendars mein extra month ka example hai.\"\n  },\n\n  {\n    question: \"7. Earth par ek day measure karne ka basis kya hai?\",\n    options: &#91;\n      \"A. Moon ka Earth ke around revolution\",\n      \"B. Earth ka apni axis par ek rotation\",\n      \"C. Earth ka Sun ke around ek revolution\",\n      \"D. Sun ka apni axis par rotation\"\n    ],\n    correct: 1,\n    explanation: \"Day-night cycle Earth ke apni axis par rotate karne ke kaaran hota hai. Ek mean solar day approximately 24 hours ka hota hai.&lt;br>&lt;br>Example: Jab Earth ka koi part Sun ki taraf hota hai, wahan day hota hai; opposite side par night hoti hai.\"\n  },\n\n  {\n    question: \"8. Earth ko Sun ke around ek revolution complete karne mein approximately kitna time lagta hai?\",\n    options: &#91;\n      \"A. 24 hours\",\n      \"B. 29.5 days\",\n      \"C. 365\u00bc days\",\n      \"D. 100 minutes\"\n    ],\n    correct: 2,\n    explanation: \"Earth ko Sun ke around ek revolution complete karne mein approximately 365\u00bc days lagte hain. Isi duration par year based hota hai.&lt;br>&lt;br>Example: Extra quarter-day ko adjust karne ke liye Gregorian calendar mein generally har chaar saal mein leap year rakha jata hai, century-year exceptions ke saath.\"\n  },\n\n  {\n    question: \"9. Artificial satellites launch karne ka important purpose kya hai?\",\n    options: &#91;\n      \"A. Communication, navigation, weather monitoring aur research\",\n      \"B. Earth ko stop karna\",\n      \"C. Sun ko Earth ke around revolve karwana\",\n      \"D. Moon ki phases ko khatam karna\"\n    ],\n    correct: 0,\n    explanation: \"Artificial satellites information collect aur transmit karte hain. Ye communication services, GPS navigation, weather forecasts aur scientific studies mein help karte hain.&lt;br>&lt;br>Example: Weather satellite cyclone ko monitor karne mein help karta hai, jabki navigation satellites location determine karne mein help karte hain.\"\n  },\n\n  {\n    question: \"10. Agar 3 saalon mein 37 Full Moons hote hain, toh kya zaroori hai ki kam se kam do Full Moons ek hi Gregorian month mein aayein?\",\n    options: &#91;\n      \"A. Haan, kyunki Gregorian calendar mein sirf 12 months hote hain\",\n      \"B. Nahi, kyunki har month mein exactly 3 Full Moons hote hain\",\n      \"C. Nahi, kyunki Full Moon sirf February mein hota hai\",\n      \"D. Haan, kyunki har saal mein sirf ek Full Moon hota hai\"\n    ],\n    correct: 0,\n    explanation: \"Teen saalon mein total 36 calendar-month positions hoti hain (12 months \u00d7 3 years). Lekin Full Moons 37 hain. Isliye 37 Full Moons ko 36 month positions mein distribute karne par kam se kam ek month position mein do Full Moons aane hi chahiye.&lt;br>&lt;br>Example: Agar har month mein ek hi Full Moon hota, toh maximum 36 Full Moons hote. 37th Full Moon ki wajah se kisi ek month mein doosra Full Moon bhi aayega.\"\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;p>&lt;strong>Question ${currentQuestion + 1} of ${questions.length}&lt;\/strong>&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\n            type=\"radio\"\n            name=\"option\"\n            value=\"${i}\"\n            ${userAnswers&#91;currentQuestion] === i ? \"checked\" : \"\"}\n          >\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\n      &lt;div class=\"options\">\n        ${optsHTML}\n      &lt;\/div>\n\n      &lt;div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      &lt;\/div>\n\n      &lt;hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    &lt;h3>Your Score: ${score} \/ ${questions.length}&lt;\/h3>\n    &lt;p>${score === questions.length\n      ? \"Excellent! All answers are correct.\"\n      : \"Keep practicing to improve your score!\"}\n    &lt;\/p>\n  `;\n}\n\nfunction saveScore(name, score) {\n\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\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || &#91;];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `&lt;li>${s.name} - ${s.score}\/${questions.length} (${s.date})&lt;\/li>`\n    ).join(\"\");\n}\n\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ch11 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-5425","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5425","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=5425"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5425\/revisions"}],"predecessor-version":[{"id":5426,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5425\/revisions\/5426"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}