Practice high-quality Khilafat Movement Mcqs covering key events, leaders, causes, and outcomes for competitive exams and academic preparation.
Khilafat Movement High-Yield AssessmentTime Remaining: 60:00
Examination Performance Report
`; container.appendChild(div); });
}
function checkAnswer(qIdx, choiceIdx) { const optionsParent = document.getElementById(`q${qIdx}`); if(optionsParent.classList.contains('answered')) return; const options = optionsParent.getElementsByTagName('li'); const rationale = document.getElementById(`rat${qIdx}`); optionsParent.classList.add('answered'); if(choiceIdx === mcqs[qIdx].a) { options[choiceIdx].classList.add('correct'); score++; } else { options[choiceIdx].classList.add('incorrect'); options[mcqs[qIdx].a].classList.add('correct'); } rationale.style.display = 'block';
}
function startTimer() { timerInterval = setInterval(() => { timeLeft--; let mins = Math.floor(timeLeft / 60); let secs = timeLeft % 60; document.getElementById('timer').innerText = `Time Remaining: ${mins}:${secs < 10 ? '0' : ''}${secs}`; if(timeLeft <= 0) { clearInterval(timerInterval); showResults(); } }, 1000);
}
function showResults() { clearInterval(timerInterval); document.getElementById('quiz-screen').classList.add('hidden'); document.getElementById('result-screen').classList.remove('hidden'); const name = document.getElementById('userName').value; document.getElementById('user-info').innerText = `Candidate: ${name}`; document.getElementById('score-display').innerText = `${score} / 50`;
}