{"id":5350,"date":"2026-11-02T14:10:24","date_gmt":"2026-11-02T14:10:24","guid":{"rendered":"https:\/\/apicalclasses.com\/?p=5350"},"modified":"2026-11-02T14:10:25","modified_gmt":"2026-11-02T14:10:25","slug":"class-8th-subject-science-ch2-5","status":"publish","type":"post","link":"https:\/\/apicalclasses.com\/?p=5350","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>Science Quiz \u2013 Cell Membrane, Cytoplasm and Nucleus<\/title>\n\n<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    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\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  #userName {\n    padding: 10px;\n    width: 90%;\n    max-width: 300px;\n    border: 1px solid #ccc;\n    border-radius: 6px;\n    margin-bottom: 10px;\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: 12px;\n    }\n\n    .quiz-container {\n      width: 100%;\n      padding: 15px;\n    }\n  }\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"quiz-container\">\n\n  <h2>\ud83e\udde0 Science Quiz \u2013 Cell Membrane, Cytoplasm and Nucleus<\/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\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. Cell membrane ka main function kya hai?\",\n    options: [\n      \"A. Cell ko energy dena only\",\n      \"B. Cell ke andar aur bahar materials ke movement ko regulate karna\",\n      \"C. Cell ko divide karna only\",\n      \"D. Food ko sunlight mein convert karna\"\n    ],\n    correct: 1,\n    explanation: \"Explanation: Cell membrane cell ko enclose karti hai aur useful materials ko andar aane aur waste materials ko bahar jaane dene mein help karti hai.<br><br>Example: Nutrients cell ke andar enter kar sakte hain, jabki kuch waste materials cell se bahar nikal sakte hain.\"\n  },\n\n  {\n    question: \"2. Cell ke andar ki activities ko regulate karne wala part kaunsa hai?\",\n    options: [\n      \"A. Cell wall\",\n      \"B. Cytoplasm\",\n      \"C. Cell membrane\",\n      \"D. Nucleus\"\n    ],\n    correct: 3,\n    explanation: \"Explanation: Nucleus cell ki activities ko control aur regulate karta hai. Yeh cell ki growth mein bhi important role play karta hai.<br><br>Example: Human cheek cell mein nucleus present hota hai, jo cell ki activities ko coordinate karne mein help karta hai.\"\n  },\n\n  {\n    question: \"3. Cytoplasm kahan present hota hai?\",\n    options: [\n      \"A. Cell membrane aur nucleus ke beech\",\n      \"B. Sirf cell wall ke outside\",\n      \"C. Sirf nucleus ke andar\",\n      \"D. Cell ke outside\"\n    ],\n    correct: 0,\n    explanation: \"Explanation: Cytoplasm cell membrane aur nucleus ke beech ka substance hai. Ismein cell ke other components present hote hain aur most life processes yahin take place karte hain.<br><br>Example: Cell ke cytoplasm mein kai chemical reactions hoti hain jo cell ko function karne mein help karti hain.\"\n  },\n\n  {\n    question: \"4. Cell membrane ki kaunsi property materials ke entry aur exit mein help karti hai?\",\n    options: [\n      \"A. Hardness\",\n      \"B. Green colour\",\n      \"C. Porous nature\",\n      \"D. Rectangular shape\"\n    ],\n    correct: 2,\n    explanation: \"Explanation: Cell membrane selected materials ko cell ke andar aane aur waste materials ko bahar jaane dene mein help karti hai. Is tarah cell apni life processes maintain karta hai.<br><br>Example: Oxygen jaise useful substances cells mein enter kar sakte hain, aur carbon dioxide jaise waste products bahar move kar sakte hain.\"\n  },\n\n  {\n    question: \"5. Inmein se kaun-se substances cytoplasm mein present ho sakte hain?\",\n    options: [\n      \"A. Sirf water aur air\",\n      \"B. Carbohydrates, proteins, fats aur mineral salts\",\n      \"C. Sirf soil aur sand\",\n      \"D. Sirf metals\"\n    ],\n    correct: 1,\n    explanation: \"Explanation: Cytoplasm mein different compounds aur cell ke other components present hote hain. Yeh cell ki activities aur life processes mein important role play karte hain.<br><br>Example: Proteins body ke growth aur repair mein important hain, jabki carbohydrates energy provide karne mein help karte hain.\"\n  },\n\n  {\n    question: \"6. Cell membrane aur cell wall ke baare mein kaunsa statement correct hai?\",\n    options: [\n      \"A. Dono har type ke cell mein hamesha present hote hain\",\n      \"B. Cell membrane sirf plant cells mein hoti hai\",\n      \"C. Cell wall cell ke andar nucleus ko cover karti hai\",\n      \"D. Cell membrane cells ko enclose karti hai, jabki plant cell wall extra outer support deti hai\"\n    ],\n    correct: 3,\n    explanation: \"Explanation: Cell membrane plant aur animal cells dono mein hoti hai. Plant cells mein cell membrane ke outside cell wall bhi hoti hai, jo strength aur rigidity provide karti hai.<br><br>Example: Onion peel cells mein cell membrane aur cell wall hoti hain, jabki human cheek cells mein cell wall nahi hoti.\"\n  },\n\n  {\n    question: \"7. Nucleus ka ek important function kya hai?\",\n    options: [\n      \"A. Cell ki activities aur growth ko regulate karna\",\n      \"B. Cell ko rectangular banana\",\n      \"C. Cell membrane ko remove karna\",\n      \"D. Cell ke saare waste ko destroy karna only\"\n    ],\n    correct: 0,\n    explanation: \"Explanation: Nucleus cell ka important control centre hai. Yeh cell ki functioning aur growth ko regulate karne mein help karta hai.<br><br>Example: Human cheek cell mein nucleus cell ki normal activities ko coordinate karta hai.\"\n  },\n\n  {\n    question: \"8. Agar cell membrane properly function na kare, toh kya problem ho sakti hai?\",\n    options: [\n      \"A. Cell automatically plant ban jaayega\",\n      \"B. Nucleus disappear ho jaayega\",\n      \"C. Useful materials aur waste materials ka movement disturb ho sakta hai\",\n      \"D. Cytoplasm cell ke outside grow karega\"\n    ],\n    correct: 2,\n    explanation: \"Explanation: Cell membrane materials ke entry aur exit ko regulate karti hai. Agar yeh function disturb ho jaaye, toh cell ke liye necessary substances lena aur waste remove karna difficult ho sakta hai.<br><br>Example: Agar waste materials properly remove na hon, toh cell ki normal functioning affect ho sakti hai.\"\n  },\n\n  {\n    question: \"9. Cell ke most life processes kahan take place karte hain?\",\n    options: [\n      \"A. Cell wall mein only\",\n      \"B. Cytoplasm mein\",\n      \"C. Coverslip par\",\n      \"D. Cell ke outside only\"\n    ],\n    correct: 1,\n    explanation: \"Explanation: Cytoplasm mein cell ke components aur substances present hote hain. Most life processes cytoplasm ke andar occur karte hain.<br><br>Example: Cytoplasm mein hone wali chemical reactions cell ko apne normal functions perform karne mein help karti hain.\"\n  },\n\n  {\n    question: \"10. Cell membrane, cytoplasm aur nucleus ko cell ke basic parts kyun kaha jaata hai?\",\n    options: [\n      \"A. Kyunki yeh sirf plants mein present hote hain\",\n      \"B. Kyunki inka cell ke functions se koi relation nahi hai\",\n      \"C. Kyunki yeh cell ko hamesha rectangular banate hain\",\n      \"D. Kyunki yeh cell ki structure aur functioning mein important roles perform karte hain\"\n    ],\n    correct: 3,\n    explanation: \"Explanation: Cell membrane cell ko enclose karti hai aur material movement regulate karti hai, cytoplasm mein most life processes take place karte hain, aur nucleus cell ki activities aur growth ko regulate karta hai.<br><br>Example: Human cheek cell mein yeh teen basic parts milkar cell ki normal functioning maintain karne mein help karte hain.\"\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\">\n      ${q.question}\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    <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\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\n  score = 0;\n\n  questions.forEach((q, index) => {\n    if (userAnswers[index] === q.correct) {\n      score++;\n    }\n  });\n\n  submitted = true;\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\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>Science Quiz \u2013 Cell Membrane, Cytoplasm and Nucleus \ud83e\udde0 Science Quiz \u2013 Cell Membrane, Cytoplasm and Nucleus 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-5350","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5350","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=5350"}],"version-history":[{"count":1,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5350\/revisions"}],"predecessor-version":[{"id":5351,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=\/wp\/v2\/posts\/5350\/revisions\/5351"}],"wp:attachment":[{"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apicalclasses.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}