ch5 part5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🧠 Respiration Quiz – APICAL CLASSES</title>
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
display: flex;
justify-content: center;
align-items: flex-start;
padding: 30px;
min-height: 100vh;
}
.quiz-container {
background: #fff;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
width: 90%;
max-width: 800px;
}
h2 { text-align: center; color: #1e3c72; }
.question { font-weight: bold; margin: 10px 0; }
.options label {
display: block;
margin: 8px 0;
padding: 10px;
border-radius: 6px;
border: 1px solid #ccc;
cursor: pointer;
transition: 0.3s;
}
.options label:hover { background: #f0f0f0; }
.correct {
background-color: #c8f7c5 !important;
border-color: #28a745 !important;
}
.wrong {
background-color: #f8d7da !important;
border-color: #dc3545 !important;
}
.explanation {
background: #e9ecef;
padding: 10px;
margin-top: 10px;
border-left: 5px solid #2a5298;
display: none;
}
.controls { text-align: center; margin-top: 15px; }
button {
background-color: #2a5298;
color: white;
border: none;
padding: 10px 20px;
border-radius: 6px;
cursor: pointer;
margin: 5px;
}
button:hover { background-color: #1e3c72; }
#scoreboard {
margin-top: 25px;
background: #eef3f7;
padding: 15px;
border-radius: 8px;
}
#scoreboard h3 { text-align: center; }
ol { padding-left: 20px; }
</style>
</head>
<body>
<div class="quiz-container">
<h2>🧠 Respiration Quiz – APICAL CLASSES</h2>
<div id="nameSection">
<p><strong>Enter your name to start:</strong></p>
<input type="text" id="userName" placeholder="Your Name">
<button onclick="startQuiz()">Start Quiz</button>
</div>
<div id="quizSection" style="display:none;">
<div id="questionContainer"></div>
<div class="controls">
<button onclick="prevQuestion()" id="prevBtn">Previous</button>
<button onclick="nextQuestion()" id="nextBtn">Next</button>
<button onclick="submitQuiz()" id="submitBtn" style="display:none;">Submit</button>
</div>
<div id="result" style="text-align:center; margin-top:20px;"></div>
<div id="scoreboard">
<h3>🏆 Scoreboard</h3>
<ol id="scoreList"></ol>
</div>
</div>
</div>
<script>
const questions = [
{
question: "1. Respiration ke first step mein glucose, jo ki six-carbon molecule hai, kis molecule mein break hota hai?",
options: [
"A. Ethanol",
"B. Pyruvate",
"C. Lactic acid",
"D. Carbon dioxide"
],
correct: 1,
explanation: "✅ Correct Answer: B. Pyruvate.<br>Respiration ke first step mein glucose break hokar <b>three-carbon molecule pyruvate</b> banata hai. Yeh process cytoplasm mein hota hai."
},
{
question: "2. Glucose ka pyruvate mein breakdown cell ke kis part mein hota hai?",
options: [
"A. Nucleus",
"B. Mitochondria",
"C. Cytoplasm",
"D. Ribosome"
],
correct: 2,
explanation: "✅ Correct Answer: C. Cytoplasm.<br>Glucose ka first breakdown <b>cytoplasm</b> mein hota hai, jahan glucose se pyruvate banta hai."
},
{
question: "3. Yeast mein anaerobic respiration ke dauran pyruvate kis mein convert hota hai?",
options: [
"A. Ethanol aur carbon dioxide",
"B. Lactic acid aur oxygen",
"C. Water aur oxygen",
"D. Glucose aur water"
],
correct: 0,
explanation: "✅ Correct Answer: A. Ethanol aur carbon dioxide.<br>Yeast mein oxygen ki absence mein pyruvate <b>ethanol + carbon dioxide</b> mein convert hota hai. Is process ko fermentation bhi kaha jata hai."
},
{
question: "4. Aerobic respiration mein pyruvate ka further breakdown kis cell organelle mein hota hai?",
options: [
"A. Chloroplast",
"B. Nucleus",
"C. Vacuole",
"D. Mitochondria"
],
correct: 3,
explanation: "✅ Correct Answer: D. Mitochondria.<br>Oxygen ki presence mein pyruvate ka breakdown <b>mitochondria</b> mein hota hai aur carbon dioxide aur water bante hain."
},
{
question: "5. Sudden physical activity ke time muscles mein oxygen ki kami hone par pyruvate kis substance mein convert ho sakta hai?",
options: [
"A. Ethanol",
"B. Lactic acid",
"C. Starch",
"D. Glucose"
],
correct: 1,
explanation: "✅ Correct Answer: B. Lactic acid.<br>Jab muscles ko sufficient oxygen nahi milti, pyruvate <b>lactic acid</b> mein convert hota hai. Lactic acid ke build-up se <b>muscle cramps</b> ho sakte hain."
},
{
question: "6. ATP ko cells mein kis naam se describe kiya gaya hai?",
options: [
"A. Structural protein",
"B. Digestive enzyme",
"C. Energy currency",
"D. Respiratory pigment"
],
correct: 2,
explanation: "✅ Correct Answer: C. Energy currency.<br><b>ATP (Adenosine Triphosphate)</b> ko cell ki <b>energy currency</b> kaha jata hai. Yeh muscles ki contraction, protein synthesis aur nerve impulses jaise activities ke liye energy provide karta hai."
},
{
question: "7. Aquatic organisms ka breathing rate terrestrial organisms se generally faster kyun hota hai?",
options: [
"A. Water mein oxygen bahut zyada hoti hai",
"B. Water mein dissolved oxygen ki amount comparatively low hoti hai",
"C. Aquatic organisms oxygen use nahi karte",
"D. Water respiration ko stop kar deta hai"
],
correct: 1,
explanation: "✅ Correct Answer: B. Water mein dissolved oxygen ki amount comparatively low hoti hai.<br>Water mein dissolved oxygen ki quantity air ke comparison mein kaafi low hoti hai. Isliye fishes jaise aquatic organisms <b>faster rate se breathe</b> karte hain."
},
{
question: "8. Fish dissolved oxygen ko water se kis organ ke through obtain karti hai?",
options: [
"A. Lungs",
"B. Skin",
"C. Gills",
"D. Nostrils"
],
correct: 2,
explanation: "✅ Correct Answer: C. Gills.<br>Fish mouth se water leti hai aur water <b>gills ke across</b> pass hota hai. Gills dissolved oxygen ko blood mein absorb karne mein help karte hain."
},
{
question: "9. Human lungs mein gas exchange ke liye balloon-like structures ko kya kaha jata hai?",
options: [
"A. Alveoli",
"B. Nephrons",
"C. Villi",
"D. Bronchioles"
],
correct: 0,
explanation: "✅ Correct Answer: A. Alveoli.<br>Lungs ke andar small tubes ke end par <b>alveoli</b> hote hain. Inki walls mein extensive blood-vessel network hota hai, jahan <b>oxygen aur carbon dioxide ka exchange</b> hota hai."
},
{
question: "10. Human beings mein oxygen ko lungs se body tissues tak carry karne wala respiratory pigment kaunsa hai?",
options: [
"A. Chlorophyll",
"B. Haemoglobin",
"C. Insulin",
"D. Pepsin"
],
correct: 1,
explanation: "✅ Correct Answer: B. Haemoglobin.<br><b>Haemoglobin</b> red blood corpuscles mein present hota hai aur oxygen ke saath strongly bind karke use body ke different tissues tak transport karta hai."
}
];
let currentQuestion = 0;
let score = 0;
let userAnswers = [];
let userName = "";
function startQuiz() {
userName = document.getElementById("userName").value.trim();
if (!userName) return alert("Please enter your name.");
document.getElementById("nameSection").style.display = "none";
document.getElementById("quizSection").style.display = "block";
showQuestion();
loadScoreboard();
}
function showQuestion() {
const q = questions[currentQuestion];
const container = document.getElementById("questionContainer");
container.innerHTML = `
<div class="question">${q.question}</div>
<div class="options">
${q.options.map((opt, i) => `
<label>
<input type="radio" name="option" value="${i}"
${userAnswers[currentQuestion] == i ? 'checked' : ''}>
${opt}
</label>
`).join('')}
</div>
<div class="explanation" id="explain${currentQuestion}">
${q.explanation}
</div>
`;
document.getElementById("prevBtn").style.display =
currentQuestion === 0 ? "none" : "inline-block";
document.getElementById("nextBtn").style.display =
currentQuestion === questions.length - 1 ? "none" : "inline-block";
document.getElementById("submitBtn").style.display =
currentQuestion === questions.length - 1 ? "inline-block" : "none";
}
function nextQuestion() {
saveAnswer();
if (currentQuestion < questions.length - 1) {
currentQuestion++;
showQuestion();
}
}
function prevQuestion() {
saveAnswer();
if (currentQuestion > 0) {
currentQuestion--;
showQuestion();
}
}
function saveAnswer() {
const selected = document.querySelector('input[name="option"]:checked');
userAnswers[currentQuestion] =
selected ? parseInt(selected.value) : null;
}
function submitQuiz() {
saveAnswer();
score = 0;
questions.forEach((q, index) => {
if (userAnswers[index] === q.correct) score++;
});
showResults();
saveScore(userName, score);
loadScoreboard();
}
function showResults() {
const container = document.getElementById("questionContainer");
container.innerHTML = "";
questions.forEach((q, index) => {
const selected = userAnswers[index];
const correct = q.correct;
let optsHTML = q.options.map((opt, i) => {
let cls = "";
if (i === correct) cls = "correct";
if (selected === i && selected !== correct) cls = "wrong";
return `<label class="${cls}">${opt}</label>`;
}).join('');
container.innerHTML += `
<div class="question">${q.question}</div>
<div class="options">${optsHTML}</div>
<div class="explanation" style="display:block;">
${q.explanation}
</div>
<hr>
`;
});
document.querySelector(".controls").style.display = "none";
document.getElementById("result").innerHTML =
`<h3>Your Score: ${score} / ${questions.length}</h3>`;
}
function saveScore(name, score) {
let scores = JSON.parse(localStorage.getItem("quizScores")) || [];
scores.push({
name,
score,
date: new Date().toLocaleString()
});
localStorage.setItem("quizScores", JSON.stringify(scores));
}
function loadScoreboard() {
let scores = JSON.parse(localStorage.getItem("quizScores")) || [];
scores.sort((a, b) => b.score - a.score);
document.getElementById("scoreList").innerHTML =
scores.map(s =>
`<li>${s.name} - ${s.score}/10 (${s.date})</li>`
).join('');
}
</script>
</body>
</html>