ch3 part 7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class 10 Science – Menstruation and Contraception 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;
line-height: 1.5;
}
.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;
}
#scoreboard {
margin-top: 25px;
background: #eef3f7;
padding: 15px;
border-radius: 8px;
}
#scoreboard h3 {
text-align: center;
}
ol {
padding-left: 20px;
}
#userName {
padding: 10px;
width: 90%;
max-width: 300px;
border: 1px solid #ccc;
border-radius: 6px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="quiz-container">
<h2>🧠 Class 10 Science Quiz – Menstruation and Contraceptive Methods</h2>
<p style="text-align:center;"><strong>APICAL CLASSES</strong></p>
<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. Agar egg fertilise nahi hota, to woh approximately kitne time tak survive karta hai?",
options: [
"A. 1 week",
"B. 1 day",
"C. 1 month",
"D. 10 days"
],
correct: 1,
explanation: "Agar egg fertilise nahi hota, to woh approximately one day tak live karta hai. Iske baad uterus ki prepared lining ki bhi zaroorat nahi rehti."
},
{
question: "2. Menstruation kya hota hai?",
options: [
"A. Egg ka formation",
"B. Sperm ka formation",
"C. Uterus ki lining ka blood aur mucus ke saath vagina se bahar nikalna",
"D. Fertilisation ka process"
],
correct: 2,
explanation: "Agar fertilisation nahi hota, to uterus ki thick lining slowly break down hokar blood aur mucus ke form mein vagina se bahar nikalti hai. Is process ko menstruation kehte hain."
},
{
question: "3. Menstrual cycle approximately kitne interval par hota hai?",
options: [
"A. Roughly every month",
"B. Every week",
"C. Every six months",
"D. Once in a lifetime"
],
correct: 0,
explanation: "Ovary generally one egg every month release karti hai aur uterus bhi every month fertilised egg receive karne ke liye prepare hota hai. Isliye menstrual cycle roughly monthly hota hai."
},
{
question: "4. Menstruation normally approximately kitne din tak last kar sakta hai?",
options: [
"A. 1 day only",
"B. 2–8 days",
"C. 15–20 days",
"D. 30 days"
],
correct: 1,
explanation: "NCERT ke according menstruation usually about 2 to 8 days tak last karta hai."
},
{
question: "5. Sexual maturation ka kya meaning hai?",
options: [
"A. Body aur mind immediately child-rearing ke liye ready ho jaate hain",
"B. Sirf height increase hona",
"C. Sexual development gradually occur hona",
"D. Fertilisation immediately start hona"
],
correct: 2,
explanation: "Sexual maturation gradual process hai aur ye general body growth ke saath hota hai. Sexual maturity ka matlab automatically ye nahi hai ki body aur mind pregnancy ya child-rearing ke liye ready hain."
},
{
question: "6. Condom ka use sexual act ke during mainly kis purpose ke liye kiya ja sakta hai?",
options: [
"A. Sperm production increase karne ke liye",
"B. Many sexually transmitted infections ke transmission ko reduce karne aur pregnancy risk ko reduce karne mein help ke liye",
"C. Egg production increase karne ke liye",
"D. Menstruation stop karne ke liye"
],
correct: 1,
explanation: "Condom ek mechanical barrier provide karta hai. Ye sperm ko egg tak pahunchne se rokne mein help karta hai aur many sexually transmitted infections ke transmission ko bhi reduce kar sakta hai."
},
{
question: "7. Oral contraceptive pills generally pregnancy ko prevent karne mein kaise help karti hain?",
options: [
"A. Hormonal balance ko change karke egg release ko prevent karke",
"B. Sperm ko produce karke",
"C. Uterus ko remove karke",
"D. Egg ko fertilise karke"
],
correct: 0,
explanation: "Oral contraceptive pills hormonal balance change karti hain, jisse eggs release nahi hote aur fertilisation prevent hota hai. Inke side effects bhi ho sakte hain."
},
{
question: "8. Copper-T ya loop kahan place kiya jata hai?",
options: [
"A. Testes mein",
"B. Uterus mein",
"C. Ovary ke andar",
"D. Urinary bladder mein"
],
correct: 1,
explanation: "Copper-T aur loop uterus mein place kiye jaate hain to prevent pregnancy. Kabhi-kabhi uterus mein irritation ki wajah se side effects ho sakte hain."
},
{
question: "9. Male mein vas deferens ko block karne ka kya effect hota hai?",
options: [
"A. Egg production stop ho jata hai",
"B. Sperm transfer prevent hota hai",
"C. Ovary remove ho jati hai",
"D. Menstruation immediately stop hoti hai"
],
correct: 1,
explanation: "Agar vas deferens block kar diya jaye, to sperms ka transfer prevent hota hai. Is wajah se fertilisation nahi hota."
},
{
question: "10. Female foeticide ke context mein prenatal sex determination ke baare mein NCERT kya batata hai?",
options: [
"A. Ye compulsory hai",
"B. Ye freely allowed hai",
"C. Ye law ke through prohibited hai",
"D. Ye sirf males ke liye allowed hai"
],
correct: 2,
explanation: "Prenatal sex determination prohibited by law hai. Female foeticide ke reckless use se child sex ratio decline ho sakta hai, jo healthy society ke liye concern hai."
}
];
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>
`;
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 saveAnswer() {
const selected = document.querySelector('input[name="option"]:checked');
userAnswers[currentQuestion] = selected
? parseInt(selected.value)
: null;
}
function nextQuestion() {
saveAnswer();
if (currentQuestion < questions.length - 1) {
currentQuestion++;
showQuestion();
}
}
function prevQuestion() {
saveAnswer();
if (currentQuestion > 0) {
currentQuestion--;
showQuestion();
}
}
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;">
<strong>Explanation:</strong> ${q.explanation}
</div>
<hr>
`;
});
document.querySelector(".controls").style.display = "none";
document.getElementById("result").innerHTML = `
<h3>Your Score: ${score} / ${questions.length}</h3>
<p>${score >= 8 ? "Excellent work! 🎉" : score >= 5 ? "Good effort! Keep practising." : "Keep learning and try again!"}</p>
`;
}
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}/${questions.length} (${s.date})</li>`
).join("");
}
</script>
</body>
</html>