Overview
Chapter Practice converts each chapter's sidecar practiceProblems into an interactive quiz with a countdown timer, per-question pagination and instant scoring. It's the lightweight cousin of the dashboard Mock Test — built for casual revision rather than full-length exams.
- Works without an account (attempts stored on-device).
- Auto-saves to your account when signed in.
- Renders Quiz JSON-LD so search engines can index the questions.
Where to find it
The Practice URL mirrors the chapter URL — swap chapters for practice:
- Chapter notes:
/learning/chapters/<class>/<subject>/<chapter> - Practice quiz:
/learning/practice/<class>/<subject>/<chapter>
Example: /learning/practice/class-10/mathematics/polynomials.
How it works
- The page reads the chapter's published practice set.
- Each problem is normalised — MCQ if it has an
optionsarray, short-answer otherwise. - The countdown timer is sized to roughly 1.2 minutes per question (5-minute floor).
- You answer questions one at a time. The Finish ✓ button shows your score and a per-question review with explanations.
Anonymous attempts & sync
Anonymous attempts are stored in localStorage.learning.attempts with the latest 50 kept on-device. When you sign in, attempts continue to save in real time and also POST to /api/learning/practice/attempt so they appear in your dashboard history.
Score breakdown
After hitting Finish you'll see:
- Overall percentage (colour-coded — green ≥ 80, amber ≥ 50, red below).
- Per-question marks earned vs available.
- Correct answer + explanation revealed only for items you got wrong.
SEO (Quiz JSON-LD)
Every practice page emits a Quiz JSON-LD block with up to 25 questions and their accepted answers, alongside the standard BreadcrumbList. This lets Google surface rich-results snippets for "<chapter> practice questions" queries.
Limitations
- If a chapter has no
practiceProblemssidecar entry, the page shows an empty state with links to chapter notes and the AI Quiz Generator. - Fuzzy short-answer matching is case- and punctuation-insensitive but not paraphrase-aware. Use the Mock Test for AI-graded subjective scoring.
- Anonymous attempts do not upload silently — they live on the device until you sign in.