{"id":5321,"date":"2026-10-28T14:17:43","date_gmt":"2026-10-28T14:17:43","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5321"},"modified":"2026-10-28T14:18:36","modified_gmt":"2026-10-28T14:18:36","slug":"class-8th-subject-science-chapter-1","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5321","title":{"rendered":"Class 8th ,Subject Science, Chapter 1"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Exploring the Investigative World of Science Quiz<\/title>\n\n<style>\nbody {\n  font-family: Arial, sans-serif;\n  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: 30px;\n  min-height: 100vh;\n  margin: 0;\n  box-sizing: border-box;\n}\n\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\n\nh2 {\n  text-align: center;\n  color: #1e3c72;\n}\n\n.question {\n  font-weight: bold;\n  margin: 20px 0 12px;\n  line-height: 1.6;\n}\n\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 12px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n  line-height: 1.5;\n}\n\n.options label:hover {\n  background: #f0f0f0;\n}\n\n.options input {\n  margin-right: 8px;\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: 12px;\n  margin-top: 10px;\n  margin-bottom: 18px;\n  border-left: 5px solid #2a5298;\n  border-radius: 4px;\n  line-height: 1.6;\n}\n\n.controls {\n  text-align: center;\n  margin-top: 20px;\n}\n\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n  font-size: 15px;\n}\n\nbutton:hover {\n  background-color: #1e3c72;\n}\n\n#userName {\n  padding: 11px;\n  width: 65%;\n  max-width: 300px;\n  border: 1px solid #bbb;\n  border-radius: 6px;\n  font-size: 15px;\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#scoreList {\n  padding-left: 25px;\n  line-height: 1.8;\n}\n\n#result {\n  text-align: center;\n  margin-top: 20px;\n  color: #1e3c72;\n}\n\n@media (max-width: 600px) {\n  body {\n    padding: 12px;\n  }\n\n  .quiz-container {\n    width: 100%;\n    padding: 15px;\n    box-sizing: border-box;\n  }\n\n  #userName {\n    width: 90%;\n    box-sizing: border-box;\n  }\n}\n<\/style>\n<\/head>\n\n<body>\n<div class=\"quiz-container\">\n\n  <h2>\ud83d\udd2c Exploring the Investigative World of Science<\/h2>\n\n  <div id=\"nameSection\">\n    <p><strong>Enter your name to start:<\/strong><\/p>\n    <input type=\"text\" id=\"userName\" placeholder=\"Your Name\">\n    <button onclick=\"startQuiz()\">Start Quiz<\/button>\n  <\/div>\n\n  <div id=\"quizSection\" style=\"display:none;\">\n    <div id=\"questionContainer\"><\/div>\n\n    <div class=\"controls\">\n      <button onclick=\"prevQuestion()\" id=\"prevBtn\">Previous<\/button>\n      <button onclick=\"nextQuestion()\" id=\"nextBtn\">Next<\/button>\n      <button onclick=\"submitQuiz()\" id=\"submitBtn\"\n        style=\"display:none;\">Submit Quiz<\/button>\n    <\/div>\n\n    <div id=\"result\"><\/div>\n\n    <div id=\"scoreboard\">\n      <h3>\ud83c\udfc6 Scoreboard<\/h3>\n      <ol id=\"scoreList\"><\/ol>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\nconst questions = [\n  {\n    question: \"Q1. Science mein hypothesis ka kya meaning hota hai?\",\n    options: [\n      \"A. Ek testable possible explanation\",\n      \"B. Ek final answer jo kabhi change nahi hota\",\n      \"C. Ek scientific instrument\",\n      \"D. Ek observation ko ignore karna\"\n    ],\n    correct: 0,\n    explanation: \"Hypothesis ek possible explanation hoti hai jise observation ya experiment ke through test kiya ja sakta hai.\"\n  },\n  {\n    question: \"Q2. Ek student jaan-na chahta hai ki sunlight plant growth ko affect karti hai ya nahi. Fair test ke liye kya karna chahiye?\",\n    options: [\n      \"A. Har plant ko alag soil aur alag water dena\",\n      \"B. Plants ko bina record ke rakhna\",\n      \"C. Plants ko same conditions mein rakhkar sirf light exposure change karna\",\n      \"D. Sirf ek plant dekhkar conclusion nikalna\"\n    ],\n    correct: 2,\n    explanation: \"Fair test mein ek main factor change kiya jata hai aur baaki conditions same rakhi jaati hain, taaki us factor ka effect samajh sakein.\"\n  },\n  {\n    question: \"Q3. Experiment ke dauran observations ko record karna kyun zaroori hai?\",\n    options: [\n      \"A. Result ko pehle se decide karne ke liye\",\n      \"B. Evidence ko accurately compare aur analyse karne ke liye\",\n      \"C. Experiment ko difficult banane ke liye\",\n      \"D. Hypothesis ko bina test kiye accept karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Recorded observations evidence provide karti hain, jinki help se results compare karke scientific conclusions nikale ja sakte hain.\"\n  },\n  {\n    question: \"Q4. Agar experiment ka result hypothesis se match nahi karta, toh scientist ko kya karna chahiye?\",\n    options: [\n      \"A. Data ko badal dena\",\n      \"B. Result ko chhupa dena\",\n      \"C. Experiment ko hamesha ke liye chhod dena\",\n      \"D. Hypothesis aur method ko dobara examine karna\"\n    ],\n    correct: 3,\n    explanation: \"Science mein ideas evidence ke according change ho sakte hain. Unexpected results ko honestly investigate karke understanding improve karni chahiye.\"\n  },\n  {\n    question: \"Q5. Bread dough rise hone mein aam taur par kaunsa organism important role play karta hai?\",\n    options: [\n      \"A. Yeast\",\n      \"B. Earthworm\",\n      \"C. Mosquito\",\n      \"D. Fern\"\n    ],\n    correct: 0,\n    explanation: \"Yeast fermentation ke dauran carbon dioxide gas produce karta hai. Gas dough mein bubbles banati hai, jisse dough phoolta hai.\"\n  },\n  {\n    question: \"Q6. Earth ke warming trend ko investigate karne ke liye sabse useful evidence kya hoga?\",\n    options: [\n      \"A. Ek din ka temperature\",\n      \"B. Ek person ka guess\",\n      \"C. Kai saalon ke reliable temperature records\",\n      \"D. Sirf ek afternoon ki cloud cover\"\n    ],\n    correct: 2,\n    explanation: \"Long-term temperature records se scientists temperature ke patterns aur changes ko samajh sakte hain.\"\n  },\n  {\n    question: \"Q7. Science ki book mein root ka symbol kya represent karta hai?\",\n    options: [\n      \"A. Sirf fast movement\",\n      \"B. Knowledge ki strong foundation aur environment se connection\",\n      \"C. Scientific evidence ki absence\",\n      \"D. Sirf space exploration\"\n    ],\n    correct: 1,\n    explanation: \"Root knowledge ki strong foundation aur environment, traditions, cultural aur natural heritage se connection ko symbolise karta hai.\"\n  },\n  {\n    question: \"Q8. Kite ka symbol kis idea ko represent karta hai?\",\n    options: [\n      \"A. Questions poochna band karna\",\n      \"B. Sirf old facts yaad karna\",\n      \"C. Observations ko ignore karna\",\n      \"D. Curiosity aur ideas ke through unknown ko explore karna\"\n    ],\n    correct: 3,\n    explanation: \"Kite curiosity aur creative thinking ko represent karti hai, jo humein unknown possibilities explore karne ke liye inspire karti hai.\"\n  },\n  {\n    question: \"Q9. Ek student claim karta hai ki ek plant doosre se zyada grow hua kyunki use zyada sunlight mili. Is claim ko test karne ke liye kya karna chahiye?\",\n    options: [\n      \"A. Growth measure karke light exposure aur baaki conditions record karna\",\n      \"B. Sirf plant ka colour dekhna\",\n      \"C. Bina measurements ke conclusion likhna\",\n      \"D. Plants ko bina record kiye alag jagah rakhna\"\n    ],\n    correct: 0,\n    explanation: \"Growth measure karna aur conditions record karna evidence provide karta hai, jisse pata lagaya ja sakta hai ki sunlight ka effect tha ya nahi.\"\n  },\n  {\n    question: \"Q10. Scientific investigation mein observation aur creative thinking ka sahi relationship kya hai?\",\n    options: [\n      \"A. Creative thinking evidence ko replace karti hai\",\n      \"B. Observation ki koi zaroorat nahi hoti\",\n      \"C. Observation evidence deti hai aur creative thinking naye explanations suggest kar sakti hai\",\n      \"D. Har creative idea automatically correct hota hai\"\n    ],\n    correct: 2,\n    explanation: \"Observation evidence provide karti hai, jabki creative thinking naye questions aur possible explanations develop karne mein help karti hai. Dono scientific investigation ke important parts hain.\"\n  }\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\nlet quizSubmitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions[currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    <div class=\"question\">\n      ${q.question}\n      <div style=\"font-size:14px;font-weight:normal;color:#555;\">\n        Question ${currentQuestion + 1} of ${questions.length}\n      <\/div>\n    <\/div>\n\n    <div class=\"options\">\n      ${q.options.map((opt, i) => `\n        <label>\n          <input type=\"radio\" name=\"option\" value=\"${i}\"\n            ${userAnswers[currentQuestion] === i ? \"checked\" : \"\"}>\n          ${opt}\n        <\/label>\n      `).join(\"\")}\n    <\/div>\n  `;\n\n  document.getElementById(\"prevBtn\").style.display =\n    currentQuestion === 0 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"nextBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"none\" : \"inline-block\";\n\n  document.getElementById(\"submitBtn\").style.display =\n    currentQuestion === questions.length - 1 ? \"inline-block\" : \"none\";\n}\n\nfunction saveAnswer() {\n  const selected = document.querySelector('input[name=\"option\"]:checked');\n\n  userAnswers[currentQuestion] = selected\n    ? parseInt(selected.value, 10)\n    : null;\n}\n\nfunction nextQuestion() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion < questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (quizSubmitted) return;\n\n  saveAnswer();\n\n  const unanswered = userAnswers.filter(\n    answer => answer === null || answer === undefined\n  ).length;\n\n  if (unanswered > 0) {\n    const confirmSubmit = confirm(\n      `You have ${unanswered} unanswered question(s). Submit anyway?`\n    );\n\n    if (!confirmSubmit) return;\n  }\n\n  quizSubmitted = true;\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers[index] === q.correct) {\n      score++;\n    }\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n  const container = document.getElementById(\"questionContainer\");\n  let resultsHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers[index];\n\n    const optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === q.correct) {\n        cls = \"correct\";\n      } else if (selected === i) {\n        cls = \"wrong\";\n      }\n\n      return `<label class=\"${cls}\">\n        ${opt}\n        ${i === q.correct ? \" \u2714 Correct Answer\" : \"\"}\n        ${selected === i && selected !== q.correct ? \" \u2718 Your Answer\" : \"\"}\n      <\/label>`;\n    }).join(\"\");\n\n    resultsHTML += `\n      <div class=\"question\">${q.question}<\/div>\n      <div class=\"options\">${optsHTML}<\/div>\n      <div class=\"explanation\">\n        <strong>Explanation:<\/strong> ${q.explanation}\n      <\/div>\n      <hr>\n    `;\n  });\n\n  container.innerHTML = resultsHTML;\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML = `\n    <h3>Your Score: ${score} \/ ${questions.length}<\/h3>\n    <p><strong>Name:<\/strong> ${escapeHTML(userName)}<\/p>\n    <p>${score === questions.length\n      ? \"Excellent! All answers are correct!\"\n      : \"Keep practising to improve your score!\"}<\/p>\n    <button onclick=\"restartQuiz()\">Try Again<\/button>\n  `;\n}\n\nfunction escapeHTML(value) {\n  const div = document.createElement(\"div\");\n  div.textContent = value;\n  return div.innerHTML;\n}\n\nfunction saveScore(name, score) {\n  let scores = [];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"scienceQuizScores\")) || [];\n  } catch (error) {\n    scores = [];\n  }\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"scienceQuizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = [];\n\n  try {\n    scores = JSON.parse(localStorage.getItem(\"scienceQuizScores\")) || [];\n  } catch (error) {\n    scores = [];\n  }\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML = scores.length\n    ? scores.map(s => `\n        <li>${escapeHTML(s.name)} - ${s.score}\/${questions.length}\n        (${escapeHTML(s.date)})<\/li>\n      `).join(\"\")\n    : \"<li>No scores recorded yet.<\/li>\";\n}\n\nfunction restartQuiz() {\n  currentQuestion = 0;\n  score = 0;\n  userAnswers = [];\n  quizSubmitted = false;\n\n  document.getElementById(\"result\").innerHTML = \"\";\n  document.querySelector(\".controls\").style.display = \"block\";\n\n  showQuestion();\n  window.scrollTo(0, 0);\n}\n<\/script>\n<\/body>\n<\/html>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploring the Investigative World of Science Quiz \ud83d\udd2c Exploring the Investigative World of Science Enter your name to start: Start Quiz Previous Next Submit Quiz \ud83c\udfc6 Scoreboard<\/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-5321","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5321","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=5321"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5321\/revisions"}],"predecessor-version":[{"id":5322,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5321\/revisions\/5322"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}