ch13 part4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🧠 Ozone Layer Quiz – Class 10 Science</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>🧠 Ozone Layer and Its Depletion – Class 10 Science Quiz</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. Ozone molecule ka chemical formula kya hai?",
options: [
"A. O₂",
"B. O₃",
"C. CO₂",
"D. O₄"
],
correct: 1,
explanation: "✅ Correct Answer: B. O₃<br><br>Ozone ek molecule hai jo <b>3 oxygen atoms</b> se milkar bana hota hai, isliye iska chemical formula O₃ hai."
},
{
question: "2. Atmosphere ke higher levels par ozone ka main function kya hai?",
options: [
"A. Oxygen produce karna",
"B. Earth ko UV radiation se protect karna",
"C. Rainfall increase karna",
"D. Temperature ko zero karna"
],
correct: 1,
explanation: "✅ Correct Answer: B. Earth ko UV radiation se protect karna<br><br>Higher atmosphere mein ozone layer Sun ki harmful <b>ultraviolet (UV) radiation</b> ko absorb karke Earth ke organisms ko protect karti hai."
},
{
question: "3. UV radiation living organisms ke liye harmful kyun hai?",
options: [
"A. Ye food production increase karti hai",
"B. Ye human beings mein skin cancer cause kar sakti hai",
"C. Ye oxygen ko completely destroy karti hai",
"D. Ye rainfall ko stop karti hai"
],
correct: 1,
explanation: "✅ Correct Answer: B. Ye human beings mein skin cancer cause kar sakti hai<br><br>Excessive UV radiation organisms ke liye damaging hoti hai aur humans mein <b>skin cancer</b> jaise harmful effects cause kar sakti hai."
},
{
question: "4. Ozone higher atmosphere mein kis process se form hota hai?",
options: [
"A. UV radiation oxygen molecules par act karti hai",
"B. Rainwater oxygen ko break karta hai",
"C. Carbon dioxide sunlight se react karti hai",
"D. Nitrogen oxygen ko completely destroy karta hai"
],
correct: 0,
explanation: "✅ Correct Answer: A. UV radiation oxygen molecules par act karti hai<br><br>High-energy UV radiation kuch O₂ molecules ko <b>free oxygen atoms (O)</b> mein split karti hai. Ye oxygen atoms doosre O₂ molecules ke saath combine karke O₃ banate hain."
},
{
question: "5. Normal oxygen O₂ aur ozone O₃ ke baare mein kaunsa statement correct hai?",
options: [
"A. Dono exactly same properties rakhte hain",
"B. O₂ aerobic life ke liye essential hai, jabki ozone higher atmosphere mein protective role perform karta hai",
"C. Ozone humans ke liye breathing gas hai",
"D. O₂ harmful UV radiation ko completely block karta hai"
],
correct: 1,
explanation: "✅ Correct Answer: B. O₂ aerobic life ke liye essential hai, jabki ozone higher atmosphere mein protective role perform karta hai<br><br>O₂ aerobic organisms ke liye essential hai. Ozone higher atmosphere mein <b>UV radiation se protection</b> provide karta hai."
},
{
question: "6. Atmosphere mein ozone ki amount sharply kab decrease hone lagi?",
options: [
"A. 1950s",
"B. 1960s",
"C. 1980s",
"D. 2000s"
],
correct: 2,
explanation: "✅ Correct Answer: C. 1980s<br><br>NCERT ke according, atmosphere mein ozone ki amount <b>1980s mein sharply decrease</b> hone lagi."
},
{
question: "7. Ozone layer depletion ko mainly kin synthetic chemicals se link kiya gaya?",
options: [
"A. CFCs",
"B. Oxygen",
"C. Nitrogen",
"D. Water vapour"
],
correct: 0,
explanation: "✅ Correct Answer: A. CFCs<br><br><b>Chlorofluorocarbons (CFCs)</b> synthetic chemicals hain jo ozone depletion se linked hain. Ye refrigerants aur kuch fire extinguishers mein use kiye jaate the."
},
{
question: "8. CFCs ka use mainly kin devices/applications mein kiya jata tha?",
options: [
"A. Refrigerants aur fire extinguishers",
"B. Solar panels aur batteries",
"C. Water filters aur fans",
"D. Glass aur cement"
],
correct: 0,
explanation: "✅ Correct Answer: A. Refrigerants aur fire extinguishers<br><br>CFCs ka use <b>refrigerants</b> aur kuch <b>fire extinguishers</b> mein kiya jata tha. In chemicals ko ozone depletion se link kiya gaya."
},
{
question: "9. Ozone depletion ko control karne ke liye 1987 mein kya important step liya gaya?",
options: [
"A. CFC production ko unlimited kar diya gaya",
"B. UNEP ne CFC production ko 1986 levels par freeze karne ka agreement karaya",
"C. Oxygen production stop kar di gayi",
"D. UV radiation ko completely block kar diya gaya"
],
correct: 1,
explanation: "✅ Correct Answer: B. UNEP ne CFC production ko 1986 levels par freeze karne ka agreement karaya<br><br>1987 mein <b>United Nations Environment Programme (UNEP)</b> ke under Montreal Protocol adopt kiya gaya, jiska purpose ozone-depleting substances ko phase out karna tha. Initial agreement mein developed countries ke CFC consumption ko 1986 levels par freeze karne ka provision tha."
},
{
question: "10. Ozone layer ko protect karne ke liye refrigerators ke baare mein kya step liya gaya?",
options: [
"A. Sabhi refrigerators ko CFC-free banana mandatory kiya gaya",
"B. Refrigerators ka use completely ban kar diya gaya",
"C. Refrigerators mein extra CFC add kiya gaya",
"D. Refrigerators mein oxygen use karna compulsory kiya gaya"
],
correct: 0,
explanation: "✅ Correct Answer: A. Sabhi refrigerators ko CFC-free banana mandatory kiya gaya<br><br>Ozone depletion ko reduce karne ke liye CFC-based refrigeration technology ko phase out karke <b>CFC-free alternatives</b> ko promote kiya gaya."
}
];
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>