ch6 part 7
<!DOCTYPE html>
<html lang="en">
<head>
<title>🧠 UPSC Quiz – Wind Circulation, Clouds and Lightning</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>🧠 Wind Circulation, Clouds and Lightning 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. Warm aur moist air rise karne par low-pressure area kyun create hota hai?",
options: [
"A. Kyunki warm air heavier ho jaati hai.",
"B. Kyunki warm air lighter hokar upar rise karti hai.",
"C. Kyunki water droplets disappear ho jaati hain.",
"D. Kyunki wind move karna band kar deti hai."
],
correct: 1,
explanation: "Jab land heat hoti hai, toh uske paas ki warm air lighter hokar rise karti hai. Isse surface ke paas low-pressure area develop ho sakta hai.<br><br><b>Example:</b> Garm road ke upar ki air heat hokar rise kar sakti hai."
},
{
question: "2. Wind circulation ka continuous process kaise maintain hota hai?",
options: [
"A. Warm air rise karti hai aur cooler air uski jagah leti hai.",
"B. Sirf warm air neeche aati hai.",
"C. Cooler air hamesha stationary rehti hai.",
"D. Clouds hawa ko rok dete hain."
],
correct: 0,
explanation: "Warm air rise karke low-pressure area banati hai. Surrounding cooler air uski jagah lene ke liye move karti hai. Yeh process continue ho sakta hai aur wind circulation produce karta hai.<br><br><b>Example:</b> Heating ke kaaran air movement convection ka ek example hai."
},
{
question: "3. Clouds mein water droplets ka size badhne ka ek reason kya hai?",
options: [
"A. Water droplets ek-doosre ke saath merge karti hain.",
"B. Water droplets oxygen mein change ho jaati hain.",
"C. Air ka pressure hamesha zero ho jaata hai.",
"D. Ice particles water vapour ko destroy karte hain."
],
correct: 0,
explanation: "Clouds mein chhoti water droplets aapas mein combine hokar larger droplets bana sakti hain. Jab droplets heavy ho jaati hain, toh woh rain ke roop mein gir sakti hain.<br><br><b>Example:</b> Badalon se baarish tab hoti hai jab droplets itni heavy ho jaati hain ki air unhe support nahi kar paati."
},
{
question: "4. Tropical regions, jaise India ke kai areas mein, storms frequent hone ka ek important reason kya hai?",
options: [
"A. Warm aur humid conditions.",
"B. Hamesha freezing temperature.",
"C. Water vapour ki complete absence.",
"D. Wind ka na chalna."
],
correct: 0,
explanation: "Warm aur humid air mein moisture hota hai. Suitable atmospheric conditions mein warm, moist air rise karke clouds aur storms develop karne mein help kar sakti hai.<br><br><b>Example:</b> Monsoon season mein warm, moist air aur favourable weather conditions thunderstorms develop kar sakti hain."
},
{
question: "5. Thundercloud mein positively charged lighter ice particles generally kahan collect hote hain?",
options: [
"A. Cloud ke lower part mein.",
"B. Cloud ke upper part mein.",
"C. Sirf ground par.",
"D. Cloud ke bahar hi."
],
correct: 1,
explanation: "Textbook ke according, lighter positively charged ice particles upward move karke cloud ke upper region mein occupy karte hain.<br><br><b>Example:</b> Thundercloud ke upper region mein positive charge aur lower region mein negative charge separate ho sakte hain."
},
{
question: "6. Thundercloud ke lower part mein negatively charged water droplets hone se ground par kya effect ho sakta hai?",
options: [
"A. Ground aur nearby objects positively charged ho sakte hain.",
"B. Ground ka temperature hamesha zero ho jaata hai.",
"C. Ground ka electric charge hamesha negative ho jaata hai.",
"D. Ground par gravity khatam ho jaati hai."
],
correct: 0,
explanation: "Cloud ke lower negative charge ki wajah se ground aur nearby objects mein electric charges redistribute ho sakte hain. Ground par positive charge induce ho sakta hai.<br><br><b>Example:</b> Thundercloud ke paas ek tree ke upper parts par induced positive charge develop ho sakta hai."
},
{
question: "7. Normally air ko electrical insulator kyun kaha jaata hai?",
options: [
"A. Air opposite electric charges ke movement ko normally prevent karti hai.",
"B. Air electricity ko hamesha generate karti hai.",
"C. Air mein koi particles nahi hote.",
"D. Air sirf positive charge carry karti hai."
],
correct: 0,
explanation: "Normal conditions mein air electricity ki good conductor nahi hoti. Lekin jab electric field bahut strong ho jaati hai, toh air breakdown ho sakti hai aur electric discharge possible ho jaata hai.<br><br><b>Example:</b> Lightning ke time air ka electrical breakdown hota hai aur bright flash produce hota hai."
},
{
question: "8. Lightning kin jagahon ke beech occur kar sakti hai?",
options: [
"A. Sirf cloud aur ground ke beech.",
"B. Sirf ek cloud ke andar.",
"C. Cloud ke andar, do clouds ke beech, ya cloud aur ground ke beech.",
"D. Sirf buildings ke andar."
],
correct: 2,
explanation: "Lightning different regions ke opposite electric charges ke beech discharge ke roop mein occur kar sakti hai. Yeh cloud ke andar, clouds ke beech, ya cloud aur ground ke beech ho sakti hai.<br><br><b>Example:</b> Kabhi lightning cloud ke andar flash karti hai, jabki kabhi woh ground tak pahunchti hui dikhai deti hai."
},
{
question: "9. Thunder aur lightning ke beech kya relationship hai?",
options: [
"A. Thunder lightning se pehle light produce karta hai.",
"B. Lightning air ko heat karti hai, jisse thunder produce hota hai.",
"C. Thunder clouds ko electrically charge karta hai.",
"D. Dono ka ek-doosre se koi relation nahi hai."
],
correct: 1,
explanation: "Lightning ke kaaran surrounding air rapidly heat aur expand hoti hai. Is sudden expansion se sound waves produce hoti hain, jinhe thunder kehte hain. Light sound se faster travel karti hai, isliye lightning pehle dikhai deti hai.<br><br><b>Example:</b> Bijli chamakne ke baad garaj sunai dena isi reason se hota hai."
},
{
question: "10. Lightning ke time sabse safe action kaunsa hai?",
options: [
"A. Ek isolated tree ke neeche khade hona.",
"B. Open field mein let jaana.",
"C. Safe enclosed building mein shelter lena.",
"D. Metal pole ke paas khade rehna."
],
correct: 2,
explanation: "Lightning dangerous electric discharge hai. Safe enclosed building mein jaana chahiye aur windows, plumbing aur electrical appliances se door rehna chahiye. Agar building available nahi hai, toh fully enclosed hard-topped vehicle ek safer option ho sakta hai.<br><br><b>Example:</b> Cricket match ke dauraan lightning dikhe, toh open field mein khelna continue karne ke bajay safe shelter mein chale jaana chahiye."
}
];
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>
Pages:
1 2 3 4 5 6 7 8 9 10 11 12