Host Default Gateway and Routing Table Self-Assessment Quiz Test
Test your networking expertise with this interactive quiz on default gateways and routing tables! Learn key concepts, troubleshoot configurations, and ace your CCNA studies. Perfect for network administrators and students.
This quiz is accessible using keyboard navigation. Use Tab to move between questions and Space to select answers.
Next lesson: Router Packet Forwarding Decision
`; } else { resultHTML += `Review material: Host Default Gateway and Routing Table: The Ultimate Guide
`; } // Show explanations currentQuestions.forEach((q, index) => { const questionDiv = document.querySelectorAll('.question')[index]; const explanationDiv = questionDiv.querySelector('.explanation'); explanationDiv.classList.remove('hidden'); explanationDiv.innerHTML = `Explanation: ${q.explanation}`; // Highlight correct/incorrect answers q.options.forEach((opt, optIndex) => { const option = questionDiv.querySelectorAll('.option')[optIndex]; if (q.correct.includes(optIndex)) { option.classList.add('correct'); } else if (userAnswers[index]?.includes(optIndex)) { option.classList.add('incorrect'); } }); }); resultsDiv.innerHTML = resultHTML; } function submitQuiz() { if (submitted) return; const unanswered = validateAnswers(); if (unanswered.length > 0) { alert('Please answer all questions before submitting!'); unanswered.forEach(index => { document.querySelectorAll('.question')[index] .style.boxShadow = '0 0 0 2px red'; }); return; } submitted = true; const score = calculateScore(); showResults(score); } function resetQuiz() { initializeQuiz(); document.getElementById('results').classList.add('hidden'); } // Initialize on load initializeQuiz();