ch6 part18
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>APICAL CLASSES - Newton's Laws of Motion Quiz</title>
<style>
* { box-sizing: border-box; }
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
display: flex;
justify-content: center;
align-items: flex-start;
padding: 30px 12px;
min-height: 100vh;
margin: 0;
}
.quiz-container {
background: #fff;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
width: 100%;
max-width: 800px;
}
h2 { text-align: center; color: #1e3c72; }
.brand { text-align: center; color: #2a5298; font-weight: bold; }
.question { font-weight: bold; margin: 15px 0; line-height: 1.6; }
.options label {
display: block;
margin: 8px 0;
padding: 12px;
border-radius: 6px;
border: 1px solid #ccc;
cursor: pointer;
transition: 0.2s;
line-height: 1.5;
}
.options label:hover { background: #f0f0f0; }
.options input { margin-right: 8px; }
.correct {
background-color: #c8f7c5 !important;
border-color: #28a745 !important;
}
.wrong {
background-color: #f8d7da !important;
border-color: #dc3545 !important;
}
.explanation {
background: #e9ecef;
padding: 12px;
margin-top: 12px;
border-left: 5px solid #2a5298;
border-radius: 5px;
line-height: 1.6;
}
.controls { text-align: center; margin-top: 20px; }
button {
background-color: #2a5298;
color: white;
border: none;
padding: 11px 20px;
border-radius: 6px;
cursor: pointer;
margin: 5px;
font-size: 15px;
}
button:hover { background-color: #1e3c72; }
input[type="text"] {
width: 100%;
padding: 12px;
margin: 10px 0;
border: 1px solid #aaa;
border-radius: 6px;
font-size: 16px;
}
#scoreboard {
margin-top: 25px;
background: #eef3f7;
padding: 15px;
border-radius: 8px;
}
#scoreboard h3 { text-align: center; }
ol { padding-left: 25px; }
.progress {
color: #555;
text-align: right;
font-size: 14px;
}
#result { text-align: center; margin-top: 20px; }
@media(max-width:600px) {
.quiz-container { padding: 17px; }
body { padding: 12px 7px; }
button { padding: 10px 14px; }
}
</style>
</head>
<body>
<div class="quiz-container">
<div class="brand">APICAL CLASSES</div>
<h2>🧠 Newton’s Second and Third Laws of Motion</h2>
<p style="text-align:center;">Science Practice Quiz</p>
<div id="nameSection">
<p><strong>Enter your name to start:</strong></p>
<input type="text" id="userName" placeholder="Your Name">
<div class="controls">
<button onclick="startQuiz()">Start Quiz</button>
</div>
</div>
<div id="quizSection" style="display:none;">
<div class="progress" id="progress"></div>
<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 Quiz</button>
</div>
<div id="result"></div>
<div id="scoreboard">
<h3>🏆 Scoreboard</h3>
<ol id="scoreList"></ol>
</div>
</div>
</div>
<script>
const questions = [
{
question: "1. Kerala ki snake boat race mein 100 oarsmen rowing kar rahe hain. 95 oarsmen boat ko forward propel karne ke liye backward direction mein 200 N each force lagate hain, jabki 5 oarsmen galti se opposite direction mein 200 N each force lagate hain. Drag aur air friction ignore karne par boat par net force kitna hoga?",
options: [
"A. 18,000 N forward",
"B. 19,000 N forward",
"C. 20,000 N forward",
"D. 18,000 N backward"
],
correct: 0,
explanation: "95 oarsmen ka force = 95 × 200 = 19,000 N forward. Opposite 5 oarsmen = 5 × 200 = 1,000 N backward. Net force = 19,000 − 1,000 = 18,000 N forward."
},
{
question: "2. Jab kisi object par net force act karta hai, to Newton’s Second Law ke according acceleration ke baare mein kaunsa statement correct hai?",
options: [
"A. Acceleration force ke opposite direction mein hoti hai aur force ke proportional hoti hai.",
"B. Acceleration force ki direction mein hoti hai aur force ke proportional hoti hai.",
"C. Acceleration force ki direction mein hoti hai aur mass ke proportional hoti hai.",
"D. Acceleration force ke opposite direction mein hoti hai aur mass ke inversely proportional hoti hai."
],
correct: 1,
explanation: "Newton’s Second Law ke according acceleration net force ki direction mein hoti hai aur fixed mass ke liye acceleration net force ke directly proportional hoti hai."
},
{
question: "3. Ek sailor small boat se shore ki taraf forward jump karta hai. Sailor ke jump karne par boat kis direction mein move karegi aur kyun?",
options: [
"A. Forward, kyunki sailor boat ko forward push karta hai.",
"B. Backward, kyunki sailor boat par backward reaction force lagata hai.",
"C. Forward, kyunki gravity boat ko forward pull karti hai.",
"D. Boat move nahi karegi, kyunki sailor aur boat connected hain."
],
correct: 1,
explanation: "Sailor boat ko jump karte waqt forward push karta hai. Newton’s Third Law ke according boat sailor par forward force aur sailor par opposite reaction, jisse boat backward move karti hai."
},
{
question: "4. High jump athlete ke landing area mein soft mat ya sand bed kyun rakha jaata hai?",
options: [
"A. Athlete ki mass reduce karne ke liye",
"B. Athlete ko zyada speed dene ke liye",
"C. Stopping time increase karke force ko reduce karne ke liye",
"D. Athlete ki acceleration increase karne ke liye"
],
correct: 2,
explanation: "Soft mat/sand athlete ko suddenly stop nahi karta; stopping time increase hota hai. Same change in velocity longer time mein hone se acceleration aur impact force kam hota hai."
},
{
question: "5. Ek loaded hand cart aur ek identical empty hand cart collision karte hain. Newton’s Third Law ke according collision ke dauran dono carts ek-doosre par kya force lagayenge?",
options: [
"A. Loaded cart greater force lagayega.",
"B. Empty cart greater force lagayega.",
"C. Dono equal magnitude ki opposite forces lagayenge.",
"D. Sirf loaded cart force lagayega."
],
correct: 2,
explanation: "Newton’s Third Law ke according interaction ke forces equal magnitude aur opposite direction mein hote hain. Cart ka mass different hone se accelerations different ho sakti hain, forces nahi."
},
{
question: "6. Ek 50 g bullet 100 m/s ki speed se move karte hue wooden block mein enter karti hai aur 50 cm distance ke baad rest mein aa jaati hai. Agar acceleration constant hai, bullet par stopping force ki magnitude approximately kitni hogi?",
options: [
"A. 50 N",
"B. 100 N",
"C. 500 N",
"D. 1000 N"
],
correct: 2,
explanation: "m = 0.05 kg, u = 100 m/s, v = 0, s = 0.5 m.<br>v² = u² + 2as<br>0 = 100² + 2a(0.5), so a = −10,000 m/s².<br>F = ma = 0.05 × 10,000 = 500 N. Force motion ke opposite direction mein hai."
},
{
question: "7. Ek football ka mass 0.4 kg hai. Player ball ko 108 km/h ki speed tak kick karta hai aur ball par average force 800 N lagta hai. Foot aur ball ke contact ka time approximately kitna hoga?",
options: [
"A. 0.0015 s",
"B. 0.015 s",
"C. 0.15 s",
"D. 1.5 s"
],
correct: 1,
explanation: "108 km/h = 30 m/s. Assuming ball initially rest par thi, F = ma se 800 = 0.4 × (30/t). Isliye t = 0.015 s."
},
{
question: "8. Ek 2 kg object 10 m/s ki constant velocity se move kar raha hai. Rough patch par friction 7 N hai aur motion ke opposite additional 3 N force bhi lagti hai. Object kitni distance travel karke rest mein aa jayega?",
options: [
"A. 5 m",
"B. 10 m",
"C. 20 m",
"D. 25 m"
],
correct: 1,
explanation: "Total opposing force = 7 + 3 = 10 N.<br>a = F/m = −10/2 = −5 m/s².<br>v² = u² + 2as: 0 = 100 + 2(−5)s.<br>Isliye s = 10 m."
},
{
question: "9. Ek tractor harrow of mass m₁ ko force F se pull karta hai aur acceleration a₁ produce hoti hai. Wahi tractor trolley of mass m₂ ko same force F se pull karta hai aur acceleration a₂ produce hoti hai. Agar tractor dono ko together same force F se pull kare, to combined acceleration kya hogi?",
options: [
"A. a₁ + a₂",
"B. a₁a₂",
"C. (a₁ + a₂)/(a₁a₂)",
"D. a₁a₂/(a₁ + a₂)"
],
correct: 3,
explanation: "a₁ = F/m₁ aur a₂ = F/m₂. Combined mass m₁ + m₂ hoga, so acceleration = F/(m₁ + m₂). Simplify karne par a = a₁a₂/(a₁ + a₂)."
},
{
question: "10. Ek bar magnet ko compass ke paas laane par magnet aur compass needle ek-doosre par equal and opposite magnetic forces lagate hain. Phir compass needle visibly move karti hai, lekin bar magnet almost stationary kyun dikhta hai?",
options: [
"A. Bar magnet par force act nahi karta.",
"B. Compass needle par greater force act karta hai.",
"C. Dono forces equal hain, lekin bar magnet ka mass bahut greater hone se uski acceleration bahut small hoti hai.",
"D. Magnetic force sirf compass needle par act karta hai."
],
correct: 2,
explanation: "Newton’s Third Law ke according forces equal and opposite hain. Lekin a = F/m; bar magnet ka mass much larger hai, isliye uski acceleration bahut small aur practically unnoticeable hoti hai."
}
];
let currentQuestion = 0;
let score = 0;
let userAnswers = [];
let userName = "";
let quizSubmitted = false;
function startQuiz() {
userName = document.getElementById("userName").value.trim();
if (!userName) {
alert("Please enter your name.");
return;
}
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");
document.getElementById("progress").textContent =
"Question " + (currentQuestion + 1) + " of " + questions.length;
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();
const unanswered = userAnswers.filter(answer => answer === null || answer === undefined).length;
if (unanswered > 0) {
const confirmSubmit = confirm(
"You have " + unanswered + " unanswered question(s). Do you still want to submit?"
);
if (!confirmSubmit) return;
}
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 optsHTML = q.options.map((opt, i) => {
let cls = "";
if (i === q.correct) cls = "correct";
if (selected === i && selected !== q.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">
<strong>Explanation:</strong><br>${q.explanation}
</div>
<hr>
`;
});
document.querySelector(".controls").style.display = "none";
document.getElementById("progress").style.display = "none";
document.getElementById("result").innerHTML = `
<h3>Your Score: ${score} / ${questions.length}</h3>
<p><strong>Student:</strong> ${escapeHTML(userName)}</p>
<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>${escapeHTML(s.name)} - ${s.score}/10 (${escapeHTML(s.date)})</li>`
).join("");
}
function escapeHTML(value) {
return String(value).replace(/[&<>"']/g, function(char) {
return {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}[char];
});
}
</script>
</body>
</html>