{"id":5352,"date":"2026-11-02T14:13:00","date_gmt":"2026-11-02T14:13:00","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5352"},"modified":"2026-11-02T14:13:01","modified_gmt":"2026-11-02T14:13:01","slug":"class-8th-subject-sciencech2","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5352","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>Cell Wall &#8211; 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  box-sizing: border-box;\n}\n.quiz-container {\n  background: #fff;\n  padding: 25px;\n  border-radius: 12px;\n  box-shadow: 0 4px 10px rgba(0,0,0,0.2);\n  width: 90%;\n  max-width: 800px;\n}\nh2 { text-align: center; color: #1e3c72; }\n.question { font-weight: bold; margin: 15px 0; }\n.options label {\n  display: block;\n  margin: 8px 0;\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #ccc;\n  cursor: pointer;\n  transition: 0.3s;\n}\n.options label:hover { background: #f0f0f0; }\n.correct {\n  background-color: #c8f7c5 !important;\n  border-color: #28a745 !important;\n}\n.wrong {\n  background-color: #f8d7da !important;\n  border-color: #dc3545 !important;\n}\n.explanation {\n  background: #e9ecef;\n  padding: 10px;\n  margin-top: 10px;\n  border-left: 5px solid #2a5298;\n  display: none;\n  line-height: 1.6;\n}\n.controls { text-align: center; margin-top: 15px; }\nbutton {\n  background-color: #2a5298;\n  color: white;\n  border: none;\n  padding: 10px 20px;\n  border-radius: 6px;\n  cursor: pointer;\n  margin: 5px;\n}\nbutton:hover { background-color: #1e3c72; }\n#scoreboard {\n  margin-top: 25px;\n  background: #eef3f7;\n  padding: 15px;\n  border-radius: 8px;\n}\n#scoreboard h3 { text-align: center; }\nol { padding-left: 20px; }\n#userName {\n  padding: 10px;\n  width: 95%;\n  max-width: 350px;\n  margin-bottom: 10px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n}\n<\/style>\n<\/head>\n\n<body>\n<div class=\"quiz-container\">\n\n<h2>\ud83e\udde0 Science Quiz \u2013 Cell Wall<\/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  <br>\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\" 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<\/div>\n\n<\/div>\n\n<script>\nconst questions = [\n\n{\nquestion: \"1. Cell wall mainly kis type ki cells mein present hoti hai?\",\noptions: [\n\"A. Animal cells\",\n\"B. Plant cells\",\n\"C. Red blood cells\",\n\"D. Nerve cells\"\n],\ncorrect: 1,\nexplanation: \"Cell wall plant cells ki outer protective layer hoti hai. Yeh cell ko shape, strength aur support deti hai.<br><strong>Example:<\/strong> Onion ki cells mein cell wall hoti hai, jo microscope mein clearly dikh sakti hai.\"\n},\n\n{\nquestion: \"2. Plant cell wall mainly kis substance se bani hoti hai?\",\noptions: [\n\"A. Protein\",\n\"B. Fat\",\n\"C. Cellulose\",\n\"D. Starch\"\n],\ncorrect: 2,\nexplanation: \"Plant cell wall ka main structural component cellulose hota hai. Yeh cell wall ko strength aur rigidity deta hai.<br><strong>Example:<\/strong> Tree ki wood aur plant stems ki strength mein cellulose ka important role hota hai.\"\n},\n\n{\nquestion: \"3. Cell wall ka main function kya hai?\",\noptions: [\n\"A. Cell ko protection aur support dena\",\n\"B. Energy produce karna\",\n\"C. Protein banana\",\n\"D. Genetic information store karna\"\n],\ncorrect: 0,\nexplanation: \"Cell wall cell ko ek definite shape deti hai aur external pressure se protection mein help karti hai.<br><strong>Example:<\/strong> Plant ka stem seedha khada rehne mein cell walls ki strength se help leta hai.\"\n},\n\n{\nquestion: \"4. Animal cells mein cell wall hoti hai ya nahi?\",\noptions: [\n\"A. Sirf large animal cells mein\",\n\"B. Sirf blood cells mein\",\n\"C. Sabhi animal cells mein\",\n\"D. Animal cells mein cell wall nahi hoti\"\n],\ncorrect: 3,\nexplanation: \"Animal cells ke bahar cell membrane hoti hai, lekin cell wall nahi hoti. Plant cells mein cell membrane ke bahar cell wall bhi hoti hai.<br><strong>Example:<\/strong> Human cheek cells mein cell membrane hoti hai, par cell wall nahi hoti.\"\n},\n\n{\nquestion: \"5. Plant cell mein cell wall, cell membrane ke kis taraf hoti hai?\",\noptions: [\n\"A. Cell membrane ke andar\",\n\"B. Cell membrane ke bahar\",\n\"C. Nucleus ke andar\",\n\"D. Cytoplasm ke andar\"\n],\ncorrect: 1,\nexplanation: \"Plant cell mein cell wall sabse outer protective layer hoti hai. Cell membrane uske just andar hoti hai.<br><strong>Example:<\/strong> Onion peel ki cell ko dekho, toh uski outer boundary cell wall hoti hai.\"\n},\n\n{\nquestion: \"6. Cell wall plant cell ko kaunsi property provide karti hai?\",\noptions: [\n\"A. Genetic information\",\n\"B. Photosynthesis ke liye chlorophyll\",\n\"C. Mechanical strength\",\n\"D. Protein synthesis\"\n],\ncorrect: 2,\nexplanation: \"Cell wall plant cell ko support aur rigidity deti hai, jisse cell apni shape maintain kar pata hai.<br><strong>Example:<\/strong> Plant ke leaves aur stems ko structure maintain karne mein cell walls help karti hain.\"\n},\n\n{\nquestion: \"7. Cell wall aur cell membrane ke baare mein kaunsa statement correct hai?\",\noptions: [\n\"A. Dono bilkul same structure hain\",\n\"B. Cell membrane sirf plants mein hoti hai\",\n\"C. Cell wall sabhi animal cells mein hoti hai\",\n\"D. Cell wall aur cell membrane alag structures hain\"\n],\ncorrect: 3,\nexplanation: \"Cell wall ek rigid outer layer hai, jabki cell membrane ek selectively permeable boundary hai jo substances ke movement ko regulate karti hai.<br><strong>Example:<\/strong> Plant cell mein cell wall protection aur support deti hai, jabki cell membrane materials ke entry aur exit ko control karti hai.\"\n},\n\n{\nquestion: \"8. Cell wall plant cell ko shape maintain karne mein kaise help karti hai?\",\noptions: [\n\"A. Rigid outer support dekar\",\n\"B. DNA ko destroy karke\",\n\"C. Nucleus ko remove karke\",\n\"D. Cytoplasm ko produce karke\"\n],\ncorrect: 0,\nexplanation: \"Cell wall ki rigidity cell ko ek definite shape maintain karne mein help karti hai.<br><strong>Example:<\/strong> Onion cells microscope mein aksar rectangular ya brick-like shape mein dikhai deti hain.\"\n},\n\n{\nquestion: \"9. Plant cell mein cell wall damage hone par kya effect ho sakta hai?\",\noptions: [\n\"A. Cell mein nucleus nahi rahega\",\n\"B. Cell ka protection aur support kam ho sakta hai\",\n\"C. Cell turant animal cell ban jayegi\",\n\"D. Cell mein DNA ka role khatam ho jayega\"\n],\ncorrect: 1,\nexplanation: \"Cell wall damage hone se cell ki structural strength aur protection affect ho sakti hai. Lekin cell plant cell hi rehti hai.<br><strong>Example:<\/strong> Agar plant tissue ki cell walls weak ho jaayein, toh tissue ki firmness kam ho sakti hai.\"\n},\n\n{\nquestion: \"10. Plant cell ki outer layers ka correct order kya hai, outside se inside ki taraf?\",\noptions: [\n\"A. Cytoplasm \u2192 Cell wall \u2192 Cell membrane\",\n\"B. Nucleus \u2192 Cell membrane \u2192 Cell wall\",\n\"C. Cell wall \u2192 Cell membrane \u2192 Cytoplasm\",\n\"D. Cell membrane \u2192 Nucleus \u2192 Cell wall\"\n],\ncorrect: 2,\nexplanation: \"Plant cell mein sabse bahar cell wall hoti hai. Uske andar cell membrane aur phir cytoplasm hota hai.<br><strong>Example:<\/strong> Onion peel ki cell ko microscope se observe karte waqt cell wall outer boundary ke roop mein dikhai deti hai.\"\n}\n\n];\n\nlet currentQuestion = 0;\nlet score = 0;\nlet userAnswers = [];\nlet userName = \"\";\nlet submitted = false;\n\nfunction startQuiz() {\n  userName = document.getElementById(\"userName\").value.trim();\n\n  if (!userName) {\n    alert(\"Please enter your name.\");\n    return;\n  }\n\n  document.getElementById(\"nameSection\").style.display = \"none\";\n  document.getElementById(\"quizSection\").style.display = \"block\";\n\n  showQuestion();\n  loadScoreboard();\n}\n\nfunction showQuestion() {\n  const q = questions[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 saveAnswer() {\n  const selected = document.querySelector('input[name=\"option\"]:checked');\n\n  userAnswers[currentQuestion] =\n    selected ? parseInt(selected.value) : null;\n}\n\nfunction nextQuestion() {\n  saveAnswer();\n\n  if (currentQuestion < questions.length - 1) {\n    currentQuestion++;\n    showQuestion();\n  }\n}\n\nfunction prevQuestion() {\n  saveAnswer();\n\n  if (currentQuestion > 0) {\n    currentQuestion--;\n    showQuestion();\n  }\n}\n\nfunction submitQuiz() {\n  if (submitted) return;\n\n  saveAnswer();\n  submitted = 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  container.innerHTML = \"\";\n\n  questions.forEach((q, index) => {\n    const selected = userAnswers[index];\n    const correct = q.correct;\n\n    let optsHTML = q.options.map((opt, i) => {\n      let cls = \"\";\n\n      if (i === correct) cls = \"correct\";\n      if (selected === i && selected !== correct) cls = \"wrong\";\n\n      return `<label class=\"${cls}\">${opt}<\/label>`;\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  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\n\n  scores.push({\n    name: name,\n    score: score,\n    date: new Date().toLocaleString()\n  });\n\n  localStorage.setItem(\"quizScores\", JSON.stringify(scores));\n}\n\nfunction loadScoreboard() {\n  let scores = JSON.parse(localStorage.getItem(\"quizScores\")) || [];\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<\/script>\n\n<\/body>\n<\/html>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cell Wall &#8211; Science Quiz \ud83e\udde0 Science Quiz \u2013 Cell Wall 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-5352","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5352","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=5352"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5352\/revisions"}],"predecessor-version":[{"id":5353,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5352\/revisions\/5353"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}