Mini Mock Test – 10 Questions
Mini Mock Test – CTET Style
Language: Hindi | Total Ques: 10 | Max Marks: 10
Time Left: 10:00
Not visited
Visited
Answered
Submit Test?
- Time Left: 0:00
- Attempted: 0
- Unattempted: 0
";
html += "
Score: "+score+" / "+total+" ("+percent+"%)
";
html += "
Subject-wise Analysis
";
html += "
| Subject | Total | Correct | Wrong | Unattempted |
";
Object.keys(subjectStats).forEach(sub=>{
const st = subjectStats[sub];
html += "| "+sub+" | "+st.total+" | "+st.correct+
" | "+st.wrong+" | "+st.unattempted+" |
";
});
html += "
";
const box = document.getElementById('resultBox');
box.innerHTML = html;
box.style.display = "block";
document.getElementById('restartBtn').style.display = "block";
// मोबाइल पर result तक scroll
box.scrollIntoView({behavior:'smooth'});
}
/* RESTART */
function restartQuiz(){
quizSubmitted = false;
clearInterval(timer);
document.getElementById('resultBox').style.display = "none";
document.getElementById('restartBtn').style.display = "none";
// सारे options reset
const radios = document.querySelectorAll('input[type="radio"]');
radios.forEach(r=>{ r.checked = false; });
const labels = document.querySelectorAll('label.option');
labels.forEach(l=>l.classList.remove('correct','wrong'));
initQuiz();
}
window.onload = function(){
initQuiz();
};