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+"%)
";
// subject-wise table
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";
}
// Restart test – सब reset
function restartQuiz(){
quizSubmitted = false;
clearInterval(timer);
timeLeft = ORIGINAL_TIME;
updateTimerText();
document.getElementById('resultBox').style.display = "none";
// सारे options uncheck + रंग हटाओ
const radios = document.querySelectorAll('input[type="radio"]');
radios.forEach(r=>{ r.checked = false; });
const labels = document.querySelectorAll('label');
labels.forEach(l=>l.classList.remove('correct','wrong'));
// palette reset
const btns = document.querySelectorAll('.q-btn');
btns.forEach(b=>{ b.classList.remove('visited','answered','current'); });
initQuiz();
}
window.onload = function(){
initQuiz();
};