Elementor #26447

Quiz

🚔 Police Mock Test

⏳ Time Left: 100:00

Q1. Contemporary : Historic ∷ ___ : Ancient

Q2. Project Loon is by?

Q3. Communication satellite launched in Nov 2015?

.quiz-box { max-width:800px; margin:auto; background:#fff; padding:25px; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.1); } .q { margin:20px 0; padding:15px; background:#f5f7ff; border-radius:10px; } label { display:block; margin:5px 0; } button { background:#0077ff; color:#fff; padding:12px 20px; border:none; border-radius:8px; cursor:pointer; } // TIMER (100 minutes = 6000 sec) let time = 6000; let timer = setInterval(() => { let min = Math.floor(time / 60); let sec = time % 60; document.getElementById("timer").innerText = "⏳ Time Left: " + min + ":" + (sec < 10 ? "0" + sec : sec); time--; if (time < 0) { clearInterval(timer); submitQuiz(); } }, 1000); // SUBMIT FUNCTION function submitQuiz() { let score = 0; let total = 100; // total questions let form = document.forms["quizForm"]; for (let i = 1; i <= 100; i++) { let q = form["q" + i]; if (q) { for (let j = 0; j < q.length; j++) { if (q[j].checked && q[j].value == "1") { score++; } } } } document.getElementById("result").innerHTML = "🎉 Your Score: " + score + " / " + total; }
Quiz

🚔 Police Mock Test (100 Questions)

⏳ Time Left: 100:00

.quiz-box { max-width:900px; margin:auto; padding:20px; background:#fff; border-radius:12px; box-shadow:0 10px 25px rgba(0,0,0,0.1); } .q { margin:15px 0; padding:15px; background:#f5f7ff; border-radius:10px; } label { display:block; margin:5px 0; } button { background:#0077ff; color:#fff; padding:12px 20px; border:none; border-radius:8px; cursor:pointer; } // TIMER let time = 6000; let timer = setInterval(() => { let m = Math.floor(time / 60); let s = time % 60; document.getElementById("timer").innerText = "⏳ Time Left: " + m + ":" + (s < 10 ? "0" + s : s); time--; if (time < 0) { clearInterval(timer); submitQuiz(); } }, 1000); // QUESTIONS DATA (All 100) const questions = [ {q:"Contemporary : Historic ∷ ___ : Ancient", o:["Past","Classic","Modern","Future"], a:2}, {q:"Project Loon is by?", o:["Google","Microsoft","Apple","Yahoo"], a:0}, {q:"Satellite launched Nov 2015?", o:["GSAT-6","GSAT-15","GSAT-16","IRNSS-1E"], a:0}, {q:"HCF=4, LCM factors 5 & 7 → smaller?", o:["10","14","20","28"], a:1}, {q:"Capital of Nagaland?", o:["Dimapur","Kohima","Mokokchung","Tezpur"], a:1}, {q:"E+F=10 days, E=30 → F?", o:["15","20","25","18"], a:0}, {q:"Founder of Swaraj Party?", o:["Rajagopalachari","Motilal Nehru","Lala Lajpat Rai","Gandhi"], a:1}, {q:"Trig expression result?", o:["cosθ-sinθ","sinθ-cosθ","sinθ+cosθ","cotθ-tanθ"], a:2}, {q:"BHU founder?", o:["Nanda","Malaviya","JP","Radhakrishnan"], a:1}, {q:"Not conductor?", o:["Porcelain","Aluminum","Tungsten","Nickel"], a:0}, // 👉 I included first 10 fully // Remaining questions auto-filled pattern for full 100 demo ]; // AUTO GENERATE up to 100 while(questions.length { quizHTML += `

Q${index+1}. ${item.q}

`; item.o.forEach((opt, i)=>{ quizHTML += ``; }); quizHTML += `
`; }); document.getElementById("quiz").innerHTML = quizHTML; // SUBMIT function submitQuiz(){ let score = 0; questions.forEach((item, index)=>{ let ans = document.querySelector(`input[name="q${index}"]:checked`); if(ans && parseInt(ans.value) === item.a){ score++; } }); document.getElementById("result").innerHTML = "🎉 Your Score: " + score + " / 100"; }
Quiz
Police Mock Test 100 Questions body{font-family:Arial;background:#f5f7fb;padding:20px;} .quiz{max-width:900px;margin:auto;background:#fff;padding:20px;border-radius:10px;} .q{margin:15px 0;padding:10px;background:#eef;}

🚔 Police Mock Test (100 Questions)

This is a ready HTML mock test structure. Add full questions in JS array.

const questions = [ {q:"Capital of Nagaland?",o:["Dimapur","Kohima","Tezpur","Delhi"],a:1}, {q:"Project Loon by?",o:["Google","Apple","Microsoft","Yahoo"],a:0} ]; while(questions.length{ html+=`

Q${i+1}. ${q.q}

`; q.o.forEach((opt,j)=>{ html+=`
`; }); html+="
"; }); document.getElementById("quiz").innerHTML=html; function submitQuiz(){ let score=0; questions.forEach((q,i)=>{ let ans=document.querySelector(`input[name=q${i}]:checked`); if(ans && parseInt(ans.value)===q.a) score++; }); document.getElementById("result").innerHTML="Score: "+score+"/100"; }
Quiz
gkhfg
Quiz
gkhfg
Quiz
gkhfg
Quiz
gkhfg