ch13 part11
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🧠 Science Quiz – Reproduction</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;
}
@media (max-width: 600px) {
body {
padding: 10px;
}
.quiz-container {
width: 100%;
padding: 15px;
}
}
</style>
</head>
<body>
<div class="quiz-container">
<h2>🧠 Science Quiz – Reproduction in Plants and Animals</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. Money plant ki stem cutting se new plant grow hona kis type ka reproduction hai?",
options: [
"A. Sexual reproduction",
"B. Vegetative propagation",
"C. Pollination",
"D. Fertilisation"
],
correct: 1,
explanation: "Vegetative propagation asexual reproduction ka type hai, jisme plant ke stem, root ya leaf jaise parts se new plant develop hota hai.<br><br><strong>Example:</strong> Money plant ki stem cutting ko water mein rakhne par roots develop ho sakti hain aur suitable conditions mein new plant grow kar sakta hai."
},
{
question: "2. Asexual reproduction mein offspring generally parent ke genetically similar kyun hote hain?",
options: [
"A. Kyunki genetic material ek hi parent se aata hai",
"B. Kyunki two parents ke gametes fuse karte hain",
"C. Kyunki offspring mein DNA nahi hota",
"D. Kyunki sunlight genes ko same bana deti hai"
],
correct: 0,
explanation: "Asexual reproduction mein generally ek parent se offspring produce hota hai. Isliye offspring parent ke genetically almost identical hote hain, halanki mutations se differences aa sakte hain.<br><br><strong>Example:</strong> Amoeba binary fission se two daughter cells banata hai jo generally genetically almost identical hote hain."
},
{
question: "3. Flower mein female reproductive structure ka kaunsa part ovules contain karta hai?",
options: [
"A. Anther",
"B. Filament",
"C. Ovary",
"D. Petal"
],
correct: 2,
explanation: "Flower ki ovary mein ovules present hote hain. Fertilisation ke baad ovules generally seeds mein develop hote hain aur ovary fruit mein develop hoti hai.<br><br><strong>Example:</strong> Mango flower ki ovary fruit ke development mein contribute karti hai, jabki ovule seed ban sakta hai."
},
{
question: "4. Pollination aur fertilisation ke beech correct difference kya hai?",
options: [
"A. Dono ka meaning exactly same hai",
"B. Pollination pollen transfer hai, jabki fertilisation gametes ka fusion hai",
"C. Pollination seed germination hai",
"D. Fertilisation ka reproduction se koi relation nahi hai"
],
correct: 1,
explanation: "Pollination mein pollen grain anther se stigma tak transfer hota hai. Fertilisation mein male aur female gametes fuse hote hain aur zygote form hota hai.<br><br><strong>Example:</strong> Bee flower ke stigma tak pollen pahunchane mein help kar sakti hai. Baad mein suitable conditions mein fertilisation ho sakta hai."
},
{
question: "5. Male gamete aur female gamete ke fusion se banne wali cell ko kya kehte hain?",
options: [
"A. Embryo",
"B. Zygote",
"C. Pollen",
"D. Ovary"
],
correct: 1,
explanation: "Fertilisation ke time male aur female gametes ka genetic material combine hota hai aur zygote banta hai. Zygote divide hokar embryo develop kar sakta hai.<br><br><strong>Example:</strong> Human sperm aur egg ke fusion se zygote banta hai, jo aage development karta hai."
},
{
question: "6. Plants mein pollen grains ko ek flower se doosre flower tak transfer karne mein kaun help kar sakta hai?",
options: [
"A. Wind aur insects",
"B. Sirf soil",
"C. Sirf roots",
"D. Sirf rocks"
],
correct: 0,
explanation: "Wind, insects aur kuch other animals pollination mein help kar sakte hain. Pollination successful reproduction ki taraf ek important step hai.<br><br><strong>Example:</strong> Bee flower se nectar collect karte waqt pollen ko ek flower se doosre flower tak transfer kar sakti hai."
},
{
question: "7. Most mammals mein developing embryo ko oxygen aur nutrients kaise milte hain?",
options: [
"A. Sirf surrounding air se",
"B. Mother ke body se, placenta ke through",
"C. Soil se",
"D. Eggshell ke stored food se"
],
correct: 1,
explanation: "Most mammals mein embryo uterus ke andar develop karta hai. Placenta ke through mother ke blood se oxygen aur nutrients embryo tak pahunchte hain.<br><br><strong>Example:</strong> Human pregnancy mein placenta developing baby ko oxygen aur nutrients provide karne mein help karta hai."
},
{
question: "8. Birds aur most mammals mein embryo development ka main difference kya hai?",
options: [
"A. Birds mein embryo egg ke andar develop karta hai, jabki most mammals mein embryo mother ke body ke andar develop karta hai",
"B. Birds mein fertilisation nahi hota",
"C. Mammals mein zygote nahi banta",
"D. Birds mein genetic material nahi hota"
],
correct: 0,
explanation: "Birds fertilised eggs lay karte hain, aur embryo egg ke andar develop karta hai. Most mammals mein embryo uterus ke andar develop karta hai aur mother se nutrients aur oxygen prapt karta hai.<br><br><strong>Example:</strong> Hen ka chick egg ke andar develop karta hai, jabki cow ka calf mother ke uterus mein develop karta hai."
},
{
question: "9. Vegetative propagation ka ek important advantage kya hai?",
options: [
"A. New plants develop karne ke liye hamesha seeds required hote hain",
"B. Suitable plant parts se quickly new plants produce kiye ja sakte hain",
"C. Plants ko water ki zaroorat nahi hoti",
"D. Har new plant different species ka hota hai"
],
correct: 1,
explanation: "Vegetative propagation se gardeners aur farmers selected plants ke parts se new plants produce kar sakte hain. New plants generally parent ke genetically similar hote hain.<br><br><strong>Example:</strong> Sugarcane ko stem cuttings se grow kiya ja sakta hai."
},
{
question: "10. Reproduction ke through genetic variation ka long-term benefit kya ho sakta hai?",
options: [
"A. Changing environment mein kuch organisms ko survive karne mein help mil sakti hai",
"B. Sabhi organisms ko ek jaisa bana deta hai",
"C. Evolution ko permanently stop kar deta hai",
"D. Living organisms ka genetic material remove kar deta hai"
],
correct: 0,
explanation: "Genetic variation se population ke individuals mein differences aate hain. Agar koi inherited variation particular environment mein advantage deti hai, toh natural selection ke through woh generations mein more common ho sakti hai.<br><br><strong>Example:</strong> Kuch bacteria mein antibiotic resistance hoti hai. Antibiotic ke exposure mein resistant bacteria survive aur reproduce kar sakte hain."
}
];
let currentQuestion = 0;
let score = 0;
let userAnswers = [];
let userName = "";
let quizSubmitted = false;
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() {
if (quizSubmitted) return;
saveAnswer();
score = 0;
questions.forEach((q, index) => {
if (userAnswers[index] === q.correct) {
score++;
}
});
quizSubmitted = true;
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: name,
score: 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>