{"id":5356,"date":"2026-11-02T14:18:49","date_gmt":"2026-11-02T14:18:49","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5356"},"modified":"2026-11-02T14:18:50","modified_gmt":"2026-11-02T14:18:50","slug":"class-8th-subject-sciencech2-3","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5356","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 Cell Shapes and Functions<\/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 {\n  text-align: center;\n  color: #1e3c72;\n}\n\n.question {\n  font-weight: bold;\n  margin: 10px 0;\n}\n\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n\n.options label:hover {\n  background: #f0f0f0;\n}\n\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n}\n\n.controls {\n  text-align: center;\n  margin-top: 15px;\n}\n\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 {\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\nol {\n  padding-left: 20px;\n}\n\n#userName {\n  padding: 10px;\n  width: 90%;\n  max-width: 300px;\n  margin-bottom: 10px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\udde0 Science Quiz \u2013 Cell Shapes and Functions<\/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. Human muscle cell ka shape generally kaisa hota hai?\",\n  options: [\n    \"A. Spindle-shaped\",\n    \"B. Star-shaped only\",\n    \"C. Perfectly rectangular\",\n    \"D. Cube-shaped\"\n  ],\n  correct: 0,\n  explanation: \"Muscle cells generally elongated aur spindle-shaped hoti hain. Yeh contract aur relax karke body parts ki movement aur food ke movement mein help karti hain.<br><br><b>Example:<\/b> Food pipe ki muscle cells contract aur relax karke food ko stomach ki taraf push karti hain.\"\n},\n\n{\n  question: \"2. Nerve cells ko aur kis naam se jaana jaata hai?\",\n  options: [\n    \"A. Plastids\",\n    \"B. Neurons\",\n    \"C. Vacuoles\",\n    \"D. Chloroplasts\"\n  ],\n  correct: 1,\n  explanation: \"Nerve cells ko neurons kehte hain. Yeh body ke different parts tak messages ya signals transmit karti hain.<br><br><b>Example:<\/b> Jab hum kisi hot object ko touch karte hain, toh nervous system signals transmit karta hai, jisse hum haath hata sakte hain.\"\n},\n\n{\n  question: \"3. Nerve cell ki long aur branched structure ka kya benefit hai?\",\n  options: [\n    \"A. Food ko store karna\",\n    \"B. Photosynthesis karna\",\n    \"C. Messages ko different parts tak transmit karna\",\n    \"D. Cell wall banana\"\n  ],\n  correct: 2,\n  explanation: \"Neuron ki long extensions aur branches use doosri cells ke saath connections banane aur signals transmit karne mein help karti hain.<br><br><b>Example:<\/b> Brain se aane wale signals nerves ke through muscles tak pahunchte hain, jisse hum apna haath move kar paate hain.\"\n},\n\n{\n  question: \"4. Human cheek cells ka main function kya hai?\",\n  options: [\n    \"A. Oxygen transport karna\",\n    \"B. Food ko stomach tak push karna\",\n    \"C. Nerve signals transmit karna\",\n    \"D. Cheek ki inner surface par protective lining banana\"\n  ],\n  correct: 3,\n  explanation: \"Cheek cells thin aur flat hoti hain. Yeh cheek ki inner surface par lining banati hain aur underlying tissues ko protect karne mein help karti hain.<br><br><b>Example:<\/b> Mouth ke andar cheek ki surface par cells ki layer hoti hai, jo food aur other substances ke contact mein aati hai.\"\n},\n\n{\n  question: \"5. Kya sabhi cells ki shape aur size same hoti hai?\",\n  options: [\n    \"A. Nahi, cells ki shape aur size unke type aur function ke according vary karte hain\",\n    \"B. Haan, sabhi cells round hoti hain\",\n    \"C. Haan, sabhi cells rectangular hoti hain\",\n    \"D. Sirf plant cells ki shape different hoti hai\"\n  ],\n  correct: 0,\n  explanation: \"Different cells different functions perform karti hain. Isliye unki shape, size aur structure mein variation hota hai.<br><br><b>Example:<\/b> Red blood cells oxygen transport karti hain, neurons messages transmit karte hain, aur muscle cells movement mein help karti hain.\"\n},\n\n{\n  question: \"6. Food pipe mein muscle cells ka kya role hota hai?\",\n  options: [\n    \"A. Food ko photosynthesis se banana\",\n    \"B. Food ko wave-like contractions se stomach ki taraf push karna\",\n    \"C. Blood mein oxygen carry karna\",\n    \"D. Messages ko brain tak transmit karna\"\n  ],\n  correct: 1,\n  explanation: \"Food pipe ki muscles contract aur relax karti hain. Is wave-like movement ko peristalsis kehte hain, jo food ko stomach tak pahunchane mein help karta hai.<br><br><b>Example:<\/b> Jab hum roti ka bite swallow karte hain, toh food pipe ki muscular movement food ko stomach ki taraf le jaati hai.\"\n},\n\n{\n  question: \"7. Stomach ki muscle cells ka main function kya hai?\",\n  options: [\n    \"A. Light absorb karna\",\n    \"B. Oxygen produce karna\",\n    \"C. Food ko churn aur mix karna\",\n    \"D. Body ke messages transmit karna\"\n  ],\n  correct: 2,\n  explanation: \"Stomach ki wall mein muscle cells hoti hain. Yeh contract aur relax karke food ko churn karti hain aur digestive juices ke saath mix karti hain.<br><br><b>Example:<\/b> Stomach mein food digestive juices ke saath mix hokar semi-liquid mixture banata hai.\"\n},\n\n{\n  question: \"8. Stomach ki inner lining mein kuch cells kya produce karti hain?\",\n  options: [\n    \"A. Chlorophyll aur starch\",\n    \"B. Sirf oxygen\",\n    \"C. Cell wall aur plastids\",\n    \"D. Digestive juices aur acid\"\n  ],\n  correct: 3,\n  explanation: \"Stomach ki lining mein specialised cells hoti hain. Kuch cells digestive substances release karti hain, aur acid food digestion mein help karta hai.<br><br><b>Example:<\/b> Stomach ka hydrochloric acid proteins ke digestion mein help karta hai aur kai harmful microbes ko destroy karne mein bhi madad karta hai.\"\n},\n\n{\n  question: \"9. Plants mein tube-like cells ka kya function ho sakta hai?\",\n  options: [\n    \"A. Plant mein water transport karna\",\n    \"B. Human body mein nerve signals transmit karna\",\n    \"C. Food pipe mein food push karna\",\n    \"D. Cheek ki inner lining banana\"\n  ],\n  correct: 0,\n  explanation: \"Plants mein kuch specialised cells long tubes banati hain. Xylem tissue water aur dissolved minerals ko roots se plant ke other parts tak transport karta hai.<br><br><b>Example:<\/b> Roots soil se water absorb karti hain, aur xylem water ko stem aur leaves tak pahunchata hai.\"\n},\n\n{\n  question: \"10. Cell ki shape aur structure uske function se kaise related hote hain?\",\n  options: [\n    \"A. Cell ki shape ka function se koi relation nahi hota\",\n    \"B. Cell ki shape aur structure uske specific function ko perform karne mein help karte hain\",\n    \"C. Har cell sirf ek hi shape mein hoti hai\",\n    \"D. Sirf animal cells specialised functions perform karti hain\"\n  ],\n  correct: 1,\n  explanation: \"Cells ki shape aur structure unke kaam ke according adapted hote hain. Isse cells apne specific functions efficiently perform kar sakti hain.<br><br><b>Example:<\/b> Neuron ki long branches signals transmit karne mein help karti hain, jabki muscle cells ki flexible shape contraction aur relaxation ke liye suitable hoti hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\nlet submitted = false;\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[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\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\n  const selected = document.querySelector('input[name=\"option\"]:checked');\n\n  userAnswers[currentQuestion] = selected\n    ? parseInt(selected.value)\n    : null;\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 submitQuiz() {\n\n  if (submitted) return;\n\n  saveAnswer();\n  submitted = true;\n\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\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) {\n        cls = \"correct\";\n      }\n\n      if (selected === i && selected !== correct) {\n        cls = \"wrong\";\n      }\n\n      return `<label class=\"${cls}\">${opt}<\/label>`;\n\n    }).join('');\n\n    container.innerHTML += `\n      <div class=\"question\">${q.question}<\/div>\n\n      <div class=\"options\">\n        ${optsHTML}\n      <\/div>\n\n      <div class=\"explanation\" style=\"display:block;\">\n        ${q.explanation}\n      <\/div>\n\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}\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 Cell Shapes and Functions \ud83e\udde0 Science Quiz \u2013 Cell Shapes and Functions 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-5356","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5356","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=5356"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5356\/revisions"}],"predecessor-version":[{"id":5357,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5356\/revisions\/5357"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}