{"id":5382,"date":"2026-11-03T13:51:50","date_gmt":"2026-11-03T13:51:50","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5382"},"modified":"2026-11-03T13:51:51","modified_gmt":"2026-11-03T13:51:51","slug":"class-8th-subject-sciencech2-15","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5382","title":{"rendered":"class 8th, subject science,ch2"},"content":{"rendered":"\n<!--nextpage-->\n\n\n\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>\ud83e\udde0 Science Quiz \u2013 Microalgae<\/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}\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 { text-align: center; color: #1e3c72; }\n\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n}\n\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n\n.options label:hover { background: #f0f0f0; }\n\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n}\n\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\n\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\n\nbutton:hover { background-color: #1e3c72; }\n\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n\n#scoreboard h3 { text-align: center; }\n\nol { padding-left: 20px; }\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\udde0 Science Quiz \u2013 Microalgae<\/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\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\" style=\"display:none;\">Submit<\/button>\n    <\/div>\n\n    <div id=\"result\" style=\"text-align:center; margin-top:20px;\"><\/div>\n\n    <div id=\"scoreboard\">\n      <h3>\ud83c\udfc6 Scoreboard<\/h3>\n      <ol id=\"scoreList\"><\/ol>\n    <\/div>\n\n  <\/div>\n<\/div>\n\n<script>\n\nconst questions = [\n\n  {\n    question: \"1. Microalgae kya hote hain?\",\n    options: [\n      \"A. Microscopic plant-like organisms\",\n      \"B. Sirf large aquatic animals\",\n      \"C. Non-living particles\",\n      \"D. Sirf insects\"\n    ],\n    correct: 0,\n    explanation: \"Microalgae bahut chhote, plant-like organisms hote hain. Inhe dekhne ke liye aksar microscope ki zaroorat hoti hai.<br><br><strong>Example:<\/strong> Spirulina, Chlorella aur diatoms microalgae ke examples hain.\"\n  },\n\n  {\n    question: \"2. Microalgae apna food kaise banate hain?\",\n    options: [\n      \"A. Soil ko kha kar\",\n      \"B. Animals ko hunt karke\",\n      \"C. Sunlight ki help se photosynthesis karke\",\n      \"D. Sirf oxygen absorb karke\"\n    ],\n    correct: 2,\n    explanation: \"Microalgae sunlight ki energy use karke photosynthesis karte hain aur apna food banate hain.<br><br><strong>Example:<\/strong> Pond mein present microalgae sunlight ki help se food bana sakte hain.\"\n  },\n\n  {\n    question: \"3. Photosynthesis ke dauraan microalgae kaunsi gas release karte hain?\",\n    options: [\n      \"A. Sirf nitrogen\",\n      \"B. Oxygen\",\n      \"C. Sirf helium\",\n      \"D. Sirf methane\"\n    ],\n    correct: 1,\n    explanation: \"Photosynthesis ke dauraan microalgae oxygen release karte hain. Ye oxygen aquatic environments aur Earth's atmosphere ke liye important hai.<br><br><strong>Example:<\/strong> Water mein present photosynthetic microalgae oxygen produce kar sakte hain.\"\n  },\n\n  {\n    question: \"4. Textbook ke according, microalgae Earth ki oxygen supply ka kitna hissa produce karte hain?\",\n    options: [\n      \"A. Sirf 1%\",\n      \"B. Exactly 10%\",\n      \"C. Sirf 5%\",\n      \"D. Half se zyada\"\n    ],\n    correct: 3,\n    explanation: \"Textbook ke according, microalgae Earth ki oxygen supply ka more than half produce karte hain. Isliye ye oxygen balance maintain karne mein important role play karte hain.<br><br><strong>Example:<\/strong> Oceans mein present microscopic photosynthetic organisms global oxygen production mein major contribution dete hain.\"\n  },\n\n  {\n    question: \"5. Microalgae aquatic animals ke liye kaise useful hain?\",\n    options: [\n      \"A. Food source ke roop mein\",\n      \"B. Plastic source ke roop mein\",\n      \"C. Sirf shelter ke roop mein\",\n      \"D. Water ko completely remove karke\"\n    ],\n    correct: 0,\n    explanation: \"Microalgae nutrients se rich hote hain aur kai aquatic organisms ke liye food provide karte hain.<br><br><strong>Example:<\/strong> Pond ke food chain mein small aquatic animals microalgae ko food ke roop mein use kar sakte hain.\"\n  },\n\n  {\n    question: \"6. Inmein se kaun microalgae ka example hai?\",\n    options: [\n      \"A. Earthworm\",\n      \"B. Housefly\",\n      \"C. Chlorella\",\n      \"D. Frog\"\n    ],\n    correct: 2,\n    explanation: \"Chlorella ek microalga hai. Spirulina aur diatoms bhi textbook mein diye gaye examples hain.<br><br><strong>Example:<\/strong> Chlorella ko kuch health supplements mein use kiya jata hai.\"\n  },\n\n  {\n    question: \"7. Humans microalgae ka use kis purpose ke liye karte hain?\",\n    options: [\n      \"A. Sirf building banane ke liye\",\n      \"B. Health supplements aur kuch medicines mein\",\n      \"C. Sirf clothes silne ke liye\",\n      \"D. Sirf metal polish karne ke liye\"\n    ],\n    correct: 1,\n    explanation: \"Kuch microalgae nutrients se rich hote hain. Isliye selected microalgae, jaise Spirulina aur Chlorella, health supplements mein use kiye jaate hain.<br><br><strong>Example:<\/strong> Spirulina powder ek dietary supplement ke roop mein mil sakta hai.\"\n  },\n\n  {\n    question: \"8. Microalgae environment ki safai mein kaise help kar sakte hain?\",\n    options: [\n      \"A. Saara water evaporate karke\",\n      \"B. Har pollutant ko turant remove karke\",\n      \"C. Saare aquatic animals ko remove karke\",\n      \"D. Kuch wastewater treatment processes mein pollutants aur nutrients ko absorb ya remove karne mein help karke\"\n    ],\n    correct: 3,\n    explanation: \"Kuch microalgae water treatment mein help kar sakte hain. Lekin har microalga har type ke pollutant ko remove nahi kar sakta.<br><br><strong>Example:<\/strong> Specially designed treatment systems mein microalgae wastewater se excess nutrients remove karne mein help kar sakte hain.\"\n  },\n\n  {\n    question: \"9. Microalgae ka use biofuel banane mein kyon kiya ja sakta hai?\",\n    options: [\n      \"A. Kyunki kuch microalgae mein oil-rich substances hote hain jinse fuel banane ki research aur production hoti hai\",\n      \"B. Kyunki microalgae metal hote hain\",\n      \"C. Kyunki microalgae sunlight ko completely block karte hain\",\n      \"D. Kyunki microalgae non-living hote hain\"\n    ],\n    correct: 0,\n    explanation: \"Kuch microalgae mein lipids ya oils hote hain jinhe process karke biofuel banaya ja sakta hai. Iske liye suitable technology aur processing ki zaroorat hoti hai.<br><br><strong>Example:<\/strong> Scientists selected microalgae se biodiesel banane ke methods par kaam karte hain.\"\n  },\n\n  {\n    question: \"10. Microalgae ki diversity ko kaun-se factors threaten karte hain?\",\n    options: [\n      \"A. Sirf sunlight\",\n      \"B. Sirf oxygen\",\n      \"C. Pollution, climate change aur habitat destruction\",\n      \"D. Sirf normal rainfall\"\n    ],\n    correct: 2,\n    explanation: \"Pollution water quality ko affect kar sakta hai, climate change temperature aur water conditions ko change kar sakta hai, aur habitat destruction microalgae ke living places ko damage kar sakta hai.<br><br><strong>Example:<\/strong> Water body mein harmful pollution microalgae ki kuch species ke survival ko affect kar sakta hai. Isliye aquatic habitats ko protect karna important hai.\"\n  }\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\n\nfunction startQuiz() {\n\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) return alert(\"Please enter your name.\");\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n\n  const q = questions[currentQuestion];\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = `\n    <div class=\"question\">${q.question}<\/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    <div class=\"explanation\" id=\"explain${currentQuestion}\">\n      ${q.explanation}\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 nextQuestion() {\n\n  saveAnswer();\n\n  if (currentQuestion < 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[name=\"option\"]:checked');\n\n  userAnswers[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[index] === q.correct) score++;\n  });\n\n  showResults();\n  saveScore(userName, score);\n  loadScoreboard();\n}\n\nfunction showResults() {\n\n  const container = document.getElementById(\"questionContainer\");\n\n  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n\n    const selected = userAnswers[index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n\n      if (selected === i && selected !== correct) cls = \"wrong\";\n\n      return `<label class=\"${cls}\">${opt}<\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      <div class=\"question\">${q.question}<\/div>\n      <div class=\"options\">${optsHTML}<\/div>\n      <div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      <\/div>\n      <hr>\n    `;\n  });\n\n  document.querySelector(\".controls\").style.display = \"none\";\n\n  document.getElementById(\"result\").innerHTML =\n    `<h3>Your Score: ${score} \/ ${questions.length}<\/h3>`;\n}\n\nfunction saveScore(name, score) {\n\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\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\")) || [];\n\n  scores.sort((a, b) => b.score - a.score);\n\n  document.getElementById(\"scoreList\").innerHTML =\n    scores.map(s =>\n      `<li>${s.name} - ${s.score}\/10 (${s.date})<\/li>`\n    ).join('');\n}\n\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde0 Science Quiz \u2013 Microalgae \ud83e\udde0 Science Quiz \u2013 Microalgae Enter your name to start: Start Quiz Previous Next Submit \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-5382","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5382","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=5382"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5382\/revisions"}],"predecessor-version":[{"id":5383,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5382\/revisions\/5383"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}