Mock test testing title

tummy paragraph for the nation of the ideal from the niyamit North America South America India to the point of course not this cloud be storage not be reachable out of the going Eliza 123 99 High School after all I am the king of king maker I am to.

Mock Test

00:00
Math

Quiz Results

Score Summary
Total Questions:
16
Correct Answers:
0
Incorrect Answers:
0
Unattempted:
0
Negative Marking:
-0.00
Performance
Time Analysis
'; question.options.forEach(function(option, optionIndex) { const isSelected = state.answers[index] === optionIndex; const isCorrect = optionIndex === question.correctIndex; const isIncorrect = state.submitted && isSelected && !isCorrect; let btnClass = 'qwen-option-btn'; if (isSelected) btnClass += ' selected'; if (state.submitted && isCorrect) btnClass += ' correct'; if (isIncorrect) btnClass += ' incorrect'; html += ''; }); if (state.submitted && question.explanation) { html += '
'; html += 'Explanation: ' + question.explanation; html += '
'; } html += ''; container.innerHTML = html; updateNavigation(); } function updateNavigation() { const navBoxes = document.querySelectorAll('.qwen-page-box'); navBoxes.forEach(function(box, index) { box.className = 'qwen-page-box'; if (index === state.currentQuestion) { box.classList.add('active'); } if (state.submitted) { const isCorrect = state.answers[index] === quizData.questions[index].correctIndex; const isAnswered = state.answers[index] !== null; if (isAnswered && isCorrect) { box.classList.add('correct'); } else if (isAnswered && !isCorrect) { box.classList.add('incorrect'); } } }); } function updateQuestionTime() { const now = new Date(); const timeSpent = (now - state.startTime) / 1000; state.timePerQuestion[state.currentQuestion] = timeSpent; state.startTime = now; } // Global function for option selection window.selectOption = function(questionIndex, optionIndex) { if (state.submitted) return; state.answers[questionIndex] = optionIndex; renderQuestion(questionIndex); }; function submitQuiz() { if (state.submitted) return; updateQuestionTime(); state.submitted = true; if (state.timerInterval) { clearInterval(state.timerInterval); } calculateResults(); showResults(); } function calculateResults() { let correct = 0; let incorrect = 0; let unattempted = 0; state.answers.forEach(function(answer, index) { if (answer === null) { unattempted++; } else if (answer === quizData.questions[index].correctIndex) { correct++; } else { incorrect++; } }); const totalMarks = correct * 1 - incorrect * state.negativeMark; const percentage = (totalMarks / quizData.questions.length) * 100; // Update result display const elements = { qwenTotalQuestions: quizData.questions.length, qwenCorrectAnswers: correct, qwenIncorrectAnswers: incorrect, qwenUnattempted: unattempted, qwenNegativeMarks: '-' + (incorrect * state.negativeMark).toFixed(2), qwenScoreDisplay: Math.max(0, totalMarks).toFixed(1) + '/' + quizData.questions.length + ' (' + Math.max(0, percentage).toFixed(1) + '%)' }; Object.keys(elements).forEach(function(id) { const element = document.getElementById(id); if (element) { element.textContent = elements[id]; } }); // Create simple charts createSimpleCharts(correct, incorrect, unattempted); } function createSimpleCharts(correct, incorrect, unattempted) { // Performance chart const perfCanvas = document.getElementById('qwenPerformanceChart'); if (perfCanvas) { const ctx = perfCanvas.getContext('2d'); const total = correct + incorrect + unattempted; // Simple pie chart const centerX = perfCanvas.width / 2; const centerY = perfCanvas.height / 2; const radius = Math.min(centerX, centerY) - 10; let currentAngle = 0; const colors = ['#28a745', '#dc3545', '#ffc107']; const values = [correct, incorrect, unattempted]; const labels = ['Correct', 'Incorrect', 'Unattempted']; ctx.clearRect(0, 0, perfCanvas.width, perfCanvas.height); values.forEach(function(value, index) { if (value > 0) { const sliceAngle = (value / total) * 2 * Math.PI; ctx.beginPath(); ctx.moveTo(centerX, centerY); ctx.arc(centerX, centerY, radius, currentAngle, currentAngle + sliceAngle); ctx.closePath(); ctx.fillStyle = colors[index]; ctx.fill(); currentAngle += sliceAngle; } }); } // Time analysis chart const timeCanvas = document.getElementById('qwenTimeAnalysisChart'); if (timeCanvas) { const ctx = timeCanvas.getContext('2d'); ctx.clearRect(0, 0, timeCanvas.width, timeCanvas.height); // Simple bar chart const barWidth = timeCanvas.width / quizData.questions.length; const maxTime = Math.max(...state.timePerQuestion); state.timePerQuestion.forEach(function(time, index) { const barHeight = (time / maxTime) * (timeCanvas.height - 20); const x = index * barWidth; const y = timeCanvas.height - barHeight; ctx.fillStyle = '#4361ee'; ctx.fillRect(x + 2, y, barWidth - 4, barHeight); }); } } function showResults() { const quizContainer = document.querySelector('.qwen-quiz-container .p-4'); const resultContainer = document.getElementById('qwenResultContainer'); if (quizContainer) quizContainer.style.display = 'none'; if (resultContainer) resultContainer.style.display = 'block'; updateNavigation(); } function reviewAnswers() { state.inReviewMode = true; const quizContainer = document.querySelector('.qwen-quiz-container .p-4'); const resultContainer = document.getElementById('qwenResultContainer'); if (quizContainer) quizContainer.style.display = 'block'; if (resultContainer) resultContainer.style.display = 'none'; renderQuestion(0); } } })();

d

Aftab Rahaman
Aftab Rahaman

I'm Aftab Rahaman, The Founder Of This Blog. My Goal is To Share Accurate and Valuable Information To Make Life Easier, With The Support of a Team Of Experts.

Articles: 1873

Leave a Reply

Your email address will not be published. Required fields are marked *