ch3 part3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Onion Root Tip Experiment 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;
line-height: 1.6;
}
.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;
line-height: 1.6;
}
.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;
}
#userName {
padding: 10px;
width: 90%;
max-width: 350px;
border: 1px solid #ccc;
border-radius: 6px;
}
#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>🧠 Onion Root Tip Experiment & Apical Meristems 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. In an experiment, two onion bulbs are placed in separate jars containing water. Their root lengths are measured for three days. What is the main purpose of this experiment?",
options: [
"A. To study how roots absorb minerals",
"B. To find out where root length growth occurs",
"C. To study photosynthesis in roots",
"D. To compare roots of different plants"
],
correct: 1,
explanation: "Experiment ka main purpose yeh determine karna hai ki <b>root ki length kis region se increase hoti hai</b>."
},
{
question: "2. In the onion bulb experiment, the root tips of the bulb in Jar B are cut by about 1 cm on Day 3. What happens to the roots of Jar B after the tips are removed?",
options: [
"A. They continue growing normally",
"B. They grow faster",
"C. Their length growth stops",
"D. They start producing leaves"
],
correct: 2,
explanation: "Root tips cut karne ke baad <b>Jar B ki roots ki length increase hona stop ho jata hai</b>."
},
{
question: "3. In the same experiment, the root tips of Jar A are not cut. What is expected to happen to the roots of Jar A?",
options: [
"A. They continue to grow in length",
"B. They immediately stop growing",
"C. They become shorter every day",
"D. They change into shoots"
],
correct: 0,
explanation: "Jar A mein root tips intact hain, isliye roots <b>continuously length mein grow</b> karti hain."
},
{
question: "4. Why does cutting about 1 cm from the root tip stop further lengthwise growth of the onion root?",
options: [
"A. The root loses all its water",
"B. The root tip contains actively dividing cells",
"C. The bulb stops absorbing oxygen",
"D. The root becomes a permanent tissue"
],
correct: 1,
explanation: "Root tip mein <b>actively dividing cells</b> hoti hain. Tip remove karne par ye dividing cells bhi remove ho jaati hain."
},
{
question: "5. The onion root experiment shows that roots mainly grow from which part?",
options: [
"A. The middle region of the root",
"B. The region near the bulb only",
"C. The root tip",
"D. The root hairs only"
],
correct: 2,
explanation: "Jab root tip cut kiya gaya to growth stop ho gayi. Isse pata chalta hai ki <b>root tip lengthwise growth ke liye responsible hai</b>."
},
{
question: "6. What type of cell division occurs continuously in the cells present at the onion root tip?",
options: [
"A. Meiosis",
"B. Mitosis",
"C. Fertilisation",
"D. Diffusion"
],
correct: 1,
explanation: "Onion root tip mein cells continuously <b>mitosis</b> se divide karti hain, jisse new cells banti hain aur root grow karti hai."
},
{
question: "7. In an onion bulb experiment, both Jar A and Jar B contain water and onion bulbs. On Day 3, only the root tips in Jar B are cut. Which statement best explains the difference between the two jars?",
options: [
"A. Jar A has an intact root tip, while Jar B has its root tip removed",
"B. Jar A has no water, while Jar B has water",
"C. Jar A has no bulb, while Jar B has a bulb",
"D. Jar A receives sunlight, while Jar B receives darkness"
],
correct: 0,
explanation: "Dono jars mein onion bulbs water mein hain. Main difference ye hai ki <b>Jar B ka root tip cut kiya gaya</b>, jabki Jar A ka tip intact raha."
},
{
question: "8. If the root tip contains continuously dividing cells, what is their direct contribution to plant growth?",
options: [
"A. They increase the length of the root",
"B. They digest food in the root",
"C. They transport food to leaves",
"D. They produce flowers directly"
],
correct: 0,
explanation: "Continuously dividing cells new cells produce karti hain, jo root ki <b>lengthwise growth</b> mein contribute karti hain."
},
{
question: "9. Shoot tips also contain actively dividing cells. What is the main result of this activity?",
options: [
"A. Increase in the length of shoots",
"B. Decrease in root length",
"C. Formation of animal tissues",
"D. Digestion of food"
],
correct: 0,
explanation: "Shoot tip par actively dividing cells shoots ko <b>length mein grow</b> karne mein help karti hain."
},
{
question: "10. The actively dividing growth zones present at the tips of roots and shoots are called what?",
options: [
"A. Lateral meristems",
"B. Permanent tissues",
"C. Apical meristems",
"D. Vascular tissues"
],
correct: 2,
explanation: "Roots aur shoots ke tips par present growth zones ko <b>apical meristems</b> kehte hain. Ye plants ki <b>length increase</b> karne mein help karte hain."
}
];
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;">
<b>Explanation:</b> ${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>