Exampro Question Bank

👁️ Visitor - Access Free Questions Only
All Subjects
No options available
All Papers
Select subject first
All Topics
Select subject first
All Levels
Select subject first
All Years
Select subject first
All Seasons
Select subject first
All Zones
Select subject first

Questions
(0 found)

No questions found. Try adjusting your filters.
0 selected
📚

Select a Question

Choose a question from the list to view its content, mark scheme, and worked solution.

📋

Mark Scheme

Mark scheme will appear here when you select a question.

💡

Worked Solution

Worked solution will appear here when you select a question.

AI

AI solution will appear here when you select a question.

`); printWindow.document.close(); }); } // Update preview on input changes const inputs = document.querySelectorAll('.cover-page-modal input, .cover-page-modal textarea, .cover-page-modal select'); inputs.forEach(input => { if (input.id !== 'logoUpload') { input.addEventListener('input', updateCoverPreview); } }); // Handle checkbox change const showRectangular = document.getElementById('showRectangular'); if (showRectangular) { showRectangular.addEventListener('change', function() { if (this.checked) { document.getElementById('showHorizontal').checked = false; } updateCoverPreview(); }); } const showHorizontal = document.getElementById('showHorizontal'); if (showHorizontal) { showHorizontal.addEventListener('change', function() { if (this.checked) { document.getElementById('showRectangular').checked = false; } updateCoverPreview(); }); } // Handle logo upload const logoUpload = document.getElementById('logoUpload'); if (logoUpload) { logoUpload.addEventListener('change', function(e) { const file = e.target.files[0]; if (file) { document.getElementById('fileName').textContent = file.name; const reader = new FileReader(); reader.onload = function(event) { uploadedLogo = event.target.result; updateCoverPreview(); }; reader.readAsDataURL(file); } else { document.getElementById('fileName').textContent = 'No file chosen'; uploadedLogo = null; updateCoverPreview(); } }); } // Close modal when clicking outside if (coverPageModal) { coverPageModal.addEventListener('click', function(e) { if (e.target === coverPageModal) { coverPageModal.style.display = 'none'; } }); } // Load saved settings if they exist const savedSettings = localStorage.getItem('coverPageSettings'); if (savedSettings) { const settings = JSON.parse(savedSettings); document.getElementById('schoolName').value = settings.schoolName; document.getElementById('schoolMotto').value = settings.schoolMotto; document.getElementById('studentName').value = settings.studentName; document.getElementById('studentId').value = settings.studentId; document.getElementById('teacherName').value = settings.teacherName; document.getElementById('subjectName').value = settings.subjectName; document.getElementById('studentClass').value = settings.studentClass; document.getElementById('totalMarks').value = settings.totalMarks; document.getElementById('examDate').value = settings.examDate; document.getElementById('examTime').value = settings.examTime; document.getElementById('examDuration').value = settings.examDuration; document.getElementById('instructions').value = settings.instructions; document.getElementById('showRectangular').checked = settings.showRectangular; document.getElementById('showHorizontal').checked = settings.showHorizontal; // Load uploaded logo if exists if (settings.uploadedLogo) { uploadedLogo = settings.uploadedLogo; } // Update preview with loaded settings updateCoverPreview(); } function updateCoverPreview() { const preview = document.getElementById('preview'); if (!preview) return; // Get form values const schoolName = document.getElementById('schoolName')?.value || 'PRESTIGE HIGH SCHOOL'; const schoolMotto = document.getElementById('schoolMotto')?.value || ''; const studentName = document.getElementById('studentName')?.value || ''; const studentId = document.getElementById('studentId')?.value || ''; const teacherName = document.getElementById('teacherName')?.value || 'Dr. Robert Johnson'; const subjectName = document.getElementById('subjectName')?.value || 'Advanced Mathematics'; const studentClass = document.getElementById('studentClass')?.value || 'Grade 11 - Section A'; const totalMarks = document.getElementById('totalMarks')?.value || '100'; const examDate = document.getElementById('examDate')?.value || 'May 15, 2023'; const examTime = document.getElementById('examTime')?.value || '10:00 AM'; const examDuration = document.getElementById('examDuration')?.value || '2 Hours 30 Minutes'; const instructionsText = document.getElementById('instructions')?.value || ''; const showRectangular = document.getElementById('showRectangular')?.checked || false; const showHorizontal = document.getElementById('showHorizontal')?.checked || false; // Process instructions (split by newline) const instructions = instructionsText.split('\n').filter(instruction => instruction.trim() !== ''); // Generate instructions HTML let instructionsHTML = ''; if (instructions.length > 0) { instructionsHTML = '

    '; instructions.forEach(instruction => { instructionsHTML += `
  1. ${instruction}
  2. `; }); instructionsHTML += '

'; } else { instructionsHTML = '

No instructions provided.

'; } // Generate logo HTML let logoHTML = ''; if (uploadedLogo) { logoHTML = `School Logo`; } else { logoHTML = '

SCHOOL LOGO

'; } // Determine logo class based on checkbox let logoClass = 'logo'; if (showRectangular) { logoClass = 'logo rectangular'; } else if (showHorizontal) { logoClass = 'logo horizontal'; } // Generate preview HTML preview.innerHTML = `

${logoHTML}

${schoolName}

${schoolMotto}

Student Name
${studentName}
Student ID
${studentId}
Teacher Name
${teacherName}
Subject Name
${subjectName}
Student Class
${studentClass}
Total Marks
${totalMarks}
Exam Date
${examDate}
Exam Time
${examTime}
Exam Duration
${examDuration}

Examination Instructions

${instructionsHTML}

`; } } // Initialize cover page settings when DOM is loaded document.addEventListener('DOMContentLoaded', function() { initCoverPageSettings(); }); // =============================================== // Header & Footer Preview functionality //

Page 1 of 1

function initHeaderFooterPreview() { const previewBtn = document.getElementById('previewHeaderFooter'); if (previewBtn) { previewBtn.addEventListener('click', function() { // Get current settings values const settings = { specificationQuestions: document.getElementById('specificationQuestions').checked, questionStart: document.getElementById('questionStart').value, headerLeft: document.getElementById('headerLeft').value, headerCenter: document.getElementById('headerCenter').value, headerRight: document.getElementById('headerRight').value, footerLeft: document.getElementById('footerLeft').value, footerCenter: document.getElementById('footerCenter').value, footerRight: document.getElementById('footerRight').value }; // Open preview in new tab const previewWindow = window.open('', '_blank'); previewWindow.document.write(`

Header & Footer Preview
${settings.headerLeft || ' '}
${settings.headerCenter || ' '}
${settings.headerRight || ' '}
${settings.specificationQuestions ? `
Exam Paper Specification: Mathematics Higher Level | Time: 2 hours 30 minutes | Total Marks: 100
Question Numbering: Starts from ${settings.questionStart || 1}
` : ''}
Question ${settings.questionStart || 1}

Solve the following quadratic equation:

x² - 5x + 6 = 0

Show all your working and find the values of x that satisfy the equation.

Question ${(parseInt(settings.questionStart) || 1) + 1}

Explain the process of photosynthesis in plants, including the main reactants and products.

Question ${(parseInt(settings.questionStart) || 1) + 2}

Calculate the area of a circle with radius 7cm. Use π = 3.14 and show your working.

Question ${(parseInt(settings.questionStart) || 1) + 3}

Solve the following system of equations:

2x + 3y = 12

x - y = 1

Find the values of x and y.