SAFAL-style Quiz — Teacher & Student (Single file)
G.T.B Public School Noorpur (Bijnor)
Demo: teacher create → student take → OMR result → PDF export
Mode
Student (Take test)
Teacher (Create/Manage)
Switch
Load Sample Quiz
Teacher — Create Quiz
Quiz Title
Section / Subject
Duration (minutes)
Add Question
Question text
Option A
Option B
Option C
Option D
Correct option
A
B
C
D
Add Question
Question Bank
Download Quiz JSON
Download Quiz as .js for student
Clear Bank
Load / Import
Import previously exported quiz JSON
Student — Take Test
Roll Number / Student ID
One-time attempt is simulated; refresh allowed only by teacher reset.
Select Quiz
Start Test
00:00
Submit Now
Previous
Next
Question
0
/
0
This student id has already attempted the selected quiz. Ask teacher to reset attempts to allow reattempt.
Result — OMR style
OMR & Review
Export Result to PDF
Share Result on WhatsApp
Review All Questions
Saved Quizzes
Reset Attempts
Export Attempts CSV
Quick Notes
Teacher: create quiz → export JSON or JS. Student: upload JS or select from saved quizzes.
One-time attempt is simulated using localStorage entry keyed by quizId+studentId.
Auto-submit occurs when timer ends.
PDF generation uses jsPDF (CDN included in this file).