Ashish-K commited on
Commit
903f9b6
·
verified ·
1 Parent(s): 08d06d6

Learn in parts (chunks) with no turn limit, part quizzes, 'not learnt yet'; Biology ch.2 pilot

Browse files
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ localdata/
2
+ __pycache__/
TUTOR_STRUCTURE.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How the tutor should work — structure from first principles
2
+
3
+ Status: design for review, 6 Oct 2026. Model: Claude Opus 5.5 only (Fable switched off on 6 Oct after
4
+ it averaged 17¢ per reply against Opus's 1.5¢ with no visible quality gain on these turns).
5
+
6
+ ## 1. What is wrong with the tutor today
7
+
8
+ Looking at the Tutor screen as a student:
9
+
10
+ - **Two vague doors per chapter.** "Today's practice" and "Ask questions" don't say what will happen, how long
11
+ it takes, or what you'll get out of it. Six identical cards, each with an empty bar ("0 of 57 ideas"), invite
12
+ nothing.
13
+ - **The model decides the whole session.** The plan ("reviews, new ideas, stretch, exit ticket") lives only in a
14
+ prompt. The student can't see where they are, how much is left, or when it ends; Claude can wander.
15
+ - **It is detached from everything else.** A wrong quiz answer doesn't lead to the tutor; the tutor doesn't lead
16
+ back to a quiz. The chapter is one big blob of 57–70 ideas.
17
+ - **No ending.** No summary of what was learned, what moved, what to do next.
18
+ - **Cost is open-ended.** A chat can run as long as the student keeps typing, on any model.
19
+
20
+ ## 2. What a tutor is for (four jobs, in order of value)
21
+
22
+ | Job | When it happens | What a great human tutor does |
23
+ |---|---|---|
24
+ | **Fix a mistake** | Right after a quiz, on the questions you got wrong | Asks how you got your answer, finds the faulty idea, re-teaches just that, gives you a similar question to prove it's fixed |
25
+ | **Learn a topic** | Before a quiz on a topic you haven't met or are unsure of | Gets you to predict, explains from the underlying idea, checks with two quick questions, then one exam-style question |
26
+ | **Review** | A few minutes a day | Asks short questions on ideas that are due, fixes anything that slipped |
27
+ | **Answer a doubt** | Whenever you're stuck on homework or a concept | Answers briefly, checks you understood, then gets out of the way |
28
+
29
+ Everything else (encouragement, tracking, the parent view) supports these four.
30
+
31
+ ## 3. The structure: chapters → topics → ideas, and sessions with a visible plan
32
+
33
+ **Chapters get 4–6 topics.** A topic is a cluster of related ideas that can be learnt in 10–15 minutes,
34
+ e.g. Chemical calculations → *Relative masses · The mole · Reacting masses · Gas volumes · Solutions and
35
+ titration · Yield and purity*. Topics come from the chapter's first-principles text (it already has sections)
36
+ and its atom prerequisites.
37
+
38
+ **Each topic has two things side by side: a Learn session and a short Quiz.** This one structure serves the
39
+ quiz plan as well: the chapter's quiz path becomes one quiz per topic plus a final mixed quiz.
40
+
41
+ ```
42
+ Chapter: Chemical calculations ●●●○○○ 3 of 6 topics done
43
+ ├─ 1 Relative masses [Learn ✓] [Quiz ✓ 6/7]
44
+ ├─ 2 The mole [Learn ✓] [Quiz ✓ 5/7]
45
+ ├─ 3 Reacting masses [Learn ✓] [Quiz next ▶]
46
+ ├─ 4 Gas volumes [Learn] [Quiz]
47
+ ├─ 5 Solutions/titration [Learn] [Quiz]
48
+ ├─ 6 Yield and purity [Learn] [Quiz]
49
+ └─ Mixed review quiz
50
+ ```
51
+
52
+ **Every tutor session has a type, a goal and a fixed plan of steps that the student can see.**
53
+ The server owns the plan; Claude teaches inside one step at a time and signals when the step is done.
54
+
55
+ | Session | Started from | Steps (each 1–3 exchanges) | Length |
56
+ |---|---|---|---|
57
+ | **Learn: <topic>** | Topic row, or "Next up" | Predict → Explain → Check (2 quick questions) → Apply (1 exam-style) → Wrap-up | ~10 min |
58
+ | **Fix my mistakes** | Quiz results screen ("Fix 3 mistakes with the tutor") | For each wrong question: Your thinking → The idea → Try a similar one; then Wrap-up | ~2–3 min per mistake |
59
+ | **Daily review** | Today screen when ideas are due | 5 quick questions on due ideas, re-teach any miss, Wrap-up | ~5 min |
60
+ | **Ask a doubt** | "Ask" button on any chapter or topic | Your question → Answer → One check question → Wrap-up | ~3 min |
61
+
62
+ In the chat header the student sees the goal and a step tracker, e.g.
63
+ `Learn: The mole ● Predict ● Explain ◐ Check ○ Apply ○ Wrap-up`.
64
+ A side question mid-session is allowed ("I have a different question"); the tutor answers briefly and
65
+ returns to the plan.
66
+
67
+ **Every session ends with a summary card:** what you practised, ideas that moved up or need revisiting,
68
+ and one button for the next thing (usually the topic's quiz, or the next mistake).
69
+
70
+ ## 4. How it works under the hood
71
+
72
+ - **Server-side plan.** When a session starts, the server builds the step list from the session type and the
73
+ student's idea levels (which ideas, which due, which mistakes). It stores `plan`, `step` and step results.
74
+ - **Claude works one step at a time.** Each turn, the server tells Claude the current step and its goal (a short
75
+ system note) along with the chapter text and only that topic's ideas. Claude calls `finish_step(outcome)` when
76
+ the step's goal is met; the server advances and the tracker updates. `record_attempt` and `calculate`
77
+ stay as they are.
78
+ - **Guard rails for cost and focus.** At most ~3 exchanges per step and ~14 per session before the tutor moves
79
+ on or wraps up; Opus 5.5 at low effort for checks and wrap-ups, medium for explanations and diagnosis; the
80
+ chapter text cached (5-minute cache) so follow-up turns cost about 1–2¢. A typical 10-minute session should
81
+ cost roughly 10–20¢. A per-student daily cap (e.g. $1) stops runaway use.
82
+ - **Quiz → tutor hand-off.** "Fix my mistakes" passes the quiz id, the wrong question ids and the student's
83
+ answers, so the tutor starts from the real error rather than asking what went wrong in general.
84
+ - **Everything still lands in Progress:** sessions, steps completed, ideas moved, and the full chat for the parent.
85
+
86
+ ## 5. What this needs from the content
87
+
88
+ - **Topics per chapter** (4–6, each with its ideas and a one-line goal), produced from the canonical chapter text
89
+ and the atom prerequisites. Same job as the planned quiz split, so both are generated together.
90
+ - **One quiz per topic** (5–8 questions) plus a mixed review, from the existing questions topped up from the
91
+ hard-practice modules.
92
+
93
+ ## 6. Build order
94
+
95
+ 1. **Content:** topics + per-topic quizzes for the six chapters (parallel, one per chapter, validated by script).
96
+ 2. **Chapter page:** the topic list with Learn / Quiz per topic and progress.
97
+ 3. **Session engine:** session types, server-side step plans, `finish_step`, step tracker, summary card, guard rails.
98
+ 4. **Hand-offs:** quiz results → "Fix my mistakes"; summary → next quiz; Today → daily review.
99
+
100
+ ## 7. Decisions wanted
101
+
102
+ 1. Topic-based structure (chapter → topics → Learn + Quiz per topic) as the backbone for both tutor and quizzes?
103
+ 2. Session length targets as above (Learn ~10 min, Review ~5, Fix ~2–3 per mistake)?
104
+ 3. A daily tutor cost cap per student: $1 suggested.
105
+ 4. Should "Ask a doubt" stay always available, or only inside a topic (keeps it focused and cheaper)?
UX_PLAN.md ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # StepWise app — UX from first principles, and the improvement plan
2
+
3
+ Status: plan for review, 6 Oct 2026. Nothing in here is built yet except where marked "done locally".
4
+
5
+ ---
6
+
7
+ ## 1. Who uses it, and what job they hire it for
8
+
9
+ | Person | Context | The job | What "good" feels like |
10
+ |---|---|---|---|
11
+ | **Student** (Aanyaa, Aaryaa; ~15) | Laptop or tablet, sometimes a phone; 10–25 minutes after school; low willpower, high distraction | "Tell me what to do now, let me do it quickly, show me I'm getting better" | One obvious next step. Short loops. Instant feedback. Visible progress. No friction to start |
12
+ | **Parent** (Ashish, Ruchi) | Phone or laptop, a few minutes a day, sometimes a longer review at the weekend | "Is she actually studying, is it working, what is weak, what should I fix or say?" | A one-glance answer per child, then drill-down when needed. No hunting |
13
+ | **Content owner** (Ashish + Claude) | Occasional | "Which questions or tutor replies are wrong or confusing, and what does it cost?" | A triage inbox and the evidence next to each item |
14
+
15
+ Design consequence: the app has **two different homes**. A student home that answers "what next?"
16
+ and a parent home that answers "how is she doing?". Today both are blended into the same tabs.
17
+
18
+ ## 2. Principles the design should follow
19
+
20
+ 1. **One primary action per screen.** A student should never have to decide between three equal buttons.
21
+ 2. **Small units of work.** 5–8 questions or one tutor session of ~15 minutes. Finishing is itself a reward.
22
+ 3. **Feedback immediately, and explained.** Right/wrong at the moment of answering, with the "why".
23
+ (Retrieval practice with immediate corrective feedback is the strongest learning effect we can cheaply get.)
24
+ 4. **Progress in the student's language.** "Moles: 6 of 9 ideas solid", not atom ids or percentages of percentages.
25
+ 5. **Practice and learning are one loop, not two tabs.** A wrong quiz answer should lead straight to the tutor
26
+ on that idea, and the tutor should hand back to a quiz.
27
+ 6. **The parent sees outcomes first, transcripts second.** Time, consistency, scores trend, weak ideas, flags,
28
+ then full chats on demand.
29
+ 7. **Calm, readable, fast.** Wide where it is a dashboard, narrow (~720 px) where you read or answer.
30
+ Large touch targets. Nothing hidden behind a fixed bar. Nothing waits more than a moment without
31
+ showing what is happening.
32
+
33
+ ## 3. What is wrong today (audit against the principles)
34
+
35
+ | # | Problem | Principle broken | Evidence |
36
+ |---|---|---|---|
37
+ | A1 | The app remembers the last person; a shared device opens as the wrong child or as Parent | 1, 7 | Your screenshot opened in Parent; you asked where the child home was |
38
+ | A2 | Three equal tabs (Practise, Tutor, Progress) and no "start here"; the student must choose the activity | 1, 5 | Home is a grid of six large self-checks |
39
+ | A3 | Self-checks are 18–20 questions, 25–30 minutes | 2 | Your note |
40
+ | A4 | Marks only appear after the whole test; no feedback per question while answering | 3 | Quiz player design |
41
+ | A5 | Tutor chat: last reply hidden behind the input bar; page scroll instead of a chat scroll; raw `*` and `-`; a Feedback link under every reply; header wraps to two rows | 7 | Your screenshot |
42
+ | A6 | Tutor sessions and the tutor's idea levels do not appear in Progress | 4, 6 | Your Ashish_Test chat was saved but invisible |
43
+ | A7 | Progress is tables of percentages and atom ids; ideas are scored only from self-checks | 4 | Progress tab |
44
+ | A8 | Parent tools are split between a hidden "Review" tab and the bottom of Progress; no per-child summary | 6 | Parent view |
45
+ | A9 | Tutor feels slow with only "Thinking…"; no sense of where the session is going or when it ends; no end-of-session summary | 2, 7 | Replies take 4–26 s |
46
+ | A10 | Narrow 860 px column on wide screens, grid-paper background behind dense UI, many monospace pills | 7 | Screenshots |
47
+ | A11 | The look is dull: grey paper, one blue accent, nothing that feels like theirs | 7 | Your note |
48
+ | A12 | Feedback on a question is a form with free tags; no quick way to say "not in our syllabus" or "too hard" | 3, 6 | Your note |
49
+
50
+ ## 4. Proposed structure (information architecture)
51
+
52
+ ```
53
+ Open link ─▶ Who's studying? [Aanyaa] [Aaryaa] [Ruchi (test)] [Parent ▸]
54
+ │ │
55
+ ▼ ▼
56
+ STUDENT: Today PARENT: Overview
57
+ ├─ Next up (one big card) ◀── recommender ├─ One card per child: this week's minutes,
58
+ ├─ This week: minutes, streak, ideas levelled up │ sessions, quizzes, average score, ideas up/down,
59
+ └─ Subjects → Chapters │ flags → tap for that child's timeline
60
+ │ ├─ Child timeline: quizzes (every answer) and
61
+ ▼ │ tutor chats (full text), weak ideas
62
+ Chapter page ├─ Content: question review + feedback inbox
63
+ ├─ Path: Quiz 1 ✓ Quiz 2 ✓ Quiz 3 ● Quiz 4 Quiz 5 └─ Settings: tutor model, costs, students
64
+ ├─ "Learn with the tutor" (chapter-grounded)
65
+ ├─ Ideas in this chapter (levels, plain words)
66
+ └─ (later) Read the chapter (our first-principles text)
67
+ │
68
+ ├─▶ Quiz player (5–8 Qs, one at a time, check → feedback → next, confidence tap)
69
+ │ └─▶ Quiz summary: score, ideas moved, "Fix this with the tutor" on the weakest idea
70
+ │ │
71
+ └─▶ Tutor chat ◀─────────────────────┘ (opens already focused on that idea/question)
72
+ └─▶ Session summary: what you practised, ideas moved, suggested next quiz
73
+ ```
74
+
75
+ Student navigation shrinks to **Today · Chapters · Me**. Parent navigation is **Overview · Content · Settings**.
76
+
77
+ ## 5. Key screens (what each must do)
78
+
79
+ **Who's studying?** Big name tiles, always shown on open (no remembered identity). Parent is a separate,
80
+ smaller entry. A tile can show "last studied 2 days ago" as a gentle nudge.
81
+
82
+ **Today (student home).** One "Next up" card chosen by a simple recommender: (1) ideas due for review →
83
+ a short review quiz or tutor practice; else (2) the next quiz on the path of the chapter studied most
84
+ recently; else (3) the first quiz of the next chapter. Below: a strip with minutes this week, a streak
85
+ and "ideas levelled up this week"; then subjects and chapters with a small path progress indicator.
86
+
87
+ **Chapter page.** The quiz path as a row of steps with status (done with score / next / locked-looking
88
+ but tappable). A secondary button for the tutor. Ideas grouped by level in plain words.
89
+
90
+ **Question flags (every question, everywhere it appears: quiz feedback, quiz summary, parent review).**
91
+ Two one-tap rows under each answered question, no typing needed:
92
+ - *Relevance:* **In our syllabus** · **Not taught yet** · **Not in our syllabus**
93
+ - *Difficulty for me:* **Too easy** · **Just right** · **Too hard**
94
+
95
+ Plus an optional "Something's wrong" for errors (wrong answer, unclear, typo) with a comment box.
96
+ Flags are stored per student per question and roll up in the parent's Content page as counts
97
+ ("Q4: 2 × too hard, 1 × not taught yet"). Claude uses them when tuning quizzes: questions flagged
98
+ "not taught yet" move later in the path or out; difficulty flags rebalance quizzes and feed the
99
+ recommender (a "too hard" flag counts as a signal to send that idea to the tutor first).
100
+
101
+ **Quiz player.** One question per screen, large answer targets, "Check" reveals right/wrong plus the
102
+ explanation at once, a confidence tap ("guess / think so / sure") before checking, a thin progress bar
103
+ (3 of 7). Short written answers: self-mark against the scheme right there. Feedback is a small flag icon
104
+ per question, not a form under every item.
105
+
106
+ **Quiz summary.** Score, a line per idea that moved, and exactly two buttons: "Fix [weakest idea] with
107
+ the tutor" and "Next quiz". Saved automatically (no separate Save step to forget; this is likely why no
108
+ results were saved so far).
109
+
110
+ **Tutor chat.** Full-height chat layout: header (chapter, session goal, step 2 of 5 for practice, End),
111
+ its own scrolling message area, composer pinned at the bottom of the panel. Formatted replies. A typing
112
+ indicator and, on Fable turns, a "thinking carefully" hint so the wait is explained. Small
113
+ "Helpful / Not quite" reactions instead of a feedback link. End of session shows a summary card.
114
+
115
+ **Me (student progress).** Per chapter: ideas by level (bar + plain list), quizzes done and best scores,
116
+ tutor time, one timeline of everything done. No other student's data.
117
+
118
+ **Parent overview.** One card per child as described above; tap through to a timeline with the full
119
+ detail (every answer, every chat). Content and Settings are separate pages, not the bottom of Progress.
120
+
121
+ ## 6. Visual design
122
+
123
+ **Direction: bright, confident, theirs — but not babyish.** They are 15, so the reference points are
124
+ apps they already like (Duolingo's energy, Spotify's colour, Notion's calm), not a primary-school site.
125
+
126
+ - **A colour per subject**, used on its chapter cards, quiz path and progress bars, so the app is colourful by
127
+ structure rather than decoration. Starting point: Chemistry teal, Biology leaf green, Physics violet,
128
+ Economics amber, ICT coral, English rose. Each tuned for contrast in light and dark mode.
129
+ - **Each student picks an avatar and an accent colour** on first use; their home, header and level-up moments
130
+ use it. Their name tile on "Who's studying?" shows it, so the screen feels like theirs.
131
+ - **A friendly display face** for headings (rounded, bold, characterful; candidates: Bricolage Grotesque,
132
+ Outfit, Lexend) with a highly readable body face (Atkinson Hyperlegible stays: it was chosen for reading).
133
+ - **Celebration moments, briefly:** a correct answer pops, a level-up gets a short burst in the subject colour,
134
+ finishing a quiz gets a score reveal. Never on wrong answers; wrong answers get a calm, kind explanation.
135
+ - **Dark mode designed, not inverted:** deep navy with saturated subject colours reads well at night.
136
+ - **How we choose:** I build three short theme mock-ups of the same three screens (Today, a quiz question,
137
+ the tutor) and **the girls vote**. Whatever wins becomes the design system for everything else.
138
+
139
+ Layout rules (unchanged by the theme):
140
+ - Two content widths: 720 px for reading, quizzes and chat; 1120 px for dashboards. Single-row header.
141
+ - Calmer background (plain paper; the grid only as a faint accent in headers, if at all).
142
+ - One type scale; monospace only for numbers in tables.
143
+ - Buttons: one primary style per screen, ghost for secondary, text links for tertiary.
144
+ - Touch targets at least 44 px; test at phone width (390 px) and tablet (820 px) as well as desktop.
145
+ - Motion only for feedback moments (correct answer, level up, quiz complete), respecting reduced motion.
146
+
147
+ ## 7. Data model changes this needs
148
+
149
+ | Need | Change |
150
+ |---|---|
151
+ | Small quizzes | Chapter → ordered quizzes of 5–8 questions (`syllabus/igcse/quizzes/QUIZ_MODEL.md`, builder `tools/build_quizzes.py`; done locally) |
152
+ | "Next up" and streaks | A per-student daily activity roll-up (minutes, quizzes, tutor turns, ideas moved) computed from attempts and chats |
153
+ | Quiz → tutor hand-off | Tutor sessions accept an optional focus (idea ids or a question id) that seeds the first turn |
154
+ | One timeline | Attempts and chat sessions exposed through one `activity` endpoint (counts for students, full text for the parent; done locally for counts) |
155
+ | Auto-save | Save the attempt when the last question is checked; written answers can be self-marked afterwards and update the attempt |
156
+ | Question flags | `flags/<student>/<question uid>`: relevance (`in_syllabus`, `not_taught_yet`, `not_in_syllabus`) and difficulty (`too_easy`, `just_right`, `too_hard`), latest value wins, with timestamp; a question uid is `<chapterId>/<question id>` so flags survive quiz re-splits |
157
+ | Personal theme | Student record gains `avatar` and `accent` |
158
+
159
+ ## 8. Improvement plan
160
+
161
+ | Phase | What | Fixes | Size |
162
+ |---|---|---|---|
163
+ | **1. Stop the pain** | Who's-studying screen every time; chat layout (own scroll, pinned composer, formatting, reactions, single-row header); tutor activity in Me/Progress; auto-save quiz attempts. *Mostly done locally, not deployed.* | A1, A5, A6, part of A4 | ~1–2 h incl. browser testing |
164
+ | **2. Small quizzes** | Split every chapter into a path of 5–6 quizzes of 5–8 questions; top up from the hard-practice modules so each chapter has ~30–40 questions; chapter page with the path | A2, A3 | ~half a day (parallel agents for content) |
165
+ | **3. The learning loop** | One-question-at-a-time player with confidence and instant feedback; one-tap relevance and difficulty flags on every question; quiz summary with "fix with tutor"; tutor focus hand-off; tutor session goal, step indicator and end summary | A4, A9, A12, principle 5 | ~half a day |
166
+ | **4. Two homes** | Student Today with Next up, streak and week strip; parent Overview with per-child cards and timelines; Content and Settings pages | A2, A7, A8 | ~half a day |
167
+ | **5. Look the girls love** | Three theme mock-ups (Today, quiz question, tutor) for the girls to vote on; then apply the winner: subject colours, avatars and accent colours, display font, celebration moments, designed dark mode, widths, header, phone and tablet layouts | A10, A11 | ~half a day incl. the vote |
168
+ | **6. Learn from use** | Ruchi's walkthrough feedback, the girls' first week of data, then adjust; add simple usage events (opened, started, finished, abandoned) | — | ongoing |
169
+
170
+ Each phase ends with a real browser run on desktop and phone width (using the installed Chrome),
171
+ screenshots checked, then deploy.
172
+
173
+ ## 9. Decisions for you
174
+
175
+ 1. ~~**Quiz style**~~ **Decided 6 Oct:** one question per screen; the timer always visible in a sticky bar; a row of
176
+ question numbers to jump between (answered / current / marked to come back to) plus Previous and Next arrows
177
+ (and the keyboard arrow keys); marking happens on submit, and the same number row then shows right / partly /
178
+ wrong. **Built and deployed 6 Oct**, with auto-save and the one-tap relevance and difficulty flags.
179
+ 2. **Can the sisters see each other's progress?** Default proposed: no, only their own; parent sees both.
180
+ 3. **Daily goal:** suggest 20 minutes or two quizzes a day, shown as a ring on Today. Your number?
181
+ 4. **Reading view:** show our first-principles chapter text in the app as "Read the chapter"? It exists for
182
+ all six chapters already.
183
+ 5. **Order:** go phase by phase as above, or jump to Phase 2 (small quizzes) first because the girls are
184
+ about to start? The theme vote (Phase 5) can run in parallel at any time, since it only needs mock-ups.
app.py CHANGED
@@ -1,615 +1,626 @@
1
- """StepWise Self-Checks — Hugging Face Space backend.
2
-
3
- Serves the self-check page, stores students and attempts durably in a private
4
- Hugging Face dataset, and exports results as CSV for the parent.
5
-
6
- Environment (set as Space secrets / variables):
7
- HF_TOKEN token with write access to RESULTS_REPO (required on the Space)
8
- RESULTS_REPO private dataset holding results, e.g. "Ashish-K/stepwise-results"
9
- ANTHROPIC_API_KEY reserved for the tutor (not used yet)
10
-
11
- Without HF_TOKEN the app runs locally and keeps data in ./localdata.
12
- """
13
- from __future__ import annotations
14
-
15
- import csv
16
- import io
17
- import json
18
- import os
19
- import re
20
- import secrets
21
- import threading
22
- import time
23
- import uuid
24
- from datetime import datetime, timezone
25
- from pathlib import Path
26
-
27
- from fastapi import APIRouter, Depends, FastAPI, Header, HTTPException, Query
28
- from fastapi.responses import FileResponse, HTMLResponse, JSONResponse, RedirectResponse, Response
29
- from pydantic import BaseModel, Field
30
-
31
- HERE = Path(__file__).parent
32
- SETS_DIR = HERE / "data" / "sets"
33
- HF_TOKEN = os.environ.get("HF_TOKEN")
34
- RESULTS_REPO = os.environ.get("RESULTS_REPO", "")
35
- LOCAL = HERE / "localdata"
36
-
37
- app = FastAPI(title="StepWise Self-Checks", docs_url=None, redoc_url=None, openapi_url=None)
38
- ACCESS_KEY = os.environ.get("ACCESS_KEY", "")
39
-
40
-
41
- def check_key(key: str) -> None:
42
- """Everything lives under /s/<ACCESS_KEY>/; any other key looks like a missing page."""
43
- if not ACCESS_KEY or not secrets.compare_digest(key, ACCESS_KEY):
44
- raise HTTPException(404, "Not found")
45
-
46
-
47
- router = APIRouter(prefix="/s/{key}", dependencies=[Depends(check_key)])
48
-
49
-
50
- # ---------------------------------------------------------------- storage
51
- class Store:
52
- """Students and attempts in memory, mirrored to a private HF dataset.
53
-
54
- Layout in the dataset (and in ./localdata when running locally):
55
- students.json {"<id>": {"name": ..., "createdAt": ...}}
56
- attempts/<id>.json one file per saved attempt (never rewritten)
57
- """
58
-
59
- def __init__(self) -> None:
60
- self.lock = threading.Lock()
61
- self.students: dict[str, dict] = {}
62
- self.attempts: list[dict] = []
63
- self.mastery: dict[str, dict] = {} # student id -> atom id -> state
64
- self.chats: dict[str, dict] = {} # session id -> session
65
- self.feedback: dict[str, dict] = {} # feedback id -> item
66
- self.settings: dict = {"tutorRouting": "opus"}
67
- self.dirty: dict[str, dict] = {} # path in repo -> object, flushed in batches
68
- self.dirty_lock = threading.Lock()
69
- self.api = None
70
- if HF_TOKEN and RESULTS_REPO:
71
- from huggingface_hub import HfApi
72
-
73
- self.api = HfApi(token=HF_TOKEN)
74
- self.api.create_repo(RESULTS_REPO, repo_type="dataset", private=True, exist_ok=True)
75
- self._load()
76
- threading.Thread(target=self._flusher, daemon=True).start()
77
-
78
- def queue_write(self, path_in_repo: str, obj: dict) -> None:
79
- """Chats and idea levels change every message; save them in one commit per minute."""
80
- with self.dirty_lock:
81
- self.dirty[path_in_repo] = obj
82
-
83
- def flush(self) -> int:
84
- with self.dirty_lock:
85
- batch, self.dirty = self.dirty, {}
86
- if not batch:
87
- return 0
88
- try:
89
- if self.api:
90
- from huggingface_hub import CommitOperationAdd
91
-
92
- ops = [CommitOperationAdd(path_in_repo=p, path_or_fileobj=json.dumps(o, ensure_ascii=False).encode("utf-8"))
93
- for p, o in batch.items()]
94
- self.api.create_commit(RESULTS_REPO, operations=ops, repo_type="dataset",
95
- commit_message=f"Save {len(ops)} chat/level files")
96
- else:
97
- for p, o in batch.items():
98
- f = LOCAL / p
99
- f.parent.mkdir(parents=True, exist_ok=True)
100
- f.write_text(json.dumps(o, ensure_ascii=False), encoding="utf-8")
101
- except Exception:
102
- with self.dirty_lock: # keep anything newer, put the failed batch back
103
- for p, o in batch.items():
104
- self.dirty.setdefault(p, o)
105
- return -1
106
- return len(batch)
107
-
108
- def _flusher(self) -> None:
109
- while True:
110
- time.sleep(60)
111
- self.flush()
112
-
113
- def _load(self) -> None:
114
- if self.api:
115
- from huggingface_hub import snapshot_download
116
-
117
- root = Path(snapshot_download(RESULTS_REPO, repo_type="dataset", token=HF_TOKEN))
118
- else:
119
- root = LOCAL
120
- (root / "attempts").mkdir(parents=True, exist_ok=True)
121
- st = root / "settings.json"
122
- if st.exists():
123
- self.settings.update(json.loads(st.read_text(encoding="utf-8")))
124
- sp = root / "students.json"
125
- if sp.exists():
126
- self.students = json.loads(sp.read_text(encoding="utf-8"))
127
- for sub, sink in (("attempts", None), ("mastery", self.mastery), ("chats", self.chats), ("feedback", self.feedback)):
128
- folder = root / sub
129
- for f in sorted(folder.glob("*.json")) if folder.exists() else []:
130
- try:
131
- obj = json.loads(f.read_text(encoding="utf-8"))
132
- except json.JSONDecodeError:
133
- continue
134
- if sink is None:
135
- self.attempts.append(obj)
136
- else:
137
- sink[f.stem] = obj
138
-
139
- def _write(self, path_in_repo: str, obj: dict, message: str) -> None:
140
- data = json.dumps(obj, ensure_ascii=False, indent=1).encode("utf-8")
141
- if self.api:
142
- # retry once on a transient hub error; the attempt is already in memory
143
- for i in range(2):
144
- try:
145
- self.api.upload_file(
146
- path_or_fileobj=data, path_in_repo=path_in_repo,
147
- repo_id=RESULTS_REPO, repo_type="dataset", commit_message=message,
148
- )
149
- return
150
- except Exception:
151
- if i:
152
- raise
153
- time.sleep(2)
154
- else:
155
- p = LOCAL / path_in_repo
156
- p.parent.mkdir(parents=True, exist_ok=True)
157
- p.write_bytes(data)
158
-
159
- def add_student(self, name: str, test: bool = False) -> dict:
160
- with self.lock:
161
- if any(s["name"].lower() == name.lower() for s in self.students.values()):
162
- raise HTTPException(409, f"{name} is already on the list")
163
- sid = re.sub(r"[^a-z0-9]+", "-", name.lower()).strip("-") + "-" + secrets.token_hex(2)
164
- self.students[sid] = {"name": name, "createdAt": now(), **({"test": True} if test else {})}
165
- self._write("students.json", self.students, f"Add student {sid}")
166
- return {"id": sid, **self.students[sid]}
167
-
168
- def add_attempt(self, attempt: dict) -> dict:
169
- with self.lock:
170
- attempt["id"] = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
171
- attempt["savedAt"] = now()
172
- self.attempts.append(attempt)
173
- self._write(f"attempts/{attempt['id']}.json", attempt, f"Attempt {attempt['studentId']} {attempt['setId']}")
174
- return attempt
175
-
176
-
177
- def now() -> str:
178
- return datetime.now(timezone.utc).isoformat(timespec="seconds")
179
-
180
-
181
- def load_sets() -> dict[str, dict]:
182
- out = {}
183
- for f in sorted(SETS_DIR.glob("*.json")):
184
- d = json.loads(f.read_text(encoding="utf-8"))
185
- out[d["id"]] = d
186
- return out
187
-
188
-
189
- SETS = load_sets()
190
- STORE = Store()
191
-
192
-
193
- def _anthropic_client():
194
- import anthropic
195
-
196
- return anthropic.Anthropic(max_retries=3, timeout=180.0)
197
-
198
-
199
- from tutor import CHAPTERS, DAILY_CAP_USD, PRICES, ROUTING_MODES, TOPICS, CapReached, Tutor, apply_selfcheck, chapter_of, spent_today # noqa: E402
200
-
201
- TUTOR = Tutor(STORE, STORE.students, _anthropic_client)
202
- TUTOR_ON = bool(os.environ.get("ANTHROPIC_API_KEY"))
203
-
204
-
205
- # ---------------------------------------------------------------- api
206
- class StudentIn(BaseModel):
207
- name: str = Field(min_length=1, max_length=40)
208
- test: bool = False
209
-
210
-
211
- class AnswerIn(BaseModel):
212
- response: object = None
213
- got: float
214
- max: float
215
- auto: bool
216
-
217
-
218
- class AttemptIn(BaseModel):
219
- studentId: str
220
- setId: str
221
- startedAt: str
222
- submittedAt: str
223
- durationSec: int = Field(ge=0, le=6 * 3600)
224
- answers: dict[str, AnswerIn]
225
-
226
-
227
- @router.get("/")
228
- def index() -> FileResponse:
229
- return FileResponse(HERE / "static" / "index.html", headers={"Cache-Control": "no-cache"})
230
-
231
-
232
- @router.get("/api/state")
233
- def state() -> JSONResponse:
234
- students = [{"id": k, **v} for k, v in STORE.students.items()]
235
- return JSONResponse({"sets": list(SETS.values()), "students": students, "attempts": STORE.attempts,
236
- "feedback": list(STORE.feedback.values())})
237
-
238
-
239
- @router.post("/api/students")
240
- def add_student(body: StudentIn) -> dict:
241
- name = re.sub(r"\s+", " ", body.name).strip()
242
- if not name:
243
- raise HTTPException(422, "Type a name first.")
244
- return STORE.add_student(name, body.test)
245
-
246
-
247
- @router.post("/api/attempts")
248
- def add_attempt(body: AttemptIn) -> dict:
249
- if body.studentId not in STORE.students:
250
- raise HTTPException(404, "That student is not on the list any more.")
251
- s = SETS.get(body.setId)
252
- if not s:
253
- raise HTTPException(404, "That self-check is not available.")
254
- # Recompute totals and atom scores on the server from the set definition, so the
255
- # stored record is consistent whatever the browser sent.
256
- qmax = {q["id"]: float(q.get("marks", 1)) for q in s["questions"]}
257
- answers, atoms, score, total = {}, {}, 0.0, 0.0
258
- for q in s["questions"]:
259
- a = body.answers.get(q["id"])
260
- got = max(0.0, min(float(a.got), qmax[q["id"]])) if a else 0.0
261
- answers[q["id"]] = {"response": a.response if a else None, "got": got, "max": qmax[q["id"]], "auto": a.auto if a else q["type"] != "short"}
262
- score += got
263
- total += qmax[q["id"]]
264
- for at in q.get("atom_ids", []):
265
- g, m = atoms.get(at, [0.0, 0.0])
266
- atoms[at] = [g + got, m + qmax[q["id"]]]
267
- rec = {
268
- "studentId": body.studentId, "setId": body.setId, "subject": s.get("subject", ""),
269
- "code": s.get("code", ""), "chapter": s.get("chapter", ""), "startedAt": body.startedAt,
270
- "submittedAt": body.submittedAt, "durationSec": body.durationSec,
271
- "score": score, "max": total, "answers": answers, "atoms": atoms,
272
- }
273
- try:
274
- saved = STORE.add_attempt(rec)
275
- except Exception as e: # hub write failed twice
276
- raise HTTPException(502, "Couldn't save to the results store just now. Try again in a minute.") from e
277
- m = STORE.mastery.setdefault(body.studentId, {})
278
- apply_selfcheck(m, body.setId, saved)
279
- STORE.queue_write(f"mastery/{body.studentId}.json", m)
280
- return saved
281
-
282
-
283
- # ---------------------------------------------------------------- tutor
284
- class TutorStart(BaseModel):
285
- studentId: str
286
- chapterId: str
287
- kind: str = Field(pattern="^(learn|ask|fix|review)$")
288
- topicId: str | None = None
289
- attemptId: str | None = None
290
-
291
-
292
- class TutorMsg(BaseModel):
293
- sessionId: str
294
- text: str = Field(min_length=1, max_length=2000)
295
- confidence: str | None = Field(default=None, pattern="^(guess|think so|sure)$")
296
-
297
-
298
- def _tutor_call(fn, *a):
299
- import anthropic
300
-
301
- try:
302
- return fn(*a)
303
- except CapReached as e:
304
- raise HTTPException(429, f"That's today's tutor time used up (the daily limit is ${DAILY_CAP_USD:.0f}). Quizzes still work, and the tutor is back tomorrow.") from e
305
- except ValueError as e:
306
- raise HTTPException(422, {"unknown topic": "Pick a topic first.", "nothing to review yet": "Nothing to review yet. Do a Learn session or a quiz first."}.get(str(e), "That session can't start.")) from e
307
- except anthropic.RateLimitError as e:
308
- raise HTTPException(429, "The tutor is busy. Wait a minute and try again.") from e
309
- except anthropic.APIConnectionError as e:
310
- raise HTTPException(502, "The tutor can't be reached right now. Check the connection and try again.") from e
311
- except anthropic.APIStatusError as e:
312
- raise HTTPException(502, "The tutor hit a problem. Try again in a moment.") from e
313
-
314
-
315
- @router.get("/api/tutor/status")
316
- def tutor_status() -> dict:
317
- return {"enabled": TUTOR_ON, "chapters": list(CHAPTERS), "dailyCap": DAILY_CAP_USD}
318
-
319
-
320
- @router.get("/api/topics")
321
- def topics() -> dict:
322
- return TOPICS
323
-
324
-
325
- @router.get("/api/mastery/{student_id}")
326
- def mastery(student_id: str) -> dict:
327
- m = STORE.mastery.get(student_id, {})
328
- t = datetime.now(timezone.utc)
329
- out = {}
330
- for cid, ch in CHAPTERS.items():
331
- levels = [m.get(a["id"], {}).get("level", 0) for a in ch["atoms"]]
332
- due = [a["id"] for a in ch["atoms"] if m.get(a["id"], {}).get("level", 0) > 0 and m.get(a["id"], {}).get("due")
333
- and datetime.fromisoformat(m[a["id"]]["due"]) <= t]
334
- seen = sum(1 for a in ch["atoms"] if m.get(a["id"], {}).get("seen"))
335
- out[cid] = {"atoms": len(levels), "byLevel": [levels.count(i) for i in range(5)], "due": len(due), "seen": seen}
336
- return {"chapters": out, "levels": {k: v.get("level", 0) for k, v in m.items()}}
337
-
338
-
339
- @router.post("/api/tutor/start")
340
- def tutor_start(body: TutorStart) -> dict:
341
- if not TUTOR_ON:
342
- raise HTTPException(503, "The tutor isn't switched on yet.")
343
- if body.studentId not in STORE.students or body.chapterId not in CHAPTERS:
344
- raise HTTPException(404, "Pick your name and a chapter first.")
345
- fix_items = None
346
- if body.kind == "fix":
347
- att = next((a for a in STORE.attempts if a.get("id") == body.attemptId and a["studentId"] == body.studentId), None)
348
- quiz = SETS.get(att["setId"]) if att else None
349
- if not att or not quiz:
350
- raise HTTPException(404, "That quiz result wasn't found.")
351
- fix_items = []
352
- for q in quiz["questions"]:
353
- a = att["answers"].get(q["id"])
354
- if a is None or a["got"] >= a["max"]:
355
- continue
356
- resp = a.get("response")
357
- if q["type"] == "mcq" and resp is not None and q.get("options"):
358
- resp = f"{chr(65 + int(resp))}. {q['options'][int(resp)]}"
359
- elif q["type"] == "multi" and isinstance(resp, list):
360
- resp = ", ".join(chr(65 + int(i)) for i in resp)
361
- correct = (f"{chr(65 + int(q['answer']))}. {q['options'][int(q['answer'])]}" if q["type"] == "mcq"
362
- else ", ".join(chr(65 + int(i)) for i in q["answer"]) if q["type"] == "multi"
363
- else f"{q['answer']} {q.get('unit', '')}".strip() if q["type"] == "numeric" else q.get("mark_scheme", ""))
364
- fix_items.append({"prompt": q["prompt"], "options": q.get("options"), "response": resp if resp not in (None, "") else "(no answer)",
365
- "correct": correct, "mark_scheme": q.get("mark_scheme", ""), "atom_ids": q.get("atom_ids", [])})
366
- if not fix_items:
367
- raise HTTPException(422, "No mistakes to fix in that quiz. Nice work!")
368
- return _tutor_call(TUTOR.start, body.studentId, body.chapterId, body.kind, body.topicId, body.attemptId, fix_items)
369
-
370
-
371
- @router.get("/api/tutor/budget/{student_id}")
372
- def tutor_budget(student_id: str) -> dict:
373
- used = spent_today(STORE, student_id)
374
- return {"usedToday": round(used, 2), "cap": DAILY_CAP_USD, "left": round(max(0.0, DAILY_CAP_USD - used), 2)}
375
-
376
-
377
- @router.post("/api/tutor/message")
378
- def tutor_message(body: TutorMsg) -> dict:
379
- if body.sessionId not in STORE.chats:
380
- raise HTTPException(404, "That chat has ended. Start a new one.")
381
- return _tutor_call(TUTOR.message, body.sessionId, body.text.strip(), body.confidence)
382
-
383
-
384
- # ---------------------------------------------------------------- feedback
385
- FEEDBACK_TAGS = {"wrong answer", "unclear", "too hard", "too easy", "typo", "off topic", "helpful", "great question", "other",
386
- "confusing", "hard to find", "looks wrong", "too slow", "bug", "idea", "love it",
387
- "in syllabus", "not taught yet", "not in syllabus", "just right"}
388
-
389
-
390
- class FeedbackIn(BaseModel):
391
- by: str # a student id, or "parent"
392
- targetType: str = Field(pattern="^(question|set|tutor_message|tutor_session|app)$")
393
- setId: str = "app"
394
- questionId: str | None = None
395
- sessionId: str | None = None
396
- excerpt: str | None = Field(default=None, max_length=600) # the tutor text being rated
397
- tags: list[str] = Field(default_factory=list, max_length=6)
398
- text: str = Field(default="", max_length=2000)
399
-
400
-
401
- class FeedbackStatus(BaseModel):
402
- status: str = Field(pattern="^(open|resolved)$")
403
- note: str = Field(default="", max_length=1000)
404
-
405
-
406
- @router.post("/api/feedback")
407
- def add_feedback(body: FeedbackIn) -> dict:
408
- if body.by not in ("parent", "visitor") and body.by not in STORE.students:
409
- raise HTTPException(404, "Pick your name first.")
410
- tags = [t for t in body.tags if t in FEEDBACK_TAGS]
411
- if not tags and not body.text.strip():
412
- raise HTTPException(422, "Pick a reason or write a comment first.")
413
- fid = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
414
- item = {"id": fid, "by": body.by, "targetType": body.targetType, "setId": body.setId,
415
- "questionId": body.questionId, "sessionId": body.sessionId, "excerpt": body.excerpt,
416
- "tags": tags, "text": body.text.strip(), "created": now(), "status": "open", "note": ""}
417
- STORE.feedback[fid] = item
418
- STORE.queue_write(f"feedback/{fid}.json", item)
419
- return item
420
-
421
-
422
- @router.get("/api/feedback")
423
- def list_feedback() -> list:
424
- return sorted(STORE.feedback.values(), key=lambda x: x["created"], reverse=True)
425
-
426
-
427
- @router.post("/api/feedback/{fid}/status")
428
- def set_feedback_status(fid: str, body: FeedbackStatus) -> dict:
429
- item = STORE.feedback.get(fid)
430
- if not item:
431
- raise HTTPException(404, "No such feedback.")
432
- item["status"], item["note"], item["updated"] = body.status, body.note.strip(), now()
433
- STORE.queue_write(f"feedback/{fid}.json", item)
434
- return item
435
-
436
-
437
- # ---------------------------------------------------------------- activity (counts only, no chat text)
438
- @router.get("/api/activity")
439
- def activity() -> dict:
440
- out: dict[str, dict] = {sid: {"sessions": [], "ideas": {}} for sid in STORE.students}
441
- for s in STORE.chats.values():
442
- if s["studentId"] not in out:
443
- continue
444
- ch = CHAPTERS.get(s["setId"], {})
445
- try:
446
- mins = max(1, round((datetime.fromisoformat(s["updated"]) - datetime.fromisoformat(s["started"])).total_seconds() / 60))
447
- except (KeyError, ValueError):
448
- mins = 0
449
- out[s["studentId"]]["sessions"].append({
450
- "id": s["id"], "chapterId": s["setId"], "subject": ch.get("subject", ""), "chapter": ch.get("chapter", s["setId"]),
451
- "mode": s["mode"], "kind": s.get("kind", s["mode"]), "topicId": s.get("topicId"), "complete": bool(s.get("complete")),
452
- "goal": s.get("goal", ""), "started": s["started"], "updated": s["updated"], "minutes": mins,
453
- "messages": sum(1 for m in s["transcript"] if m["role"] == "student") - 1,
454
- "attempts": len(s["attempts"]), "correct": sum(1 for a in s["attempts"] if a.get("correct"))})
455
- for sid, m in STORE.mastery.items():
456
- if sid not in out:
457
- continue
458
- for cid, ch in CHAPTERS.items():
459
- atoms = [{"id": a["id"], "statement": a["statement"], "level": m.get(a["id"], {}).get("level", 0),
460
- "seen": m.get(a["id"], {}).get("seen", 0)} for a in ch["atoms"]]
461
- if any(a["seen"] for a in atoms):
462
- out[sid]["ideas"][cid] = {"subject": ch["subject"], "chapter": ch["chapter"],
463
- "byLevel": [sum(1 for a in atoms if a["level"] == i) for i in range(5)],
464
- "atoms": [a for a in atoms if a["seen"]]}
465
- for v in out.values():
466
- v["sessions"].sort(key=lambda x: x["updated"], reverse=True)
467
- return out
468
-
469
-
470
- # ---------------------------------------------------------------- settings
471
- class SettingsIn(BaseModel):
472
- tutorRouting: str = Field(pattern="^(auto|opus|fable)$")
473
-
474
-
475
- @router.get("/api/settings")
476
- def get_settings() -> dict:
477
- return {**STORE.settings, "modes": list(ROUTING_MODES),
478
- "prices": {k: {kk: vv for kk, vv in v.items()} for k, v in PRICES.items()}}
479
-
480
-
481
- @router.post("/api/settings")
482
- def set_settings(body: SettingsIn) -> dict:
483
- STORE.settings["tutorRouting"] = body.tutorRouting
484
- STORE.queue_write("settings.json", STORE.settings)
485
- STORE.flush()
486
- return get_settings()
487
-
488
-
489
- @router.get("/api/costs")
490
- def costs() -> dict:
491
- by_model: dict[str, dict] = {}
492
- for s in STORE.chats.values():
493
- for m, b in s.get("usage", {}).get("byModel", {}).items():
494
- agg = by_model.setdefault(m, {"label": PRICES.get(m, {}).get("label", m), "turns": 0, "cost": 0.0, "seconds": 0.0})
495
- agg["turns"] += b.get("turns", 0)
496
- agg["cost"] = round(agg["cost"] + b.get("cost", 0.0), 4)
497
- for t in s.get("transcript", []):
498
- if t.get("role") == "tutor" and t.get("model") in by_model:
499
- by_model[t["model"]]["seconds"] += t.get("seconds") or 0
500
- for v in by_model.values():
501
- v["avgSeconds"] = round(v["seconds"] / v["turns"], 1) if v["turns"] else 0
502
- v["avgCost"] = round(v["cost"] / v["turns"], 4) if v["turns"] else 0
503
- return {"byModel": by_model, "total": round(sum(v["cost"] for v in by_model.values()), 4)}
504
-
505
-
506
- # ---------------------------------------------------------------- parent
507
- @router.get("/api/parent/chats")
508
- def parent_chats() -> list:
509
- names = {k: v["name"] for k, v in STORE.students.items()}
510
- out = []
511
- for s in STORE.chats.values():
512
- ch = CHAPTERS.get(s["setId"], {})
513
- out.append({"id": s["id"], "student": names.get(s["studentId"], s["studentId"]), "studentId": s["studentId"],
514
- "subject": ch.get("subject", ""), "chapter": ch.get("chapter", s["setId"]), "mode": s["mode"],
515
- "started": s["started"], "updated": s["updated"], "messages": len(s["transcript"]),
516
- "attempts": len(s["attempts"]), "correct": sum(1 for a in s["attempts"] if a.get("correct")),
517
- "flags": s["flags"], "usage": s["usage"], "cost": s["usage"].get("cost", 0.0),
518
- "models": sorted({PRICES.get(t.get("model"), {}).get("label", t.get("model")) for t in s["transcript"] if t.get("model")})})
519
- return sorted(out, key=lambda x: x["updated"], reverse=True)
520
-
521
-
522
- @router.get("/api/parent/chats/{sid}")
523
- def parent_chat(sid: str) -> dict:
524
- s = STORE.chats.get(sid)
525
- if not s:
526
- raise HTTPException(404, "No such chat.")
527
- return {k: s[k] for k in ("id", "studentId", "setId", "mode", "started", "updated", "transcript", "attempts", "flags", "usage")}
528
-
529
-
530
- @router.get("/api/export/{kind}.csv")
531
- def export(kind: str) -> Response:
532
- buf = io.StringIO()
533
- w = csv.writer(buf)
534
- names = {k: v["name"] for k, v in STORE.students.items()}
535
- if kind == "attempts":
536
- w.writerow(["attempt_id", "student", "subject", "code", "chapter", "set_id", "submitted_at", "minutes", "score", "max", "percent"])
537
- for a in STORE.attempts:
538
- pct = round(100 * a["score"] / a["max"]) if a["max"] else 0
539
- w.writerow([a["id"], names.get(a["studentId"], a["studentId"]), a["subject"], a["code"], a["chapter"],
540
- a["setId"], a["submittedAt"], round(a["durationSec"] / 60), a["score"], a["max"], pct])
541
- elif kind == "answers":
542
- w.writerow(["attempt_id", "student", "set_id", "question_id", "question_type", "template_id", "atom_ids", "misconception_id", "response", "got", "max", "auto_marked"])
543
- for a in STORE.attempts:
544
- qs = {q["id"]: q for q in SETS.get(a["setId"], {}).get("questions", [])}
545
- for qid, ans in a["answers"].items():
546
- q = qs.get(qid, {})
547
- resp = ans["response"]
548
- if isinstance(resp, list):
549
- resp = ";".join(str(x) for x in resp)
550
- w.writerow([a["id"], names.get(a["studentId"], a["studentId"]), a["setId"], qid, q.get("type", ""),
551
- q.get("template_id", ""), ";".join(q.get("atom_ids", [])), q.get("misconception_id") or "",
552
- resp, ans["got"], ans["max"], ans["auto"]])
553
- elif kind == "atoms":
554
- w.writerow(["student", "subject", "atom_id", "idea", "marks_got", "marks_max", "percent", "from_latest_attempts"])
555
- latest: dict[tuple, dict] = {}
556
- for a in sorted(STORE.attempts, key=lambda x: x["submittedAt"]):
557
- latest[(a["studentId"], a["setId"])] = a
558
- agg: dict[tuple, list] = {}
559
- for (sid, set_id), a in latest.items():
560
- idea = SETS.get(set_id, {}).get("atoms", {})
561
- for at, (g, m) in a["atoms"].items():
562
- k = (sid, a["subject"], at)
563
- cur = agg.setdefault(k, [0.0, 0.0, idea.get(at, ""), 0])
564
- cur[0] += g
565
- cur[1] += m
566
- cur[3] += 1
567
- for (sid, subj, at), (g, m, idea, n) in sorted(agg.items(), key=lambda kv: (kv[0][0], kv[1][0] / kv[1][1] if kv[1][1] else 0)):
568
- w.writerow([names.get(sid, sid), subj, at, idea, g, m, round(100 * g / m) if m else 0, n])
569
- elif kind == "feedback":
570
- w.writerow(["feedback_id", "created", "by", "target", "set_id", "question_id", "session_id", "tags", "comment", "excerpt", "status", "parent_note"])
571
- for f in sorted(STORE.feedback.values(), key=lambda x: x["created"]):
572
- who = {"parent": "Parent", "visitor": "Visitor"}.get(f["by"]) or names.get(f["by"], f["by"])
573
- if STORE.students.get(f["by"], {}).get("test"):
574
- who += " (test)"
575
- w.writerow([f["id"], f["created"], who, f["targetType"], f["setId"], f.get("questionId") or "", f.get("sessionId") or "",
576
- ";".join(f["tags"]), f["text"], f.get("excerpt") or "", f["status"], f.get("note", "")])
577
- elif kind == "chats":
578
- w.writerow(["session_id", "student", "subject", "chapter", "mode", "time", "who", "confidence", "model", "effort", "routing_reason", "seconds", "cost_usd", "text"])
579
- for s in sorted(STORE.chats.values(), key=lambda x: x["started"]):
580
- ch = CHAPTERS.get(s["setId"], {})
581
- for m in s["transcript"]:
582
- w.writerow([s["id"], names.get(s["studentId"], s["studentId"]), ch.get("subject", ""), ch.get("chapter", ""),
583
- s["mode"], m["t"], m["role"], m.get("confidence") or "", m.get("model") or "", m.get("effort") or "",
584
- m.get("why") or "", m.get("seconds") or "", m.get("cost") if m.get("cost") is not None else "", m["text"]])
585
- else:
586
- raise HTTPException(404, "Unknown export.")
587
- stamp = datetime.now().strftime("%Y-%m-%d")
588
- return Response(buf.getvalue().encode("utf-8-sig"), media_type="text/csv",
589
- headers={"Content-Disposition": f'attachment; filename="stepwise-{kind}-{stamp}.csv"'})
590
-
591
-
592
- @app.get("/healthz")
593
- def health() -> dict:
594
- return {"ok": True}
595
-
596
-
597
- @router.get("/status")
598
- def status() -> dict:
599
- return {"ok": True, "sets": len(SETS), "students": len(STORE.students), "attempts": len(STORE.attempts),
600
- "chats": len(STORE.chats), "feedback": len(STORE.feedback), "tutor": TUTOR_ON,
601
- "storage": "hf-dataset" if STORE.api else "local"}
602
-
603
-
604
- @app.get("/s/{key}", include_in_schema=False)
605
- def add_slash(key: str) -> RedirectResponse:
606
- check_key(key)
607
- return RedirectResponse(f"/s/{key}/", status_code=307)
608
-
609
-
610
- @app.get("/", include_in_schema=False)
611
- def root() -> HTMLResponse:
612
- return HTMLResponse("<!doctype html><title>Not found</title><p>Not found.</p>", status_code=404)
613
-
614
-
615
- app.include_router(router)
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """StepWise Self-Checks — Hugging Face Space backend.
2
+
3
+ Serves the self-check page, stores students and attempts durably in a private
4
+ Hugging Face dataset, and exports results as CSV for the parent.
5
+
6
+ Environment (set as Space secrets / variables):
7
+ HF_TOKEN token with write access to RESULTS_REPO (required on the Space)
8
+ RESULTS_REPO private dataset holding results, e.g. "Ashish-K/stepwise-results"
9
+ ANTHROPIC_API_KEY the Claude tutor
10
+
11
+ Without HF_TOKEN the app runs locally and keeps data in ./localdata.
12
+ """
13
+ from __future__ import annotations
14
+
15
+ import csv
16
+ import io
17
+ import json
18
+ import os
19
+ import re
20
+ import secrets
21
+ import threading
22
+ import time
23
+ import uuid
24
+ from datetime import datetime, timezone
25
+ from pathlib import Path
26
+
27
+ from fastapi import APIRouter, Depends, FastAPI, Header, HTTPException, Query
28
+ from fastapi.responses import FileResponse, HTMLResponse, JSONResponse, RedirectResponse, Response
29
+ from pydantic import BaseModel, Field
30
+
31
+ HERE = Path(__file__).parent
32
+ SETS_DIR = HERE / "data" / "sets"
33
+ HF_TOKEN = os.environ.get("HF_TOKEN")
34
+ RESULTS_REPO = os.environ.get("RESULTS_REPO", "")
35
+ LOCAL = HERE / "localdata"
36
+
37
+ app = FastAPI(title="StepWise Self-Checks", docs_url=None, redoc_url=None, openapi_url=None)
38
+ ACCESS_KEY = os.environ.get("ACCESS_KEY", "")
39
+
40
+
41
+ def check_key(key: str) -> None:
42
+ """Everything lives under /s/<ACCESS_KEY>/; any other key looks like a missing page."""
43
+ if not ACCESS_KEY or not secrets.compare_digest(key, ACCESS_KEY):
44
+ raise HTTPException(404, "Not found")
45
+
46
+
47
+ router = APIRouter(prefix="/s/{key}", dependencies=[Depends(check_key)])
48
+
49
+
50
+ # ---------------------------------------------------------------- storage
51
+ class Store:
52
+ """Students and attempts in memory, mirrored to a private HF dataset.
53
+
54
+ Layout in the dataset (and in ./localdata when running locally):
55
+ students.json {"<id>": {"name": ..., "createdAt": ...}}
56
+ attempts/<id>.json one file per saved attempt (never rewritten)
57
+ """
58
+
59
+ def __init__(self) -> None:
60
+ self.lock = threading.Lock()
61
+ self.students: dict[str, dict] = {}
62
+ self.attempts: list[dict] = []
63
+ self.mastery: dict[str, dict] = {} # student id -> atom id -> state
64
+ self.chats: dict[str, dict] = {} # session id -> session
65
+ self.feedback: dict[str, dict] = {} # feedback id -> item
66
+ self.progress: dict[str, dict] = {} # student id -> {"chunks": {"<chapter>/<chunk>": {status, at, session}}}
67
+ self.settings: dict = {"tutorRouting": "opus"}
68
+ self.dirty: dict[str, dict] = {} # path in repo -> object, flushed in batches
69
+ self.dirty_lock = threading.Lock()
70
+ self.api = None
71
+ if HF_TOKEN and RESULTS_REPO:
72
+ from huggingface_hub import HfApi
73
+
74
+ self.api = HfApi(token=HF_TOKEN)
75
+ self.api.create_repo(RESULTS_REPO, repo_type="dataset", private=True, exist_ok=True)
76
+ self._load()
77
+ threading.Thread(target=self._flusher, daemon=True).start()
78
+
79
+ def queue_write(self, path_in_repo: str, obj: dict) -> None:
80
+ """Chats and idea levels change every message; save them in one commit per minute."""
81
+ with self.dirty_lock:
82
+ self.dirty[path_in_repo] = obj
83
+
84
+ def flush(self) -> int:
85
+ with self.dirty_lock:
86
+ batch, self.dirty = self.dirty, {}
87
+ if not batch:
88
+ return 0
89
+ try:
90
+ if self.api:
91
+ from huggingface_hub import CommitOperationAdd
92
+
93
+ ops = [CommitOperationAdd(path_in_repo=p, path_or_fileobj=json.dumps(o, ensure_ascii=False).encode("utf-8"))
94
+ for p, o in batch.items()]
95
+ self.api.create_commit(RESULTS_REPO, operations=ops, repo_type="dataset",
96
+ commit_message=f"Save {len(ops)} chat/level files")
97
+ else:
98
+ for p, o in batch.items():
99
+ f = LOCAL / p
100
+ f.parent.mkdir(parents=True, exist_ok=True)
101
+ f.write_text(json.dumps(o, ensure_ascii=False), encoding="utf-8")
102
+ except Exception:
103
+ with self.dirty_lock: # keep anything newer, put the failed batch back
104
+ for p, o in batch.items():
105
+ self.dirty.setdefault(p, o)
106
+ return -1
107
+ return len(batch)
108
+
109
+ def _flusher(self) -> None:
110
+ while True:
111
+ time.sleep(60)
112
+ self.flush()
113
+
114
+ def _load(self) -> None:
115
+ if self.api:
116
+ from huggingface_hub import snapshot_download
117
+
118
+ root = Path(snapshot_download(RESULTS_REPO, repo_type="dataset", token=HF_TOKEN))
119
+ else:
120
+ root = LOCAL
121
+ (root / "attempts").mkdir(parents=True, exist_ok=True)
122
+ st = root / "settings.json"
123
+ if st.exists():
124
+ self.settings.update(json.loads(st.read_text(encoding="utf-8")))
125
+ sp = root / "students.json"
126
+ if sp.exists():
127
+ self.students = json.loads(sp.read_text(encoding="utf-8"))
128
+ for sub, sink in (("attempts", None), ("mastery", self.mastery), ("chats", self.chats), ("feedback", self.feedback), ("progress", self.progress)):
129
+ folder = root / sub
130
+ for f in sorted(folder.glob("*.json")) if folder.exists() else []:
131
+ try:
132
+ obj = json.loads(f.read_text(encoding="utf-8"))
133
+ except json.JSONDecodeError:
134
+ continue
135
+ if sink is None:
136
+ self.attempts.append(obj)
137
+ else:
138
+ sink[f.stem] = obj
139
+
140
+ def _write(self, path_in_repo: str, obj: dict, message: str) -> None:
141
+ data = json.dumps(obj, ensure_ascii=False, indent=1).encode("utf-8")
142
+ if self.api:
143
+ # retry once on a transient hub error; the attempt is already in memory
144
+ for i in range(2):
145
+ try:
146
+ self.api.upload_file(
147
+ path_or_fileobj=data, path_in_repo=path_in_repo,
148
+ repo_id=RESULTS_REPO, repo_type="dataset", commit_message=message,
149
+ )
150
+ return
151
+ except Exception:
152
+ if i:
153
+ raise
154
+ time.sleep(2)
155
+ else:
156
+ p = LOCAL / path_in_repo
157
+ p.parent.mkdir(parents=True, exist_ok=True)
158
+ p.write_bytes(data)
159
+
160
+ def add_student(self, name: str, test: bool = False) -> dict:
161
+ with self.lock:
162
+ if any(s["name"].lower() == name.lower() for s in self.students.values()):
163
+ raise HTTPException(409, f"{name} is already on the list")
164
+ sid = re.sub(r"[^a-z0-9]+", "-", name.lower()).strip("-") + "-" + secrets.token_hex(2)
165
+ self.students[sid] = {"name": name, "createdAt": now(), **({"test": True} if test else {})}
166
+ self._write("students.json", self.students, f"Add student {sid}")
167
+ return {"id": sid, **self.students[sid]}
168
+
169
+ def add_attempt(self, attempt: dict) -> dict:
170
+ with self.lock:
171
+ attempt["id"] = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
172
+ attempt["savedAt"] = now()
173
+ self.attempts.append(attempt)
174
+ self._write(f"attempts/{attempt['id']}.json", attempt, f"Attempt {attempt['studentId']} {attempt['setId']}")
175
+ return attempt
176
+
177
+
178
+ def now() -> str:
179
+ return datetime.now(timezone.utc).isoformat(timespec="seconds")
180
+
181
+
182
+ def load_sets() -> dict[str, dict]:
183
+ out = {}
184
+ for f in sorted(SETS_DIR.glob("*.json")):
185
+ d = json.loads(f.read_text(encoding="utf-8"))
186
+ out[d["id"]] = d
187
+ return out
188
+
189
+
190
+ SETS = load_sets()
191
+ STORE = Store()
192
+
193
+
194
+ def _anthropic_client():
195
+ import anthropic
196
+
197
+ return anthropic.Anthropic(max_retries=3, timeout=180.0)
198
+
199
+
200
+ from tutor import CHAPTERS, DAILY_CAP_USD, PRICES, ROUTING_MODES, TOPICS, CapReached, Tutor, apply_selfcheck, chapter_of, spent_today # noqa: E402
201
+
202
+ TUTOR = Tutor(STORE, STORE.students, _anthropic_client)
203
+ TUTOR_ON = bool(os.environ.get("ANTHROPIC_API_KEY"))
204
+
205
+
206
+ # ---------------------------------------------------------------- api
207
+ class StudentIn(BaseModel):
208
+ name: str = Field(min_length=1, max_length=40)
209
+ test: bool = False
210
+
211
+
212
+ class AnswerIn(BaseModel):
213
+ response: object = None
214
+ got: float
215
+ max: float
216
+ auto: bool
217
+ notLearnt: bool = False # "I haven't learnt this yet": scores 0, kept apart from wrong answers
218
+
219
+
220
+ class AttemptIn(BaseModel):
221
+ studentId: str
222
+ setId: str
223
+ startedAt: str
224
+ submittedAt: str
225
+ durationSec: int = Field(ge=0, le=6 * 3600)
226
+ answers: dict[str, AnswerIn]
227
+
228
+
229
+ @router.get("/")
230
+ def index() -> FileResponse:
231
+ return FileResponse(HERE / "static" / "index.html", headers={"Cache-Control": "no-cache"})
232
+
233
+
234
+ @router.get("/api/state")
235
+ def state() -> JSONResponse:
236
+ students = [{"id": k, **v} for k, v in STORE.students.items()]
237
+ return JSONResponse({"sets": list(SETS.values()), "students": students, "attempts": STORE.attempts,
238
+ "feedback": list(STORE.feedback.values())})
239
+
240
+
241
+ @router.post("/api/students")
242
+ def add_student(body: StudentIn) -> dict:
243
+ name = re.sub(r"\s+", " ", body.name).strip()
244
+ if not name:
245
+ raise HTTPException(422, "Type a name first.")
246
+ return STORE.add_student(name, body.test)
247
+
248
+
249
+ @router.post("/api/attempts")
250
+ def add_attempt(body: AttemptIn) -> dict:
251
+ if body.studentId not in STORE.students:
252
+ raise HTTPException(404, "That student is not on the list any more.")
253
+ s = SETS.get(body.setId)
254
+ if not s:
255
+ raise HTTPException(404, "That self-check is not available.")
256
+ # Recompute totals and atom scores on the server from the set definition, so the
257
+ # stored record is consistent whatever the browser sent.
258
+ qmax = {q["id"]: float(q.get("marks", 1)) for q in s["questions"]}
259
+ answers, atoms, score, total, not_learnt = {}, {}, 0.0, 0.0, []
260
+ for q in s["questions"]:
261
+ a = body.answers.get(q["id"])
262
+ nl = bool(a and a.notLearnt)
263
+ got = 0.0 if nl else max(0.0, min(float(a.got), qmax[q["id"]])) if a else 0.0
264
+ answers[q["id"]] = {"response": None if nl else a.response if a else None, "got": got, "max": qmax[q["id"]],
265
+ "auto": True if nl else a.auto if a else q["type"] != "short", **({"notLearnt": True} if nl else {})}
266
+ score += got
267
+ total += qmax[q["id"]]
268
+ if nl: # not a mistake: leave these ideas' levels alone, and list them for a Learn session
269
+ not_learnt += [at for at in q.get("atom_ids", []) if at not in not_learnt]
270
+ continue
271
+ for at in q.get("atom_ids", []):
272
+ g, m = atoms.get(at, [0.0, 0.0])
273
+ atoms[at] = [g + got, m + qmax[q["id"]]]
274
+ rec = {
275
+ "studentId": body.studentId, "setId": body.setId, "subject": s.get("subject", ""),
276
+ "code": s.get("code", ""), "chapter": s.get("chapter", ""), "startedAt": body.startedAt,
277
+ "submittedAt": body.submittedAt, "durationSec": body.durationSec,
278
+ "score": score, "max": total, "answers": answers, "atoms": atoms, "notLearnt": not_learnt,
279
+ }
280
+ try:
281
+ saved = STORE.add_attempt(rec)
282
+ except Exception as e: # hub write failed twice
283
+ raise HTTPException(502, "Couldn't save to the results store just now. Try again in a minute.") from e
284
+ m = STORE.mastery.setdefault(body.studentId, {})
285
+ apply_selfcheck(m, body.setId, saved)
286
+ STORE.queue_write(f"mastery/{body.studentId}.json", m)
287
+ return saved
288
+
289
+
290
+ # ---------------------------------------------------------------- tutor
291
+ class TutorStart(BaseModel):
292
+ studentId: str
293
+ chapterId: str
294
+ kind: str = Field(pattern="^(learn|ask|fix|review)$")
295
+ topicId: str | None = None
296
+ chunkId: str | None = None
297
+ attemptId: str | None = None
298
+
299
+
300
+ class TutorMsg(BaseModel):
301
+ sessionId: str
302
+ text: str = Field(min_length=1, max_length=2000)
303
+ confidence: str | None = Field(default=None, pattern="^(guess|think so|sure)$")
304
+
305
+
306
+ def _tutor_call(fn, *a):
307
+ import anthropic
308
+
309
+ try:
310
+ return fn(*a)
311
+ except CapReached as e:
312
+ raise HTTPException(429, f"That's today's tutor time used up (the daily limit is ${DAILY_CAP_USD:.0f}). Quizzes still work, and the tutor is back tomorrow.") from e
313
+ except ValueError as e:
314
+ raise HTTPException(422, {"unknown topic": "Pick a topic first.", "nothing to review yet": "Nothing to review yet. Do a Learn session or a quiz first."}.get(str(e), "That session can't start.")) from e
315
+ except anthropic.RateLimitError as e:
316
+ raise HTTPException(429, "The tutor is busy. Wait a minute and try again.") from e
317
+ except anthropic.APIConnectionError as e:
318
+ print(f"tutor: API connection error: {e}", flush=True)
319
+ raise HTTPException(502, "The tutor can't be reached right now. Check the connection and try again.") from e
320
+ except anthropic.APIStatusError as e:
321
+ print(f"tutor: API error {e.status_code}: {str(e)[:300]}", flush=True) # e.g. bad key or no credit
322
+ raise HTTPException(502, "The tutor hit a problem. Try again in a moment.") from e
323
+
324
+
325
+ @router.get("/api/tutor/status")
326
+ def tutor_status() -> dict:
327
+ return {"enabled": TUTOR_ON, "chapters": list(CHAPTERS), "dailyCap": DAILY_CAP_USD}
328
+
329
+
330
+ @router.get("/api/topics")
331
+ def topics() -> dict:
332
+ return TOPICS
333
+
334
+
335
+ @router.get("/api/mastery/{student_id}")
336
+ def mastery(student_id: str) -> dict:
337
+ m = STORE.mastery.get(student_id, {})
338
+ t = datetime.now(timezone.utc)
339
+ out = {}
340
+ for cid, ch in CHAPTERS.items():
341
+ levels = [m.get(a["id"], {}).get("level", 0) for a in ch["atoms"]]
342
+ due = [a["id"] for a in ch["atoms"] if m.get(a["id"], {}).get("level", 0) > 0 and m.get(a["id"], {}).get("due")
343
+ and datetime.fromisoformat(m[a["id"]]["due"]) <= t]
344
+ seen = sum(1 for a in ch["atoms"] if m.get(a["id"], {}).get("seen"))
345
+ out[cid] = {"atoms": len(levels), "byLevel": [levels.count(i) for i in range(5)], "due": len(due), "seen": seen}
346
+ return {"chapters": out, "levels": {k: v.get("level", 0) for k, v in m.items()},
347
+ "chunks": STORE.progress.get(student_id, {}).get("chunks", {})}
348
+
349
+
350
+ @router.post("/api/tutor/start")
351
+ def tutor_start(body: TutorStart) -> dict:
352
+ if not TUTOR_ON:
353
+ raise HTTPException(503, "The tutor isn't switched on yet.")
354
+ if body.studentId not in STORE.students or body.chapterId not in CHAPTERS:
355
+ raise HTTPException(404, "Pick your name and a chapter first.")
356
+ fix_items = None
357
+ if body.kind == "fix":
358
+ att = next((a for a in STORE.attempts if a.get("id") == body.attemptId and a["studentId"] == body.studentId), None)
359
+ quiz = SETS.get(att["setId"]) if att else None
360
+ if not att or not quiz:
361
+ raise HTTPException(404, "That quiz result wasn't found.")
362
+ fix_items = []
363
+ for q in quiz["questions"]:
364
+ a = att["answers"].get(q["id"])
365
+ if a is None or a["got"] >= a["max"] or a.get("notLearnt"):
366
+ continue
367
+ resp = a.get("response")
368
+ if q["type"] == "mcq" and resp is not None and q.get("options"):
369
+ resp = f"{chr(65 + int(resp))}. {q['options'][int(resp)]}"
370
+ elif q["type"] == "multi" and isinstance(resp, list):
371
+ resp = ", ".join(chr(65 + int(i)) for i in resp)
372
+ correct = (f"{chr(65 + int(q['answer']))}. {q['options'][int(q['answer'])]}" if q["type"] == "mcq"
373
+ else ", ".join(chr(65 + int(i)) for i in q["answer"]) if q["type"] == "multi"
374
+ else f"{q['answer']} {q.get('unit', '')}".strip() if q["type"] == "numeric" else q.get("mark_scheme", ""))
375
+ fix_items.append({"prompt": q["prompt"], "options": q.get("options"), "response": resp if resp not in (None, "") else "(no answer)",
376
+ "correct": correct, "mark_scheme": q.get("mark_scheme", ""), "atom_ids": q.get("atom_ids", [])})
377
+ if not fix_items:
378
+ raise HTTPException(422, "No mistakes to fix in that quiz. Nice work!")
379
+ return _tutor_call(TUTOR.start, body.studentId, body.chapterId, body.kind, body.topicId, body.attemptId, fix_items, body.chunkId)
380
+
381
+
382
+ @router.get("/api/tutor/budget/{student_id}")
383
+ def tutor_budget(student_id: str) -> dict:
384
+ used = spent_today(STORE, student_id)
385
+ return {"usedToday": round(used, 2), "cap": DAILY_CAP_USD, "left": round(max(0.0, DAILY_CAP_USD - used), 2)}
386
+
387
+
388
+ @router.post("/api/tutor/message")
389
+ def tutor_message(body: TutorMsg) -> dict:
390
+ if body.sessionId not in STORE.chats:
391
+ raise HTTPException(404, "That chat has ended. Start a new one.")
392
+ return _tutor_call(TUTOR.message, body.sessionId, body.text.strip(), body.confidence)
393
+
394
+
395
+ # ---------------------------------------------------------------- feedback
396
+ FEEDBACK_TAGS = {"wrong answer", "unclear", "too hard", "too easy", "typo", "off topic", "helpful", "great question", "other",
397
+ "confusing", "hard to find", "looks wrong", "too slow", "bug", "idea", "love it",
398
+ "in syllabus", "not taught yet", "not in syllabus", "just right"}
399
+
400
+
401
+ class FeedbackIn(BaseModel):
402
+ by: str # a student id, or "parent"
403
+ targetType: str = Field(pattern="^(question|set|tutor_message|tutor_session|app)$")
404
+ setId: str = "app"
405
+ questionId: str | None = None
406
+ sessionId: str | None = None
407
+ excerpt: str | None = Field(default=None, max_length=600) # the tutor text being rated
408
+ tags: list[str] = Field(default_factory=list, max_length=6)
409
+ text: str = Field(default="", max_length=2000)
410
+
411
+
412
+ class FeedbackStatus(BaseModel):
413
+ status: str = Field(pattern="^(open|resolved)$")
414
+ note: str = Field(default="", max_length=1000)
415
+
416
+
417
+ @router.post("/api/feedback")
418
+ def add_feedback(body: FeedbackIn) -> dict:
419
+ if body.by not in ("parent", "visitor") and body.by not in STORE.students:
420
+ raise HTTPException(404, "Pick your name first.")
421
+ tags = [t for t in body.tags if t in FEEDBACK_TAGS]
422
+ if not tags and not body.text.strip():
423
+ raise HTTPException(422, "Pick a reason or write a comment first.")
424
+ fid = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
425
+ item = {"id": fid, "by": body.by, "targetType": body.targetType, "setId": body.setId,
426
+ "questionId": body.questionId, "sessionId": body.sessionId, "excerpt": body.excerpt,
427
+ "tags": tags, "text": body.text.strip(), "created": now(), "status": "open", "note": ""}
428
+ STORE.feedback[fid] = item
429
+ STORE.queue_write(f"feedback/{fid}.json", item)
430
+ return item
431
+
432
+
433
+ @router.get("/api/feedback")
434
+ def list_feedback() -> list:
435
+ return sorted(STORE.feedback.values(), key=lambda x: x["created"], reverse=True)
436
+
437
+
438
+ @router.post("/api/feedback/{fid}/status")
439
+ def set_feedback_status(fid: str, body: FeedbackStatus) -> dict:
440
+ item = STORE.feedback.get(fid)
441
+ if not item:
442
+ raise HTTPException(404, "No such feedback.")
443
+ item["status"], item["note"], item["updated"] = body.status, body.note.strip(), now()
444
+ STORE.queue_write(f"feedback/{fid}.json", item)
445
+ return item
446
+
447
+
448
+ # ---------------------------------------------------------------- activity (counts only, no chat text)
449
+ @router.get("/api/activity")
450
+ def activity() -> dict:
451
+ out: dict[str, dict] = {sid: {"sessions": [], "ideas": {}} for sid in STORE.students}
452
+ for s in STORE.chats.values():
453
+ if s["studentId"] not in out:
454
+ continue
455
+ ch = CHAPTERS.get(s["setId"], {})
456
+ try:
457
+ mins = max(1, round((datetime.fromisoformat(s["updated"]) - datetime.fromisoformat(s["started"])).total_seconds() / 60))
458
+ except (KeyError, ValueError):
459
+ mins = 0
460
+ out[s["studentId"]]["sessions"].append({
461
+ "id": s["id"], "chapterId": s["setId"], "subject": ch.get("subject", ""), "chapter": ch.get("chapter", s["setId"]),
462
+ "mode": s["mode"], "kind": s.get("kind", s["mode"]), "topicId": s.get("topicId"), "complete": bool(s.get("complete")),
463
+ "goal": s.get("goal", ""), "started": s["started"], "updated": s["updated"], "minutes": mins,
464
+ "messages": sum(1 for m in s["transcript"] if m["role"] == "student") - 1,
465
+ "attempts": len(s["attempts"]), "correct": sum(1 for a in s["attempts"] if a.get("correct"))})
466
+ for sid, m in STORE.mastery.items():
467
+ if sid not in out:
468
+ continue
469
+ for cid, ch in CHAPTERS.items():
470
+ atoms = [{"id": a["id"], "statement": a["statement"], "level": m.get(a["id"], {}).get("level", 0),
471
+ "seen": m.get(a["id"], {}).get("seen", 0)} for a in ch["atoms"]]
472
+ if any(a["seen"] for a in atoms):
473
+ out[sid]["ideas"][cid] = {"subject": ch["subject"], "chapter": ch["chapter"],
474
+ "byLevel": [sum(1 for a in atoms if a["level"] == i) for i in range(5)],
475
+ "atoms": [a for a in atoms if a["seen"]]}
476
+ for v in out.values():
477
+ v["sessions"].sort(key=lambda x: x["updated"], reverse=True)
478
+ return out
479
+
480
+
481
+ # ---------------------------------------------------------------- settings
482
+ class SettingsIn(BaseModel):
483
+ tutorRouting: str = Field(pattern="^(auto|opus|fable)$")
484
+
485
+
486
+ @router.get("/api/settings")
487
+ def get_settings() -> dict:
488
+ return {**STORE.settings, "modes": list(ROUTING_MODES),
489
+ "prices": {k: {kk: vv for kk, vv in v.items()} for k, v in PRICES.items()}}
490
+
491
+
492
+ @router.post("/api/settings")
493
+ def set_settings(body: SettingsIn) -> dict:
494
+ STORE.settings["tutorRouting"] = body.tutorRouting
495
+ STORE.queue_write("settings.json", STORE.settings)
496
+ STORE.flush()
497
+ return get_settings()
498
+
499
+
500
+ @router.get("/api/costs")
501
+ def costs() -> dict:
502
+ by_model: dict[str, dict] = {}
503
+ for s in STORE.chats.values():
504
+ for m, b in s.get("usage", {}).get("byModel", {}).items():
505
+ agg = by_model.setdefault(m, {"label": PRICES.get(m, {}).get("label", m), "turns": 0, "cost": 0.0, "seconds": 0.0})
506
+ agg["turns"] += b.get("turns", 0)
507
+ agg["cost"] = round(agg["cost"] + b.get("cost", 0.0), 4)
508
+ for t in s.get("transcript", []):
509
+ if t.get("role") == "tutor" and t.get("model") in by_model:
510
+ by_model[t["model"]]["seconds"] += t.get("seconds") or 0
511
+ for v in by_model.values():
512
+ v["avgSeconds"] = round(v["seconds"] / v["turns"], 1) if v["turns"] else 0
513
+ v["avgCost"] = round(v["cost"] / v["turns"], 4) if v["turns"] else 0
514
+ return {"byModel": by_model, "total": round(sum(v["cost"] for v in by_model.values()), 4)}
515
+
516
+
517
+ # ---------------------------------------------------------------- parent
518
+ @router.get("/api/parent/chats")
519
+ def parent_chats() -> list:
520
+ names = {k: v["name"] for k, v in STORE.students.items()}
521
+ out = []
522
+ for s in STORE.chats.values():
523
+ ch = CHAPTERS.get(s["setId"], {})
524
+ out.append({"id": s["id"], "student": names.get(s["studentId"], s["studentId"]), "studentId": s["studentId"],
525
+ "subject": ch.get("subject", ""), "chapter": ch.get("chapter", s["setId"]), "mode": s["mode"],
526
+ "started": s["started"], "updated": s["updated"], "messages": len(s["transcript"]),
527
+ "attempts": len(s["attempts"]), "correct": sum(1 for a in s["attempts"] if a.get("correct")),
528
+ "flags": s["flags"], "usage": s["usage"], "cost": s["usage"].get("cost", 0.0),
529
+ "models": sorted({PRICES.get(t.get("model"), {}).get("label", t.get("model")) for t in s["transcript"] if t.get("model")})})
530
+ return sorted(out, key=lambda x: x["updated"], reverse=True)
531
+
532
+
533
+ @router.get("/api/parent/chats/{sid}")
534
+ def parent_chat(sid: str) -> dict:
535
+ s = STORE.chats.get(sid)
536
+ if not s:
537
+ raise HTTPException(404, "No such chat.")
538
+ return {k: s[k] for k in ("id", "studentId", "setId", "mode", "started", "updated", "transcript", "attempts", "flags", "usage")}
539
+
540
+
541
+ @router.get("/api/export/{kind}.csv")
542
+ def export(kind: str) -> Response:
543
+ buf = io.StringIO()
544
+ w = csv.writer(buf)
545
+ names = {k: v["name"] for k, v in STORE.students.items()}
546
+ if kind == "attempts":
547
+ w.writerow(["attempt_id", "student", "subject", "code", "chapter", "set_id", "submitted_at", "minutes", "score", "max", "percent"])
548
+ for a in STORE.attempts:
549
+ pct = round(100 * a["score"] / a["max"]) if a["max"] else 0
550
+ w.writerow([a["id"], names.get(a["studentId"], a["studentId"]), a["subject"], a["code"], a["chapter"],
551
+ a["setId"], a["submittedAt"], round(a["durationSec"] / 60), a["score"], a["max"], pct])
552
+ elif kind == "answers":
553
+ w.writerow(["attempt_id", "student", "set_id", "question_id", "question_type", "template_id", "atom_ids", "misconception_id", "response", "got", "max", "auto_marked", "not_learnt_yet"])
554
+ for a in STORE.attempts:
555
+ qs = {q["id"]: q for q in SETS.get(a["setId"], {}).get("questions", [])}
556
+ for qid, ans in a["answers"].items():
557
+ q = qs.get(qid, {})
558
+ resp = ans["response"]
559
+ if isinstance(resp, list):
560
+ resp = ";".join(str(x) for x in resp)
561
+ w.writerow([a["id"], names.get(a["studentId"], a["studentId"]), a["setId"], qid, q.get("type", ""),
562
+ q.get("template_id", ""), ";".join(q.get("atom_ids", [])), q.get("misconception_id") or "",
563
+ resp, ans["got"], ans["max"], ans["auto"], bool(ans.get("notLearnt"))])
564
+ elif kind == "atoms":
565
+ w.writerow(["student", "subject", "atom_id", "idea", "marks_got", "marks_max", "percent", "from_latest_attempts"])
566
+ latest: dict[tuple, dict] = {}
567
+ for a in sorted(STORE.attempts, key=lambda x: x["submittedAt"]):
568
+ latest[(a["studentId"], a["setId"])] = a
569
+ agg: dict[tuple, list] = {}
570
+ for (sid, set_id), a in latest.items():
571
+ idea = SETS.get(set_id, {}).get("atoms", {})
572
+ for at, (g, m) in a["atoms"].items():
573
+ k = (sid, a["subject"], at)
574
+ cur = agg.setdefault(k, [0.0, 0.0, idea.get(at, ""), 0])
575
+ cur[0] += g
576
+ cur[1] += m
577
+ cur[3] += 1
578
+ for (sid, subj, at), (g, m, idea, n) in sorted(agg.items(), key=lambda kv: (kv[0][0], kv[1][0] / kv[1][1] if kv[1][1] else 0)):
579
+ w.writerow([names.get(sid, sid), subj, at, idea, g, m, round(100 * g / m) if m else 0, n])
580
+ elif kind == "feedback":
581
+ w.writerow(["feedback_id", "created", "by", "target", "set_id", "question_id", "session_id", "tags", "comment", "excerpt", "status", "parent_note"])
582
+ for f in sorted(STORE.feedback.values(), key=lambda x: x["created"]):
583
+ who = {"parent": "Parent", "visitor": "Visitor"}.get(f["by"]) or names.get(f["by"], f["by"])
584
+ if STORE.students.get(f["by"], {}).get("test"):
585
+ who += " (test)"
586
+ w.writerow([f["id"], f["created"], who, f["targetType"], f["setId"], f.get("questionId") or "", f.get("sessionId") or "",
587
+ ";".join(f["tags"]), f["text"], f.get("excerpt") or "", f["status"], f.get("note", "")])
588
+ elif kind == "chats":
589
+ w.writerow(["session_id", "student", "subject", "chapter", "mode", "time", "who", "confidence", "model", "effort", "routing_reason", "seconds", "cost_usd", "text"])
590
+ for s in sorted(STORE.chats.values(), key=lambda x: x["started"]):
591
+ ch = CHAPTERS.get(s["setId"], {})
592
+ for m in s["transcript"]:
593
+ w.writerow([s["id"], names.get(s["studentId"], s["studentId"]), ch.get("subject", ""), ch.get("chapter", ""),
594
+ s["mode"], m["t"], m["role"], m.get("confidence") or "", m.get("model") or "", m.get("effort") or "",
595
+ m.get("why") or "", m.get("seconds") or "", m.get("cost") if m.get("cost") is not None else "", m["text"]])
596
+ else:
597
+ raise HTTPException(404, "Unknown export.")
598
+ stamp = datetime.now().strftime("%Y-%m-%d")
599
+ return Response(buf.getvalue().encode("utf-8-sig"), media_type="text/csv",
600
+ headers={"Content-Disposition": f'attachment; filename="stepwise-{kind}-{stamp}.csv"'})
601
+
602
+
603
+ @app.get("/healthz")
604
+ def health() -> dict:
605
+ return {"ok": True}
606
+
607
+
608
+ @router.get("/status")
609
+ def status() -> dict:
610
+ return {"ok": True, "sets": len(SETS), "students": len(STORE.students), "attempts": len(STORE.attempts),
611
+ "chats": len(STORE.chats), "feedback": len(STORE.feedback), "tutor": TUTOR_ON,
612
+ "storage": "hf-dataset" if STORE.api else "local"}
613
+
614
+
615
+ @app.get("/s/{key}", include_in_schema=False)
616
+ def add_slash(key: str) -> RedirectResponse:
617
+ check_key(key)
618
+ return RedirectResponse(f"/s/{key}/", status_code=307)
619
+
620
+
621
+ @app.get("/", include_in_schema=False)
622
+ def root() -> HTMLResponse:
623
+ return HTMLResponse("<!doctype html><title>Not found</title><p>Not found.</p>", status_code=404)
624
+
625
+
626
+ app.include_router(router)
data/chapters/0610_ch02.json CHANGED
@@ -1 +1 @@
1
- {"id": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "text": "Status: model-generated, unreviewed by a subject teacher. Generated 6 Oct 2026.\n\n# 0610 Biology — Chapter 2: Organisation of the organism (syllabus 2.1 Cell structure and 2.2 Size of specimens)\n\nScope: syllabus section 2 of the 2026–2028 0610 syllabus. In the official numbering this is 2.1 Cell structure (Core statements 1–7, which include specialised cells and the levels of organisation; 2.1 has no Supplement statements) and 2.2 Size of specimens (Core statements 1–2; Supplement statement 3, converting between millimetres and micrometres). Students sit Extended, so the Supplement statement is in scope. Two border skills are included because Paper 6 attaches them to every magnification question: measuring a line on a figure, and the conventions of a biological drawing. Numbered paragraphs [P1]… are the anchors the knowledge atoms point to. Stage-1 pipeline text; see ATOMS_PLAN.md.\n\n## A. Why living things are made of cells\n\n[P1] The chemistry of life has to be contained. A cell is a tiny volume of watery **cytoplasm** wrapped in a **cell membrane**, so that the right substances can be kept at the right concentrations, the wrong ones kept out, and hundreds of reactions can run side by side under control. The **cell** is the basic unit of every living organism: some organisms are a single cell, and a human is about thirty million million of them. Everything else a cell contains answers one of a few needs of that contained chemistry: instructions, a way to build proteins, a supply of energy and, in plants, food and support.\n\n[P2] New cells are never assembled from scratch. **New cells are produced by division of existing cells**: one cell divides to form two, each of which can grow and divide again. Growth of a body, repair of a wound and the replacement of worn-out cells all depend on this. After division, the cells of a multicellular organism can become specialised for one job (section D).\n\n## B. The parts of animal and plant cells and what they do\n\n[P3] **Cell membrane.** The thin outer boundary of every cell. It is **partially permeable**: it controls which substances enter and leave the cell, letting some through and holding others back. In a plant cell the membrane lies just inside the cell wall and is usually pressed against it, so in a diagram it is the thin line on the inner side of the wall.\n\n[P4] **Cytoplasm** is the jelly-like contents of the cell inside the membrane, around the nucleus. Most of the cell's chemical reactions happen here, and the other structures are suspended in it. **Nucleus**: a large, usually round structure surrounded by its own membrane. It contains the genetic material, DNA arranged in **chromosomes**, which carries the instructions for making proteins and so **controls the activities of the cell**. (Avoid \"the brain of the cell\": examiners want \"contains DNA / genetic information\" or \"controls the cell's activities\".)\n\n[P5] **Mitochondria** (singular mitochondrion) are small rod- or sausage-shaped structures in the cytoplasm. They are the site of **aerobic respiration**, which **releases energy** from glucose. Energy cannot be made or produced; the mark scheme credits \"releases energy\", never \"produces energy\" or \"makes energy\". Cells that use a lot of energy have many mitochondria: muscle cells, sperm cells, and root hair cells, which use energy to take up mineral ions by active transport. **Ribosomes** are tiny structures, many thousands per cell, found free in the cytoplasm (and on internal membranes). They are the site of **protein synthesis**: they join amino acids in the order the instructions specify. Ribosomes are so small that they appear only in electron micrographs, as dots.\n\n[P6] A plant cell has everything listed so far, plus three structures that follow from the way a plant lives. A plant cannot move to find food, so it makes its own: **chloroplasts** are oval structures in the cytoplasm that contain the green pigment **chlorophyll**, which absorbs light, and they are the site of **photosynthesis**. A plant has no skeleton, so it is supported by its cells: a **cell wall** made of **cellulose** surrounds the membrane, giving the cell a fixed shape, supporting it and stopping it bursting when it takes in water. The wall is fully permeable; it does not control what enters, the membrane does. Finally, a **large permanent vacuole** filled with **cell sap** (water with dissolved sugars and salts) takes up most of the cell's volume. It stores substances, and when it is full it pushes the cytoplasm and membrane outwards against the wall, so the cell becomes firm (**turgid**). Many turgid cells pressing against each other hold up a non-woody plant.\n\n[P7] **Comparing plant and animal cells.** Both have a cell membrane, cytoplasm, a nucleus, mitochondria and ribosomes. Only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole containing cell sap; an animal cell may have small, temporary vacuoles but never a large permanent one, and it has no cell wall at all. A comparison earns marks only when it says which cell has the structure (\"a plant cell has a cell wall; an animal cell does not\"), not when it lists structures. Two traps: not every plant cell has chloroplasts (root hair cells are underground where no light reaches, and they have none), and every plant cell has ribosomes and mitochondria, because every living cell makes proteins and respires.\n\n## C. Bacterial cells\n\n[P8] A **bacterial cell** is much simpler and much smaller, typically 1–5 µm long. It has a **cell wall** (not made of cellulose), a **cell membrane**, **cytoplasm** and **ribosomes**. It has **no nucleus**: its genetic material is a single loop of **circular DNA** lying free in the cytoplasm. Many bacteria also contain **plasmids**, small extra rings of DNA that carry a few genes (for example a gene for resistance to an antibiotic); plasmids are used to carry genes into bacteria in genetic modification. A bacterial cell has no mitochondria and no chloroplasts. Some bacteria have a flagellum for movement, but it is not one of the syllabus structures.\n\n[P9] The functions are the same as in other cells: the circular DNA carries the instructions that control the cell, the ribosomes make proteins, the membrane controls what enters and leaves, the cytoplasm is where reactions happen, and the wall supports the cell and stops it bursting. Bacteria are **prokaryotes**: the absence of a nucleus is what puts them in their own kingdom. Bacteria do have DNA; saying they have none is a common and costly error.\n\n[P10] **Comparing all three.** Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA. A cell wall is found in plant cells and bacterial cells (made of different substances) but not in animal cells. A nucleus and mitochondria are found in plant and animal cells but not in bacterial cells. Chloroplasts and a large permanent vacuole are found only in plant cells. Plasmids and circular DNA free in the cytoplasm are found only in bacterial cells. When a question asks for **features** of prokaryotes, give structures they have (cell wall, circular DNA, plasmids); \"no nucleus\" is an absence, not a feature, and plasmids are not present in every bacterium, so \"circular DNA free in the cytoplasm\" is the safer answer when the question says \"all prokaryotes\".\n\n[P11] **Identifying structures in diagrams and photomicrographs.** The nucleus is the largest structure inside the cytoplasm, round or oval and often darker. Chloroplasts are green ovals, several per cell, lying in the thin layer of cytoplasm around the vacuole. Mitochondria are much smaller than chloroplasts, rod-shaped, with a folded inner membrane visible in electron micrographs. The vacuole is the large clear central space in a plant cell. The cell wall is the outermost layer of a plant cell, thicker than the membrane, and in a bacterium it is the outer boundary with the membrane just inside it. A loop drawn free in the cytoplasm is the circular DNA; the small separate rings are plasmids. Read the label line carefully: a line ending on the thin boundary inside the wall is pointing at the membrane, not the wall.\n\n## D. Specialised cells\n\n[P12] In a multicellular organism, cells produced by division become **specialised**: each develops a shape and contents suited to one function, and so works better at that function than an all-purpose cell could. The syllabus names six examples and their functions, which must be known exactly.\n\n[P13] **Ciliated cells** line the trachea and bronchi. Their function is the **movement of mucus** in the trachea and bronchi. Their surface carries tiny hair-like **cilia** that beat in waves, sweeping mucus, with the dust and pathogens trapped in it, up and away from the lungs. The cilia move the mucus; they do not make it (goblet cells secrete the mucus), and they do not move or kill bacteria directly. **Root hair cells** grow from the outer layer of a root. Their function is **absorption** of water and mineral ions from the soil; the long thin extension gives a large surface area for this.\n\n[P14] **Palisade mesophyll cells** are tall, column-shaped cells packed with chloroplasts in the upper part of a leaf. Their function is **photosynthesis**. **Neurones** (nerve cells) are very long, thin cells. Their function is the **conduction of electrical impulses** from one part of the body to another.\n\n[P15] **Red blood cells** carry haemoglobin, which combines with oxygen. Their function is the **transport of oxygen**. They are small biconcave discs with no nucleus when mature, which leaves more room for haemoglobin. **Sperm cells and egg cells** are the **gametes**, and their function is **reproduction**: a sperm swims to the egg and their nuclei fuse at fertilisation. The detailed adaptations of these cells belong to later chapters (gas exchange, transport, coordination, reproduction), but the pattern for any \"explain how this cell is adapted\" question is always the same: name a feature, then say how it helps the function (feature alone scores nothing).\n\n## E. Levels of organisation\n\n[P16] Specialised cells cannot work alone, so they are grouped. A **cell** is the basic unit of an organism. A **tissue** is a group of cells with similar structures, working together to perform a shared function: palisade mesophyll in a leaf, muscle tissue, xylem. An **organ** is a structure made of a group of tissues working together to perform specific functions: a leaf (epidermis, palisade mesophyll, spongy mesophyll, xylem and phloem together carry out photosynthesis), the stomach, the heart, the brain. An **organ system** is a group of organs with related functions working together to perform body functions: the digestive system (mouth, oesophagus, stomach, intestines, liver, pancreas), the circulatory system, the nervous system. An **organism** is the whole living thing, made of organ systems working together.\n\n[P17] Two errors cost marks. An organ is made of **tissues**, not simply of cells; \"a group of cells\" is the definition of a tissue. And a cell structure is not a level of organisation: a chloroplast is part of a cell, not a tissue. To place a named structure, ask what it is made of: a neurone is one cell; nervous tissue is many similar cells; the brain is several tissues, so an organ; the brain with the spinal cord and nerves is the nervous system.\n\n## F. Size: units\n\n[P18] Cells are far smaller than a millimetre, so biologists use the **micrometre**, symbol **µm**: one thousandth of a millimetre. **1 mm = 1000 µm.** To change millimetres to micrometres, multiply by 1000; to change micrometres to millimetres, divide by 1000. Check the direction by sense: the number of micrometres is always the bigger number, because each micrometre is so small. So 0.07 mm = 70 µm, 0.00075 mm = 0.75 µm, and 1.276 µm = 0.001276 mm. Other conversions met in calculations are 1 cm = 10 mm and 1 m = 1000 mm. A rough sense of scale helps catch slips: bacteria 1–5 µm, a red blood cell about 7–8 µm, most animal cells 10–30 µm, plant cells 20–100 µm, a human egg about 0.1 mm (100 µm).\n\n## G. Magnification\n\n[P19] A drawing, photograph or micrograph is a scaled copy of the specimen, so every length on it is the real length multiplied by the same factor. That factor is the **magnification**:\n\n**magnification = image size ÷ actual size**\n\nImage size is the length measured on the drawing or photograph; actual size is the real length of the specimen. Both must be in the **same unit** before dividing, because the units must cancel: **magnification has no unit**. It is written as ×400 or as 400; writing \"400 mm\" loses the mark.\n\n[P20] The formula rearranges to find either length: **actual size = image size ÷ magnification**, and **image size = actual size × magnification**. A useful check: when the magnification is greater than 1, the image is bigger than the specimen, so the actual size must come out smaller than the image size. If it comes out bigger, the formula has been used the wrong way round.\n\n[P21] **The method that avoids unit errors.** (1) Write the formula. (2) Convert both lengths to millimetres (measure images in mm; change µm to mm by dividing by 1000). (3) Substitute and calculate. (4) Convert the answer to the unit the question asks for, and add that unit (none for a magnification). Worked examples: a drawing of a cheek cell is 72 mm wide and the cell is 0.06 mm wide, so magnification = 72 ÷ 0.06 = ×1200. A photomicrograph at ×600 shows a cell 42 mm long, so actual size = 42 ÷ 600 = 0.07 mm = 70 µm. A bacterium 3 µm long (0.003 mm) magnified ×10 000 has an image 0.003 × 10 000 = 30 mm long.\n\n[P22] **Scale bars.** Some micrographs give a scale bar instead of a magnification: a line labelled with the actual length it represents. The bar is itself an image and its label is its actual size, so magnification = measured length of bar ÷ label value (in the same unit). If a bar labelled 50 µm measures 20 mm, magnification = 20 ÷ 0.05 = ×400; a cell measuring 64 mm in the same image is 64 ÷ 400 = 0.16 mm = 160 µm long. A shortcut gives the same answer: lengths in one image are in proportion, so 64 ÷ 20 × 50 µm = 160 µm.\n\n[P23] **Magnification less than 1.** Photographs of whole organisms, fruits or leaves are often smaller than the real thing, with magnifications such as ×0.3 or ×0.6. The same formula applies: if a photograph at ×0.25 shows a lizard 85 mm long, the actual length is 85 ÷ 0.25 = 340 mm. Here the actual size is larger than the image, which is the correct sense check for a magnification below 1. Multiplying 85 by 0.25 (21 mm) is the inverted formula.\n\n## H. Measuring and rounding: the Paper 6 routine\n\n[P24] Every Alternative to Practical paper in 2023–25 but one asked candidates to measure a line drawn across a photograph and use the formula: usually to find the actual size from a printed magnification, sometimes to find the magnification from a stated actual size. Measure with a ruler from one end of the line to the other, in **millimetres**, to the nearest whole millimetre, and write the unit. Measuring in centimetres and then writing mm (6.2 for 62 mm) is a frequent error. Then substitute and keep the full calculator value until the final step.\n\n[P25] **Significant figures and decimal places.** The question always states the precision: \"to two significant figures\", \"to three significant figures\", \"to one decimal place\", \"as a whole number\". Significant figures count from the first non-zero digit; decimal places count digits after the decimal point. For 59 mm at ×1.7: 59 ÷ 1.7 = 34.705… mm, which is 35 mm to two significant figures, 34.7 mm to three significant figures, and 34.7 mm to one decimal place. A value of 40.73 mm to two significant figures is 41 mm; writing 41.0 gives three significant figures and loses the rounding mark. A small value such as 0.019 mm has two significant figures, because the leading zeros do not count. Give the unit with an actual size; give none with a magnification.\n\n[P26] **Average size from a count.** When several identical cells lie end to end across a known distance, the average size of one cell is the distance divided by the number of cells. If 8 cells fit exactly across a field of view 1.2 mm wide, each is 1.2 ÷ 8 = 0.15 mm = 150 µm wide.\n\n[P27] **Biological drawings (border skill).** The magnification question usually follows a drawing question, marked for: a large drawing using most of the space; clear, continuous single lines made with a sharp pencil; no shading or colouring; correct proportions; and the detail actually visible in the specimen. Label lines are ruled and touch the structure they label. The magnification of a drawing is found with the same formula: length on the drawing ÷ actual length.\n\n## I. Bridges to other chapters\n\n[P28] This chapter supplies the vocabulary used everywhere else. Cell membrane and cell wall return in diffusion and osmosis (turgid, flaccid and plasmolysed cells; why a red blood cell bursts in water but a plant cell does not, because only the plant cell has a wall). Chloroplasts and palisade cells return in photosynthesis and leaf structure; mitochondria in respiration; ribosomes and the nucleus in protein synthesis; root hair cells in transport in plants; ciliated cells in gas exchange and defence against disease; neurones in coordination; red blood cells in transport in animals; gametes in reproduction; plasmids in genetic modification and biotechnology; the prokaryote kingdom in classification. Magnification and unit conversion return in any question with a photomicrograph.\n\n## Coverage matrix\n\n| Syllabus id | Statement (abridged, official) | Tier | Paragraphs |\n|---|---|---|---|\n| 2.1.1 | Describe and compare the structure of a plant cell with an animal cell: cell wall, cell membrane, nucleus, cytoplasm, chloroplasts, ribosomes, mitochondria, vacuoles | Core | P3, P4, P5, P6, P7 |\n| 2.1.2 | Describe the structure of a bacterial cell: cell wall, cell membrane, cytoplasm, ribosomes, circular DNA, plasmids | Core | P8, P10 |\n| 2.1.3 | Identify the structures in 2.1.1 and 2.1.2 in diagrams and images of plant, animal and bacterial cells | Core | P3, P11 |\n| 2.1.4 | Describe the functions of the structures in 2.1.1 and 2.1.2 in plant, animal and bacterial cells | Core | P3, P4, P5, P6, P8, P9 |\n| 2.1.5 | State that new cells are produced by division of existing cells | Core | P2 |\n| 2.1.6 | State that specialised cells have specific functions: ciliated cells, root hair cells, palisade mesophyll cells, neurones, red blood cells, sperm and egg cells | Core | P12, P13, P14, P15 |\n| 2.1.7 | Describe the meaning of the terms cell, tissue, organ, organ system and organism, as illustrated by examples in the syllabus | Core | P1, P16, P17 |\n| 2.2.1 | State and use the formula magnification = image size ÷ actual size | Core | P19, P20, P22, P23 |\n| 2.2.2 | Calculate magnification and size of biological specimens using millimetres as units | Core | P20, P21, P23, P24, P25, P26 |\n| 2.2.3 | Convert measurements between millimetres (mm) and micrometres (µm) | Supplement | P18, P21, P22 |\n| — border (practical skills) | Make clear line drawings of biological specimens, calculating the magnification or actual size; take readings with appropriate precision | — | P24, P25, P27 |\n| — border (mathematical requirements) | Convert between units including µm, mm, cm and m; significant figures and decimal places | — | P18, P25 |\n| — bridge, no statement | Why plant cells have walls, chloroplasts and vacuoles; mitochondria numbers and energy demand; feature-then-function pattern for adaptations; links to later chapters | — | P5, P6, P15, P28 |\n\nGaps: none of 2.1.1–2.1.7 or 2.2.1–2.2.3 lacks a paragraph. Scope notes: the 2026–2028 syllabus asks only that students *state* the function of each specialised cell (2.1.6); explaining their adaptations is examined in later sections (8, 9, 11, 13, 16), so P15 gives the answer pattern only. The syllabus does not ask for the material of the bacterial cell wall. Drawing is a practical skill rather than a section 2 statement and is kept to one paragraph.\n", "atoms": [{"id": "0610-2-A01", "type": "concept", "statement": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled.", "why": "Reactions need the right substances at the right concentrations.", "prerequisites": [], "tier": "core", "paragraphs": "P1"}, {"id": "0610-2-A02", "type": "fact", "statement": "New cells are produced by division of existing cells.", "why": "Growth, repair and replacement all depend on division.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P2"}, {"id": "0610-2-A03", "type": "fact", "statement": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "why": "It is the barrier that keeps the cell's chemistry separate.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P3"}, {"id": "0610-2-A04", "type": "fact", "statement": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it.", "why": "The reactions need a watery medium.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P4"}, {"id": "0610-2-A05", "type": "fact", "statement": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "why": "DNA carries the instructions for making proteins.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P4"}, {"id": "0610-2-A06", "type": "fact", "statement": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "why": "Energy is released, never made or produced.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A07", "type": "fact", "statement": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "why": "Every cell makes proteins, including its enzymes.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A08", "type": "fact", "statement": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "why": "A plant has no skeleton.", "prerequisites": ["0610-2-A03"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A09", "type": "fact", "statement": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "why": "A plant makes its own food.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A10", "type": "fact", "statement": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "why": "Turgid cells support a non-woody plant.", "prerequisites": ["0610-2-A08"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A11", "type": "concept", "statement": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "why": "Plant extras follow from making food and needing support.", "prerequisites": ["0610-2-A03", "0610-2-A04", "0610-2-A05", "0610-2-A06", "0610-2-A07", "0610-2-A08", "0610-2-A09", "0610-2-A10"], "tier": "core", "paragraphs": "P7"}, {"id": "0610-2-A12", "type": "relationship", "statement": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton.", "why": "Each plant-only structure answers a need of the plant's way of life.", "prerequisites": ["0610-2-A08", "0610-2-A09", "0610-2-A10"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A13", "type": "concept", "statement": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "why": "Chloroplasts are only useful where light reaches.", "prerequisites": ["0610-2-A09"], "tier": "core", "paragraphs": "P7"}, {"id": "0610-2-A14", "type": "relationship", "statement": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria.", "why": "More respiration releases more energy.", "prerequisites": ["0610-2-A06"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A15", "type": "representation", "statement": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "why": "Identification precedes every function question.", "prerequisites": ["0610-2-A11"], "tier": "core", "paragraphs": "P11"}, {"id": "0610-2-A16", "type": "technique", "statement": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall.", "why": "Membrane and wall are mislabelled more than any other pair.", "prerequisites": ["0610-2-A15"], "tier": "core", "paragraphs": "P3; P11"}, {"id": "0610-2-A17", "type": "fact", "statement": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "why": "This is the syllabus list for 2.1.2.", "prerequisites": ["0610-2-A03", "0610-2-A04", "0610-2-A07"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A18", "type": "fact", "statement": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "why": "Prokaryotes lack membrane-bound organelles.", "prerequisites": ["0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A19", "type": "fact", "statement": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "why": "Extra genes can be passed between bacteria.", "prerequisites": ["0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A20", "type": "fact", "statement": "The bacterial cell wall is not made of cellulose.", "why": "Wall material differs between kingdoms.", "prerequisites": ["0610-2-A08", "0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A21", "type": "fact", "statement": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting.", "why": "Functions are the same in every kind of cell.", "prerequisites": ["0610-2-A17", "0610-2-A18"], "tier": "core", "paragraphs": "P9"}, {"id": "0610-2-A22", "type": "concept", "statement": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "why": "These are the minimum for contained, controlled chemistry.", "prerequisites": ["0610-2-A11", "0610-2-A17"], "tier": "core", "paragraphs": "P10"}, {"id": "0610-2-A23", "type": "concept", "statement": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "why": "The three-way grid is the core of every comparison item.", "prerequisites": ["0610-2-A11", "0610-2-A18"], "tier": "core", "paragraphs": "P10"}, {"id": "0610-2-A24", "type": "procedure", "statement": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "why": "Lists of structures earn no comparison marks.", "prerequisites": ["0610-2-A23"], "tier": "core", "paragraphs": "P7; P10"}, {"id": "0610-2-A25", "type": "fact", "statement": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA.", "why": "Absences are not features; plasmids are not in every bacterium.", "prerequisites": ["0610-2-A18"], "tier": "core", "paragraphs": "P9; P10"}, {"id": "0610-2-A26", "type": "representation", "statement": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside.", "why": "Size and the free DNA give it away.", "prerequisites": ["0610-2-A17", "0610-2-A18"], "tier": "core", "paragraphs": "P8; P11"}, {"id": "0610-2-A27", "type": "concept", "statement": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "why": "Division of labour makes each job efficient.", "prerequisites": ["0610-2-A02"], "tier": "core", "paragraphs": "P12"}, {"id": "0610-2-A28", "type": "fact", "statement": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "why": "Clears the airways.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P13"}, {"id": "0610-2-A29", "type": "fact", "statement": "Root hair cells absorb water and mineral ions from the soil.", "why": "Long extension gives a large surface area.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P13"}, {"id": "0610-2-A30", "type": "fact", "statement": "Palisade mesophyll cells carry out photosynthesis.", "why": "Packed with chloroplasts near the upper surface.", "prerequisites": ["0610-2-A27", "0610-2-A09"], "tier": "core", "paragraphs": "P14"}, {"id": "0610-2-A31", "type": "fact", "statement": "Neurones conduct electrical impulses.", "why": "Long thin cells carry impulses over distance.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P14"}, {"id": "0610-2-A32", "type": "fact", "statement": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "why": "No nucleus when mature leaves room for haemoglobin.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A33", "type": "fact", "statement": "Sperm and egg cells (gametes) are specialised for reproduction.", "why": "Their nuclei fuse at fertilisation.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A34", "type": "procedure", "statement": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing).", "why": "Mark schemes pair feature with purpose.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A35", "type": "fact", "statement": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "why": "Specialised cells work in groups.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A36", "type": "fact", "statement": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "why": "Several tissues combine for one job.", "prerequisites": ["0610-2-A35"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A37", "type": "fact", "statement": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "why": "Organs cooperate.", "prerequisites": ["0610-2-A36"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A38", "type": "fact", "statement": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together.", "why": "Top of the hierarchy.", "prerequisites": ["0610-2-A37"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A39", "type": "representation", "statement": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "why": "The hierarchy is a nested list.", "prerequisites": ["0610-2-A35", "0610-2-A36", "0610-2-A37", "0610-2-A38"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A40", "type": "procedure", "statement": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level.", "why": "Classification by composition.", "prerequisites": ["0610-2-A39"], "tier": "core", "paragraphs": "P17"}, {"id": "0610-2-A41", "type": "fact", "statement": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "why": "A micrometre is one thousandth of a millimetre.", "prerequisites": [], "tier": "supplement", "paragraphs": "P18"}, {"id": "0610-2-A42", "type": "fact", "statement": "1 cm = 10 mm and 1 m = 1000 mm.", "why": "Images are measured in mm; cm readings must be converted.", "prerequisites": [], "tier": "core", "paragraphs": "P18"}, {"id": "0610-2-A43", "type": "fact", "statement": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm.", "why": "A size sense check catches power-of-ten slips.", "prerequisites": ["0610-2-A41"], "tier": "core", "paragraphs": "P18"}, {"id": "0610-2-A44", "type": "fact", "statement": "magnification = image size / actual size.", "why": "An image is the specimen scaled by one factor.", "prerequisites": [], "tier": "core", "paragraphs": "P19"}, {"id": "0610-2-A45", "type": "concept", "statement": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "why": "The units cancel.", "prerequisites": ["0610-2-A44"], "tier": "core", "paragraphs": "P19"}, {"id": "0610-2-A46", "type": "procedure", "statement": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "why": "Find whichever length is missing.", "prerequisites": ["0610-2-A44"], "tier": "core", "paragraphs": "P20"}, {"id": "0610-2-A47", "type": "procedure", "statement": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "why": "Mixed units give answers out by 1000.", "prerequisites": ["0610-2-A41", "0610-2-A46"], "tier": "supplement", "paragraphs": "P21"}, {"id": "0610-2-A48", "type": "concept", "statement": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size.", "why": "Photographs of whole organisms are reduced.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P23"}, {"id": "0610-2-A49", "type": "procedure", "statement": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check.", "why": "Catches the inverted formula.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P20; P23"}, {"id": "0610-2-A50", "type": "procedure", "statement": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "why": "MP1 is the measurement to within 1 mm.", "prerequisites": ["0610-2-A42"], "tier": "core", "paragraphs": "P24"}, {"id": "0610-2-A51", "type": "procedure", "statement": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "why": "The bar is an image whose actual size is printed.", "prerequisites": ["0610-2-A44", "0610-2-A41"], "tier": "supplement", "paragraphs": "P22"}, {"id": "0610-2-A52", "type": "procedure", "statement": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step.", "why": "MP3 is the rounding mark.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P25"}, {"id": "0610-2-A53", "type": "procedure", "statement": "Average size of one cell = distance spanned / number of identical cells across it.", "why": "Cells end to end share the distance.", "prerequisites": ["0610-2-A41"], "tier": "core", "paragraphs": "P26"}, {"id": "0610-2-A54", "type": "technique", "statement": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "why": "These are the four drawing marks.", "prerequisites": [], "tier": "core", "paragraphs": "P27"}, {"id": "0610-2-A55", "type": "procedure", "statement": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm.", "why": "Leading zeros hide the power of ten.", "prerequisites": ["0610-2-A41"], "tier": "supplement", "paragraphs": "P18"}], "misconceptions": [{"id": "0610-2-M01", "wrong": "animal cells have a cell wall.", "correct": "animal cells have a cell membrane but no cell wall; walls are found in plant and bacterial cells.", "atoms": ["0610-2-A11", "0610-2-A23"]}, {"id": "0610-2-M02", "wrong": "the cell wall controls what enters and leaves the cell, or protects it as a barrier.", "correct": "the cell membrane controls entry and exit; the cell wall is fully permeable and gives support and shape.", "atoms": ["0610-2-A03", "0610-2-A08", "0610-2-A16"]}, {"id": "0610-2-M03", "wrong": "bacteria have no DNA (or keep it in a nucleus).", "correct": "bacteria have DNA as a circular loop free in the cytoplasm, often with plasmids; they have no nucleus.", "atoms": ["0610-2-A18", "0610-2-A19"]}, {"id": "0610-2-M04", "wrong": "mitochondria produce or make energy.", "correct": "mitochondria are the site of aerobic respiration, which releases energy from glucose.", "atoms": ["0610-2-A06"]}, {"id": "0610-2-M05", "wrong": "every plant cell has chloroplasts.", "correct": "only plant cells that receive light have chloroplasts; root hair cells have none.", "atoms": ["0610-2-A13"]}, {"id": "0610-2-M06", "wrong": "ribosomes are found only in plant and animal cells (not in bacteria), or are missing from some plant cells.", "correct": "every cell has ribosomes, because every cell makes proteins.", "atoms": ["0610-2-A07", "0610-2-A22"]}, {"id": "0610-2-M07", "wrong": "an organ is a group of cells, or a cell structure (such as a chloroplast) is a tissue.", "correct": "a tissue is a group of similar cells; an organ is a group of tissues; a chloroplast is part of a cell.", "atoms": ["0610-2-A35", "0610-2-A36", "0610-2-A40"]}, {"id": "0610-2-M08", "wrong": "ciliated cells make mucus, or cilia move or kill bacteria directly.", "correct": "goblet cells make mucus; cilia beat to move the mucus, with trapped particles and pathogens, up and out of the airways.", "atoms": ["0610-2-A28"]}, {"id": "0610-2-M09", "wrong": "micrometres are changed to millimetres by multiplying by 1000 (2 micrometres = 2000 mm).", "correct": "1 mm = 1000 micrometres, so micrometres to mm divide by 1000 (2 micrometres = 0.002 mm).", "atoms": ["0610-2-A41", "0610-2-A55"]}, {"id": "0610-2-M10", "wrong": "actual size is found by multiplying the image size by the magnification (or the formula is used upside down).", "correct": "actual size = image size / magnification; with magnification above 1 the actual size is smaller than the image.", "atoms": ["0610-2-A46", "0610-2-A48", "0610-2-A49"]}, {"id": "0610-2-M11", "wrong": "a magnification has a unit (for example 400 mm).", "correct": "magnification is a ratio of two lengths in the same unit, so it has no unit (x400).", "atoms": ["0610-2-A45"]}, {"id": "0610-2-M12", "wrong": "two lengths can be divided straight away even when one is in mm and the other in micrometres or cm.", "correct": "convert both lengths to the same unit (mm) before dividing.", "atoms": ["0610-2-A47", "0610-2-A42"]}, {"id": "0610-2-M13", "wrong": "significant figures and decimal places are the same thing (41.0 is 41 to two significant figures).", "correct": "s.f. count from the first non-zero digit, d.p. count digits after the point; 40.73 is 41 to 2 s.f. and 40.7 to 1 d.p.", "atoms": ["0610-2-A52"]}, {"id": "0610-2-M14", "wrong": "features of prokaryotes can be given as absences ('no nucleus', 'no membrane-bound organelles'), and plasmids are a feature of all prokaryotes.", "correct": "give structures prokaryotes have: cell wall, cell membrane, cytoplasm, ribosomes, circular DNA.", "atoms": ["0610-2-A25"]}]}
 
1
+ {"id": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "text": "Status: model-generated, unreviewed by a subject teacher. Generated 6 Oct 2026.\n\n# 0610 Biology — Chapter 2: Organisation of the organism (syllabus 2.1 Cell structure and 2.2 Size of specimens)\n\nScope: syllabus section 2 of the 2026–2028 0610 syllabus. In the official numbering this is 2.1 Cell structure (Core statements 1–7, which include specialised cells and the levels of organisation; 2.1 has no Supplement statements) and 2.2 Size of specimens (Core statements 1–2; Supplement statement 3, converting between millimetres and micrometres). Students sit Extended, so the Supplement statement is in scope. Two border skills are included because Paper 6 attaches them to every magnification question: measuring a line on a figure, and the conventions of a biological drawing. Numbered paragraphs [P1]… are the anchors the knowledge atoms point to. Stage-1 pipeline text; see ATOMS_PLAN.md.\n\n## A. Why living things are made of cells\n\n[P1] The chemistry of life has to be contained. A cell is a tiny volume of watery **cytoplasm** wrapped in a **cell membrane**, so that the right substances can be kept at the right concentrations, the wrong ones kept out, and hundreds of reactions can run side by side under control. The **cell** is the basic unit of every living organism: some organisms are a single cell, and a human is about thirty million million of them. Everything else a cell contains answers one of a few needs of that contained chemistry: instructions, a way to build proteins, a supply of energy and, in plants, food and support.\n\n[P2] New cells are never assembled from scratch. **New cells are produced by division of existing cells**: one cell divides to form two, each of which can grow and divide again. Growth of a body, repair of a wound and the replacement of worn-out cells all depend on this. After division, the cells of a multicellular organism can become specialised for one job (section D).\n\n## B. The parts of animal and plant cells and what they do\n\n[P3] **Cell membrane.** The thin outer boundary of every cell. It is **partially permeable**: it controls which substances enter and leave the cell, letting some through and holding others back. In a plant cell the membrane lies just inside the cell wall and is usually pressed against it, so in a diagram it is the thin line on the inner side of the wall.\n\n[P4] **Cytoplasm** is the jelly-like contents of the cell inside the membrane, around the nucleus. Most of the cell's chemical reactions happen here, and the other structures are suspended in it. **Nucleus**: a large, usually round structure surrounded by its own membrane. It contains the genetic material, DNA arranged in **chromosomes**, which carries the instructions for making proteins and so **controls the activities of the cell**. (Avoid \"the brain of the cell\": examiners want \"contains DNA / genetic information\" or \"controls the cell's activities\".)\n\n[P5] **Mitochondria** (singular mitochondrion) are small rod- or sausage-shaped structures in the cytoplasm. They are the site of **aerobic respiration**, which **releases energy** from glucose. Energy cannot be made or produced; the mark scheme credits \"releases energy\", never \"produces energy\" or \"makes energy\". Cells that use a lot of energy have many mitochondria: muscle cells, sperm cells, and root hair cells, which use energy to take up mineral ions by active transport. **Ribosomes** are tiny structures, many thousands per cell, found free in the cytoplasm (and on internal membranes). They are the site of **protein synthesis**: they join amino acids in the order the instructions specify. Ribosomes are so small that they appear only in electron micrographs, as dots.\n\n[P6] A plant cell has everything listed so far, plus three structures that follow from the way a plant lives. A plant cannot move to find food, so it makes its own: **chloroplasts** are oval structures in the cytoplasm that contain the green pigment **chlorophyll**, which absorbs light, and they are the site of **photosynthesis**. A plant has no skeleton, so it is supported by its cells: a **cell wall** made of **cellulose** surrounds the membrane, giving the cell a fixed shape, supporting it and stopping it bursting when it takes in water. The wall is fully permeable; it does not control what enters, the membrane does. Finally, a **large permanent vacuole** filled with **cell sap** (water with dissolved sugars and salts) takes up most of the cell's volume. It stores substances, and when it is full it pushes the cytoplasm and membrane outwards against the wall, so the cell becomes firm (**turgid**). Many turgid cells pressing against each other hold up a non-woody plant.\n\n[P7] **Comparing plant and animal cells.** Both have a cell membrane, cytoplasm, a nucleus, mitochondria and ribosomes. Only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole containing cell sap; an animal cell may have small, temporary vacuoles but never a large permanent one, and it has no cell wall at all. A comparison earns marks only when it says which cell has the structure (\"a plant cell has a cell wall; an animal cell does not\"), not when it lists structures. Two traps: not every plant cell has chloroplasts (root hair cells are underground where no light reaches, and they have none), and every plant cell has ribosomes and mitochondria, because every living cell makes proteins and respires.\n\n## C. Bacterial cells\n\n[P8] A **bacterial cell** is much simpler and much smaller, typically 1–5 µm long. It has a **cell wall** (not made of cellulose), a **cell membrane**, **cytoplasm** and **ribosomes**. It has **no nucleus**: its genetic material is a single loop of **circular DNA** lying free in the cytoplasm. Many bacteria also contain **plasmids**, small extra rings of DNA that carry a few genes (for example a gene for resistance to an antibiotic); plasmids are used to carry genes into bacteria in genetic modification. A bacterial cell has no mitochondria and no chloroplasts. Some bacteria have a flagellum for movement, but it is not one of the syllabus structures.\n\n[P9] The functions are the same as in other cells: the circular DNA carries the instructions that control the cell, the ribosomes make proteins, the membrane controls what enters and leaves, the cytoplasm is where reactions happen, and the wall supports the cell and stops it bursting. Bacteria are **prokaryotes**: the absence of a nucleus is what puts them in their own kingdom. Bacteria do have DNA; saying they have none is a common and costly error.\n\n[P10] **Comparing all three.** Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA. A cell wall is found in plant cells and bacterial cells (made of different substances) but not in animal cells. A nucleus and mitochondria are found in plant and animal cells but not in bacterial cells. Chloroplasts and a large permanent vacuole are found only in plant cells. Plasmids and circular DNA free in the cytoplasm are found only in bacterial cells. When a question asks for **features** of prokaryotes, give structures they have (cell wall, cell membrane, cytoplasm, ribosomes, circular DNA); \"no nucleus\" is an absence, not a feature, and plasmids are not present in every bacterium, so \"circular DNA free in the cytoplasm\" is the safer answer when the question says \"all prokaryotes\".\n\n[P11] **Identifying structures in diagrams and photomicrographs.** The nucleus is the largest structure inside the cytoplasm, round or oval and often darker. Chloroplasts are green ovals, several per cell, lying in the thin layer of cytoplasm around the vacuole. Mitochondria are much smaller than chloroplasts, rod-shaped, with a folded inner membrane visible in electron micrographs. The vacuole is the large clear central space in a plant cell. The cell wall is the outermost layer of a plant cell, thicker than the membrane, and in a bacterium it is the outer boundary with the membrane just inside it. A loop drawn free in the cytoplasm is the circular DNA; the small separate rings are plasmids. Read the label line carefully: a line ending on the thin boundary inside the wall is pointing at the membrane, not the wall.\n\n## D. Specialised cells\n\n[P12] In a multicellular organism, cells produced by division become **specialised**: each develops a shape and contents suited to one function, and so works better at that function than an all-purpose cell could. The syllabus names six examples and their functions, which must be known exactly.\n\n[P13] **Ciliated cells** line the trachea and bronchi. Their function is the **movement of mucus** in the trachea and bronchi. Their surface carries tiny hair-like **cilia** that beat in waves, sweeping mucus, with the dust and pathogens trapped in it, up and away from the lungs. The cilia move the mucus; they do not make it (goblet cells secrete the mucus), and they do not move or kill bacteria directly. **Root hair cells** grow from the outer layer of a root. Their function is **absorption** of water and mineral ions from the soil; the long thin extension gives a large surface area for this.\n\n[P14] **Palisade mesophyll cells** are tall, column-shaped cells packed with chloroplasts in the upper part of a leaf. Their function is **photosynthesis**. **Neurones** (nerve cells) are very long, thin cells. Their function is the **conduction of electrical impulses** from one part of the body to another.\n\n[P15] **Red blood cells** carry haemoglobin, which combines with oxygen. Their function is the **transport of oxygen**. They are small biconcave discs with no nucleus when mature, which leaves more room for haemoglobin. **Sperm cells and egg cells** are the **gametes**, and their function is **reproduction**: a sperm swims to the egg and their nuclei fuse at fertilisation. The detailed adaptations of these cells belong to later chapters (gas exchange, transport, coordination, reproduction), but the pattern for any \"explain how this cell is adapted\" question is always the same: name a feature, then say how it helps the function (feature alone scores nothing).\n\n## E. Levels of organisation\n\n[P16] Specialised cells cannot work alone, so they are grouped. A **cell** is the basic unit of an organism. A **tissue** is a group of cells with similar structures, working together to perform a shared function: palisade mesophyll in a leaf, muscle tissue, xylem. An **organ** is a structure made of a group of tissues working together to perform specific functions: a leaf (epidermis, palisade mesophyll, spongy mesophyll, xylem and phloem together carry out photosynthesis), the stomach, the heart, the brain. An **organ system** is a group of organs with related functions working together to perform body functions: the digestive system (mouth, oesophagus, stomach, intestines, liver, pancreas), the circulatory system, the nervous system. An **organism** is the whole living thing, made of organ systems working together.\n\n[P17] Two errors cost marks. An organ is made of **tissues**, not simply of cells; \"a group of cells\" is the definition of a tissue. And a cell structure is not a level of organisation: a chloroplast is part of a cell, not a tissue. To place a named structure, ask what it is made of: a neurone is one cell; nervous tissue is many similar cells; the brain is several tissues, so an organ; the brain with the spinal cord and nerves is the nervous system.\n\n## F. Size: units\n\n[P18] Cells are far smaller than a millimetre, so biologists use the **micrometre**, symbol **µm**: one thousandth of a millimetre. **1 mm = 1000 µm.** To change millimetres to micrometres, multiply by 1000; to change micrometres to millimetres, divide by 1000. Check the direction by sense: the number of micrometres is always the bigger number, because each micrometre is so small. So 0.07 mm = 70 µm, 0.00075 mm = 0.75 µm, and 1.276 µm = 0.001276 mm. Other conversions met in calculations are 1 cm = 10 mm and 1 m = 1000 mm. A rough sense of scale helps catch slips: bacteria 1–5 µm, a red blood cell about 7–8 µm, most animal cells 10–30 µm, plant cells 20–100 µm, a human egg about 0.1 mm (100 µm).\n\n## G. Magnification\n\n[P19] A drawing, photograph or micrograph is a scaled copy of the specimen, so every length on it is the real length multiplied by the same factor. That factor is the **magnification**:\n\n**magnification = image size ÷ actual size**\n\nImage size is the length measured on the drawing or photograph; actual size is the real length of the specimen. Both must be in the **same unit** before dividing, because the units must cancel: **magnification has no unit**. It is written as ×400 or as 400; writing \"400 mm\" loses the mark.\n\n[P20] The formula rearranges to find either length: **actual size = image size ÷ magnification**, and **image size = actual size × magnification**. A useful check: when the magnification is greater than 1, the image is bigger than the specimen, so the actual size must come out smaller than the image size. If it comes out bigger, the formula has been used the wrong way round.\n\n[P21] **The method that avoids unit errors.** (1) Write the formula. (2) Convert both lengths to millimetres (measure images in mm; change µm to mm by dividing by 1000). (3) Substitute and calculate. (4) Convert the answer to the unit the question asks for, and add that unit (none for a magnification). Worked examples: a drawing of a cheek cell is 72 mm wide and the cell is 0.06 mm wide, so magnification = 72 ÷ 0.06 = ×1200. A photomicrograph at ×600 shows a cell 42 mm long, so actual size = 42 ÷ 600 = 0.07 mm = 70 µm. A bacterium 3 µm long (0.003 mm) magnified ×10 000 has an image 0.003 × 10 000 = 30 mm long.\n\n[P22] **Scale bars.** Some micrographs give a scale bar instead of a magnification: a line labelled with the actual length it represents. The bar is itself an image and its label is its actual size, so magnification = measured length of bar ÷ label value (in the same unit). If a bar labelled 50 µm measures 20 mm, magnification = 20 ÷ 0.05 = ×400; a cell measuring 64 mm in the same image is 64 ÷ 400 = 0.16 mm = 160 µm long. A shortcut gives the same answer: lengths in one image are in proportion, so 64 ÷ 20 × 50 µm = 160 µm.\n\n[P23] **Magnification less than 1.** Photographs of whole organisms, fruits or leaves are often smaller than the real thing, with magnifications such as ×0.3 or ×0.6. The same formula applies: if a photograph at ×0.25 shows a lizard 85 mm long, the actual length is 85 ÷ 0.25 = 340 mm. Here the actual size is larger than the image, which is the correct sense check for a magnification below 1. Multiplying 85 by 0.25 (21 mm) is the inverted formula.\n\n## H. Measuring and rounding: the Paper 6 routine\n\n[P24] Every Alternative to Practical paper in 2023–25 but one asked candidates to measure a line drawn across a photograph and use the formula: usually to find the actual size from a printed magnification, sometimes to find the magnification from a stated actual size. Measure with a ruler from one end of the line to the other, in **millimetres**, to the nearest whole millimetre, and write the unit. Measuring in centimetres and then writing mm (6.2 for 62 mm) is a frequent error. Then substitute and keep the full calculator value until the final step.\n\n[P25] **Significant figures and decimal places.** The question always states the precision: \"to two significant figures\", \"to three significant figures\", \"to one decimal place\", \"as a whole number\". Significant figures count from the first non-zero digit; decimal places count digits after the decimal point. For 59 mm at ×1.7: 59 ÷ 1.7 = 34.705… mm, which is 35 mm to two significant figures, 34.7 mm to three significant figures, and 34.7 mm to one decimal place. A value of 40.73 mm to two significant figures is 41 mm; writing 41.0 gives three significant figures and loses the rounding mark. A small value such as 0.019 mm has two significant figures, because the leading zeros do not count. Give the unit with an actual size; give none with a magnification.\n\n[P26] **Average size from a count.** When several identical cells lie end to end across a known distance, the average size of one cell is the distance divided by the number of cells. If 8 cells fit exactly across a field of view 1.2 mm wide, each is 1.2 ÷ 8 = 0.15 mm = 150 µm wide.\n\n[P27] **Biological drawings (border skill).** The magnification question usually follows a drawing question, marked for: a large drawing using most of the space; clear, continuous single lines made with a sharp pencil; no shading or colouring; correct proportions; and the detail actually visible in the specimen. Label lines are ruled and touch the structure they label. The magnification of a drawing is found with the same formula: length on the drawing ÷ actual length.\n\n## I. Bridges to other chapters\n\n[P28] This chapter supplies the vocabulary used everywhere else. Cell membrane and cell wall return in diffusion and osmosis (turgid, flaccid and plasmolysed cells; why a red blood cell bursts in water but a plant cell does not, because only the plant cell has a wall). Chloroplasts and palisade cells return in photosynthesis and leaf structure; mitochondria in respiration; ribosomes and the nucleus in protein synthesis; root hair cells in transport in plants; ciliated cells in gas exchange and defence against disease; neurones in coordination; red blood cells in transport in animals; gametes in reproduction; plasmids in genetic modification and biotechnology; the prokaryote kingdom in classification. Magnification and unit conversion return in any question with a photomicrograph.\n\n## Coverage matrix\n\n| Syllabus id | Statement (abridged, official) | Tier | Paragraphs |\n|---|---|---|---|\n| 2.1.1 | Describe and compare the structure of a plant cell with an animal cell: cell wall, cell membrane, nucleus, cytoplasm, chloroplasts, ribosomes, mitochondria, vacuoles | Core | P3, P4, P5, P6, P7 |\n| 2.1.2 | Describe the structure of a bacterial cell: cell wall, cell membrane, cytoplasm, ribosomes, circular DNA, plasmids | Core | P8, P10 |\n| 2.1.3 | Identify the structures in 2.1.1 and 2.1.2 in diagrams and images of plant, animal and bacterial cells | Core | P3, P11 |\n| 2.1.4 | Describe the functions of the structures in 2.1.1 and 2.1.2 in plant, animal and bacterial cells | Core | P3, P4, P5, P6, P8, P9 |\n| 2.1.5 | State that new cells are produced by division of existing cells | Core | P2 |\n| 2.1.6 | State that specialised cells have specific functions: ciliated cells, root hair cells, palisade mesophyll cells, neurones, red blood cells, sperm and egg cells | Core | P12, P13, P14, P15 |\n| 2.1.7 | Describe the meaning of the terms cell, tissue, organ, organ system and organism, as illustrated by examples in the syllabus | Core | P1, P16, P17 |\n| 2.2.1 | State and use the formula magnification = image size ÷ actual size | Core | P19, P20, P22, P23 |\n| 2.2.2 | Calculate magnification and size of biological specimens using millimetres as units | Core | P20, P21, P23, P24, P25, P26 |\n| 2.2.3 | Convert measurements between millimetres (mm) and micrometres (µm) | Supplement | P18, P21, P22 |\n| — border (practical skills) | Make clear line drawings of biological specimens, calculating the magnification or actual size; take readings with appropriate precision | — | P24, P25, P27 |\n| — border (mathematical requirements) | Convert between units including µm, mm, cm and m; significant figures and decimal places | — | P18, P25 |\n| — bridge, no statement | Why plant cells have walls, chloroplasts and vacuoles; mitochondria numbers and energy demand; feature-then-function pattern for adaptations; links to later chapters | — | P5, P6, P15, P28 |\n\nGaps: none of 2.1.1–2.1.7 or 2.2.1–2.2.3 lacks a paragraph. Scope notes: the 2026–2028 syllabus asks only that students *state* the function of each specialised cell (2.1.6); explaining their adaptations is examined in later sections (8, 9, 11, 13, 16), so P15 gives the answer pattern only. The syllabus does not ask for the material of the bacterial cell wall. Drawing is a practical skill rather than a section 2 statement and is kept to one paragraph.\n", "atoms": [{"id": "0610-2-A01", "type": "concept", "statement": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled.", "why": "Reactions need the right substances at the right concentrations.", "prerequisites": [], "tier": "core", "paragraphs": "P1"}, {"id": "0610-2-A02", "type": "fact", "statement": "New cells are produced by division of existing cells.", "why": "Growth, repair and replacement all depend on division.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P2"}, {"id": "0610-2-A03", "type": "fact", "statement": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "why": "It is the barrier that keeps the cell's chemistry separate.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P3"}, {"id": "0610-2-A04", "type": "fact", "statement": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it.", "why": "The reactions need a watery medium.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P4"}, {"id": "0610-2-A05", "type": "fact", "statement": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "why": "DNA carries the instructions for making proteins.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P4"}, {"id": "0610-2-A06", "type": "fact", "statement": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "why": "Energy is released, never made or produced.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A07", "type": "fact", "statement": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "why": "Every cell makes proteins, including its enzymes.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A08", "type": "fact", "statement": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "why": "A plant has no skeleton.", "prerequisites": ["0610-2-A03"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A09", "type": "fact", "statement": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "why": "A plant makes its own food.", "prerequisites": ["0610-2-A01"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A10", "type": "fact", "statement": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "why": "Turgid cells support a non-woody plant.", "prerequisites": ["0610-2-A08"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A11", "type": "concept", "statement": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "why": "Plant extras follow from making food and needing support.", "prerequisites": ["0610-2-A03", "0610-2-A04", "0610-2-A05", "0610-2-A06", "0610-2-A07", "0610-2-A08", "0610-2-A09", "0610-2-A10"], "tier": "core", "paragraphs": "P7"}, {"id": "0610-2-A12", "type": "relationship", "statement": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton.", "why": "Each plant-only structure answers a need of the plant's way of life.", "prerequisites": ["0610-2-A08", "0610-2-A09", "0610-2-A10"], "tier": "core", "paragraphs": "P6"}, {"id": "0610-2-A13", "type": "concept", "statement": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "why": "Chloroplasts are only useful where light reaches.", "prerequisites": ["0610-2-A09"], "tier": "core", "paragraphs": "P7"}, {"id": "0610-2-A14", "type": "relationship", "statement": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria.", "why": "More respiration releases more energy.", "prerequisites": ["0610-2-A06"], "tier": "core", "paragraphs": "P5"}, {"id": "0610-2-A15", "type": "representation", "statement": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "why": "Identification precedes every function question.", "prerequisites": ["0610-2-A11"], "tier": "core", "paragraphs": "P11"}, {"id": "0610-2-A16", "type": "technique", "statement": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall.", "why": "Membrane and wall are mislabelled more than any other pair.", "prerequisites": ["0610-2-A15"], "tier": "core", "paragraphs": "P3; P11"}, {"id": "0610-2-A17", "type": "fact", "statement": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "why": "This is the syllabus list for 2.1.2.", "prerequisites": ["0610-2-A03", "0610-2-A04", "0610-2-A07"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A18", "type": "fact", "statement": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "why": "Prokaryotes lack membrane-bound organelles.", "prerequisites": ["0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A19", "type": "fact", "statement": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "why": "Extra genes can be passed between bacteria.", "prerequisites": ["0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A20", "type": "fact", "statement": "The bacterial cell wall is not made of cellulose.", "why": "Wall material differs between kingdoms.", "prerequisites": ["0610-2-A08", "0610-2-A17"], "tier": "core", "paragraphs": "P8"}, {"id": "0610-2-A21", "type": "fact", "statement": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting.", "why": "Functions are the same in every kind of cell.", "prerequisites": ["0610-2-A17", "0610-2-A18"], "tier": "core", "paragraphs": "P9"}, {"id": "0610-2-A22", "type": "concept", "statement": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "why": "These are the minimum for contained, controlled chemistry.", "prerequisites": ["0610-2-A11", "0610-2-A17"], "tier": "core", "paragraphs": "P10"}, {"id": "0610-2-A23", "type": "concept", "statement": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "why": "The three-way grid is the core of every comparison item.", "prerequisites": ["0610-2-A11", "0610-2-A18"], "tier": "core", "paragraphs": "P10"}, {"id": "0610-2-A24", "type": "procedure", "statement": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "why": "Lists of structures earn no comparison marks.", "prerequisites": ["0610-2-A23"], "tier": "core", "paragraphs": "P7; P10"}, {"id": "0610-2-A25", "type": "fact", "statement": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA.", "why": "Absences are not features; plasmids are not in every bacterium.", "prerequisites": ["0610-2-A18"], "tier": "core", "paragraphs": "P9; P10"}, {"id": "0610-2-A26", "type": "representation", "statement": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside.", "why": "Size and the free DNA give it away.", "prerequisites": ["0610-2-A17", "0610-2-A18"], "tier": "core", "paragraphs": "P8; P11"}, {"id": "0610-2-A27", "type": "concept", "statement": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "why": "Division of labour makes each job efficient.", "prerequisites": ["0610-2-A02"], "tier": "core", "paragraphs": "P12"}, {"id": "0610-2-A28", "type": "fact", "statement": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "why": "Clears the airways.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P13"}, {"id": "0610-2-A29", "type": "fact", "statement": "Root hair cells absorb water and mineral ions from the soil.", "why": "Long extension gives a large surface area.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P13"}, {"id": "0610-2-A30", "type": "fact", "statement": "Palisade mesophyll cells carry out photosynthesis.", "why": "Packed with chloroplasts near the upper surface.", "prerequisites": ["0610-2-A27", "0610-2-A09"], "tier": "core", "paragraphs": "P14"}, {"id": "0610-2-A31", "type": "fact", "statement": "Neurones conduct electrical impulses.", "why": "Long thin cells carry impulses over distance.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P14"}, {"id": "0610-2-A32", "type": "fact", "statement": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "why": "No nucleus when mature leaves room for haemoglobin.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A33", "type": "fact", "statement": "Sperm and egg cells (gametes) are specialised for reproduction.", "why": "Their nuclei fuse at fertilisation.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A34", "type": "procedure", "statement": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing).", "why": "Mark schemes pair feature with purpose.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P15"}, {"id": "0610-2-A35", "type": "fact", "statement": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "why": "Specialised cells work in groups.", "prerequisites": ["0610-2-A27"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A36", "type": "fact", "statement": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "why": "Several tissues combine for one job.", "prerequisites": ["0610-2-A35"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A37", "type": "fact", "statement": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "why": "Organs cooperate.", "prerequisites": ["0610-2-A36"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A38", "type": "fact", "statement": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together.", "why": "Top of the hierarchy.", "prerequisites": ["0610-2-A37"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A39", "type": "representation", "statement": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "why": "The hierarchy is a nested list.", "prerequisites": ["0610-2-A35", "0610-2-A36", "0610-2-A37", "0610-2-A38"], "tier": "core", "paragraphs": "P16"}, {"id": "0610-2-A40", "type": "procedure", "statement": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level.", "why": "Classification by composition.", "prerequisites": ["0610-2-A39"], "tier": "core", "paragraphs": "P17"}, {"id": "0610-2-A41", "type": "fact", "statement": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "why": "A micrometre is one thousandth of a millimetre.", "prerequisites": [], "tier": "supplement", "paragraphs": "P18"}, {"id": "0610-2-A42", "type": "fact", "statement": "1 cm = 10 mm and 1 m = 1000 mm.", "why": "Images are measured in mm; cm readings must be converted.", "prerequisites": [], "tier": "core", "paragraphs": "P18"}, {"id": "0610-2-A43", "type": "fact", "statement": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm.", "why": "A size sense check catches power-of-ten slips.", "prerequisites": ["0610-2-A41"], "tier": "core", "paragraphs": "P18"}, {"id": "0610-2-A44", "type": "fact", "statement": "magnification = image size / actual size.", "why": "An image is the specimen scaled by one factor.", "prerequisites": [], "tier": "core", "paragraphs": "P19"}, {"id": "0610-2-A45", "type": "concept", "statement": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "why": "The units cancel.", "prerequisites": ["0610-2-A44"], "tier": "core", "paragraphs": "P19"}, {"id": "0610-2-A46", "type": "procedure", "statement": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "why": "Find whichever length is missing.", "prerequisites": ["0610-2-A44"], "tier": "core", "paragraphs": "P20"}, {"id": "0610-2-A47", "type": "procedure", "statement": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "why": "Mixed units give answers out by 1000.", "prerequisites": ["0610-2-A41", "0610-2-A46"], "tier": "supplement", "paragraphs": "P21"}, {"id": "0610-2-A48", "type": "concept", "statement": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size.", "why": "Photographs of whole organisms are reduced.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P23"}, {"id": "0610-2-A49", "type": "procedure", "statement": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check.", "why": "Catches the inverted formula.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P20; P23"}, {"id": "0610-2-A50", "type": "procedure", "statement": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "why": "MP1 is the measurement to within 1 mm.", "prerequisites": ["0610-2-A42"], "tier": "core", "paragraphs": "P24"}, {"id": "0610-2-A51", "type": "procedure", "statement": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "why": "The bar is an image whose actual size is printed.", "prerequisites": ["0610-2-A44", "0610-2-A41"], "tier": "supplement", "paragraphs": "P22"}, {"id": "0610-2-A52", "type": "procedure", "statement": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step.", "why": "MP3 is the rounding mark.", "prerequisites": ["0610-2-A46"], "tier": "core", "paragraphs": "P25"}, {"id": "0610-2-A53", "type": "procedure", "statement": "Average size of one cell = distance spanned / number of identical cells across it.", "why": "Cells end to end share the distance.", "prerequisites": ["0610-2-A41"], "tier": "core", "paragraphs": "P26"}, {"id": "0610-2-A54", "type": "technique", "statement": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "why": "These are the four drawing marks.", "prerequisites": [], "tier": "core", "paragraphs": "P27"}, {"id": "0610-2-A55", "type": "procedure", "statement": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm.", "why": "Leading zeros hide the power of ten.", "prerequisites": ["0610-2-A41"], "tier": "supplement", "paragraphs": "P18"}], "misconceptions": [{"id": "0610-2-M01", "wrong": "animal cells have a cell wall.", "correct": "animal cells have a cell membrane but no cell wall; walls are found in plant and bacterial cells.", "atoms": ["0610-2-A11", "0610-2-A23"]}, {"id": "0610-2-M02", "wrong": "the cell wall controls what enters and leaves the cell, or protects it as a barrier.", "correct": "the cell membrane controls entry and exit; the cell wall is fully permeable and gives support and shape.", "atoms": ["0610-2-A03", "0610-2-A08", "0610-2-A16"]}, {"id": "0610-2-M03", "wrong": "bacteria have no DNA (or keep it in a nucleus).", "correct": "bacteria have DNA as a circular loop free in the cytoplasm, often with plasmids; they have no nucleus.", "atoms": ["0610-2-A18", "0610-2-A19"]}, {"id": "0610-2-M04", "wrong": "mitochondria produce or make energy.", "correct": "mitochondria are the site of aerobic respiration, which releases energy from glucose.", "atoms": ["0610-2-A06"]}, {"id": "0610-2-M05", "wrong": "every plant cell has chloroplasts.", "correct": "only plant cells that receive light have chloroplasts; root hair cells have none.", "atoms": ["0610-2-A13"]}, {"id": "0610-2-M06", "wrong": "ribosomes are found only in plant and animal cells (not in bacteria), or are missing from some plant cells.", "correct": "every cell has ribosomes, because every cell makes proteins.", "atoms": ["0610-2-A07", "0610-2-A22"]}, {"id": "0610-2-M07", "wrong": "an organ is a group of cells, or a cell structure (such as a chloroplast) is a tissue.", "correct": "a tissue is a group of similar cells; an organ is a group of tissues; a chloroplast is part of a cell.", "atoms": ["0610-2-A35", "0610-2-A36", "0610-2-A40"]}, {"id": "0610-2-M08", "wrong": "ciliated cells make mucus, or cilia move or kill bacteria directly.", "correct": "goblet cells make mucus; cilia beat to move the mucus, with trapped particles and pathogens, up and out of the airways.", "atoms": ["0610-2-A28"]}, {"id": "0610-2-M09", "wrong": "micrometres are changed to millimetres by multiplying by 1000 (2 micrometres = 2000 mm).", "correct": "1 mm = 1000 micrometres, so micrometres to mm divide by 1000 (2 micrometres = 0.002 mm).", "atoms": ["0610-2-A41", "0610-2-A55"]}, {"id": "0610-2-M10", "wrong": "actual size is found by multiplying the image size by the magnification (or the formula is used upside down).", "correct": "actual size = image size / magnification; with magnification above 1 the actual size is smaller than the image.", "atoms": ["0610-2-A46", "0610-2-A48", "0610-2-A49"]}, {"id": "0610-2-M11", "wrong": "a magnification has a unit (for example 400 mm).", "correct": "magnification is a ratio of two lengths in the same unit, so it has no unit (x400).", "atoms": ["0610-2-A45"]}, {"id": "0610-2-M12", "wrong": "two lengths can be divided straight away even when one is in mm and the other in micrometres or cm.", "correct": "convert both lengths to the same unit (mm) before dividing.", "atoms": ["0610-2-A47", "0610-2-A42"]}, {"id": "0610-2-M13", "wrong": "significant figures and decimal places are the same thing (41.0 is 41 to two significant figures).", "correct": "s.f. count from the first non-zero digit, d.p. count digits after the point; 40.73 is 41 to 2 s.f. and 40.7 to 1 d.p.", "atoms": ["0610-2-A52"]}, {"id": "0610-2-M14", "wrong": "features of prokaryotes can be given as absences ('no nucleus', 'no membrane-bound organelles'), and plasmids are a feature of all prokaryotes.", "correct": "give structures prokaryotes have: cell wall, cell membrane, cytoplasm, ribosomes, circular DNA.", "atoms": ["0610-2-A25"]}]}
data/sets/0610_ch02_t1c1.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t1c1", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t1", "topicTitle": "Cells and their parts", "chunkId": "t1c1", "chunkTitle": "Membrane and cytoplasm", "order": 101, "title": "Membrane and cytoplasm", "kind": "chunk", "intro": "Check that you can say why a cell needs a membrane round its cytoplasm.", "minutes": 4, "active": true, "questions": [{"id": "c01", "type": "mcq", "prompt": "The cell membrane is partially permeable. What does this mean?", "options": ["It lets some substances through and holds others back", "It lets substances leave the cell but never enter it", "It lets every substance through freely", "It stops all substances from entering or leaving"], "answer": 0, "marks": 1, "mark_scheme": "Lets some substances through but not others (controls entry and exit).", "explanation": "A partially permeable membrane controls which substances enter and leave: some pass, others are held back. A barrier that let everything through, or nothing through, could not keep the cell's chemistry under control.", "atom_ids": ["0610-2-A03"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c02", "type": "mcq", "prompt": "Where do most of the chemical reactions in a cell take place?", "options": ["on the outer surface of the cell membrane", "in the cell membrane", "in the spaces between cells", "in the cytoplasm"], "answer": 3, "marks": 1, "mark_scheme": "Cytoplasm.", "explanation": "The cytoplasm is the jelly-like contents inside the membrane. Most of the cell's reactions happen in this watery medium, and the other structures are suspended in it.", "atom_ids": ["0610-2-A04"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c03", "type": "mcq", "prompt": "Why is the cell described as the basic unit of living organisms?", "options": ["Cells are the largest structures in an organism", "Only animals are made of cells; plants are made of tissues", "Every living organism is made of one or more cells, each a small volume of cytoplasm enclosed by a membrane", "Every cell in an organism is identical to every other cell"], "answer": 2, "marks": 1, "mark_scheme": "All organisms are made of cells (cytoplasm enclosed by a membrane).", "explanation": "Some organisms are a single cell and others are millions of millions of cells, but every one is built from cells. Cells in one organism are not all identical, and plants are made of cells just as animals are.", "atom_ids": ["0610-2-A01"], "template_id": "M8", "misconception_id": null, "difficulty": 1}, {"id": "c04", "type": "mcq", "prompt": "A cell's membrane is damaged so that it lets all substances pass through freely. What is the most likely effect on the cell?", "options": ["Its reactions speed up, because more substances can enter", "It can no longer keep the substances its reactions need at the right concentrations", "Nothing changes, because reactions happen only inside the membrane itself", "Nothing changes, because the membrane does not affect what enters the cell"], "answer": 1, "marks": 1, "mark_scheme": "Cannot control entry and exit, so concentrations / reactions are no longer controlled.", "explanation": "The membrane is what keeps the right substances in and the wrong ones out. Without that control, the contained, controlled chemistry of the cell breaks down.", "atom_ids": ["0610-2-A01", "0610-2-A03"], "template_id": "M8", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A03": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "0610-2-A04": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it.", "0610-2-A01": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled."}}
data/sets/0610_ch02_t1c2.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t1c2", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t1", "topicTitle": "Cells and their parts", "chunkId": "t1c2", "chunkTitle": "Nucleus, mitochondria, ribosomes", "order": 102, "title": "Nucleus, mitochondria, ribosomes", "kind": "chunk", "intro": "Check the jobs of the nucleus, mitochondria and ribosomes, and where new cells come from.", "minutes": 4, "active": true, "questions": [{"id": "c05", "type": "mcq", "prompt": "A cut in the skin heals as new skin cells are made. How are these new cells produced?", "options": ["by cytoplasm leaking out of damaged cells and forming new cells", "by division of existing cells", "by mitochondria joining together to form whole cells", "by being assembled from substances carried in the blood"], "answer": 1, "marks": 1, "mark_scheme": "Division of existing cells.", "explanation": "New cells are never built from scratch: an existing cell divides to form two. Growth, repair and the replacement of worn-out cells all depend on cell division.", "atom_ids": ["0610-2-A02"], "template_id": null, "misconception_id": null, "difficulty": 1}, {"id": "c06", "type": "mcq", "prompt": "Which statement describes the function of the nucleus?", "options": ["It contains DNA in chromosomes, which controls the activities of the cell", "It controls which substances enter and leave the cell", "It is the site of aerobic respiration", "It is the site of protein synthesis"], "answer": 0, "marks": 1, "mark_scheme": "Contains genetic material / DNA; controls the cell's activities.", "explanation": "The nucleus holds the DNA, arranged in chromosomes, which carries the instructions for making proteins and so controls the cell. Respiration happens in mitochondria, proteins are made at ribosomes, and the membrane controls entry and exit.", "atom_ids": ["0610-2-A05"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c07", "type": "mcq", "prompt": "Which statement about ribosomes is correct?", "options": ["They are found in animal cells but not in plant cells", "They are the site of aerobic respiration", "They are the site of protein synthesis and are found only inside the nucleus", "They are the site of protein synthesis and are found free in the cytoplasm"], "answer": 3, "marks": 1, "mark_scheme": "Site of protein synthesis; in the cytoplasm.", "explanation": "Ribosomes are tiny structures, thousands per cell, free in the cytoplasm, where amino acids are joined to make proteins. Plant cells make proteins too, so they have ribosomes as well.", "atom_ids": ["0610-2-A07"], "template_id": "M1", "misconception_id": "0610-2-M06", "difficulty": 1}, {"id": "c08", "type": "mcq", "prompt": "Muscle cells contract many times a minute during exercise. Which feature would you expect muscle cells to have?", "options": ["many ribosomes, which make energy for contraction", "a large nucleus, which stores energy for the cell", "many mitochondria, the site of aerobic respiration, which releases energy", "many mitochondria, the site of protein synthesis"], "answer": 2, "marks": 1, "mark_scheme": "Many mitochondria; (aerobic) respiration releases energy. Reject: makes / produces energy.", "explanation": "Cells that use a lot of energy have many mitochondria, because more respiration releases more energy from glucose. Energy is never made or produced, and ribosomes make proteins, not energy.", "atom_ids": ["0610-2-A14", "0610-2-A06"], "template_id": "T5", "misconception_id": "0610-2-M04", "difficulty": 2}], "atoms": {"0610-2-A02": "New cells are produced by division of existing cells.", "0610-2-A05": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "0610-2-A07": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "0610-2-M06": "ribosomes are found only in plant and animal cells (not in bacteria), or are missing from some plant cells.", "0610-2-A14": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria.", "0610-2-A06": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "0610-2-M04": "mitochondria produce or make energy."}}
data/sets/0610_ch02_t1c3.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t1c3", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t1", "topicTitle": "Cells and their parts", "chunkId": "t1c3", "chunkTitle": "Wall, chloroplasts, vacuole", "order": 103, "title": "Wall, chloroplasts, vacuole", "kind": "chunk", "intro": "Check the three extra structures of a plant cell and why a plant needs each one.", "minutes": 4, "active": true, "questions": [{"id": "c09", "type": "mcq", "prompt": "What is the function of the cell wall in a plant cell?", "options": ["It supports the cell, keeps its shape and stops it bursting", "It controls which substances enter and leave the cell", "It stores cell sap", "It is the site of photosynthesis"], "answer": 0, "marks": 1, "mark_scheme": "Support / keeps shape / prevents bursting. Reject: controls what enters and leaves.", "explanation": "The cellulose cell wall is fully permeable, so it does not control what enters: the membrane just inside it does. The wall supports the cell, gives it a fixed shape and stops it bursting when it takes in water.", "atom_ids": ["0610-2-A08"], "template_id": "M1", "misconception_id": "0610-2-M02", "difficulty": 1}, {"id": "c10", "type": "mcq", "prompt": "Which statement about chloroplasts is correct?", "options": ["They are found in every plant cell, including root hair cells", "They contain chlorophyll, which releases energy from glucose", "They contain chlorophyll, which absorbs light for photosynthesis", "They are the large clear space that stores cell sap"], "answer": 2, "marks": 1, "mark_scheme": "Contain chlorophyll; absorb light; site of photosynthesis.", "explanation": "Chloroplasts are where photosynthesis happens; their chlorophyll absorbs light. Only cells that receive light have them, so root hair cells underground have none. Energy is released from glucose in mitochondria, and the clear sap-filled space is the vacuole.", "atom_ids": ["0610-2-A09", "0610-2-A13"], "template_id": "M1", "misconception_id": "0610-2-M05", "difficulty": 1}, {"id": "c11", "type": "mcq", "prompt": "Many turgid cells hold up a non-woody plant. What makes a plant cell turgid?", "options": ["Its cell wall thickens as the cell takes in water", "Its large permanent vacuole is full of cell sap, pushing the cytoplasm and membrane against the wall", "Its chloroplasts fill the cell and press on the wall", "Its vacuole is empty, so the cytoplasm pulls away from the wall"], "answer": 1, "marks": 1, "mark_scheme": "(Large permanent) vacuole full of cell sap / water; pushes cytoplasm and membrane against the wall.", "explanation": "When the large permanent vacuole is full of cell sap it pushes the cytoplasm and membrane outwards against the cell wall, and the cell becomes firm (turgid). The wall stops the cell bursting; it does not thicken, and chloroplasts play no part in turgor.", "atom_ids": ["0610-2-A10", "0610-2-A12"], "template_id": "M1", "misconception_id": null, "difficulty": 2}, {"id": "c12", "type": "mcq", "prompt": "A plant has no skeleton. Which two structures does a plant cell have that help support the plant?", "options": ["chloroplasts and a large permanent vacuole", "mitochondria and chloroplasts", "chloroplasts and a cellulose cell wall", "a cellulose cell wall and a large permanent vacuole"], "answer": 3, "marks": 1, "mark_scheme": "Cell wall and (large permanent) vacuole.", "explanation": "Each plant-only structure answers a need: chloroplasts because a plant makes its own food, and a wall plus a full, turgid vacuole because it has no skeleton.", "atom_ids": ["0610-2-A12", "0610-2-A08", "0610-2-A10"], "template_id": "T4", "misconception_id": null, "difficulty": 1}], "atoms": {"0610-2-A08": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "0610-2-M02": "the cell wall controls what enters and leaves the cell, or protects it as a barrier.", "0610-2-A09": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "0610-2-A13": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "0610-2-M05": "every plant cell has chloroplasts.", "0610-2-A10": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "0610-2-A12": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton."}}
data/sets/0610_ch02_t1c4.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t1c4", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t1", "topicTitle": "Cells and their parts", "chunkId": "t1c4", "chunkTitle": "Plant or animal cell?", "order": 104, "title": "Plant or animal cell?", "kind": "chunk", "intro": "Check that you can compare plant and animal cells and identify their structures in a diagram.", "minutes": 4, "active": true, "questions": [{"id": "c13", "type": "mcq", "prompt": "Which list contains only structures found in both plant cells and animal cells?", "options": ["chloroplasts, nucleus, ribosomes", "cell wall, nucleus, mitochondria", "nucleus, mitochondria, ribosomes", "large permanent vacuole, mitochondria, ribosomes"], "answer": 2, "marks": 1, "mark_scheme": "Nucleus, mitochondria, ribosomes (also membrane and cytoplasm).", "explanation": "Plant and animal cells share the membrane, cytoplasm, nucleus, mitochondria and ribosomes. Animal cells have no cell wall, no chloroplasts and no large permanent vacuole.", "atom_ids": ["0610-2-A11"], "template_id": "M1", "misconception_id": "0610-2-M01", "difficulty": 1}, {"id": "c14", "type": "mcq", "prompt": "A photomicrograph of a leaf cell shows many small green oval structures in a thin layer of cytoplasm around a large clear space. What are the green ovals and the large clear space?", "options": ["chloroplasts; large permanent vacuole", "chloroplasts; nucleus", "nuclei; cytoplasm", "mitochondria; nucleus"], "answer": 0, "marks": 1, "mark_scheme": "Chloroplasts; (large permanent) vacuole.", "explanation": "Chloroplasts are green ovals, several per cell, lying in the cytoplasm around the vacuole, which is the large clear central space. The nucleus is a single round structure, often darker, and mitochondria are far smaller.", "atom_ids": ["0610-2-A15"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c15", "type": "mcq", "prompt": "A diagram of a plant cell shows a thick outer layer with a thin line pressed against its inner side. A label line ends on the thick outer layer. Which structure is labelled, and what is its function?", "options": ["cell membrane: supports the cell and keeps its shape", "cell wall: controls what enters and leaves the cell", "cell membrane: controls what enters and leaves the cell", "cell wall: supports the cell and keeps its shape"], "answer": 3, "marks": 1, "mark_scheme": "Cell wall; support / shape.", "explanation": "Follow the label line to its end. The thick outermost layer is the cell wall, which gives support and shape but is fully permeable; the thin line just inside it is the membrane, which controls entry and exit.", "atom_ids": ["0610-2-A16", "0610-2-A15", "0610-2-A08"], "template_id": "T1", "misconception_id": "0610-2-M02", "difficulty": 2}, {"id": "c16", "type": "mcq", "prompt": "A cell has a nucleus, mitochondria and a cell membrane, but no cell wall, no chloroplasts and no large permanent vacuole. Which cell could it be?", "options": ["a cell from the upper layer of a leaf", "a cheek cell from the lining of the mouth", "an onion epidermis cell", "a root hair cell"], "answer": 1, "marks": 1, "mark_scheme": "Cheek cell (an animal cell).", "explanation": "Having no cell wall and no large permanent vacuole shows it is an animal cell. Leaf, onion and root hair cells are plant cells, so all three have a cellulose wall and a large vacuole, even when they have no chloroplasts.", "atom_ids": ["0610-2-A11"], "template_id": "M1", "misconception_id": "0610-2-M01", "difficulty": 2}], "atoms": {"0610-2-A11": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "0610-2-M01": "animal cells have a cell wall.", "0610-2-A15": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "0610-2-A16": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall.", "0610-2-A08": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "0610-2-M02": "the cell wall controls what enters and leaves the cell, or protects it as a barrier."}}
data/sets/0610_ch02_t2c1.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t2c1", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t2", "topicTitle": "Bacterial cells and comparisons", "chunkId": "t2c1", "chunkTitle": "Inside a bacterium", "order": 105, "title": "Inside a bacterium", "kind": "chunk", "intro": "Check the structures of a bacterial cell and the job of each one.", "minutes": 4, "active": true, "questions": [{"id": "c17", "type": "mcq", "prompt": "A student says that bacteria cannot have DNA because they have no nucleus. Which statement corrects this?", "options": ["Bacteria have no DNA; their cell membrane controls the cell", "Bacteria have a nucleus, but it is too small to see", "Bacteria keep their DNA inside their ribosomes", "Bacteria have DNA as a circular loop free in the cytoplasm"], "answer": 3, "marks": 1, "mark_scheme": "DNA present as a circular loop / free in the cytoplasm.", "explanation": "A bacterium has no nucleus, but it does have DNA: a single circular loop lying free in the cytoplasm, which controls the cell. Saying bacteria have no DNA is an error examiners report often.", "atom_ids": ["0610-2-A18"], "template_id": "M1", "misconception_id": "0610-2-M03", "difficulty": 1}, {"id": "c18", "type": "mcq", "prompt": "Which list contains only structures found in a bacterial cell?", "options": ["cell wall, cell membrane, ribosomes", "cell membrane, mitochondria, cytoplasm", "cell wall, nucleus, ribosomes", "cell membrane, cytoplasm, chloroplasts"], "answer": 0, "marks": 1, "mark_scheme": "Cell wall, cell membrane, ribosomes.", "explanation": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes and circular DNA. It has no nucleus, no mitochondria and no chloroplasts. Many bacteria also have plasmids, which come in the next part.", "atom_ids": ["0610-2-A17", "0610-2-A18"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c19", "type": "mcq", "prompt": "Does a bacterial cell make proteins, and if so, where?", "options": ["No, because bacteria have no ribosomes", "Yes, in its nucleus", "Yes, at ribosomes in its cytoplasm", "Yes, in its mitochondria"], "answer": 2, "marks": 1, "mark_scheme": "Yes; at ribosomes.", "explanation": "Bacteria make their own proteins, including enzymes, so they have ribosomes, just as plant and animal cells do. They have no nucleus and no mitochondria.", "atom_ids": ["0610-2-A21", "0610-2-A17"], "template_id": "T2", "misconception_id": "0610-2-M06", "difficulty": 1}, {"id": "c20", "type": "mcq", "prompt": "Which statement about the cell wall of a bacterium is correct?", "options": ["It controls which substances enter and leave the cell", "It is not made of cellulose, and it supports the cell and stops it bursting", "It is made of cellulose, like the wall of a plant cell", "Bacteria have no cell wall, only a cell membrane"], "answer": 1, "marks": 1, "mark_scheme": "Not cellulose; support / prevents bursting.", "explanation": "Bacteria do have a cell wall, but it is not made of cellulose. As in plants, the wall supports the cell and stops it bursting, while the membrane inside it controls entry and exit.", "atom_ids": ["0610-2-A20", "0610-2-A21"], "template_id": "T4", "misconception_id": "0610-2-M02", "difficulty": 2}], "atoms": {"0610-2-A18": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "0610-2-M03": "bacteria have no DNA (or keep it in a nucleus).", "0610-2-A17": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "0610-2-A21": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting.", "0610-2-M06": "ribosomes are found only in plant and animal cells (not in bacteria), or are missing from some plant cells.", "0610-2-A20": "The bacterial cell wall is not made of cellulose.", "0610-2-M02": "the cell wall controls what enters and leaves the cell, or protects it as a barrier."}}
data/sets/0610_ch02_t2c2.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t2c2", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t2", "topicTitle": "Bacterial cells and comparisons", "chunkId": "t2c2", "chunkTitle": "Plasmids and prokaryotes", "order": 106, "title": "Plasmids and prokaryotes", "kind": "chunk", "intro": "Check what plasmids are and which features to give for all prokaryotes.", "minutes": 4, "active": true, "questions": [{"id": "c21", "type": "mcq", "prompt": "What are plasmids?", "options": ["small rods where aerobic respiration takes place", "small extra rings of DNA carrying a few genes", "tiny dots where proteins are made", "the main loop of DNA that controls the cell"], "answer": 1, "marks": 1, "mark_scheme": "Small (extra) rings / loops of DNA.", "explanation": "Plasmids are small rings of DNA separate from the main circular DNA. They carry a few genes, for example a gene for resistance to an antibiotic. Ribosomes are the tiny dots that make proteins.", "atom_ids": ["0610-2-A19"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c22", "type": "mcq", "prompt": "Why are plasmids useful in genetic modification?", "options": ["They are the site of protein synthesis in bacteria", "They release the energy a bacterium needs to divide", "They form the cell wall of the bacterium", "They are small rings of DNA that can be used to carry genes into bacteria"], "answer": 3, "marks": 1, "mark_scheme": "Can carry genes (into bacteria).", "explanation": "Because plasmids are small rings of DNA that bacteria take up and copy, a useful gene can be put into a plasmid and carried into a bacterium.", "atom_ids": ["0610-2-A19"], "template_id": "M1", "misconception_id": null, "difficulty": 1}, {"id": "c23", "type": "mcq", "prompt": "A question asks: 'State one feature of all prokaryotes.' Which answer gains the mark?", "options": ["plasmids", "chloroplasts", "circular DNA", "no nucleus"], "answer": 2, "marks": 1, "mark_scheme": "Circular DNA (or cell wall / cell membrane / cytoplasm / ribosomes). Reject: absences; plasmids.", "explanation": "A feature is something the cell has, so 'no nucleus' is an absence and scores nothing. Plasmids are found in many bacteria but not in every one, so they are not a feature of all prokaryotes. Bacteria have no chloroplasts.", "atom_ids": ["0610-2-A25"], "template_id": "T3", "misconception_id": "0610-2-M14", "difficulty": 2}, {"id": "c24", "type": "mcq", "prompt": "Bacteria are prokaryotes. What does this tell you about a bacterial cell?", "options": ["It has no nucleus; its DNA lies free in the cytoplasm", "It has no DNA", "It has chloroplasts but no mitochondria", "It has a nucleus but no cell wall"], "answer": 0, "marks": 1, "mark_scheme": "No nucleus (DNA free in the cytoplasm).", "explanation": "The absence of a nucleus is what makes bacteria prokaryotes. Their DNA is still present, as a circular loop in the cytoplasm, and they do have a cell wall.", "atom_ids": ["0610-2-A25", "0610-2-A18"], "template_id": "T3", "misconception_id": "0610-2-M03", "difficulty": 1}], "atoms": {"0610-2-A19": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "0610-2-A25": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA.", "0610-2-M14": "features of prokaryotes can be given as absences ('no nucleus', 'no membrane-bound organelles'), and plasmids are a feature of all prokaryotes.", "0610-2-A18": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "0610-2-M03": "bacteria have no DNA (or keep it in a nucleus)."}}
data/sets/0610_ch02_t2c3.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t2c3", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t2", "topicTitle": "Bacterial cells and comparisons", "chunkId": "t2c3", "chunkTitle": "Comparing all three cells", "order": 107, "title": "Comparing all three cells", "kind": "chunk", "intro": "Check the three-way comparison of plant, animal and bacterial cells.", "minutes": 4, "active": true, "questions": [{"id": "c25", "type": "mcq", "prompt": "Which structures do plant, animal and bacterial cells all have?", "options": ["cell membrane, cytoplasm, mitochondria and DNA", "cell wall, cell membrane, cytoplasm and DNA", "nucleus, cytoplasm, ribosomes and DNA", "cell membrane, cytoplasm, ribosomes and DNA"], "answer": 3, "marks": 1, "mark_scheme": "Cell membrane, cytoplasm, ribosomes, DNA.", "explanation": "These four are the minimum for contained, controlled chemistry. Animal cells have no cell wall, and bacterial cells have no nucleus and no mitochondria.", "atom_ids": ["0610-2-A22"], "template_id": "M1", "misconception_id": "0610-2-M01", "difficulty": 1}, {"id": "c26", "type": "mcq", "prompt": "Which pair of structures is found in plant cells and animal cells but not in bacterial cells?", "options": ["nucleus and ribosomes", "mitochondria and cell membrane", "nucleus and mitochondria", "cell wall and mitochondria"], "answer": 2, "marks": 1, "mark_scheme": "Nucleus and mitochondria.", "explanation": "Bacteria have ribosomes and a cell membrane like every cell, and plant cells and bacteria both have a wall. The nucleus and mitochondria are the structures plant and animal cells have and bacteria lack.", "atom_ids": ["0610-2-A23"], "template_id": "M1", "misconception_id": "0610-2-M06", "difficulty": 1}, {"id": "c27", "type": "mcq", "prompt": "A question asks you to compare the structure of a leaf cell with the structure of a bacterial cell. Which answer earns a comparison mark?", "options": ["The leaf cell has a cell wall but the bacterial cell does not", "The leaf cell has chloroplasts but the bacterial cell does not", "chloroplasts, nucleus, cell wall", "Both cells have a nucleus"], "answer": 1, "marks": 1, "mark_scheme": "A comparative statement naming the structure and which cell has it, e.g. leaf cell has chloroplasts / nucleus / mitochondria, bacterial cell does not; bacterial cell has circular DNA / plasmids, leaf cell does not.", "explanation": "A comparison mark needs the structure and which cell has it. A bare list earns nothing. Bacteria have no nucleus, and both cells have a cell wall, so those two statements are false.", "atom_ids": ["0610-2-A24", "0610-2-A23"], "template_id": "T4", "misconception_id": null, "difficulty": 2}, {"id": "c28", "type": "mcq", "prompt": "A diagram shows a cell much smaller than a cheek cell. It has a wall with a membrane just inside it, a loop of DNA lying free in the cytoplasm and two small separate rings. What is the cell, and what are the small rings?", "options": ["a bacterial cell; plasmids", "an animal cell; mitochondria", "a bacterial cell; ribosomes", "a plant cell; chloroplasts"], "answer": 0, "marks": 1, "mark_scheme": "Bacterial cell; plasmids.", "explanation": "Small size, a wall and free DNA with no nucleus give a bacterium away. The small separate rings are plasmids; ribosomes appear only as tiny dots.", "atom_ids": ["0610-2-A26"], "template_id": "M3", "misconception_id": null, "difficulty": 1}], "atoms": {"0610-2-A22": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "0610-2-M01": "animal cells have a cell wall.", "0610-2-A23": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "0610-2-M06": "ribosomes are found only in plant and animal cells (not in bacteria), or are missing from some plant cells.", "0610-2-A24": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "0610-2-A26": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside."}}
data/sets/0610_ch02_t3c1.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t3c1", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t3", "topicTitle": "Specialised cells and levels", "chunkId": "t3c1", "chunkTitle": "Specialised plant cells", "order": 108, "title": "Specialised plant cells", "kind": "chunk", "intro": "Check what a specialised cell is, the jobs of root hair and palisade cells, and how to explain an adaptation.", "minutes": 4, "active": true, "questions": [{"id": "c29", "type": "mcq", "prompt": "What does it mean to say that a cell is specialised?", "options": ["It has stopped carrying out chemical reactions", "It can carry out every function the organism needs", "It no longer has a cell membrane", "Its shape and contents suit it to one particular function"], "answer": 3, "marks": 1, "mark_scheme": "Shape / structure / contents suited to a particular function.", "explanation": "After division, cells in a multicellular organism develop a shape and contents suited to one job, so they do that job better than an all-purpose cell could.", "atom_ids": ["0610-2-A27"], "template_id": "T5", "misconception_id": null, "difficulty": 1}, {"id": "c30", "type": "mcq", "prompt": "What is the function of palisade mesophyll cells?", "options": ["protein synthesis only", "storing cell sap for the root", "photosynthesis", "absorption of water and mineral ions"], "answer": 2, "marks": 1, "mark_scheme": "Photosynthesis.", "explanation": "Palisade mesophyll cells are tall cells packed with chloroplasts in the upper part of a leaf, where light is strongest. Their function is photosynthesis; absorption is the job of root hair cells.", "atom_ids": ["0610-2-A30"], "template_id": "T5", "misconception_id": null, "difficulty": 1}, {"id": "c31", "type": "mcq", "prompt": "Which statement about a root hair cell is correct?", "options": ["It absorbs water and mineral ions and has no cell wall", "It absorbs water and mineral ions and has no chloroplasts", "It carries out photosynthesis and has no vacuole", "It carries out photosynthesis, so it has many chloroplasts"], "answer": 1, "marks": 1, "mark_scheme": "Absorption of water and mineral ions; no chloroplasts.", "explanation": "Root hair cells are underground, where no light reaches, so they have no chloroplasts and do not photosynthesise. Like other plant cells they have a cell wall and a large vacuole.", "atom_ids": ["0610-2-A29", "0610-2-A13"], "template_id": "T5", "misconception_id": "0610-2-M05", "difficulty": 1}, {"id": "c32", "type": "mcq", "prompt": "Why does a root hair cell have a long, thin extension?", "options": ["It gives a large surface area for absorption of water and mineral ions", "It stores glucose for the whole plant", "It lets the cell move through the soil to find water", "It holds the chloroplasts the root needs"], "answer": 0, "marks": 1, "mark_scheme": "Large surface area for absorption.", "explanation": "The long extension pushes between soil particles and gives a large surface area, so more water and mineral ions can be absorbed. Root hair cells cannot move and have no chloroplasts.", "atom_ids": ["0610-2-A29", "0610-2-A34"], "template_id": "T5", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A27": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "0610-2-A30": "Palisade mesophyll cells carry out photosynthesis.", "0610-2-A29": "Root hair cells absorb water and mineral ions from the soil.", "0610-2-A13": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "0610-2-M05": "every plant cell has chloroplasts.", "0610-2-A34": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing)."}}
data/sets/0610_ch02_t3c2.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t3c2", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t3", "topicTitle": "Specialised cells and levels", "chunkId": "t3c2", "chunkTitle": "Specialised animal cells", "order": 109, "title": "Specialised animal cells", "kind": "chunk", "intro": "Check the functions of ciliated cells, neurones, red blood cells and gametes.", "minutes": 4, "active": true, "questions": [{"id": "c33", "type": "mcq", "prompt": "Mucus in the trachea traps dust and pathogens. What is the role of the ciliated cells lining the trachea?", "options": ["They make the mucus that traps the dust", "They take the dust into their cytoplasm and digest it", "Their cilia catch and kill the bacteria", "Their cilia beat to sweep the mucus up and away from the lungs"], "answer": 3, "marks": 1, "mark_scheme": "Cilia move / sweep mucus (away from the lungs). Reject: make mucus; move or kill bacteria directly.", "explanation": "Goblet cells make the mucus. The cilia beat in waves and move the mucus, with the trapped dust and pathogens in it, towards the throat. They do not move or kill bacteria directly.", "atom_ids": ["0610-2-A28"], "template_id": "T5", "misconception_id": "0610-2-M08", "difficulty": 1}, {"id": "c34", "type": "mcq", "prompt": "Which row correctly matches a specialised cell to its function?", "options": ["red blood cell: conduction of electrical impulses", "sperm cell: reproduction", "neurone: transport of oxygen", "ciliated cell: absorption of water and mineral ions"], "answer": 1, "marks": 1, "mark_scheme": "Sperm cell: reproduction (gamete).", "explanation": "Sperm and egg cells are gametes, for reproduction. Neurones conduct electrical impulses, red blood cells transport oxygen, ciliated cells move mucus and root hair cells absorb water and mineral ions.", "atom_ids": ["0610-2-A31", "0610-2-A32", "0610-2-A33", "0610-2-A28"], "template_id": "T5", "misconception_id": null, "difficulty": 1}, {"id": "c35", "type": "mcq", "prompt": "A mature red blood cell has no nucleus. How does this help it carry out its function?", "options": ["It leaves more room for haemoglobin, so the cell can carry more oxygen", "It lets the cell divide more quickly", "It lets the cell conduct electrical impulses faster", "It lets the cell make more protein"], "answer": 0, "marks": 1, "mark_scheme": "More room for haemoglobin; more oxygen carried.", "explanation": "The function of a red blood cell is the transport of oxygen, which combines with haemoglobin. Without a nucleus there is more space for haemoglobin. A cell with no nucleus cannot divide.", "atom_ids": ["0610-2-A32", "0610-2-A34"], "template_id": "T5", "misconception_id": null, "difficulty": 2}, {"id": "c36", "type": "mcq", "prompt": "A question asks: 'Explain how a neurone is adapted to its function.' Which answer gains the mark?", "options": ["It has a nucleus, so it is alive", "It is very long", "It is very long, so it can carry impulses from one part of the body to another", "It conducts electrical impulses"], "answer": 2, "marks": 1, "mark_scheme": "Feature plus how it helps: long, so carries impulses over a distance.", "explanation": "An adaptation mark needs a feature and how it helps the function. 'Very long' is a feature alone, and 'conducts impulses' is the function alone; neither scores on its own.", "atom_ids": ["0610-2-A34", "0610-2-A31"], "template_id": "T5", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A28": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "0610-2-M08": "ciliated cells make mucus, or cilia move or kill bacteria directly.", "0610-2-A31": "Neurones conduct electrical impulses.", "0610-2-A32": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "0610-2-A33": "Sperm and egg cells (gametes) are specialised for reproduction.", "0610-2-A34": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing)."}}
data/sets/0610_ch02_t3c3.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t3c3", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t3", "topicTitle": "Specialised cells and levels", "chunkId": "t3c3", "chunkTitle": "Tissues, organs, systems", "order": 110, "title": "Tissues, organs, systems", "kind": "chunk", "intro": "Check the meanings of tissue, organ, organ system and organism.", "minutes": 4, "active": true, "questions": [{"id": "c37", "type": "mcq", "prompt": "Which is the correct definition of an organ?", "options": ["a group of cells with similar structures working together to perform a shared function", "a structure inside a cell, such as a chloroplast", "a group of organs with related functions working together", "a structure made of a group of tissues working together to perform specific functions"], "answer": 3, "marks": 1, "mark_scheme": "Group of tissues working together (to perform specific functions). Reject: group of cells.", "explanation": "An organ is made of tissues, not simply of cells: 'a group of similar cells' is the definition of a tissue. A group of organs is an organ system, and a chloroplast is part of a cell.", "atom_ids": ["0610-2-A36", "0610-2-A35"], "template_id": "M8", "misconception_id": "0610-2-M07", "difficulty": 1}, {"id": "c38", "type": "mcq", "prompt": "Which of these is an organ system?", "options": ["a red blood cell", "muscle tissue", "the circulatory system", "the heart"], "answer": 2, "marks": 1, "mark_scheme": "Circulatory system.", "explanation": "An organ system is a group of organs with related functions working together. The heart is one organ in the circulatory system, muscle tissue is a tissue, and a red blood cell is a cell.", "atom_ids": ["0610-2-A37"], "template_id": "M8", "misconception_id": null, "difficulty": 1}, {"id": "c39", "type": "mcq", "prompt": "A leaf contains epidermis, palisade mesophyll, spongy mesophyll, xylem and phloem, which work together. Why is the leaf described as an organ?", "options": ["It is made of several different tissues working together to perform specific functions", "It is the largest part of the plant", "It is made of many cells that are all the same", "It contains chloroplasts"], "answer": 0, "marks": 1, "mark_scheme": "Made of (different) tissues working together.", "explanation": "Epidermis, palisade mesophyll, spongy mesophyll, xylem and phloem are tissues; a structure made of several tissues working together is an organ. Size and containing chloroplasts do not decide the level.", "atom_ids": ["0610-2-A36", "0610-2-A35"], "template_id": "M8", "misconception_id": null, "difficulty": 2}, {"id": "c40", "type": "mcq", "prompt": "Which statement about organisms is correct?", "options": ["An organism is the same as one organ system", "A multicellular organism is made of organ systems working together", "An organism is a group of similar tissues", "Every organism is made of many cells"], "answer": 1, "marks": 1, "mark_scheme": "Organism = whole living thing; made of organ systems working together.", "explanation": "The organism is the whole living thing, at the top of the hierarchy. Some organisms, such as bacteria, are a single cell, so not every organism is made of many cells.", "atom_ids": ["0610-2-A38"], "template_id": "M8", "misconception_id": null, "difficulty": 1}], "atoms": {"0610-2-A36": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "0610-2-A35": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "0610-2-M07": "an organ is a group of cells, or a cell structure (such as a chloroplast) is a tissue.", "0610-2-A37": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "0610-2-A38": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together."}}
data/sets/0610_ch02_t3c4.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t3c4", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t3", "topicTitle": "Specialised cells and levels", "chunkId": "t3c4", "chunkTitle": "Which level is it?", "order": 111, "title": "Which level is it?", "kind": "chunk", "intro": "Check that you can order the levels and place any named structure on them.", "minutes": 3, "active": true, "questions": [{"id": "c41", "type": "mcq", "prompt": "Which list is in order from the largest to the smallest level of organisation?", "options": ["stomach, digestive system, muscle tissue, muscle cell", "digestive system, stomach, muscle tissue, muscle cell", "muscle cell, muscle tissue, stomach, digestive system", "digestive system, muscle tissue, stomach, muscle cell"], "answer": 1, "marks": 1, "mark_scheme": "Organ system, organ, tissue, cell.", "explanation": "The digestive system is an organ system, the stomach is an organ, muscle tissue is a tissue and a muscle cell is a cell. The list that starts with the muscle cell has the right order, but from smallest to largest.", "atom_ids": ["0610-2-A39"], "template_id": "M8", "misconception_id": null, "difficulty": 1}, {"id": "c42", "type": "mcq", "prompt": "A student describes a chloroplast as 'a tissue'. Which correction is right?", "options": ["A chloroplast is a cell, because it contains chlorophyll", "A chloroplast is a tissue only in palisade mesophyll cells", "A chloroplast is an organ, because it carries out photosynthesis", "A chloroplast is a structure inside a cell, so it is not a level of organisation"], "answer": 3, "marks": 1, "mark_scheme": "Chloroplast is part of a cell (not a tissue / not a level).", "explanation": "Ask what it is made of. A chloroplast is not made of cells at all; it is part of one cell, so it is not a tissue, an organ or any other level.", "atom_ids": ["0610-2-A40"], "template_id": "M8", "misconception_id": "0610-2-M07", "difficulty": 1}, {"id": "c43", "type": "mcq", "prompt": "Which row gives the correct level of organisation of the stomach, a red blood cell and muscle tissue, in that order?", "options": ["organ, cell, tissue", "organ, tissue, cell", "tissue, organ, cell", "organ system, cell, organ"], "answer": 0, "marks": 1, "mark_scheme": "Stomach = organ; red blood cell = cell; muscle tissue = tissue.", "explanation": "The stomach is made of several tissues, so it is an organ; it is part of the digestive system. A red blood cell is one cell, and muscle tissue is many similar cells working together.", "atom_ids": ["0610-2-A40", "0610-2-A39"], "template_id": "M8", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A39": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "0610-2-A40": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level.", "0610-2-M07": "an organ is a group of cells, or a cell structure (such as a chloroplast) is a tissue."}}
data/sets/0610_ch02_t4c1.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t4c1", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t4", "topicTitle": "Units and magnification", "chunkId": "t4c1", "chunkTitle": "Millimetres and micrometres", "order": 112, "title": "Millimetres and micrometres", "kind": "chunk", "intro": "Check conversions between micrometres, millimetres and centimetres.", "minutes": 4, "active": true, "questions": [{"id": "c44", "type": "numeric", "prompt": "Convert 0.32 mm to micrometres.", "answer": 320, "tolerance": 0.001, "unit": "µm", "marks": 1, "mark_scheme": "0.32 × 1000 = 320 µm", "explanation": "1 mm = 1000 µm, so millimetres to micrometres means multiplying by 1000. The number of micrometres is always the bigger number.", "atom_ids": ["0610-2-A41"], "template_id": "M4", "misconception_id": null, "difficulty": 1}, {"id": "c45", "type": "numeric", "prompt": "A bacterium is 6 µm long. Convert this length to millimetres.", "answer": 0.006, "tolerance": 0.001, "unit": "mm", "marks": 1, "mark_scheme": "6 ÷ 1000 = 0.006 mm", "explanation": "Micrometres to millimetres means dividing by 1000, because a micrometre is a thousandth of a millimetre. Multiplying would give 6000 mm, which is 6 m: far too big for a bacterium.", "atom_ids": ["0610-2-A41"], "template_id": "M4", "misconception_id": "0610-2-M09", "difficulty": 1}, {"id": "c46", "type": "mcq", "prompt": "Which length is the same as 4.7 cm?", "options": ["0.47 mm", "4700 µm", "47 mm", "470 mm"], "answer": 2, "marks": 1, "mark_scheme": "47 mm (1 cm = 10 mm).", "explanation": "1 cm = 10 mm, so 4.7 cm = 4.7 × 10 = 47 mm. In micrometres that is 47 000 µm, not 4700 µm.", "atom_ids": ["0610-2-A42"], "template_id": "M4", "misconception_id": null, "difficulty": 1}, {"id": "c47", "type": "numeric", "prompt": "A leaf is 1.5 cm wide. Convert this width to micrometres.", "answer": 15000, "tolerance": 0.001, "unit": "µm", "marks": 1, "mark_scheme": "1.5 × 10 = 15 mm; 15 × 1000 = 15 000 µm", "explanation": "Go one step at a time: centimetres to millimetres (× 10), then millimetres to micrometres (× 1000).", "atom_ids": ["0610-2-A42", "0610-2-A41"], "template_id": "M4", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-M09": "micrometres are changed to millimetres by multiplying by 1000 (2 micrometres = 2000 mm).", "0610-2-A42": "1 cm = 10 mm and 1 m = 1000 mm."}}
data/sets/0610_ch02_t4c2.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t4c2", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t4", "topicTitle": "Units and magnification", "chunkId": "t4c2", "chunkTitle": "The magnification formula", "order": 113, "title": "The magnification formula", "kind": "chunk", "intro": "Check the magnification formula in all three arrangements and the sense check.", "minutes": 4, "active": true, "questions": [{"id": "c48", "type": "numeric", "prompt": "A drawing of a cell is 48 mm wide. The actual width of the cell is 0.04 mm. Calculate the magnification of the drawing. Enter the number only.", "answer": 1200, "tolerance": 0.001, "marks": 1, "mark_scheme": "48 ÷ 0.04 = ×1200", "explanation": "magnification = image size ÷ actual size. Both lengths are already in mm, so the units cancel and the magnification has no unit.", "atom_ids": ["0610-2-A44", "0610-2-A45"], "template_id": "M4", "misconception_id": null, "difficulty": 1}, {"id": "c49", "type": "mcq", "prompt": "A student calculates a magnification of 250. Which way of writing it gains the mark?", "options": ["×250", "250 mm", "250 µm", "×250 mm"], "answer": 0, "marks": 1, "mark_scheme": "×250 (or 250). Reject: any unit.", "explanation": "Magnification is one length divided by another in the same unit, so the units cancel and there is no unit. Examiners do not give the mark for '250 mm'.", "atom_ids": ["0610-2-A45"], "template_id": "P2", "misconception_id": "0610-2-M11", "difficulty": 1}, {"id": "c50", "type": "numeric", "prompt": "A photomicrograph has a magnification of ×800. A cell in it is 56 mm long. Calculate the actual length of the cell in mm.", "answer": 0.07, "tolerance": 0.001, "unit": "mm", "marks": 1, "mark_scheme": "56 ÷ 800 = 0.07 mm", "explanation": "actual size = image size ÷ magnification. With a magnification above 1 the actual size must be smaller than the image; multiplying (44 800 mm) fails that check.", "atom_ids": ["0610-2-A46", "0610-2-A49"], "template_id": "M5", "misconception_id": "0610-2-M10", "difficulty": 1}, {"id": "c51", "type": "mcq", "prompt": "A photograph of a beetle has a magnification of ×0.5. The beetle is 30 mm long in the photograph. What is the actual length of the beetle?", "options": ["150 mm", "15 mm", "60 mm", "30 mm"], "answer": 2, "marks": 1, "mark_scheme": "30 ÷ 0.5 = 60 mm", "explanation": "actual size = image size ÷ magnification = 30 ÷ 0.5 = 60 mm. A magnification below 1 means the photograph is smaller than the beetle, so the actual size must be larger than 30 mm. Multiplying (15 mm) is the inverted formula.", "atom_ids": ["0610-2-A48", "0610-2-A46"], "template_id": "P1", "misconception_id": "0610-2-M10", "difficulty": 2}], "atoms": {"0610-2-A44": "magnification = image size / actual size.", "0610-2-A45": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "0610-2-M11": "a magnification has a unit (for example 400 mm).", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "0610-2-A49": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check.", "0610-2-M10": "actual size is found by multiplying the image size by the magnification (or the formula is used upside down).", "0610-2-A48": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size."}}
data/sets/0610_ch02_t4c3.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t4c3", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t4", "topicTitle": "Units and magnification", "chunkId": "t4c3", "chunkTitle": "Mixed units and sense checks", "order": 114, "title": "Mixed units and sense checks", "kind": "chunk", "intro": "Check the convert-to-mm method and the size sense check.", "minutes": 4, "active": true, "questions": [{"id": "c52", "type": "numeric", "prompt": "A plant cell is 25 µm wide. In a photomicrograph the cell is 50 mm wide. Calculate the magnification of the photomicrograph. Enter the number only.", "answer": 2000, "tolerance": 0.001, "marks": 1, "mark_scheme": "25 µm = 0.025 mm; 50 ÷ 0.025 = ×2000", "explanation": "Convert both lengths to mm before dividing. Dividing 50 by 25 straight away (×2) mixes millimetres with micrometres and is out by 1000.", "atom_ids": ["0610-2-A47", "0610-2-A41"], "template_id": "M4", "misconception_id": "0610-2-M12", "difficulty": 2}, {"id": "c53", "type": "numeric", "prompt": "A photomicrograph has a magnification of ×1500. A bacterium in it is 3 mm long. Calculate the actual length of the bacterium in micrometres.", "answer": 2, "tolerance": 0.001, "unit": "µm", "marks": 1, "mark_scheme": "3 ÷ 1500 = 0.002 mm; 0.002 × 1000 = 2 µm", "explanation": "Calculate in mm, then convert the answer to the unit asked for. 2 µm is a sensible length for a bacterium (1–5 µm).", "atom_ids": ["0610-2-A47", "0610-2-A46", "0610-2-A43"], "template_id": "M4", "misconception_id": null, "difficulty": 2}, {"id": "c54", "type": "mcq", "prompt": "A student calculates the diameter of a red blood cell as 80 µm. What should the student conclude?", "options": ["The answer must be right, because the formula was used", "The answer is sensible, because red blood cells are the largest human cells", "The answer is sensible, because red blood cells are about 1–5 mm across", "Red blood cells are about 7–8 µm across, so there is probably a power-of-ten error"], "answer": 3, "marks": 1, "mark_scheme": "Expected about 7–8 µm; recheck (likely a factor of 10 error).", "explanation": "Knowing typical sizes catches slips: a red blood cell is about 7–8 µm across, so 80 µm is ten times too big. The working, probably a unit conversion, should be checked.", "atom_ids": ["0610-2-A43"], "template_id": "M5", "misconception_id": null, "difficulty": 1}, {"id": "c55", "type": "mcq", "prompt": "Which of these is the most likely length of a bacterium?", "options": ["0.2 mm", "2 µm", "2 mm", "200 µm"], "answer": 1, "marks": 1, "mark_scheme": "2 µm (bacteria are 1–5 µm).", "explanation": "Bacteria are typically 1–5 µm long. 200 µm and 0.2 mm are the same length, larger than most plant cells (20–100 µm) and a hundred times too big for a bacterium; 2 mm would be visible without a microscope.", "atom_ids": ["0610-2-A43"], "template_id": "M5", "misconception_id": null, "difficulty": 1}], "atoms": {"0610-2-A47": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-M12": "two lengths can be divided straight away even when one is in mm and the other in micrometres or cm.", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "0610-2-A43": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm."}}
data/sets/0610_ch02_t5c1.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t5c1", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t5", "topicTitle": "Magnification in practice", "chunkId": "t5c1", "chunkTitle": "Draw, measure, round", "order": 115, "title": "Draw, measure, round", "kind": "chunk", "intro": "Check the drawing rules, measuring in mm and rounding to the precision asked.", "minutes": 4, "active": true, "questions": [{"id": "c56", "type": "mcq", "prompt": "Which of these is a rule for a biological drawing?", "options": ["Draw small, in one corner of the space, to leave room for labels", "Draw label lines freehand, ending in arrowheads", "Use clear, continuous single lines with no shading", "Shade the darker areas to show depth"], "answer": 2, "marks": 1, "mark_scheme": "Clear continuous lines; no shading.", "explanation": "A biological drawing is large, with clear, continuous single lines, no shading, correct proportions and the visible detail. Label lines are ruled and touch the structure.", "atom_ids": ["0610-2-A54"], "template_id": "P3", "misconception_id": null, "difficulty": 1}, {"id": "c57", "type": "mcq", "prompt": "A student measures a line across a photograph and reads 6.4 cm on the ruler. What should the student record?", "options": ["0.64 mm", "64 mm", "640 mm", "6.4 mm"], "answer": 1, "marks": 1, "mark_scheme": "64 mm.", "explanation": "Measurements on figures are recorded in millimetres: 6.4 cm × 10 = 64 mm. Writing 6.4 mm, the centimetre reading with a millimetre unit, is a frequent error.", "atom_ids": ["0610-2-A50", "0610-2-A42"], "template_id": "P1", "misconception_id": "0610-2-M12", "difficulty": 1}, {"id": "c58", "type": "mcq", "prompt": "A calculator shows 0.04368 mm. What is this value to two significant figures?", "options": ["0.0437 mm", "0.043 mm", "0.04 mm", "0.044 mm"], "answer": 3, "marks": 1, "mark_scheme": "0.044 mm.", "explanation": "Significant figures count from the first non-zero digit, so the two figures are 4 and 3, and the next digit (6) rounds the 3 up: 0.044. 0.04 is two decimal places, 0.0437 is three significant figures, and 0.043 has not been rounded up.", "atom_ids": ["0610-2-A52"], "template_id": "P1", "misconception_id": "0610-2-M13", "difficulty": 2}, {"id": "c59", "type": "numeric", "prompt": "A line across a photograph of a seed measures 38 mm. The magnification of the photograph is ×3.5. Calculate the actual length of the seed. Give your answer to two significant figures.", "answer": 10.857142857142858, "tolerance": 1e-05, "unit": "mm", "marks": 1, "mark_scheme": "38 ÷ 3.5 = 10.857… = 11 mm (2 s.f.)", "explanation": "actual size = image size ÷ magnification. Keep the full calculator value, 10.857…, and round only at the end: two significant figures gives 11 mm.", "atom_ids": ["0610-2-A52", "0610-2-A50", "0610-2-A46"], "sf": 2, "template_id": "P1", "misconception_id": null, "difficulty": 2}], "atoms": {"0610-2-A54": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "0610-2-A50": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "0610-2-A42": "1 cm = 10 mm and 1 m = 1000 mm.", "0610-2-M12": "two lengths can be divided straight away even when one is in mm and the other in micrometres or cm.", "0610-2-A52": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step.", "0610-2-M13": "significant figures and decimal places are the same thing (41.0 is 41 to two significant figures).", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification."}}
data/sets/0610_ch02_t5c2.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"id": "0610_ch02_t5c2", "chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "topicId": "t5", "topicTitle": "Magnification in practice", "chunkId": "t5c2", "chunkTitle": "Scale bars, counts, tiny sizes", "order": 116, "title": "Scale bars, counts, tiny sizes", "kind": "chunk", "intro": "Check scale bars, average cell size and small unit conversions.", "minutes": 4, "active": true, "questions": [{"id": "c60", "type": "numeric", "prompt": "A scale bar on a photomicrograph is labelled 10 µm. It measures 25 mm. Calculate the magnification of the photomicrograph. Enter the number only.", "answer": 2500, "tolerance": 0.001, "marks": 1, "mark_scheme": "10 µm = 0.01 mm; 25 ÷ 0.01 = ×2500", "explanation": "The scale bar is an image whose actual size is printed on it: magnification = measured bar length ÷ label value, with both in mm.", "atom_ids": ["0610-2-A51", "0610-2-A41"], "template_id": "M4", "misconception_id": null, "difficulty": 2}, {"id": "c61", "type": "mcq", "prompt": "A scale bar labelled 20 µm measures 8 mm in a photomicrograph. A plant cell in the same photomicrograph measures 36 mm. What is the actual length of the cell?", "options": ["90 µm", "4.4 µm", "720 µm", "0.09 µm"], "answer": 0, "marks": 1, "mark_scheme": "36 ÷ 8 × 20 = 90 µm (or ×400; 36 ÷ 400 = 0.09 mm = 90 µm).", "explanation": "Lengths in one image are in proportion: the cell is 36 ÷ 8 = 4.5 times as long as the bar, so it is 4.5 × 20 = 90 µm. 90 µm is a sensible size for a plant cell.", "atom_ids": ["0610-2-A51"], "template_id": null, "misconception_id": null, "difficulty": 2}, {"id": "c62", "type": "numeric", "prompt": "Nine identical cells lie end to end across a distance of 0.45 mm. Calculate the average length of one cell in micrometres.", "answer": 50, "tolerance": 0.001, "unit": "µm", "marks": 1, "mark_scheme": "0.45 ÷ 9 = 0.05 mm; 0.05 × 1000 = 50 µm", "explanation": "The nine cells share the distance, so divide by the number of cells, then convert mm to µm.", "atom_ids": ["0610-2-A53", "0610-2-A41"], "template_id": "M4", "misconception_id": null, "difficulty": 2}, {"id": "c63", "type": "numeric", "prompt": "A mitochondrion is 1.38 µm long. Convert this length to millimetres.", "answer": 0.00138, "tolerance": 0.001, "unit": "mm", "marks": 1, "mark_scheme": "1.38 ÷ 1000 = 0.00138 mm (1.38 × 10⁻³ mm)", "explanation": "Micrometres to millimetres means dividing by 1000, which moves the decimal point three places to the left. Leading zeros are easy to lose, so standard form (1.38 × 10⁻³ mm) is also accepted.", "atom_ids": ["0610-2-A55", "0610-2-A41"], "min_sf": 3, "template_id": "T7", "misconception_id": "0610-2-M09", "difficulty": 2}], "atoms": {"0610-2-A51": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-A53": "Average size of one cell = distance spanned / number of identical cells across it.", "0610-2-A55": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm.", "0610-2-M09": "micrometres are changed to millimetres by multiplying by 1000 (2 micrometres = 2000 mm)."}}
data/topics/0417_ch04.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0417_ch04", "subject": "ICT", "code": "0417", "chapter": "Networks and the effects of using them", "mixedQuizId": "0417_ch04_q07", "topics": [{"id": "t1", "order": 1, "title": "Network devices and routing", "goal": "Explain what a NIC, hub, switch, bridge and router each do with data, and how a router routes a packet.", "atom_ids": ["0417-4-A01", "0417-4-A02", "0417-4-A03", "0417-4-A04", "0417-4-A05", "0417-4-A06", "0417-4-A07", "0417-4-A08", "0417-4-A09", "0417-4-A10", "0417-4-A11", "0417-4-A12", "0417-4-A13", "0417-4-A14"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0417_ch04_q01", "atoms": {"0417-4-A01": "Networks let devices share files, printers, software and an internet connection and let people communicate; once data leaves a device it must be delivered to the right place, reach other networks, and be trusted.", "0417-4-A02": "Data is sent across a network as packets; each packet carries part of the data plus a header with the sender and destination addresses.", "0417-4-A03": "A MAC address is a unique identifier fixed into a device's network hardware at manufacture; it identifies the device on a local network.", "0417-4-A04": "An IP address (Internet Protocol address) is unique on a network and identifies the location of a device (not a person); it can change when the device joins another network. MAC says which device, IP says where it is.", "0417-4-A05": "A network interface card (NIC) is the circuit board that connects a device to a network: it prepares, sends, receives and controls the flow of data and gives the device its MAC address.", "0417-4-A06": "A hub connects devices into a network and broadcasts any data it receives to every connected device; it can repeat signals to extend the network.", "0417-4-A07": "Because a hub broadcasts to every device, it creates unnecessary traffic, wastes bandwidth, slows as the network grows and lets every device see data meant for others.", "0417-4-A08": "A switch connects devices to form a LAN; it learns the MAC address of the device on each port, reads the destination MAC address of incoming data and sends it only to that device.", "0417-4-A09": "Hub versus switch: a hub broadcasts to all devices, a switch sends to the specific device because it reads MAC addresses, so a switch reduces traffic and is more secure.", "0417-4-A10": "A bridge joins two segments of a network that use the same protocol so that they act as a single LAN; it does not connect to the internet or choose routes.", "0417-4-A11": "A router has three named operations: connecting networks and devices to the internet (usually via a modem), storing computer addresses, and routing data packets.", "0417-4-A12": "A routing table is a list stored in the router of network (IP) addresses and the best route to each, used to decide where each packet is sent next.", "0417-4-A13": "Routing a packet: the router reads the destination IP address, looks it up in its routing table, forwards the packet to the next router on the best route (default route if not listed), and this repeats until the packet reaches the destination network.", "0417-4-A14": "Bridge versus router: a bridge joins LANs that use the same protocol into one LAN; a router connects a LAN to a WAN such as the internet and chooses routes for packets."}}, {"id": "t2", "order": 2, "title": "Wireless links and network types", "goal": "Compare wi-fi with Bluetooth, describe how to connect each, and tell a LAN, a WLAN and a WAN apart.", "atom_ids": ["0417-4-A15", "0417-4-A16", "0417-4-A17", "0417-4-A18", "0417-4-A19", "0417-4-A20", "0417-4-A21", "0417-4-A22", "0417-4-A23", "0417-4-A24"], "paragraphs": ["P8", "P9", "P10", "P11", "P12"], "quizId": "0417_ch04_q02", "atoms": {"0417-4-A15": "Wi-fi connects devices to a network by radio waves through a wireless access point; range tens of metres, many devices, high data rate; used for laptops, phones, smart TVs and printers, and public hotspots; secured by password and encryption.", "0417-4-A16": "Bluetooth is short-range (about 10 m), low-power, lower-data-rate radio linking two devices directly, hopping across 79 channels; used for headphones, speakers, keyboards, mice, phone-to-car and file transfer between nearby devices.", "0417-4-A17": "Connect by wi-fi: open settings, choose connect to a network, the device lists networks, select one, enter the password, click connect (error message if it fails).", "0417-4-A18": "Connect by Bluetooth: switch on Bluetooth in the computer settings and switch on the device (pairing button), bring them close, the computer scans and lists devices, select the device, pair (confirm a code if asked), connect. Pairing is a one-off link between two specific devices.", "0417-4-A19": "Wi-fi and Bluetooth are both wireless radio links (both can use 2.4 GHz), remove cables and can be encrypted; wi-fi has greater range, speed and device count and joins a network through an access point, Bluetooth is short-range, lower-power and links two devices directly.", "0417-4-A20": "Choose wi-fi when a device needs a network or internet connection or high bandwidth (smart TV streaming); choose Bluetooth for a short-range link to a peripheral (headphones, keyboard).", "0417-4-A21": "A LAN covers a small geographical area (a building or site), is usually owned by one organisation and connects devices by cable through switches.", "0417-4-A22": "A WLAN is a LAN whose devices connect by radio through wireless access points, for example across a hotel or school site.", "0417-4-A23": "A WAN covers a large geographical area (a country or the world) by connecting LANs through leased lines, telephone networks or satellites; the internet is the largest WAN.", "0417-4-A24": "LAN versus WLAN versus WAN: a LAN is faster, cheaper and easier to secure than a WAN; a WLAN gives mobility without cabling but is slower, shorter-range and more open to interference and eavesdropping than a cabled LAN."}}, {"id": "t3", "order": 3, "title": "Internet, intranet and the cloud", "goal": "Distinguish the internet, an intranet and an extranet, and describe how cloud computing stores, manages and shares data.", "atom_ids": ["0417-4-A25", "0417-4-A26", "0417-4-A27", "0417-4-A28", "0417-4-A29", "0417-4-A30", "0417-4-A31", "0417-4-A32", "0417-4-A33", "0417-4-A34", "0417-4-A35", "0417-4-A36", "0417-4-A37", "0417-4-A38"], "paragraphs": ["P13", "P14", "P15", "P16", "P17"], "quizId": "0417_ch04_q03", "atoms": {"0417-4-A25": "The internet is a worldwide network of networks (a WAN): owned by nobody, open to anyone with a connection, anyone can publish, available 24/7; the WWW runs on it.", "0417-4-A26": "An intranet is a private network using internet technologies, accessible only to members of one organisation behind logins and a firewall; used for internal news, policies, forms and documents.", "0417-4-A27": "An extranet extends an organisation's intranet to authorised outsiders such as customers and suppliers, over the internet with a username and password.", "0417-4-A28": "Internet, intranet and extranet all use internet technologies and can hold web pages; the intranet and extranet both restrict access and sit behind security.", "0417-4-A29": "They differ in who may access (anyone / members / members plus authorised outsiders), ownership (nobody / an organisation), amount of information, and trust and security (an extranet adds outside logins).", "0417-4-A30": "Cloud computing stores data and runs software on remote servers in data centres run by a third-party provider and reached through the internet; uses include storage, backup, sharing, online applications and cloud gaming.", "0417-4-A31": "Cloud characteristics: rented by subscription or pay-per-use, capacity expands or shrinks on demand, accessible from any connected device anywhere, copies held on several servers.", "0417-4-A32": "A public cloud is shared by many customers of a provider; a private cloud is used and completely controlled by one organisation, with access restricted to its members.", "0417-4-A33": "How cloud data is stored: the user uploads it, it is saved on remote servers, and it is backed up to other servers.", "0417-4-A34": "How cloud data is managed: the provider maintains hardware, security and backups; the owner or administrator controls access; files are synced; changes are tracked and versions kept; billing follows usage.", "0417-4-A35": "Sharing or transferring via the cloud: upload the file, grant access, each user logs into their cloud account, opens and edits, changes save and sync, a history is kept; at the far end log in and download.", "0417-4-A36": "Advantages of cloud over local or portable storage: access anywhere on many devices, easy sharing, nothing physical to lose or damage, automatic backup, expandable and pay for what you use.", "0417-4-A37": "Disadvantages and issues of the cloud: needs a stable internet connection, ongoing subscription, loss of control to a third party (possibly under other laws), more copies kept longer increases breach risk, data lost if the provider closes or the subscription lapses.", "0417-4-A38": "Non-cloud ways to move files: email attachment, pen drive, portable HDD or SSD, rewritable CD or DVD (USB on its own is a port, not a method)."}}, {"id": "t4", "order": 4, "title": "Passwords and anti-malware", "goal": "Judge password strength, protect passwords from interception, and explain how anti-malware detects and quarantines harmful files.", "atom_ids": ["0417-4-A39", "0417-4-A40", "0417-4-A41", "0417-4-A42", "0417-4-A43", "0417-4-A44", "0417-4-A45", "0417-4-A46", "0417-4-A57", "0417-4-A58", "0417-4-A59", "0417-4-A60", "0417-4-A61"], "paragraphs": ["P18", "P19", "P20", "P21", "P25", "P26", "P27"], "quizId": "0417_ch04_q04", "atoms": {"0417-4-A39": "Privacy means personal data is not seen by those who should not see it; confidentiality means transferred data is read only by its intended recipients; data in transit can be intercepted and passwords captured by spyware, key loggers or shoulder surfing.", "0417-4-A40": "A strong password is long (8+ characters), mixes upper- and lower-case letters, digits and symbols, and has no sequence or personal link; guessing programs try personal details, words and sequences first and each extra character multiplies the guesses.", "0417-4-A41": "A weak password is short, uses one kind of character, is a word or keyboard sequence, or contains personal details such as a name plus birth year.", "0417-4-A42": "Avoid password interception and misuse: up-to-date anti-spyware, change passwords regularly, a different password per account, never share or write them down, beware shoulder surfing.", "0417-4-A43": "Reusing one password on several accounts means one cracked password opens all of them.", "0417-4-A44": "A user ID identifies the account and is unique; the password proves the user owns it and need not be unique; systems mask passwords and lock accounts after repeated failures.", "0417-4-A45": "A very strong password is hard to crack but hard to remember, so it may be written down, typed while looking at the keyboard, mistyped, or have characters confused (1/l, 5/S).", "0417-4-A46": "Forced regular password changes shorten the life of a stolen password but lead to similar passwords (weaker), forgetting and lock-out, and writing passwords down.", "0417-4-A57": "Malware is malicious software (viruses, worms, Trojans, spyware, ransomware); anti-virus software targets viruses, anti-malware software covers the wider range.", "0417-4-A58": "Anti-virus and anti-malware compare files with a database of known signatures, and heuristic checks look for suspicious code or behaviour; the software must be kept up to date because the database changes daily.", "0417-4-A59": "When malware is found: the software alerts the user and deletes or quarantines the file (moves it to a hidden, isolated area where it cannot run, spread or be opened), then re-scans.", "0417-4-A60": "Quarantine rather than delete when deletion is unsafe, typically infected system files the computer needs, or when the detection may be a false alarm.", "0417-4-A61": "Scan portable storage media before opening or copying from them, and scan downloads and email attachments before opening; if clean, open or download; if infected, delete without opening."}}, {"id": "t5", "order": 5, "title": "Other ways to prove identity", "goal": "Describe biometrics, cards, tokens and zero login, with the benefits and drawbacks of each, and recognise two-factor authentication.", "atom_ids": ["0417-4-A47", "0417-4-A48", "0417-4-A49", "0417-4-A50", "0417-4-A51", "0417-4-A52", "0417-4-A53", "0417-4-A54", "0417-4-A55", "0417-4-A56"], "paragraphs": ["P22", "P23", "P24"], "quizId": "0417_ch04_q05", "atoms": {"0417-4-A47": "Biometric methods authenticate by a unique physical or behavioural feature: fingerprint or thumbprint, face, iris, retina, voice, hand geometry, typing pattern.", "0417-4-A48": "Benefits of biometrics: unique, cannot be forgotten or lost, very hard (not impossible) to forge, the person must be present, no shoulder surfing.", "0417-4-A49": "Drawbacks of biometrics: expensive and slow to set up and enrol; misreads if a finger is wet or cut, a voice changes, the scanner is dirty or it is noisy; privacy concerns; a stolen biometric cannot be changed.", "0417-4-A50": "A magnetic stripe card stores data in a strip read by swiping: cheap and quick but damaged by magnets, wears, easy to clone and usable by whoever holds it, so a PIN is often added.", "0417-4-A51": "A smart card holds a chip that stores data securely: more data than a magnetic stripe, much harder to clone, can be contactless, usually with a PIN; both are lost-card risks.", "0417-4-A52": "A physical token is a small hardware device that generates a one-time passcode valid for a short time, entered with the password as an extra layer of security.", "0417-4-A53": "An electronic token is software (an app, or a code sent by text or email after login) giving a single-use, short-lived code; it does the job of a physical token without hardware.", "0417-4-A54": "Zero login authenticates the user in the background from signals such as device, network, location and biometrics, with no manual input.", "0417-4-A55": "Zero login: no password to forget or shoulder-surf and faster login; but it runs constantly using resources, raises privacy concerns, can raise device cost and ties access to the recognised user and device.", "0417-4-A56": "Authentication factors are something you know, have, are, or where you are; two-factor authentication combines two different types for an extra layer of security."}}, {"id": "t6", "order": 6, "title": "Electronic conferencing", "goal": "Compare video-, audio- and web-conferencing, state the hardware and software each needs, and write specific two-sided exam points.", "atom_ids": ["0417-4-A62", "0417-4-A63", "0417-4-A64", "0417-4-A65", "0417-4-A66", "0417-4-A67", "0417-4-A68", "0417-4-A69", "0417-4-A70"], "paragraphs": ["P28", "P29", "P30", "P31", "P32"], "quizId": "0417_ch04_q06", "atoms": {"0417-4-A62": "Electronic conferencing is real-time communication over a network between people in different places; shared benefits: no travel time or costs, meetings at short notice, safer, anyone anywhere can join.", "0417-4-A63": "Shared drawbacks of conferencing: needs a fast stable internet connection, time zones, lag, freezing, lip-sync and echo problems, equipment and training costs, less personal and harder to hold attention.", "0417-4-A64": "Video-conferencing hardware: computer, webcam, microphone, speakers or headphones, monitor or large screen, router or internet connection.", "0417-4-A65": "Video-conferencing software: conferencing software, hardware drivers (make webcam and microphone work), a CODEC (compresses and decompresses the streams), echo-cancellation (stops the microphone picking up the speakers).", "0417-4-A66": "Audio-conferencing is voice only: participants join one call, often by dialling into a central system with a PIN, using a telephone handset or a computer's microphone and speakers with an audio-conferencing app.", "0417-4-A67": "Audio versus video-conferencing: audio is simpler, cheaper, needs less bandwidth (less freezing), has no lip-sync issues and gives more privacy, but loses body language and visual aids and makes attention and turn-taking hard to judge.", "0417-4-A68": "Web-conferencing (including webinars) runs in a browser or app over the internet: participants see the same screen, presentations and documents, with chat, polls and optional audio and video.", "0417-4-A69": "Web- versus video-conferencing: web needs less dedicated hardware and software, works on more devices and has fewer lag problems, but is less personal; versus meeting in person it saves travel and can be recorded but needs suitable devices and connections for all.", "0417-4-A70": "Paper 1 conventions: list points, first answers only marked; 6-mark discussions need both sides (max five a side); step questions earn one mark per distinct step; specific wording ('stable internet connection', 'large geographical area', 'MAC address'); generic names, never brands."}}]}
 
1
+ {"chapterId": "0417_ch04", "subject": "ICT", "code": "0417", "chapter": "Networks and the effects of using them", "mixedQuizId": "0417_ch04_q07", "topics": [{"id": "t1", "order": 1, "title": "Network devices and routing", "goal": "Explain what a NIC, hub, switch, bridge and router each do with data, and how a router routes a packet.", "atom_ids": ["0417-4-A01", "0417-4-A02", "0417-4-A03", "0417-4-A04", "0417-4-A05", "0417-4-A06", "0417-4-A07", "0417-4-A08", "0417-4-A09", "0417-4-A10", "0417-4-A11", "0417-4-A12", "0417-4-A13", "0417-4-A14"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0417_ch04_q01", "atoms": {"0417-4-A01": "Networks let devices share files, printers, software and an internet connection and let people communicate; once data leaves a device it must be delivered to the right place, reach other networks, and be trusted.", "0417-4-A02": "Data is sent across a network as packets; each packet carries part of the data plus a header with the sender and destination addresses.", "0417-4-A03": "A MAC address is a unique identifier fixed into a device's network hardware at manufacture; it identifies the device on a local network.", "0417-4-A04": "An IP address (Internet Protocol address) is unique on a network and identifies the location of a device (not a person); it can change when the device joins another network. MAC says which device, IP says where it is.", "0417-4-A05": "A network interface card (NIC) is the circuit board that connects a device to a network: it prepares, sends, receives and controls the flow of data and gives the device its MAC address.", "0417-4-A06": "A hub connects devices into a network and broadcasts any data it receives to every connected device; it can repeat signals to extend the network.", "0417-4-A07": "Because a hub broadcasts to every device, it creates unnecessary traffic, wastes bandwidth, slows as the network grows and lets every device see data meant for others.", "0417-4-A08": "A switch connects devices to form a LAN; it learns the MAC address of the device on each port, reads the destination MAC address of incoming data and sends it only to that device.", "0417-4-A09": "Hub versus switch: a hub broadcasts to all devices, a switch sends to the specific device because it reads MAC addresses, so a switch reduces traffic and is more secure.", "0417-4-A10": "A bridge joins two segments of a network that use the same protocol so that they act as a single LAN; it does not connect to the internet or choose routes.", "0417-4-A11": "A router has three named operations: connecting networks and devices to the internet (usually via a modem), storing computer addresses, and routing data packets.", "0417-4-A12": "A routing table is a list stored in the router of network (IP) addresses and the best route to each, used to decide where each packet is sent next.", "0417-4-A13": "Routing a packet: the router reads the destination IP address, looks it up in its routing table, forwards the packet to the next router on the best route (default route if not listed), and this repeats until the packet reaches the destination network.", "0417-4-A14": "Bridge versus router: a bridge joins LANs that use the same protocol into one LAN; a router connects a LAN to a WAN such as the internet and chooses routes for packets."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Wireless links and network types", "goal": "Compare wi-fi with Bluetooth, describe how to connect each, and tell a LAN, a WLAN and a WAN apart.", "atom_ids": ["0417-4-A15", "0417-4-A16", "0417-4-A17", "0417-4-A18", "0417-4-A19", "0417-4-A20", "0417-4-A21", "0417-4-A22", "0417-4-A23", "0417-4-A24"], "paragraphs": ["P8", "P9", "P10", "P11", "P12"], "quizId": "0417_ch04_q02", "atoms": {"0417-4-A15": "Wi-fi connects devices to a network by radio waves through a wireless access point; range tens of metres, many devices, high data rate; used for laptops, phones, smart TVs and printers, and public hotspots; secured by password and encryption.", "0417-4-A16": "Bluetooth is short-range (about 10 m), low-power, lower-data-rate radio linking two devices directly, hopping across 79 channels; used for headphones, speakers, keyboards, mice, phone-to-car and file transfer between nearby devices.", "0417-4-A17": "Connect by wi-fi: open settings, choose connect to a network, the device lists networks, select one, enter the password, click connect (error message if it fails).", "0417-4-A18": "Connect by Bluetooth: switch on Bluetooth in the computer settings and switch on the device (pairing button), bring them close, the computer scans and lists devices, select the device, pair (confirm a code if asked), connect. Pairing is a one-off link between two specific devices.", "0417-4-A19": "Wi-fi and Bluetooth are both wireless radio links (both can use 2.4 GHz), remove cables and can be encrypted; wi-fi has greater range, speed and device count and joins a network through an access point, Bluetooth is short-range, lower-power and links two devices directly.", "0417-4-A20": "Choose wi-fi when a device needs a network or internet connection or high bandwidth (smart TV streaming); choose Bluetooth for a short-range link to a peripheral (headphones, keyboard).", "0417-4-A21": "A LAN covers a small geographical area (a building or site), is usually owned by one organisation and connects devices by cable through switches.", "0417-4-A22": "A WLAN is a LAN whose devices connect by radio through wireless access points, for example across a hotel or school site.", "0417-4-A23": "A WAN covers a large geographical area (a country or the world) by connecting LANs through leased lines, telephone networks or satellites; the internet is the largest WAN.", "0417-4-A24": "LAN versus WLAN versus WAN: a LAN is faster, cheaper and easier to secure than a WAN; a WLAN gives mobility without cabling but is slower, shorter-range and more open to interference and eavesdropping than a cabled LAN."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Internet, intranet and the cloud", "goal": "Distinguish the internet, an intranet and an extranet, and describe how cloud computing stores, manages and shares data.", "atom_ids": ["0417-4-A25", "0417-4-A26", "0417-4-A27", "0417-4-A28", "0417-4-A29", "0417-4-A30", "0417-4-A31", "0417-4-A32", "0417-4-A33", "0417-4-A34", "0417-4-A35", "0417-4-A36", "0417-4-A37", "0417-4-A38"], "paragraphs": ["P13", "P14", "P15", "P16", "P17"], "quizId": "0417_ch04_q03", "atoms": {"0417-4-A25": "The internet is a worldwide network of networks (a WAN): owned by nobody, open to anyone with a connection, anyone can publish, available 24/7; the WWW runs on it.", "0417-4-A26": "An intranet is a private network using internet technologies, accessible only to members of one organisation behind logins and a firewall; used for internal news, policies, forms and documents.", "0417-4-A27": "An extranet extends an organisation's intranet to authorised outsiders such as customers and suppliers, over the internet with a username and password.", "0417-4-A28": "Internet, intranet and extranet all use internet technologies and can hold web pages; the intranet and extranet both restrict access and sit behind security.", "0417-4-A29": "They differ in who may access (anyone / members / members plus authorised outsiders), ownership (nobody / an organisation), amount of information, and trust and security (an extranet adds outside logins).", "0417-4-A30": "Cloud computing stores data and runs software on remote servers in data centres run by a third-party provider and reached through the internet; uses include storage, backup, sharing, online applications and cloud gaming.", "0417-4-A31": "Cloud characteristics: rented by subscription or pay-per-use, capacity expands or shrinks on demand, accessible from any connected device anywhere, copies held on several servers.", "0417-4-A32": "A public cloud is shared by many customers of a provider; a private cloud is used and completely controlled by one organisation, with access restricted to its members.", "0417-4-A33": "How cloud data is stored: the user uploads it, it is saved on remote servers, and it is backed up to other servers.", "0417-4-A34": "How cloud data is managed: the provider maintains hardware, security and backups; the owner or administrator controls access; files are synced; changes are tracked and versions kept; billing follows usage.", "0417-4-A35": "Sharing or transferring via the cloud: upload the file, grant access, each user logs into their cloud account, opens and edits, changes save and sync, a history is kept; at the far end log in and download.", "0417-4-A36": "Advantages of cloud over local or portable storage: access anywhere on many devices, easy sharing, nothing physical to lose or damage, automatic backup, expandable and pay for what you use.", "0417-4-A37": "Disadvantages and issues of the cloud: needs a stable internet connection, ongoing subscription, loss of control to a third party (possibly under other laws), more copies kept longer increases breach risk, data lost if the provider closes or the subscription lapses.", "0417-4-A38": "Non-cloud ways to move files: email attachment, pen drive, portable HDD or SSD, rewritable CD or DVD (USB on its own is a port, not a method)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Passwords and anti-malware", "goal": "Judge password strength, protect passwords from interception, and explain how anti-malware detects and quarantines harmful files.", "atom_ids": ["0417-4-A39", "0417-4-A40", "0417-4-A41", "0417-4-A42", "0417-4-A43", "0417-4-A44", "0417-4-A45", "0417-4-A46", "0417-4-A57", "0417-4-A58", "0417-4-A59", "0417-4-A60", "0417-4-A61"], "paragraphs": ["P18", "P19", "P20", "P21", "P25", "P26", "P27"], "quizId": "0417_ch04_q04", "atoms": {"0417-4-A39": "Privacy means personal data is not seen by those who should not see it; confidentiality means transferred data is read only by its intended recipients; data in transit can be intercepted and passwords captured by spyware, key loggers or shoulder surfing.", "0417-4-A40": "A strong password is long (8+ characters), mixes upper- and lower-case letters, digits and symbols, and has no sequence or personal link; guessing programs try personal details, words and sequences first and each extra character multiplies the guesses.", "0417-4-A41": "A weak password is short, uses one kind of character, is a word or keyboard sequence, or contains personal details such as a name plus birth year.", "0417-4-A42": "Avoid password interception and misuse: up-to-date anti-spyware, change passwords regularly, a different password per account, never share or write them down, beware shoulder surfing.", "0417-4-A43": "Reusing one password on several accounts means one cracked password opens all of them.", "0417-4-A44": "A user ID identifies the account and is unique; the password proves the user owns it and need not be unique; systems mask passwords and lock accounts after repeated failures.", "0417-4-A45": "A very strong password is hard to crack but hard to remember, so it may be written down, typed while looking at the keyboard, mistyped, or have characters confused (1/l, 5/S).", "0417-4-A46": "Forced regular password changes shorten the life of a stolen password but lead to similar passwords (weaker), forgetting and lock-out, and writing passwords down.", "0417-4-A57": "Malware is malicious software (viruses, worms, Trojans, spyware, ransomware); anti-virus software targets viruses, anti-malware software covers the wider range.", "0417-4-A58": "Anti-virus and anti-malware compare files with a database of known signatures, and heuristic checks look for suspicious code or behaviour; the software must be kept up to date because the database changes daily.", "0417-4-A59": "When malware is found: the software alerts the user and deletes or quarantines the file (moves it to a hidden, isolated area where it cannot run, spread or be opened), then re-scans.", "0417-4-A60": "Quarantine rather than delete when deletion is unsafe, typically infected system files the computer needs, or when the detection may be a false alarm.", "0417-4-A61": "Scan portable storage media before opening or copying from them, and scan downloads and email attachments before opening; if clean, open or download; if infected, delete without opening."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Other ways to prove identity", "goal": "Describe biometrics, cards, tokens and zero login, with the benefits and drawbacks of each, and recognise two-factor authentication.", "atom_ids": ["0417-4-A47", "0417-4-A48", "0417-4-A49", "0417-4-A50", "0417-4-A51", "0417-4-A52", "0417-4-A53", "0417-4-A54", "0417-4-A55", "0417-4-A56"], "paragraphs": ["P22", "P23", "P24"], "quizId": "0417_ch04_q05", "atoms": {"0417-4-A47": "Biometric methods authenticate by a unique physical or behavioural feature: fingerprint or thumbprint, face, iris, retina, voice, hand geometry, typing pattern.", "0417-4-A48": "Benefits of biometrics: unique, cannot be forgotten or lost, very hard (not impossible) to forge, the person must be present, no shoulder surfing.", "0417-4-A49": "Drawbacks of biometrics: expensive and slow to set up and enrol; misreads if a finger is wet or cut, a voice changes, the scanner is dirty or it is noisy; privacy concerns; a stolen biometric cannot be changed.", "0417-4-A50": "A magnetic stripe card stores data in a strip read by swiping: cheap and quick but damaged by magnets, wears, easy to clone and usable by whoever holds it, so a PIN is often added.", "0417-4-A51": "A smart card holds a chip that stores data securely: more data than a magnetic stripe, much harder to clone, can be contactless, usually with a PIN; both are lost-card risks.", "0417-4-A52": "A physical token is a small hardware device that generates a one-time passcode valid for a short time, entered with the password as an extra layer of security.", "0417-4-A53": "An electronic token is software (an app, or a code sent by text or email after login) giving a single-use, short-lived code; it does the job of a physical token without hardware.", "0417-4-A54": "Zero login authenticates the user in the background from signals such as device, network, location and biometrics, with no manual input.", "0417-4-A55": "Zero login: no password to forget or shoulder-surf and faster login; but it runs constantly using resources, raises privacy concerns, can raise device cost and ties access to the recognised user and device.", "0417-4-A56": "Authentication factors are something you know, have, are, or where you are; two-factor authentication combines two different types for an extra layer of security."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Electronic conferencing", "goal": "Compare video-, audio- and web-conferencing, state the hardware and software each needs, and write specific two-sided exam points.", "atom_ids": ["0417-4-A62", "0417-4-A63", "0417-4-A64", "0417-4-A65", "0417-4-A66", "0417-4-A67", "0417-4-A68", "0417-4-A69", "0417-4-A70"], "paragraphs": ["P28", "P29", "P30", "P31", "P32"], "quizId": "0417_ch04_q06", "atoms": {"0417-4-A62": "Electronic conferencing is real-time communication over a network between people in different places; shared benefits: no travel time or costs, meetings at short notice, safer, anyone anywhere can join.", "0417-4-A63": "Shared drawbacks of conferencing: needs a fast stable internet connection, time zones, lag, freezing, lip-sync and echo problems, equipment and training costs, less personal and harder to hold attention.", "0417-4-A64": "Video-conferencing hardware: computer, webcam, microphone, speakers or headphones, monitor or large screen, router or internet connection.", "0417-4-A65": "Video-conferencing software: conferencing software, hardware drivers (make webcam and microphone work), a CODEC (compresses and decompresses the streams), echo-cancellation (stops the microphone picking up the speakers).", "0417-4-A66": "Audio-conferencing is voice only: participants join one call, often by dialling into a central system with a PIN, using a telephone handset or a computer's microphone and speakers with an audio-conferencing app.", "0417-4-A67": "Audio versus video-conferencing: audio is simpler, cheaper, needs less bandwidth (less freezing), has no lip-sync issues and gives more privacy, but loses body language and visual aids and makes attention and turn-taking hard to judge.", "0417-4-A68": "Web-conferencing (including webinars) runs in a browser or app over the internet: participants see the same screen, presentations and documents, with chat, polls and optional audio and video.", "0417-4-A69": "Web- versus video-conferencing: web needs less dedicated hardware and software, works on more devices and has fewer lag problems, but is less personal; versus meeting in person it saves travel and can be recorded but needs suitable devices and connections for all.", "0417-4-A70": "Paper 1 conventions: list points, first answers only marked; 6-mark discussions need both sides (max five a side); step questions earn one mark per distinct step; specific wording ('stable internet connection', 'large geographical area', 'MAC address'); generic names, never brands."}, "chunks": []}]}
data/topics/0455_ch1_basic_economic_problem.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0455_ch1_basic_economic_problem", "subject": "Economics", "code": "0455", "chapter": "The basic economic problem", "mixedQuizId": "0455_ch1_basic_economic_problem_q07", "topics": [{"id": "t1", "order": 1, "title": "Scarcity and choice", "goal": "Explain the basic economic problem, the three basic economic questions and the difference between free and economic goods.", "atom_ids": ["0455-1.1-A01", "0455-1.1-A02", "0455-1.1-A03", "0455-1.1-A04", "0455-1.1-A05", "0455-1.1-A06", "0455-1.1-A07", "0455-1.1-A08", "0455-1.1-A09", "0455-1.1-A10", "0455-1.1-A11", "0455-1.1-A12", "0455-1.1-A13", "0455-1.1-A14", "0455-1.1-A15"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0455_ch1_basic_economic_problem_q01", "atoms": {"0455-1.1-A01": "Human wants are infinite (unlimited) while resources (factors of production) are finite (limited).", "0455-1.1-A02": "The basic economic problem: finite resources cannot satisfy infinite wants.", "0455-1.1-A03": "Scarcity means there is not enough of something to satisfy all wants for it at no cost; it is relative to wants, so a common good can be scarce.", "0455-1.1-A04": "Because of scarcity every decision-maker must choose; higher income lets rich people and rich countries satisfy more wants but never all, so they still face the problem.", "0455-1.1-A05": "Consumers face the economic problem through limited income, so buying one product means not buying another or not saving.", "0455-1.1-A06": "Workers face the economic problem through limited time and skills: they choose between jobs and between work and leisure.", "0455-1.1-A07": "Producers (firms) face the economic problem through limited finance, land and capital: they choose what to make and which inputs to buy.", "0455-1.1-A08": "Governments face the economic problem through limited tax revenue: spending on one project means less for others, and some projects cannot be funded at all.", "0455-1.1-A09": "Scarcity forces three basic economic questions that determine resource allocation: what to produce, how to produce, who (for whom) to produce for.", "0455-1.1-A10": "What = which goods and how much (e.g. capital vs consumer goods); how = which method (capital- or labour-intensive); for whom = how output is shared (ability to pay, need, equally).", "0455-1.1-A11": "Every economy must answer all three questions, whatever its system; 'when' or 'how much' alone are not among them, and the three questions are a consequence of the economic problem, not its definition.", "0455-1.1-A12": "A free good is in unlimited supply, needs no scarce resources to produce and has zero opportunity cost (air, sunlight, wind, seawater).", "0455-1.1-A13": "An economic good is scarce: it uses factors of production, so it has an opportunity cost and usually a price.", "0455-1.1-A14": "Free of charge is not the same as a free good: free samples and state health care are economic goods whose opportunity cost is borne by a firm or taxpayers.", "0455-1.1-A15": "A free good becomes an economic good when it becomes scarce, e.g. clean air in a polluted city or fresh water in a desert."}}, {"id": "t2", "order": 2, "title": "Factors and their rewards", "goal": "Classify resources as land, labour, capital or enterprise and match each factor to its reward.", "atom_ids": ["0455-1.2-A01", "0455-1.2-A02", "0455-1.2-A03", "0455-1.2-A04", "0455-1.2-A05", "0455-1.2-A06", "0455-1.2-A07", "0455-1.2-A08"], "paragraphs": ["P5", "P6", "P7"], "quizId": "0455_ch1_basic_economic_problem_q02", "atoms": {"0455-1.2-A01": "A factor of production is a resource (input) used to produce goods and services.", "0455-1.2-A02": "Land is all natural resources: soil, the sea, rivers, minerals, oil, forests, fish, beaches.", "0455-1.2-A03": "Labour is human effort, physical and mental, used in production.", "0455-1.2-A04": "Capital is human-made goods used to produce other goods and services (machines, factories, offices, vehicles, roads, railway track); these are capital goods, unlike consumer goods bought for satisfaction.", "0455-1.2-A05": "Enterprise is organising the other factors, making the key decisions and bearing the risk of the business; the entrepreneur provides it and differs from an employed worker.", "0455-1.2-A06": "Classify a resource by what it is and how it is used: money is not a factor; buildings are capital; crops are output, not land; the same car is capital for a taxi firm and a consumer good for a family.", "0455-1.2-A07": "Rewards: land earns rent, labour earns wages, capital earns interest, enterprise earns profit.", "0455-1.2-A08": "Rent, wages and interest are agreed before production; profit is the residual after all other factors are paid, so it is unknown in advance and may be a loss."}}, {"id": "t3", "order": 3, "title": "Changing factors", "goal": "Explain what changes the quantity and the quality of each factor of production.", "atom_ids": ["0455-1.2-A09", "0455-1.2-A10", "0455-1.2-A11", "0455-1.2-A12", "0455-1.2-A13", "0455-1.2-A14", "0455-1.2-A15", "0455-1.2-A16"], "paragraphs": ["P8", "P9"], "quizId": "0455_ch1_basic_economic_problem_q03", "atoms": {"0455-1.2-A09": "The quantity of land rises with reclamation, discoveries of resources and recovering fish stocks; it falls with depletion, erosion, flooding and deforestation.", "0455-1.2-A10": "The quantity of labour rises with a larger working-age population, immigration, a higher retirement age, a lower school-leaving age and more women joining the labour force; it falls with emigration and an ageing population.", "0455-1.2-A11": "The labour force includes the unemployed who are seeking work, so a change in unemployment does not change the quantity of labour.", "0455-1.2-A12": "The quantity of capital rises through investment (spending on capital goods) and falls when capital wears out unreplaced or is destroyed.", "0455-1.2-A13": "The quantity of enterprise rises with lower taxes on profit or interest rates, lighter regulation and education in business skills; it falls with higher taxes, recession and uncertainty, heavy regulation and emigration of entrepreneurs.", "0455-1.2-A14": "The quality of labour rises with education, training, better health care and experience, raising productivity.", "0455-1.2-A15": "The quality of land rises with fertilisers and irrigation and falls with pollution, erosion and over-use; the quality of capital rises with new technology and R&D; the quality of enterprise with education and experience.", "0455-1.2-A16": "To explain a cause of change in a factor, name the change and state its effect on quantity or quality (the development mark)."}}, {"id": "t4", "order": 4, "title": "Opportunity cost", "goal": "Define opportunity cost, measure it in context and explain how it shapes decisions.", "atom_ids": ["0455-1.3-A01", "0455-1.3-A02", "0455-1.3-A03", "0455-1.3-A04", "0455-1.3-A05", "0455-1.3-A06", "0455-1.3-A07", "0455-1.3-A08", "0455-1.3-A09", "0455-1.3-A10"], "paragraphs": ["P10", "P11", "P12"], "quizId": "0455_ch1_basic_economic_problem_q04", "atoms": {"0455-1.3-A01": "Opportunity cost is the next best alternative forgone when a choice is made.", "0455-1.3-A02": "'Next best' means the single most valued alternative not taken (not every rejected option); 'forgone' means given up, not the thing chosen and not its price.", "0455-1.3-A03": "Opportunity cost exists because of scarcity, so free goods have zero opportunity cost and economic goods always have one.", "0455-1.3-A04": "Opportunity cost is measured in whatever is given up (goods, time, leisure, earnings), not in the money price paid for the choice.", "0455-1.3-A05": "Identify the opportunity cost of a named choice: spending vs saving; leisure vs pay; exporting vs selling at home; one government programme vs another; one land use vs another.", "0455-1.3-A06": "Calculate opportunity cost: output forgone = rate x time (e.g. 8 bowls an hour x 6 hours = 48 bowls), or the value of the rejected option over the whole period.", "0455-1.3-A07": "Consumers use opportunity cost when choosing between purchases, or between spending and saving, because their income is limited.", "0455-1.3-A08": "Workers weigh opportunity cost in choosing jobs, work vs leisure, and earning now vs training; a rise in the pay of the present job raises the opportunity cost of leaving it.", "0455-1.3-A09": "Producers weigh opportunity cost in deciding what to make, which method and where to locate; spending on one input (new machinery) means forgoing another (extra staff).", "0455-1.3-A10": "Governments weigh opportunity cost when ranking spending from limited tax revenue (a road vs school places); knowing it does not dictate the choice but asks whether the benefit exceeds the best alternative forgone."}}, {"id": "t5", "order": 5, "title": "Reading a PPC", "goal": "Interpret points on, inside and beyond a PPC and read opportunity cost from movements along it.", "atom_ids": ["0455-1.4-A01", "0455-1.4-A02", "0455-1.4-A03", "0455-1.4-A04", "0455-1.4-A05", "0455-1.4-A06", "0455-1.4-A07", "0455-1.4-A08"], "paragraphs": ["P13", "P14", "P15"], "quizId": "0455_ch1_basic_economic_problem_q05", "atoms": {"0455-1.4-A01": "A PPC shows the maximum combinations of two goods (or types of goods) an economy can produce with all its resources fully and efficiently employed, given its technology.", "0455-1.4-A02": "A PPC diagram has the output of one good on each axis (never price and quantity), and the curve is drawn to both axes, usually bowed outwards.", "0455-1.4-A03": "A point on the PPC means resources are fully and efficiently employed and output is at its maximum; more of one good then requires less of the other.", "0455-1.4-A04": "A point inside the PPC means unemployed or inefficiently used resources and output below potential; moving towards the curve raises both goods with no opportunity cost and is not a shift.", "0455-1.4-A05": "A point beyond the PPC is unattainable with current resources and technology; it can be reached only if the PPC shifts outwards.", "0455-1.4-A06": "A movement along the PPC reallocates resources between the goods; the opportunity cost of more of one good is the amount of the other given up.", "0455-1.4-A07": "Read opportunity cost from a PPC or its schedule: the fall in the other good for the gain in this one, in units of the other good (e.g. 85 to 65 food for 20 to 30 machines = 2 food per machine).", "0455-1.4-A08": "A bowed-out PPC shows increasing opportunity cost because resources are not equally suited to both goods; a straight-line PPC shows constant opportunity cost."}}, {"id": "t6", "order": 6, "title": "Shifting the PPC", "goal": "Explain what shifts a PPC, what the shift means for growth, and how today's choices move it.", "atom_ids": ["0455-1.4-A09", "0455-1.4-A10", "0455-1.4-A11", "0455-1.4-A12", "0455-1.4-A13", "0455-1.4-A14"], "paragraphs": ["P16", "P17", "P18"], "quizId": "0455_ch1_basic_economic_problem_q06", "atoms": {"0455-1.4-A09": "The PPC shifts outwards when the quantity or quality of factors of production rises (investment, immigration, reclamation, discoveries, education and training, new technology); a change affecting one good moves only that good's intercept.", "0455-1.4-A10": "The PPC shifts inwards when productive capacity falls: natural disasters or war destroying land and capital, emigration or a shrinking labour force, depletion of resources, climate damage.", "0455-1.4-A11": "An outward shift is economic growth in productive potential: more of both goods becomes possible and living standards can rise; an inward shift reduces what the economy can produce.", "0455-1.4-A12": "A rise in unemployment or a recession moves production to a point inside the PPC (not a shift); a fall in the labour force or the stock of capital shifts the PPC inwards (not a movement along).", "0455-1.4-A13": "Producing more capital goods now costs consumer goods now but shifts the PPC further out in future; using up non-renewable resources may shift the future PPC inwards.", "0455-1.4-A14": "Draw and analyse a PPC shift for an event: axes labelled with two outputs, original and new curves both to the axes, shift arrowed or labelled PPC1 to PPC2, then explain the change in resources and productive capacity."}}]}
 
1
+ {"chapterId": "0455_ch1_basic_economic_problem", "subject": "Economics", "code": "0455", "chapter": "The basic economic problem", "mixedQuizId": "0455_ch1_basic_economic_problem_q07", "topics": [{"id": "t1", "order": 1, "title": "Scarcity and choice", "goal": "Explain the basic economic problem, the three basic economic questions and the difference between free and economic goods.", "atom_ids": ["0455-1.1-A01", "0455-1.1-A02", "0455-1.1-A03", "0455-1.1-A04", "0455-1.1-A05", "0455-1.1-A06", "0455-1.1-A07", "0455-1.1-A08", "0455-1.1-A09", "0455-1.1-A10", "0455-1.1-A11", "0455-1.1-A12", "0455-1.1-A13", "0455-1.1-A14", "0455-1.1-A15"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0455_ch1_basic_economic_problem_q01", "atoms": {"0455-1.1-A01": "Human wants are infinite (unlimited) while resources (factors of production) are finite (limited).", "0455-1.1-A02": "The basic economic problem: finite resources cannot satisfy infinite wants.", "0455-1.1-A03": "Scarcity means there is not enough of something to satisfy all wants for it at no cost; it is relative to wants, so a common good can be scarce.", "0455-1.1-A04": "Because of scarcity every decision-maker must choose; higher income lets rich people and rich countries satisfy more wants but never all, so they still face the problem.", "0455-1.1-A05": "Consumers face the economic problem through limited income, so buying one product means not buying another or not saving.", "0455-1.1-A06": "Workers face the economic problem through limited time and skills: they choose between jobs and between work and leisure.", "0455-1.1-A07": "Producers (firms) face the economic problem through limited finance, land and capital: they choose what to make and which inputs to buy.", "0455-1.1-A08": "Governments face the economic problem through limited tax revenue: spending on one project means less for others, and some projects cannot be funded at all.", "0455-1.1-A09": "Scarcity forces three basic economic questions that determine resource allocation: what to produce, how to produce, who (for whom) to produce for.", "0455-1.1-A10": "What = which goods and how much (e.g. capital vs consumer goods); how = which method (capital- or labour-intensive); for whom = how output is shared (ability to pay, need, equally).", "0455-1.1-A11": "Every economy must answer all three questions, whatever its system; 'when' or 'how much' alone are not among them, and the three questions are a consequence of the economic problem, not its definition.", "0455-1.1-A12": "A free good is in unlimited supply, needs no scarce resources to produce and has zero opportunity cost (air, sunlight, wind, seawater).", "0455-1.1-A13": "An economic good is scarce: it uses factors of production, so it has an opportunity cost and usually a price.", "0455-1.1-A14": "Free of charge is not the same as a free good: free samples and state health care are economic goods whose opportunity cost is borne by a firm or taxpayers.", "0455-1.1-A15": "A free good becomes an economic good when it becomes scarce, e.g. clean air in a polluted city or fresh water in a desert."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Factors and their rewards", "goal": "Classify resources as land, labour, capital or enterprise and match each factor to its reward.", "atom_ids": ["0455-1.2-A01", "0455-1.2-A02", "0455-1.2-A03", "0455-1.2-A04", "0455-1.2-A05", "0455-1.2-A06", "0455-1.2-A07", "0455-1.2-A08"], "paragraphs": ["P5", "P6", "P7"], "quizId": "0455_ch1_basic_economic_problem_q02", "atoms": {"0455-1.2-A01": "A factor of production is a resource (input) used to produce goods and services.", "0455-1.2-A02": "Land is all natural resources: soil, the sea, rivers, minerals, oil, forests, fish, beaches.", "0455-1.2-A03": "Labour is human effort, physical and mental, used in production.", "0455-1.2-A04": "Capital is human-made goods used to produce other goods and services (machines, factories, offices, vehicles, roads, railway track); these are capital goods, unlike consumer goods bought for satisfaction.", "0455-1.2-A05": "Enterprise is organising the other factors, making the key decisions and bearing the risk of the business; the entrepreneur provides it and differs from an employed worker.", "0455-1.2-A06": "Classify a resource by what it is and how it is used: money is not a factor; buildings are capital; crops are output, not land; the same car is capital for a taxi firm and a consumer good for a family.", "0455-1.2-A07": "Rewards: land earns rent, labour earns wages, capital earns interest, enterprise earns profit.", "0455-1.2-A08": "Rent, wages and interest are agreed before production; profit is the residual after all other factors are paid, so it is unknown in advance and may be a loss."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Changing factors", "goal": "Explain what changes the quantity and the quality of each factor of production.", "atom_ids": ["0455-1.2-A09", "0455-1.2-A10", "0455-1.2-A11", "0455-1.2-A12", "0455-1.2-A13", "0455-1.2-A14", "0455-1.2-A15", "0455-1.2-A16"], "paragraphs": ["P8", "P9"], "quizId": "0455_ch1_basic_economic_problem_q03", "atoms": {"0455-1.2-A09": "The quantity of land rises with reclamation, discoveries of resources and recovering fish stocks; it falls with depletion, erosion, flooding and deforestation.", "0455-1.2-A10": "The quantity of labour rises with a larger working-age population, immigration, a higher retirement age, a lower school-leaving age and more women joining the labour force; it falls with emigration and an ageing population.", "0455-1.2-A11": "The labour force includes the unemployed who are seeking work, so a change in unemployment does not change the quantity of labour.", "0455-1.2-A12": "The quantity of capital rises through investment (spending on capital goods) and falls when capital wears out unreplaced or is destroyed.", "0455-1.2-A13": "The quantity of enterprise rises with lower taxes on profit or interest rates, lighter regulation and education in business skills; it falls with higher taxes, recession and uncertainty, heavy regulation and emigration of entrepreneurs.", "0455-1.2-A14": "The quality of labour rises with education, training, better health care and experience, raising productivity.", "0455-1.2-A15": "The quality of land rises with fertilisers and irrigation and falls with pollution, erosion and over-use; the quality of capital rises with new technology and R&D; the quality of enterprise with education and experience.", "0455-1.2-A16": "To explain a cause of change in a factor, name the change and state its effect on quantity or quality (the development mark)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Opportunity cost", "goal": "Define opportunity cost, measure it in context and explain how it shapes decisions.", "atom_ids": ["0455-1.3-A01", "0455-1.3-A02", "0455-1.3-A03", "0455-1.3-A04", "0455-1.3-A05", "0455-1.3-A06", "0455-1.3-A07", "0455-1.3-A08", "0455-1.3-A09", "0455-1.3-A10"], "paragraphs": ["P10", "P11", "P12"], "quizId": "0455_ch1_basic_economic_problem_q04", "atoms": {"0455-1.3-A01": "Opportunity cost is the next best alternative forgone when a choice is made.", "0455-1.3-A02": "'Next best' means the single most valued alternative not taken (not every rejected option); 'forgone' means given up, not the thing chosen and not its price.", "0455-1.3-A03": "Opportunity cost exists because of scarcity, so free goods have zero opportunity cost and economic goods always have one.", "0455-1.3-A04": "Opportunity cost is measured in whatever is given up (goods, time, leisure, earnings), not in the money price paid for the choice.", "0455-1.3-A05": "Identify the opportunity cost of a named choice: spending vs saving; leisure vs pay; exporting vs selling at home; one government programme vs another; one land use vs another.", "0455-1.3-A06": "Calculate opportunity cost: output forgone = rate x time (e.g. 8 bowls an hour x 6 hours = 48 bowls), or the value of the rejected option over the whole period.", "0455-1.3-A07": "Consumers use opportunity cost when choosing between purchases, or between spending and saving, because their income is limited.", "0455-1.3-A08": "Workers weigh opportunity cost in choosing jobs, work vs leisure, and earning now vs training; a rise in the pay of the present job raises the opportunity cost of leaving it.", "0455-1.3-A09": "Producers weigh opportunity cost in deciding what to make, which method and where to locate; spending on one input (new machinery) means forgoing another (extra staff).", "0455-1.3-A10": "Governments weigh opportunity cost when ranking spending from limited tax revenue (a road vs school places); knowing it does not dictate the choice but asks whether the benefit exceeds the best alternative forgone."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Reading a PPC", "goal": "Interpret points on, inside and beyond a PPC and read opportunity cost from movements along it.", "atom_ids": ["0455-1.4-A01", "0455-1.4-A02", "0455-1.4-A03", "0455-1.4-A04", "0455-1.4-A05", "0455-1.4-A06", "0455-1.4-A07", "0455-1.4-A08"], "paragraphs": ["P13", "P14", "P15"], "quizId": "0455_ch1_basic_economic_problem_q05", "atoms": {"0455-1.4-A01": "A PPC shows the maximum combinations of two goods (or types of goods) an economy can produce with all its resources fully and efficiently employed, given its technology.", "0455-1.4-A02": "A PPC diagram has the output of one good on each axis (never price and quantity), and the curve is drawn to both axes, usually bowed outwards.", "0455-1.4-A03": "A point on the PPC means resources are fully and efficiently employed and output is at its maximum; more of one good then requires less of the other.", "0455-1.4-A04": "A point inside the PPC means unemployed or inefficiently used resources and output below potential; moving towards the curve raises both goods with no opportunity cost and is not a shift.", "0455-1.4-A05": "A point beyond the PPC is unattainable with current resources and technology; it can be reached only if the PPC shifts outwards.", "0455-1.4-A06": "A movement along the PPC reallocates resources between the goods; the opportunity cost of more of one good is the amount of the other given up.", "0455-1.4-A07": "Read opportunity cost from a PPC or its schedule: the fall in the other good for the gain in this one, in units of the other good (e.g. 85 to 65 food for 20 to 30 machines = 2 food per machine).", "0455-1.4-A08": "A bowed-out PPC shows increasing opportunity cost because resources are not equally suited to both goods; a straight-line PPC shows constant opportunity cost."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Shifting the PPC", "goal": "Explain what shifts a PPC, what the shift means for growth, and how today's choices move it.", "atom_ids": ["0455-1.4-A09", "0455-1.4-A10", "0455-1.4-A11", "0455-1.4-A12", "0455-1.4-A13", "0455-1.4-A14"], "paragraphs": ["P16", "P17", "P18"], "quizId": "0455_ch1_basic_economic_problem_q06", "atoms": {"0455-1.4-A09": "The PPC shifts outwards when the quantity or quality of factors of production rises (investment, immigration, reclamation, discoveries, education and training, new technology); a change affecting one good moves only that good's intercept.", "0455-1.4-A10": "The PPC shifts inwards when productive capacity falls: natural disasters or war destroying land and capital, emigration or a shrinking labour force, depletion of resources, climate damage.", "0455-1.4-A11": "An outward shift is economic growth in productive potential: more of both goods becomes possible and living standards can rise; an inward shift reduces what the economy can produce.", "0455-1.4-A12": "A rise in unemployment or a recession moves production to a point inside the PPC (not a shift); a fall in the labour force or the stock of capital shifts the PPC inwards (not a movement along).", "0455-1.4-A13": "Producing more capital goods now costs consumer goods now but shifts the PPC further out in future; using up non-renewable resources may shift the future PPC inwards.", "0455-1.4-A14": "Draw and analyse a PPC shift for an event: axes labelled with two outputs, original and new curves both to the axes, shift arrowed or labelled PPC1 to PPC2, then explain the change in resources and productive capacity."}, "chunks": []}]}
data/topics/0455_ch2_demand_and_supply.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0455_ch2_demand_and_supply", "subject": "Economics", "code": "0455", "chapter": "Markets, demand and supply", "mixedQuizId": "0455_ch2_demand_and_supply_q06", "topics": [{"id": "t1", "order": 1, "title": "Markets and demand", "goal": "Explain what a market is and build market demand from individual buyers' demand.", "atom_ids": ["0455-2.1-A01", "0455-2.1-A02", "0455-2.1-A03", "0455-2.1-A04", "0455-2.2-A01", "0455-2.2-A02", "0455-2.2-A03", "0455-2.2-A04", "0455-2.2-A05", "0455-2.2-A06", "0455-2.2-A07"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0455_ch2_demand_and_supply_q01", "atoms": {"0455-2.1-A01": "A market is any arrangement that brings buyers and sellers together to exchange a product, factor of production or currency and agree a price; it need not be a physical place.", "0455-2.1-A02": "Examples of markets: product markets (goods and services), factor markets (labour with wages as the price, land with rent), financial markets (loans with interest, shares) and the foreign exchange market; markets can be local, national or global.", "0455-2.1-A03": "Buyers show what they want through their willingness to pay (spending acts as a vote); sellers decide what and how much to offer, guided by profit; the price comes out of their interaction, not from either side alone.", "0455-2.1-A04": "Because resources are finite and wants unlimited, every economy must decide what, how and for whom to produce; markets are one way of making those decisions.", "0455-2.2-A01": "Demand is the willingness and ability to buy a product at a given price over a given period of time.", "0455-2.2-A02": "Effective demand is demand backed by the ability to pay; the quantity demanded is the amount buyers are willing and able to buy at one particular price, measured per period.", "0455-2.2-A03": "Law of demand: other things being equal, a rise in price lowers the quantity demanded and a fall in price raises it.", "0455-2.2-A04": "A demand curve is drawn ceteris paribus: income, tastes, other products' prices and every other influence are held constant, so the product's own price is the only influence shown on the curve.", "0455-2.2-A05": "On a demand and supply diagram the vertical axis is price and the horizontal axis is quantity; the demand curve (labelled D) slopes downwards from left to right, and a demand schedule is the same information as a table.", "0455-2.2-A06": "Market demand is found by adding the quantities demanded by every buyer at each price (a horizontal sum of the individual demand curves).", "0455-2.2-A07": "One buyer demanding more than another at every price shows only that the first is more willing and able to buy; more buyers in the market (a larger population) put market demand further to the right."}}, {"id": "t2", "order": 2, "title": "Moving along or shifting demand", "goal": "Tell a movement along the demand curve from a shift, and give the causes of shifts with their direction.", "atom_ids": ["0455-2.2-A08", "0455-2.2-A09", "0455-2.2-A10", "0455-2.2-A11", "0455-2.2-A12", "0455-2.2-A13", "0455-2.2-A14", "0455-2.2-A15", "0455-2.2-A16", "0455-2.2-A17"], "paragraphs": ["P8", "P9", "P10", "P11"], "quizId": "0455_ch2_demand_and_supply_q02", "atoms": {"0455-2.2-A08": "A change in the product's own price causes a movement along the existing demand curve: a fall in price is an extension in demand and a rise in price is a contraction in demand.", "0455-2.2-A09": "An extension is a movement down the demand curve to the right (P1 to P2 lower, Q1 to Q2 larger); a contraction is a movement up it to the left; the curve itself does not move.", "0455-2.2-A10": "A change in any influence other than the product's own price shifts the whole demand curve: an increase in demand is a shift to the right (more demanded at every price) and a decrease in demand is a shift to the left.", "0455-2.2-A11": "Vocabulary: 'increase' or 'decrease' in demand means a shift; 'extension', 'contraction' or 'a change in quantity demanded' means a movement along the curve.", "0455-2.2-A12": "A rise in income increases demand for most products (normal goods) and a fall in income decreases it; for a few cheap basics, demand falls as people become richer.", "0455-2.2-A13": "Tastes, fashion, health reports and advertising shift demand: favourable news or a successful campaign increases demand; a health warning or a rival's campaign decreases it.", "0455-2.2-A14": "Other conditions of demand, each with its direction: a larger population or more people in the buying age group increases demand; expected future price rises increase demand now; an income tax cut increases demand; hot weather increases demand for cold drinks; cheaper credit increases demand for cars and houses.", "0455-2.2-A15": "Substitutes: a rise in the price of a substitute increases demand for the product, and a fall in its price decreases demand (the two move in the same direction).", "0455-2.2-A16": "Complements: a rise in the price of a complement decreases demand for the product, and a fall in its price increases demand (the two move in opposite directions).", "0455-2.2-A17": "A rise in the price of a related product causes a contraction along that product's own demand curve and a shift in the demand curve of the other product."}}, {"id": "t3", "order": 3, "title": "Supply", "goal": "Define supply, read supply schedules and curves, and explain what shifts the supply curve.", "atom_ids": ["0455-2.3-A01", "0455-2.3-A02", "0455-2.3-A03", "0455-2.3-A04", "0455-2.3-A05", "0455-2.3-A06", "0455-2.3-A07", "0455-2.3-A08", "0455-2.3-A09", "0455-2.3-A10", "0455-2.3-A11", "0455-2.3-A12"], "paragraphs": ["P12", "P13", "P14", "P15"], "quizId": "0455_ch2_demand_and_supply_q03", "atoms": {"0455-2.3-A01": "Supply is the willingness and ability to sell a product at a given price over a given period of time; the quantity supplied is the amount offered at one particular price.", "0455-2.3-A02": "Law of supply: other things being equal, a rise in price raises the quantity supplied and a fall in price lowers it.", "0455-2.3-A03": "The supply curve (labelled S) slopes upwards from left to right, showing a positive relationship between price and quantity supplied; a supply schedule shows the same as a table.", "0455-2.3-A04": "Market supply is found by adding the quantities supplied by all firms at each price; more firms put market supply further to the right.", "0455-2.3-A05": "A change in the product's own price causes a movement along the supply curve: a rise in price is an extension in supply (up the curve) and a fall is a contraction (down the curve).", "0455-2.3-A06": "A change in any non-price influence shifts the supply curve: an increase in supply is a shift to the right (more offered at every price) and a decrease is a shift to the left.", "0455-2.3-A07": "Higher costs of production (wages, raw materials, energy) decrease supply; lower costs increase it.", "0455-2.3-A08": "Better technology, methods or training raise productivity and increase supply.", "0455-2.3-A09": "An indirect tax on the product decreases supply; a subsidy to producers increases supply.", "0455-2.3-A10": "Bad weather, disease and natural disasters decrease the supply of crops and other natural products; good weather increases it.", "0455-2.3-A11": "New firms entering or new sources (a newly found mineral deposit) increase supply and firms leaving decrease it; a rise in the profitability of another product the firm could make decreases supply of this one.", "0455-2.3-A12": "Consumers' income, tastes or the prices of related goods are not conditions of supply: they shift demand, which then causes a movement along the supply curve."}}, {"id": "t4", "order": 4, "title": "Equilibrium and prices", "goal": "Find equilibrium and disequilibrium from schedules and diagrams, and explain how prices allocate resources.", "atom_ids": ["0455-2.4-A01", "0455-2.4-A02", "0455-2.4-A03", "0455-2.4-A04", "0455-2.4-A05", "0455-2.4-A06", "0455-2.4-A07", "0455-2.4-A08", "0455-2.4-A09", "0455-2.4-A10", "0455-2.4-A11", "0455-2.4-A12"], "paragraphs": ["P16", "P17", "P18", "P19"], "quizId": "0455_ch2_demand_and_supply_q04", "atoms": {"0455-2.4-A01": "The price mechanism works through three functions of prices: signals (a rising price shows buyers want more), incentives (higher profit draws resources in) and rationing (a scarce product's price rises until only those willing and able to pay buy it).", "0455-2.4-A02": "The price mechanism answers what to produce (whatever buyers spend on), how (the cheapest method, capital- or labour-intensive) and for whom (those with income to pay).", "0455-2.4-A03": "When consumers switch from product X to product Y, the price of Y rises and of X falls, so profit draws land, labour and capital from X into Y.", "0455-2.4-A04": "Distributing income equally is not a function of prices.", "0455-2.4-A05": "Market equilibrium is where the quantity demanded equals the quantity supplied at the current price: no shortage, no surplus, no pressure for the price to change (the market clears).", "0455-2.4-A06": "To find equilibrium in a schedule, find the row where quantity demanded equals quantity supplied; spending (sellers' revenue) at equilibrium = equilibrium price x equilibrium quantity.", "0455-2.4-A07": "On a diagram, equilibrium is where the demand and supply curves cross; lines to the axes mark the equilibrium price (Pe or P1) and quantity (Qe or Q1).", "0455-2.4-A08": "Market disequilibrium is any situation in which quantity demanded and quantity supplied are not equal at the current price.", "0455-2.4-A09": "At a price below equilibrium quantity demanded exceeds quantity supplied (excess demand, a shortage); at a price above equilibrium quantity supplied exceeds quantity demanded (excess supply, a surplus).", "0455-2.4-A10": "The size of a shortage or surplus is quantity demanded minus quantity supplied (or the reverse) at the given price: read both columns of the schedule at that price, or the horizontal distance between the curves.", "0455-2.4-A11": "With a shortage the price rises, so quantity demanded contracts and quantity supplied extends until they are equal; with a surplus the price falls, so quantity demanded extends and quantity supplied contracts. Neither curve shifts.", "0455-2.4-A12": "Disequilibrium lasts only if the price is prevented from moving: a maximum price below equilibrium keeps a shortage, a minimum price above equilibrium keeps a surplus."}}, {"id": "t5", "order": 5, "title": "Why prices change", "goal": "Predict the effect of one or two shifts on price and quantity, and describe the diagram that shows it.", "atom_ids": ["0455-2.5-A01", "0455-2.5-A02", "0455-2.5-A03", "0455-2.5-A04", "0455-2.5-A05", "0455-2.5-A06", "0455-2.5-A07", "0455-2.5-A08", "0455-2.5-A09", "0455-2.5-A10", "0455-2.5-A11"], "paragraphs": ["P20", "P21", "P22", "P23", "P24"], "quizId": "0455_ch2_demand_and_supply_q05", "atoms": {"0455-2.5-A01": "The equilibrium price changes only because demand or supply (or both) shifts.", "0455-2.5-A02": "An increase in demand raises both equilibrium price and quantity; a decrease in demand lowers both.", "0455-2.5-A03": "An increase in supply lowers equilibrium price and raises quantity; a decrease in supply raises price and lowers quantity.", "0455-2.5-A04": "To read a change: decide whether it affects buyers or sellers, shift that curve in the right direction, find the new crossing with the unchanged curve, then state the change in price and quantity; or work backwards from the outcome to the cause.", "0455-2.5-A05": "Effect on sales: when demand shifts, price and quantity sold move in the same direction; when supply shifts, they move in opposite directions.", "0455-2.5-A06": "A shift of one curve causes a movement along the other: an increase in demand causes an extension in supply; a decrease in supply causes a contraction in demand.", "0455-2.5-A07": "When demand and supply shift in the same direction, the change in quantity is certain (both raise it, or both lower it) but the change in price is indeterminate.", "0455-2.5-A08": "When demand and supply shift in opposite directions, the change in price is certain (demand up and supply down raises it; demand down and supply up lowers it) but the change in quantity is indeterminate.", "0455-2.5-A09": "When the sizes of shifts are given (new schedules, or 'supply rises by 50% at each price'), recompute the schedule and read the new equilibrium exactly.", "0455-2.5-A10": "A change in one market spreads to related markets: a price change for a substitute or complement shifts demand in the other market, and each market needs its own diagram.", "0455-2.5-A11": "The Paper 2 diagram routine: label the axes price and quantity, label the original D and S, shift the correct curve the correct way (D1 to D2 or S1 to S2), and mark both equilibria (P1, Q1 and P2, Q2, or E1 and E2); no written explanation is needed."}}]}
 
1
+ {"chapterId": "0455_ch2_demand_and_supply", "subject": "Economics", "code": "0455", "chapter": "Markets, demand and supply", "mixedQuizId": "0455_ch2_demand_and_supply_q06", "topics": [{"id": "t1", "order": 1, "title": "Markets and demand", "goal": "Explain what a market is and build market demand from individual buyers' demand.", "atom_ids": ["0455-2.1-A01", "0455-2.1-A02", "0455-2.1-A03", "0455-2.1-A04", "0455-2.2-A01", "0455-2.2-A02", "0455-2.2-A03", "0455-2.2-A04", "0455-2.2-A05", "0455-2.2-A06", "0455-2.2-A07"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0455_ch2_demand_and_supply_q01", "atoms": {"0455-2.1-A01": "A market is any arrangement that brings buyers and sellers together to exchange a product, factor of production or currency and agree a price; it need not be a physical place.", "0455-2.1-A02": "Examples of markets: product markets (goods and services), factor markets (labour with wages as the price, land with rent), financial markets (loans with interest, shares) and the foreign exchange market; markets can be local, national or global.", "0455-2.1-A03": "Buyers show what they want through their willingness to pay (spending acts as a vote); sellers decide what and how much to offer, guided by profit; the price comes out of their interaction, not from either side alone.", "0455-2.1-A04": "Because resources are finite and wants unlimited, every economy must decide what, how and for whom to produce; markets are one way of making those decisions.", "0455-2.2-A01": "Demand is the willingness and ability to buy a product at a given price over a given period of time.", "0455-2.2-A02": "Effective demand is demand backed by the ability to pay; the quantity demanded is the amount buyers are willing and able to buy at one particular price, measured per period.", "0455-2.2-A03": "Law of demand: other things being equal, a rise in price lowers the quantity demanded and a fall in price raises it.", "0455-2.2-A04": "A demand curve is drawn ceteris paribus: income, tastes, other products' prices and every other influence are held constant, so the product's own price is the only influence shown on the curve.", "0455-2.2-A05": "On a demand and supply diagram the vertical axis is price and the horizontal axis is quantity; the demand curve (labelled D) slopes downwards from left to right, and a demand schedule is the same information as a table.", "0455-2.2-A06": "Market demand is found by adding the quantities demanded by every buyer at each price (a horizontal sum of the individual demand curves).", "0455-2.2-A07": "One buyer demanding more than another at every price shows only that the first is more willing and able to buy; more buyers in the market (a larger population) put market demand further to the right."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Moving along or shifting demand", "goal": "Tell a movement along the demand curve from a shift, and give the causes of shifts with their direction.", "atom_ids": ["0455-2.2-A08", "0455-2.2-A09", "0455-2.2-A10", "0455-2.2-A11", "0455-2.2-A12", "0455-2.2-A13", "0455-2.2-A14", "0455-2.2-A15", "0455-2.2-A16", "0455-2.2-A17"], "paragraphs": ["P8", "P9", "P10", "P11"], "quizId": "0455_ch2_demand_and_supply_q02", "atoms": {"0455-2.2-A08": "A change in the product's own price causes a movement along the existing demand curve: a fall in price is an extension in demand and a rise in price is a contraction in demand.", "0455-2.2-A09": "An extension is a movement down the demand curve to the right (P1 to P2 lower, Q1 to Q2 larger); a contraction is a movement up it to the left; the curve itself does not move.", "0455-2.2-A10": "A change in any influence other than the product's own price shifts the whole demand curve: an increase in demand is a shift to the right (more demanded at every price) and a decrease in demand is a shift to the left.", "0455-2.2-A11": "Vocabulary: 'increase' or 'decrease' in demand means a shift; 'extension', 'contraction' or 'a change in quantity demanded' means a movement along the curve.", "0455-2.2-A12": "A rise in income increases demand for most products (normal goods) and a fall in income decreases it; for a few cheap basics, demand falls as people become richer.", "0455-2.2-A13": "Tastes, fashion, health reports and advertising shift demand: favourable news or a successful campaign increases demand; a health warning or a rival's campaign decreases it.", "0455-2.2-A14": "Other conditions of demand, each with its direction: a larger population or more people in the buying age group increases demand; expected future price rises increase demand now; an income tax cut increases demand; hot weather increases demand for cold drinks; cheaper credit increases demand for cars and houses.", "0455-2.2-A15": "Substitutes: a rise in the price of a substitute increases demand for the product, and a fall in its price decreases demand (the two move in the same direction).", "0455-2.2-A16": "Complements: a rise in the price of a complement decreases demand for the product, and a fall in its price increases demand (the two move in opposite directions).", "0455-2.2-A17": "A rise in the price of a related product causes a contraction along that product's own demand curve and a shift in the demand curve of the other product."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Supply", "goal": "Define supply, read supply schedules and curves, and explain what shifts the supply curve.", "atom_ids": ["0455-2.3-A01", "0455-2.3-A02", "0455-2.3-A03", "0455-2.3-A04", "0455-2.3-A05", "0455-2.3-A06", "0455-2.3-A07", "0455-2.3-A08", "0455-2.3-A09", "0455-2.3-A10", "0455-2.3-A11", "0455-2.3-A12"], "paragraphs": ["P12", "P13", "P14", "P15"], "quizId": "0455_ch2_demand_and_supply_q03", "atoms": {"0455-2.3-A01": "Supply is the willingness and ability to sell a product at a given price over a given period of time; the quantity supplied is the amount offered at one particular price.", "0455-2.3-A02": "Law of supply: other things being equal, a rise in price raises the quantity supplied and a fall in price lowers it.", "0455-2.3-A03": "The supply curve (labelled S) slopes upwards from left to right, showing a positive relationship between price and quantity supplied; a supply schedule shows the same as a table.", "0455-2.3-A04": "Market supply is found by adding the quantities supplied by all firms at each price; more firms put market supply further to the right.", "0455-2.3-A05": "A change in the product's own price causes a movement along the supply curve: a rise in price is an extension in supply (up the curve) and a fall is a contraction (down the curve).", "0455-2.3-A06": "A change in any non-price influence shifts the supply curve: an increase in supply is a shift to the right (more offered at every price) and a decrease is a shift to the left.", "0455-2.3-A07": "Higher costs of production (wages, raw materials, energy) decrease supply; lower costs increase it.", "0455-2.3-A08": "Better technology, methods or training raise productivity and increase supply.", "0455-2.3-A09": "An indirect tax on the product decreases supply; a subsidy to producers increases supply.", "0455-2.3-A10": "Bad weather, disease and natural disasters decrease the supply of crops and other natural products; good weather increases it.", "0455-2.3-A11": "New firms entering or new sources (a newly found mineral deposit) increase supply and firms leaving decrease it; a rise in the profitability of another product the firm could make decreases supply of this one.", "0455-2.3-A12": "Consumers' income, tastes or the prices of related goods are not conditions of supply: they shift demand, which then causes a movement along the supply curve."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Equilibrium and prices", "goal": "Find equilibrium and disequilibrium from schedules and diagrams, and explain how prices allocate resources.", "atom_ids": ["0455-2.4-A01", "0455-2.4-A02", "0455-2.4-A03", "0455-2.4-A04", "0455-2.4-A05", "0455-2.4-A06", "0455-2.4-A07", "0455-2.4-A08", "0455-2.4-A09", "0455-2.4-A10", "0455-2.4-A11", "0455-2.4-A12"], "paragraphs": ["P16", "P17", "P18", "P19"], "quizId": "0455_ch2_demand_and_supply_q04", "atoms": {"0455-2.4-A01": "The price mechanism works through three functions of prices: signals (a rising price shows buyers want more), incentives (higher profit draws resources in) and rationing (a scarce product's price rises until only those willing and able to pay buy it).", "0455-2.4-A02": "The price mechanism answers what to produce (whatever buyers spend on), how (the cheapest method, capital- or labour-intensive) and for whom (those with income to pay).", "0455-2.4-A03": "When consumers switch from product X to product Y, the price of Y rises and of X falls, so profit draws land, labour and capital from X into Y.", "0455-2.4-A04": "Distributing income equally is not a function of prices.", "0455-2.4-A05": "Market equilibrium is where the quantity demanded equals the quantity supplied at the current price: no shortage, no surplus, no pressure for the price to change (the market clears).", "0455-2.4-A06": "To find equilibrium in a schedule, find the row where quantity demanded equals quantity supplied; spending (sellers' revenue) at equilibrium = equilibrium price x equilibrium quantity.", "0455-2.4-A07": "On a diagram, equilibrium is where the demand and supply curves cross; lines to the axes mark the equilibrium price (Pe or P1) and quantity (Qe or Q1).", "0455-2.4-A08": "Market disequilibrium is any situation in which quantity demanded and quantity supplied are not equal at the current price.", "0455-2.4-A09": "At a price below equilibrium quantity demanded exceeds quantity supplied (excess demand, a shortage); at a price above equilibrium quantity supplied exceeds quantity demanded (excess supply, a surplus).", "0455-2.4-A10": "The size of a shortage or surplus is quantity demanded minus quantity supplied (or the reverse) at the given price: read both columns of the schedule at that price, or the horizontal distance between the curves.", "0455-2.4-A11": "With a shortage the price rises, so quantity demanded contracts and quantity supplied extends until they are equal; with a surplus the price falls, so quantity demanded extends and quantity supplied contracts. Neither curve shifts.", "0455-2.4-A12": "Disequilibrium lasts only if the price is prevented from moving: a maximum price below equilibrium keeps a shortage, a minimum price above equilibrium keeps a surplus."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Why prices change", "goal": "Predict the effect of one or two shifts on price and quantity, and describe the diagram that shows it.", "atom_ids": ["0455-2.5-A01", "0455-2.5-A02", "0455-2.5-A03", "0455-2.5-A04", "0455-2.5-A05", "0455-2.5-A06", "0455-2.5-A07", "0455-2.5-A08", "0455-2.5-A09", "0455-2.5-A10", "0455-2.5-A11"], "paragraphs": ["P20", "P21", "P22", "P23", "P24"], "quizId": "0455_ch2_demand_and_supply_q05", "atoms": {"0455-2.5-A01": "The equilibrium price changes only because demand or supply (or both) shifts.", "0455-2.5-A02": "An increase in demand raises both equilibrium price and quantity; a decrease in demand lowers both.", "0455-2.5-A03": "An increase in supply lowers equilibrium price and raises quantity; a decrease in supply raises price and lowers quantity.", "0455-2.5-A04": "To read a change: decide whether it affects buyers or sellers, shift that curve in the right direction, find the new crossing with the unchanged curve, then state the change in price and quantity; or work backwards from the outcome to the cause.", "0455-2.5-A05": "Effect on sales: when demand shifts, price and quantity sold move in the same direction; when supply shifts, they move in opposite directions.", "0455-2.5-A06": "A shift of one curve causes a movement along the other: an increase in demand causes an extension in supply; a decrease in supply causes a contraction in demand.", "0455-2.5-A07": "When demand and supply shift in the same direction, the change in quantity is certain (both raise it, or both lower it) but the change in price is indeterminate.", "0455-2.5-A08": "When demand and supply shift in opposite directions, the change in price is certain (demand up and supply down raises it; demand down and supply up lowers it) but the change in quantity is indeterminate.", "0455-2.5-A09": "When the sizes of shifts are given (new schedules, or 'supply rises by 50% at each price'), recompute the schedule and read the new equilibrium exactly.", "0455-2.5-A10": "A change in one market spreads to related markets: a price change for a substitute or complement shifts demand in the other market, and each market needs its own diagram.", "0455-2.5-A11": "The Paper 2 diagram routine: label the axes price and quantity, label the original D and S, shift the correct curve the correct way (D1 to D2 or S1 to S2), and mark both equilibria (P1, Q1 and P2, Q2, or E1 and E2); no written explanation is needed."}, "chunks": []}]}
data/topics/0455_ch2_elasticity_and_market_system.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0455_ch2_elasticity_and_market_system", "subject": "Economics", "code": "0455", "chapter": "PED, PES and the market economic system", "mixedQuizId": "0455_ch2_elasticity_and_market_system_q07", "topics": [{"id": "t1", "order": 1, "title": "Measuring PED", "goal": "Calculate PED from prices and quantities, run the formula forwards and backwards, and classify the result.", "atom_ids": ["0455-2.6-A01", "0455-2.6-A02", "0455-2.6-A03", "0455-2.6-A04", "0455-2.6-A05", "0455-2.6-A06", "0455-2.6-A07", "0455-2.6-A08", "0455-2.6-A09", "0455-2.6-A10", "0455-2.6-A11", "0455-2.6-A12", "0455-2.6-A13"], "paragraphs": ["P1", "P2", "P3", "P4", "P5"], "quizId": "0455_ch2_elasticity_and_market_system_q01", "atoms": {"0455-2.6-A01": "Elasticity compares percentage changes, so it has no units and can be compared across any two markets.", "0455-2.6-A02": "Percentage change = (new value - original value) / original value x 100.", "0455-2.6-A03": "PED measures the responsiveness of quantity demanded to a change in the product's own price.", "0455-2.6-A04": "PED = % change in quantity demanded / % change in price.", "0455-2.6-A05": "Calculate PED from two price-quantity pairs, a schedule or given percentages, then classify the result.", "0455-2.6-A06": "PED is normally negative and is a pure number, not a percentage; Cambridge accepts it with or without the minus sign and it is classified by its size.", "0455-2.6-A07": "Size of PED above 1 is elastic, between 0 and 1 inelastic, exactly 1 unitary.", "0455-2.6-A08": "Perfectly inelastic demand has PED = 0 (quantity does not change); perfectly elastic demand has PED = infinity (any quantity at one price, none above it).", "0455-2.6-A09": "Perfectly inelastic demand is a vertical curve, perfectly elastic a horizontal one; of two curves through the same point, the steeper is less elastic.", "0455-2.6-A10": "PED is not slope: along one straight-line demand curve PED falls as price falls.", "0455-2.6-A11": "Run PED forwards: % change in quantity demanded = PED x % change in price.", "0455-2.6-A12": "Run PED backwards: % change in price needed = target % change in quantity / PED.", "0455-2.6-A13": "Turn a percentage change into a new quantity: new quantity = original x (1 + % change / 100)."}}, {"id": "t2", "order": 2, "title": "What makes demand elastic", "goal": "Explain how substitutes, necessity, habit, income share, time and definition decide PED.", "atom_ids": ["0455-2.6-A14", "0455-2.6-A15", "0455-2.6-A16", "0455-2.6-A17", "0455-2.6-A18", "0455-2.6-A19", "0455-2.6-A20", "0455-2.6-A31"], "paragraphs": ["P6", "P14"], "quizId": "0455_ch2_elasticity_and_market_system_q02", "atoms": {"0455-2.6-A14": "Every PED determinant is about how easily buyers can avoid a price rise: easy escape means elastic, hard escape means inelastic.", "0455-2.6-A15": "More and closer substitutes make demand more price-elastic.", "0455-2.6-A16": "Necessities have inelastic demand; luxuries have elastic demand.", "0455-2.6-A17": "The larger the share of income spent on a product, the more elastic its demand.", "0455-2.6-A18": "Habit-forming or addictive products have inelastic demand.", "0455-2.6-A19": "Demand becomes more elastic the longer the time period after a price change.", "0455-2.6-A20": "A narrowly defined product (one brand) has more elastic demand than the broad product class; strong brand loyalty or a purchase that cannot be postponed makes demand less elastic.", "0455-2.6-A31": "To discuss whether demand for a product is price-elastic: define PED, argue the elastic side with determinants, the inelastic side with others, then judge with a condition."}}, {"id": "t3", "order": 3, "title": "PED, revenue and decisions", "goal": "Predict how a price change moves total revenue and use PED to judge choices by firms, workers and government.", "atom_ids": ["0455-2.6-A21", "0455-2.6-A22", "0455-2.6-A23", "0455-2.6-A24", "0455-2.6-A25", "0455-2.6-A26", "0455-2.6-A27", "0455-2.6-A28", "0455-2.6-A29", "0455-2.6-A30"], "paragraphs": ["P7", "P8", "P9"], "quizId": "0455_ch2_elasticity_and_market_system_q03", "atoms": {"0455-2.6-A21": "Total revenue = price x quantity sold, and it equals consumer expenditure on the product.", "0455-2.6-A22": "With inelastic demand, a price rise raises total revenue and a price cut lowers it.", "0455-2.6-A23": "With elastic demand, a price rise lowers total revenue and a price cut raises it.", "0455-2.6-A24": "With unitary demand revenue is unchanged by a price change; with PED = 0 revenue changes in the same proportion as price.", "0455-2.6-A25": "Calculate total revenue before and after a price change and state the change.", "0455-2.6-A26": "On a demand diagram revenue is the rectangle P x Q; a price change swaps one rectangle for another, and the larger one shows the revenue direction.", "0455-2.6-A27": "Firms raise price when demand is inelastic and cut it when demand is elastic; they charge more in the market where demand is less elastic, and advertise to build brand loyalty that makes demand less elastic.", "0455-2.6-A28": "Consumers are hit hardest by price rises on inelastic necessities; workers' jobs are most at risk when demand for their product is elastic, because demand for labour is derived.", "0455-2.6-A29": "An indirect tax on a product with inelastic demand raises much revenue and is largely passed on to consumers.", "0455-2.6-A30": "A tax on a harmful product with inelastic demand cuts consumption only a little; a tariff protects domestic producers most when demand for the import is elastic."}}, {"id": "t4", "order": 4, "title": "Price elasticity of supply", "goal": "Calculate and classify PES, read supply curves and explain what makes supply elastic or inelastic.", "atom_ids": ["0455-2.7-A01", "0455-2.7-A02", "0455-2.7-A03", "0455-2.7-A04", "0455-2.7-A05", "0455-2.7-A06", "0455-2.7-A07", "0455-2.7-A08", "0455-2.7-A09", "0455-2.7-A10", "0455-2.7-A11", "0455-2.7-A12", "0455-2.7-A13", "0455-2.7-A14", "0455-2.7-A15", "0455-2.7-A16"], "paragraphs": ["P10", "P11", "P12", "P13", "P14"], "quizId": "0455_ch2_elasticity_and_market_system_q04", "atoms": {"0455-2.7-A01": "PES measures the responsiveness of quantity supplied to a change in the product's price.", "0455-2.7-A02": "PES = % change in quantity supplied / % change in price; it is normally positive, so a negative answer signals a slip.", "0455-2.7-A03": "Calculate PES from two price-quantity pairs, a supply schedule or given percentages.", "0455-2.7-A04": "PES above 1 is elastic, between 0 and 1 inelastic, 1 unitary, 0 perfectly inelastic, infinity perfectly elastic.", "0455-2.7-A05": "A vertical supply curve is perfectly inelastic; a horizontal one is perfectly elastic.", "0455-2.7-A06": "A straight supply line starting on the price axis is elastic, through the origin unitary, starting on the quantity axis inelastic.", "0455-2.7-A07": "Run PES forwards: % change in quantity supplied = PES x % change in price, then apply it to the original quantity.", "0455-2.7-A08": "Every PES determinant is about how easily producers can change output when price changes.", "0455-2.7-A09": "Supply becomes more elastic the longer the time period: momentary, short run with a fixed factor, long run with all factors variable.", "0455-2.7-A10": "Products that can be stored cheaply, with stocks held, have elastic supply; perishable or costly-to-store products have inelastic supply.", "0455-2.7-A11": "Spare capacity (idle machines and workers) makes supply elastic.", "0455-2.7-A12": "A short, simple production process makes supply elastic; a long one (crops, ships, houses, mines) makes it inelastic.", "0455-2.7-A13": "Mobile factors of production and easy entry of new firms make supply more elastic.", "0455-2.7-A14": "When demand shifts, inelastic supply turns most of the change into a price change and elastic supply into a quantity change.", "0455-2.7-A15": "PED is about buyers (escape routes, usually negative); PES is about producers (flexibility, positive); stocks never decide PED and substitutes never decide PES.", "0455-2.7-A16": "Elastic supply: the percentage change in quantity supplied is greater than the percentage change in price (inelastic: smaller)."}}, {"id": "t5", "order": 5, "title": "The market system and prices", "goal": "Describe how a market economic system uses prices to answer what, how and for whom.", "atom_ids": ["0455-2.8-A01", "0455-2.8-A02", "0455-2.8-A03", "0455-2.8-A04", "0455-2.8-A05", "0455-2.8-A06", "0455-2.8-A07", "0455-2.8-A08", "0455-2.8-A09"], "paragraphs": ["P15", "P16"], "quizId": "0455_ch2_elasticity_and_market_system_q05", "atoms": {"0455-2.8-A01": "Every economy must decide what to produce, how to produce it and for whom.", "0455-2.8-A02": "The three economic systems are market, planned (command) and mixed.", "0455-2.8-A03": "A market economic system allocates resources through the price mechanism (demand and supply), with privately owned land and capital and minimal government intervention.", "0455-2.8-A04": "In a pure market system there is no state provision of goods, no state-owned firms and no government-set prices or wages.", "0455-2.8-A05": "Prices signal: a change in demand moves price, telling producers what buyers want.", "0455-2.8-A06": "Prices give an incentive: higher prices raise profit and draw resources in (the profit motive).", "0455-2.8-A07": "Prices ration: a scarce product's price rises until only those willing and able to pay buy it.", "0455-2.8-A08": "What is produced follows consumer spending (consumer sovereignty); how follows the lowest-cost method; for whom follows purchasing power.", "0455-2.8-A09": "Distributing income equally is not a function of prices."}}, {"id": "t6", "order": 6, "title": "Market system: for and against", "goal": "Weigh the advantages of a market economic system against its disadvantages.", "atom_ids": ["0455-2.8-A10", "0455-2.8-A11", "0455-2.8-A12", "0455-2.8-A13", "0455-2.8-A14", "0455-2.8-A15", "0455-2.8-A16", "0455-2.8-A17", "0455-2.8-A18", "0455-2.8-A19"], "paragraphs": ["P17", "P18", "P19", "P13"], "quizId": "0455_ch2_elasticity_and_market_system_q06", "atoms": {"0455-2.8-A10": "Advantage: resources move quickly to what consumers want (responsiveness).", "0455-2.8-A11": "Advantage: competition pushes firms to cut costs and waste, keeping prices low (efficiency).", "0455-2.8-A12": "Advantage: the profit motive encourages innovation and wide choice; people are free to choose jobs, firms and spending, with no planning bureaucracy.", "0455-2.8-A13": "Disadvantage: output goes to those with purchasing power, so inequality and poverty can be high, with no welfare safety net.", "0455-2.8-A14": "Disadvantage: goods people cannot be charged for individually are not provided, goods with underestimated benefits are under-consumed and harmful goods are over-consumed.", "0455-2.8-A15": "Disadvantage: costs imposed on third parties (pollution) are ignored, and competition can give way to monopoly that restricts output and raises prices.", "0455-2.8-A16": "Disadvantage: factors move slowly between uses, so declining industries leave unemployment.", "0455-2.8-A17": "To discuss a market system: set advantages against disadvantages, then judge conditionally (good where competition is strong and goods are sold to individuals; poor with monopoly, spillovers or low incomes).", "0455-2.8-A18": "Government intervention can correct some disadvantages (provide public and merit goods, tax harmful goods, regulate monopoly, pay benefits) but risks poor information, delay, weaker incentives and corruption; with it, the economy becomes mixed.", "0455-2.8-A19": "How fast a market corrects a shortage depends on PES: with inelastic supply, high prices persist until output catches up."}}]}
 
1
+ {"chapterId": "0455_ch2_elasticity_and_market_system", "subject": "Economics", "code": "0455", "chapter": "PED, PES and the market economic system", "mixedQuizId": "0455_ch2_elasticity_and_market_system_q07", "topics": [{"id": "t1", "order": 1, "title": "Measuring PED", "goal": "Calculate PED from prices and quantities, run the formula forwards and backwards, and classify the result.", "atom_ids": ["0455-2.6-A01", "0455-2.6-A02", "0455-2.6-A03", "0455-2.6-A04", "0455-2.6-A05", "0455-2.6-A06", "0455-2.6-A07", "0455-2.6-A08", "0455-2.6-A09", "0455-2.6-A10", "0455-2.6-A11", "0455-2.6-A12", "0455-2.6-A13"], "paragraphs": ["P1", "P2", "P3", "P4", "P5"], "quizId": "0455_ch2_elasticity_and_market_system_q01", "atoms": {"0455-2.6-A01": "Elasticity compares percentage changes, so it has no units and can be compared across any two markets.", "0455-2.6-A02": "Percentage change = (new value - original value) / original value x 100.", "0455-2.6-A03": "PED measures the responsiveness of quantity demanded to a change in the product's own price.", "0455-2.6-A04": "PED = % change in quantity demanded / % change in price.", "0455-2.6-A05": "Calculate PED from two price-quantity pairs, a schedule or given percentages, then classify the result.", "0455-2.6-A06": "PED is normally negative and is a pure number, not a percentage; Cambridge accepts it with or without the minus sign and it is classified by its size.", "0455-2.6-A07": "Size of PED above 1 is elastic, between 0 and 1 inelastic, exactly 1 unitary.", "0455-2.6-A08": "Perfectly inelastic demand has PED = 0 (quantity does not change); perfectly elastic demand has PED = infinity (any quantity at one price, none above it).", "0455-2.6-A09": "Perfectly inelastic demand is a vertical curve, perfectly elastic a horizontal one; of two curves through the same point, the steeper is less elastic.", "0455-2.6-A10": "PED is not slope: along one straight-line demand curve PED falls as price falls.", "0455-2.6-A11": "Run PED forwards: % change in quantity demanded = PED x % change in price.", "0455-2.6-A12": "Run PED backwards: % change in price needed = target % change in quantity / PED.", "0455-2.6-A13": "Turn a percentage change into a new quantity: new quantity = original x (1 + % change / 100)."}, "chunks": []}, {"id": "t2", "order": 2, "title": "What makes demand elastic", "goal": "Explain how substitutes, necessity, habit, income share, time and definition decide PED.", "atom_ids": ["0455-2.6-A14", "0455-2.6-A15", "0455-2.6-A16", "0455-2.6-A17", "0455-2.6-A18", "0455-2.6-A19", "0455-2.6-A20", "0455-2.6-A31"], "paragraphs": ["P6", "P14"], "quizId": "0455_ch2_elasticity_and_market_system_q02", "atoms": {"0455-2.6-A14": "Every PED determinant is about how easily buyers can avoid a price rise: easy escape means elastic, hard escape means inelastic.", "0455-2.6-A15": "More and closer substitutes make demand more price-elastic.", "0455-2.6-A16": "Necessities have inelastic demand; luxuries have elastic demand.", "0455-2.6-A17": "The larger the share of income spent on a product, the more elastic its demand.", "0455-2.6-A18": "Habit-forming or addictive products have inelastic demand.", "0455-2.6-A19": "Demand becomes more elastic the longer the time period after a price change.", "0455-2.6-A20": "A narrowly defined product (one brand) has more elastic demand than the broad product class; strong brand loyalty or a purchase that cannot be postponed makes demand less elastic.", "0455-2.6-A31": "To discuss whether demand for a product is price-elastic: define PED, argue the elastic side with determinants, the inelastic side with others, then judge with a condition."}, "chunks": []}, {"id": "t3", "order": 3, "title": "PED, revenue and decisions", "goal": "Predict how a price change moves total revenue and use PED to judge choices by firms, workers and government.", "atom_ids": ["0455-2.6-A21", "0455-2.6-A22", "0455-2.6-A23", "0455-2.6-A24", "0455-2.6-A25", "0455-2.6-A26", "0455-2.6-A27", "0455-2.6-A28", "0455-2.6-A29", "0455-2.6-A30"], "paragraphs": ["P7", "P8", "P9"], "quizId": "0455_ch2_elasticity_and_market_system_q03", "atoms": {"0455-2.6-A21": "Total revenue = price x quantity sold, and it equals consumer expenditure on the product.", "0455-2.6-A22": "With inelastic demand, a price rise raises total revenue and a price cut lowers it.", "0455-2.6-A23": "With elastic demand, a price rise lowers total revenue and a price cut raises it.", "0455-2.6-A24": "With unitary demand revenue is unchanged by a price change; with PED = 0 revenue changes in the same proportion as price.", "0455-2.6-A25": "Calculate total revenue before and after a price change and state the change.", "0455-2.6-A26": "On a demand diagram revenue is the rectangle P x Q; a price change swaps one rectangle for another, and the larger one shows the revenue direction.", "0455-2.6-A27": "Firms raise price when demand is inelastic and cut it when demand is elastic; they charge more in the market where demand is less elastic, and advertise to build brand loyalty that makes demand less elastic.", "0455-2.6-A28": "Consumers are hit hardest by price rises on inelastic necessities; workers' jobs are most at risk when demand for their product is elastic, because demand for labour is derived.", "0455-2.6-A29": "An indirect tax on a product with inelastic demand raises much revenue and is largely passed on to consumers.", "0455-2.6-A30": "A tax on a harmful product with inelastic demand cuts consumption only a little; a tariff protects domestic producers most when demand for the import is elastic."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Price elasticity of supply", "goal": "Calculate and classify PES, read supply curves and explain what makes supply elastic or inelastic.", "atom_ids": ["0455-2.7-A01", "0455-2.7-A02", "0455-2.7-A03", "0455-2.7-A04", "0455-2.7-A05", "0455-2.7-A06", "0455-2.7-A07", "0455-2.7-A08", "0455-2.7-A09", "0455-2.7-A10", "0455-2.7-A11", "0455-2.7-A12", "0455-2.7-A13", "0455-2.7-A14", "0455-2.7-A15", "0455-2.7-A16"], "paragraphs": ["P10", "P11", "P12", "P13", "P14"], "quizId": "0455_ch2_elasticity_and_market_system_q04", "atoms": {"0455-2.7-A01": "PES measures the responsiveness of quantity supplied to a change in the product's price.", "0455-2.7-A02": "PES = % change in quantity supplied / % change in price; it is normally positive, so a negative answer signals a slip.", "0455-2.7-A03": "Calculate PES from two price-quantity pairs, a supply schedule or given percentages.", "0455-2.7-A04": "PES above 1 is elastic, between 0 and 1 inelastic, 1 unitary, 0 perfectly inelastic, infinity perfectly elastic.", "0455-2.7-A05": "A vertical supply curve is perfectly inelastic; a horizontal one is perfectly elastic.", "0455-2.7-A06": "A straight supply line starting on the price axis is elastic, through the origin unitary, starting on the quantity axis inelastic.", "0455-2.7-A07": "Run PES forwards: % change in quantity supplied = PES x % change in price, then apply it to the original quantity.", "0455-2.7-A08": "Every PES determinant is about how easily producers can change output when price changes.", "0455-2.7-A09": "Supply becomes more elastic the longer the time period: momentary, short run with a fixed factor, long run with all factors variable.", "0455-2.7-A10": "Products that can be stored cheaply, with stocks held, have elastic supply; perishable or costly-to-store products have inelastic supply.", "0455-2.7-A11": "Spare capacity (idle machines and workers) makes supply elastic.", "0455-2.7-A12": "A short, simple production process makes supply elastic; a long one (crops, ships, houses, mines) makes it inelastic.", "0455-2.7-A13": "Mobile factors of production and easy entry of new firms make supply more elastic.", "0455-2.7-A14": "When demand shifts, inelastic supply turns most of the change into a price change and elastic supply into a quantity change.", "0455-2.7-A15": "PED is about buyers (escape routes, usually negative); PES is about producers (flexibility, positive); stocks never decide PED and substitutes never decide PES.", "0455-2.7-A16": "Elastic supply: the percentage change in quantity supplied is greater than the percentage change in price (inelastic: smaller)."}, "chunks": []}, {"id": "t5", "order": 5, "title": "The market system and prices", "goal": "Describe how a market economic system uses prices to answer what, how and for whom.", "atom_ids": ["0455-2.8-A01", "0455-2.8-A02", "0455-2.8-A03", "0455-2.8-A04", "0455-2.8-A05", "0455-2.8-A06", "0455-2.8-A07", "0455-2.8-A08", "0455-2.8-A09"], "paragraphs": ["P15", "P16"], "quizId": "0455_ch2_elasticity_and_market_system_q05", "atoms": {"0455-2.8-A01": "Every economy must decide what to produce, how to produce it and for whom.", "0455-2.8-A02": "The three economic systems are market, planned (command) and mixed.", "0455-2.8-A03": "A market economic system allocates resources through the price mechanism (demand and supply), with privately owned land and capital and minimal government intervention.", "0455-2.8-A04": "In a pure market system there is no state provision of goods, no state-owned firms and no government-set prices or wages.", "0455-2.8-A05": "Prices signal: a change in demand moves price, telling producers what buyers want.", "0455-2.8-A06": "Prices give an incentive: higher prices raise profit and draw resources in (the profit motive).", "0455-2.8-A07": "Prices ration: a scarce product's price rises until only those willing and able to pay buy it.", "0455-2.8-A08": "What is produced follows consumer spending (consumer sovereignty); how follows the lowest-cost method; for whom follows purchasing power.", "0455-2.8-A09": "Distributing income equally is not a function of prices."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Market system: for and against", "goal": "Weigh the advantages of a market economic system against its disadvantages.", "atom_ids": ["0455-2.8-A10", "0455-2.8-A11", "0455-2.8-A12", "0455-2.8-A13", "0455-2.8-A14", "0455-2.8-A15", "0455-2.8-A16", "0455-2.8-A17", "0455-2.8-A18", "0455-2.8-A19"], "paragraphs": ["P17", "P18", "P19", "P13"], "quizId": "0455_ch2_elasticity_and_market_system_q06", "atoms": {"0455-2.8-A10": "Advantage: resources move quickly to what consumers want (responsiveness).", "0455-2.8-A11": "Advantage: competition pushes firms to cut costs and waste, keeping prices low (efficiency).", "0455-2.8-A12": "Advantage: the profit motive encourages innovation and wide choice; people are free to choose jobs, firms and spending, with no planning bureaucracy.", "0455-2.8-A13": "Disadvantage: output goes to those with purchasing power, so inequality and poverty can be high, with no welfare safety net.", "0455-2.8-A14": "Disadvantage: goods people cannot be charged for individually are not provided, goods with underestimated benefits are under-consumed and harmful goods are over-consumed.", "0455-2.8-A15": "Disadvantage: costs imposed on third parties (pollution) are ignored, and competition can give way to monopoly that restricts output and raises prices.", "0455-2.8-A16": "Disadvantage: factors move slowly between uses, so declining industries leave unemployment.", "0455-2.8-A17": "To discuss a market system: set advantages against disadvantages, then judge conditionally (good where competition is strong and goods are sold to individuals; poor with monopoly, spillovers or low incomes).", "0455-2.8-A18": "Government intervention can correct some disadvantages (provide public and merit goods, tax harmful goods, regulate monopoly, pay benefits) but risks poor information, delay, weaker incentives and corruption; with it, the economy becomes mixed.", "0455-2.8-A19": "How fast a market corrects a shortage depends on PES: with inelastic supply, high prices persist until output catches up."}, "chunks": []}]}
data/topics/0610_ch01.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch01", "subject": "Biology", "code": "0610", "chapter": "Characteristics and classification of living organisms", "mixedQuizId": "0610_ch01_q07", "topics": [{"id": "t1", "order": 1, "title": "Characteristics of life", "goal": "Define the seven characteristics of living organisms and recognise each one in a described event.", "atom_ids": ["0610-1-A01", "0610-1-A02", "0610-1-A03", "0610-1-A04", "0610-1-A05", "0610-1-A06", "0610-1-A07", "0610-1-A08", "0610-1-A09", "0610-1-A10", "0610-1-A11"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0610_ch01_q01", "atoms": {"0610-1-A01": "All living organisms show seven characteristics: movement, respiration, sensitivity, growth, reproduction, excretion and nutrition; a non-living thing may show some of them but never all seven.", "0610-1-A02": "Movement is an action by an organism or part of an organism causing a change of position or place.", "0610-1-A03": "Respiration is the chemical reactions in cells that break down nutrient molecules and release energy for metabolism; it happens in every living cell and is not breathing (breathing only moves air in and out of lungs).", "0610-1-A04": "Sensitivity is the ability to detect and respond to changes in the internal or external environment.", "0610-1-A05": "Growth is a permanent increase in size and dry mass; swelling with water, or getting taller while dry mass falls, is not growth.", "0610-1-A06": "Reproduction is the processes that make more of the same kind of organism.", "0610-1-A07": "Excretion is the removal of the waste products of metabolism (such as carbon dioxide and urea) and substances in excess of requirements; removing undigested food (faeces) is egestion, not excretion.", "0610-1-A08": "Nutrition is the taking in of materials for energy, growth and development.", "0610-1-A09": "The characteristics depend on each other: nutrition supplies nutrient molecules, respiration releases their energy for movement, growth and reproduction, and the waste made by metabolism must be excreted.", "0610-1-A10": "To name the characteristic shown by an event, match it to the definition: CO2 entering a leaf for photosynthesis is nutrition; CO2 leaving the blood in the lungs is excretion; a shoot bending to light is sensitivity and growth; pulling a hand from heat is sensitivity.", "0610-1-A11": "Processes that only some organisms carry out (photosynthesis, breathing, digestion, egestion, transpiration, sexual reproduction) are not characteristics of all living organisms; photosynthesis is the way plants carry out nutrition."}}, {"id": "t2", "order": 2, "title": "Species, names and keys", "goal": "Define a species, read binomial names and use and build dichotomous keys.", "atom_ids": ["0610-1-A12", "0610-1-A13", "0610-1-A14", "0610-1-A15", "0610-1-A16", "0610-1-A17", "0610-1-A18", "0610-1-A19", "0610-1-A20"], "paragraphs": ["P8", "P9", "P10", "P11", "P12", "P13", "P14"], "quizId": "0610_ch01_q02", "atoms": {"0610-1-A12": "Organisms are classified into groups by the features that they share; the groups are nested, from kingdom (largest) down to genus and species (smallest).", "0610-1-A13": "A species is a group of organisms that can reproduce to produce fertile offspring.", "0610-1-A14": "Membership of a species is tested by fertile offspring, not by looks: dog breeds are one species; a horse and a donkey are two species because the mule is infertile; a population is one species in one area, which is a different idea.", "0610-1-A15": "The binomial system is an internationally agreed system in which the scientific name of an organism has two parts showing the genus and the species, in that order.", "0610-1-A16": "In a binomial name the genus is the first word only, with a capital letter; the species word follows in lower case; the whole name is in italics or underlined.", "0610-1-A17": "Species that share a genus name are closely related but are different species; genus names that merely look alike show nothing.", "0610-1-A18": "A dichotomous key is a series of steps, each a pair of contrasting statements about one identifiable feature, each statement leading to a name or to another step.", "0610-1-A19": "To use a key, start at step 1, choose the statement that is true for the organism, follow its instruction and repeat until a name is reached; every statement passed must be true for that organism.", "0610-1-A20": "To construct a key, split the organisms into two groups with a pair of opposite statements about one identifiable feature (visible and fixed, not size, behaviour or habitat), repeat until each organism is alone; n organisms need n - 1 steps."}}, {"id": "t3", "order": 3, "title": "Classification and DNA", "goal": "Explain how DNA base sequences show evolutionary relationships and use them to rank relatedness.", "atom_ids": ["0610-1-A21", "0610-1-A22", "0610-1-A23", "0610-1-A24", "0610-1-A25"], "paragraphs": ["P15", "P16", "P17"], "quizId": "0610_ch01_q03", "atoms": {"0610-1-A21": "Classification systems aim to reflect evolutionary relationships (how recently groups shared a common ancestor); similar features can evolve separately (bat and bird wings), so appearance alone can mislead.", "0610-1-A22": "The sequence of bases in DNA is used as a means of classification; it is the order of the bases that is compared, not the number or the types of base.", "0610-1-A23": "Groups that share a more recent ancestor have more similar DNA base sequences than groups sharing only a distant ancestor, because mutations build up separately in each line after they split.", "0610-1-A24": "To rank relatedness from data, count the positions where aligned sequences differ or compare percentage similarity: fewest differences or highest percentage identical means the most recent common ancestor.", "0610-1-A25": "In a branching evolutionary diagram, the groups joined at the most recent branch point share the most recent common ancestor and have the most similar DNA; a group that branched off earliest has the least similar DNA."}}, {"id": "t4", "order": 4, "title": "Five kingdoms and viruses", "goal": "State the features of the five kingdoms and of viruses, and place an unfamiliar organism in its kingdom.", "atom_ids": ["0610-1-A26", "0610-1-A27", "0610-1-A28", "0610-1-A29", "0610-1-A30", "0610-1-A31", "0610-1-A32", "0610-1-A33", "0610-1-A34", "0610-1-A35"], "paragraphs": ["P18", "P19", "P20", "P21", "P22", "P23"], "quizId": "0610_ch01_q04", "atoms": {"0610-1-A26": "Animals are multicellular; their cells have no cell walls and no chlorophyll; they feed on organic substances made by other organisms.", "0610-1-A27": "Plants are multicellular; their cells have cellulose cell walls and chloroplasts containing chlorophyll; they make their own food by photosynthesis.", "0610-1-A28": "Fungi have cells with a nucleus and cell walls not made of cellulose (chitin) and no chlorophyll; most are multicellular and made of hyphae (yeast is single-celled); they feed by secreting enzymes onto food and absorbing the products.", "0610-1-A29": "Prokaryotes (bacteria) are single-celled with no nucleus: circular DNA lies free in the cytoplasm; they have a cell wall (not cellulose), cell membrane, cytoplasm and ribosomes, often plasmids, and no mitochondria or chloroplasts.", "0610-1-A30": "Protoctists have cells with a nucleus and are mostly single-celled; some have chloroplasts and photosynthesise like plants (Chlorella, Euglena), others have no cell wall and feed like animals (Amoeba, Plasmodium).", "0610-1-A31": "The five kingdoms are animal, plant, fungus, prokaryote and protoctist; bacteria are organisms within the prokaryote kingdom, and viruses belong to no kingdom.", "0610-1-A32": "No single structure identifies a kingdom: cell walls occur in plants, fungi, prokaryotes and some protoctists; a nucleus in every kingdom except prokaryotes; chloroplasts in plants and some protoctists; membrane, cytoplasm and ribosomes in all.", "0610-1-A33": "Classify an organism into a kingdom by elimination: no nucleus means prokaryote; single-celled with a nucleus is usually a protoctist; multicellular with cellulose walls and chloroplasts a plant; walls not of cellulose, no chlorophyll, absorptive feeding a fungus; no walls and feeds on others an animal.", "0610-1-A34": "A virus has a protein coat surrounding genetic material (DNA or RNA).", "0610-1-A35": "Viruses are not cells (no cell membrane, cytoplasm, ribosomes or cell wall) and can only reproduce inside a living host cell, so they are placed in no kingdom; antibiotics do not affect them."}}, {"id": "t5", "order": 5, "title": "Vertebrates and arthropods", "goal": "Classify an animal into its vertebrate or arthropod group using the feature only that group has.", "atom_ids": ["0610-1-A36", "0610-1-A37", "0610-1-A38", "0610-1-A39", "0610-1-A40", "0610-1-A41", "0610-1-A42", "0610-1-A43", "0610-1-A44", "0610-1-A45", "0610-1-A46", "0610-1-A47", "0610-1-A48"], "paragraphs": ["P24", "P25", "P26", "P27"], "quizId": "0610_ch01_q05", "atoms": {"0610-1-A36": "Vertebrates are animals with a backbone; the five main groups are mammals, birds, reptiles, amphibians and fish.", "0610-1-A37": "Mammals have hair or fur, external ears (pinnae) and mammary glands that produce milk; most give birth to live young.", "0610-1-A38": "Birds have feathers, a beak, front limbs that are wings and eggs with hard shells.", "0610-1-A39": "Reptiles have dry skin covered in scales and lay eggs with soft, leathery shells on land.", "0610-1-A40": "Amphibians have moist, smooth skin without scales, lay eggs without shells in water, and have a larva (tadpole) with gills in water and an adult that usually has lungs.", "0610-1-A41": "Fish have skin covered in scales, fins, gills covered by an operculum, and lay eggs in water.", "0610-1-A42": "Classify a vertebrate by a feature only one group has (feathers for birds; hair, external ears or mammary glands for mammals; moist scaleless skin for amphibians; dry scales for reptiles; fins and gills for fish); wings, laying eggs and habitat do not decide the group.", "0610-1-A43": "Arthropods are invertebrates with jointed legs, an exoskeleton and a segmented body.", "0610-1-A44": "Insects have three pairs of legs, a body in three parts (head, thorax, abdomen), one pair of antennae and usually one or two pairs of wings.", "0610-1-A45": "Arachnids have four pairs of legs, a body in two parts and no antennae.", "0610-1-A46": "Crustaceans have more than four pairs of legs, two pairs of antennae and often a hard chalky exoskeleton; most live in water.", "0610-1-A47": "Myriapods have a long body of many similar segments, each with one or two pairs of legs (centipedes one, millipedes two), and one pair of antennae.", "0610-1-A48": "Classify an arthropod by its group-specific features (count legs in pairs, body parts, antennae); jointed legs, an exoskeleton and a segmented body only show it is an arthropod, and one pair of antennae is shared by insects and myriapods."}}, {"id": "t6", "order": 6, "title": "Ferns and flowering plants", "goal": "Tell ferns from flowering plants and monocotyledons from dicotyledons by visible features.", "atom_ids": ["0610-1-A49", "0610-1-A50", "0610-1-A51", "0610-1-A52"], "paragraphs": ["P28", "P29"], "quizId": "0610_ch01_q06", "atoms": {"0610-1-A49": "Ferns have fronds and no flowers or seeds and reproduce by spores made on the underside of the fronds; flowering plants reproduce using flowers and produce seeds.", "0610-1-A50": "Monocotyledons have one cotyledon, long narrow leaves with parallel veins and flower parts in threes or multiples of three (also accepted: fibrous roots, scattered vascular bundles).", "0610-1-A51": "Dicotyledons have two cotyledons, broad leaves with a branching network of veins and flower parts in fours or fives or multiples of these (also accepted: tap root, vascular bundles in a ring).", "0610-1-A52": "Classify a plant from visible features: parallel veins or strap-shaped leaves or parts in threes mean monocot; net veins or parts in fours or fives mean dicot; fronds with spores mean fern; having fruit or flowers does not separate monocots from dicots."}}]}
 
1
+ {"chapterId": "0610_ch01", "subject": "Biology", "code": "0610", "chapter": "Characteristics and classification of living organisms", "mixedQuizId": "0610_ch01_q07", "topics": [{"id": "t1", "order": 1, "title": "Characteristics of life", "goal": "Define the seven characteristics of living organisms and recognise each one in a described event.", "atom_ids": ["0610-1-A01", "0610-1-A02", "0610-1-A03", "0610-1-A04", "0610-1-A05", "0610-1-A06", "0610-1-A07", "0610-1-A08", "0610-1-A09", "0610-1-A10", "0610-1-A11"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7"], "quizId": "0610_ch01_q01", "atoms": {"0610-1-A01": "All living organisms show seven characteristics: movement, respiration, sensitivity, growth, reproduction, excretion and nutrition; a non-living thing may show some of them but never all seven.", "0610-1-A02": "Movement is an action by an organism or part of an organism causing a change of position or place.", "0610-1-A03": "Respiration is the chemical reactions in cells that break down nutrient molecules and release energy for metabolism; it happens in every living cell and is not breathing (breathing only moves air in and out of lungs).", "0610-1-A04": "Sensitivity is the ability to detect and respond to changes in the internal or external environment.", "0610-1-A05": "Growth is a permanent increase in size and dry mass; swelling with water, or getting taller while dry mass falls, is not growth.", "0610-1-A06": "Reproduction is the processes that make more of the same kind of organism.", "0610-1-A07": "Excretion is the removal of the waste products of metabolism (such as carbon dioxide and urea) and substances in excess of requirements; removing undigested food (faeces) is egestion, not excretion.", "0610-1-A08": "Nutrition is the taking in of materials for energy, growth and development.", "0610-1-A09": "The characteristics depend on each other: nutrition supplies nutrient molecules, respiration releases their energy for movement, growth and reproduction, and the waste made by metabolism must be excreted.", "0610-1-A10": "To name the characteristic shown by an event, match it to the definition: CO2 entering a leaf for photosynthesis is nutrition; CO2 leaving the blood in the lungs is excretion; a shoot bending to light is sensitivity and growth; pulling a hand from heat is sensitivity.", "0610-1-A11": "Processes that only some organisms carry out (photosynthesis, breathing, digestion, egestion, transpiration, sexual reproduction) are not characteristics of all living organisms; photosynthesis is the way plants carry out nutrition."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Species, names and keys", "goal": "Define a species, read binomial names and use and build dichotomous keys.", "atom_ids": ["0610-1-A12", "0610-1-A13", "0610-1-A14", "0610-1-A15", "0610-1-A16", "0610-1-A17", "0610-1-A18", "0610-1-A19", "0610-1-A20"], "paragraphs": ["P8", "P9", "P10", "P11", "P12", "P13", "P14"], "quizId": "0610_ch01_q02", "atoms": {"0610-1-A12": "Organisms are classified into groups by the features that they share; the groups are nested, from kingdom (largest) down to genus and species (smallest).", "0610-1-A13": "A species is a group of organisms that can reproduce to produce fertile offspring.", "0610-1-A14": "Membership of a species is tested by fertile offspring, not by looks: dog breeds are one species; a horse and a donkey are two species because the mule is infertile; a population is one species in one area, which is a different idea.", "0610-1-A15": "The binomial system is an internationally agreed system in which the scientific name of an organism has two parts showing the genus and the species, in that order.", "0610-1-A16": "In a binomial name the genus is the first word only, with a capital letter; the species word follows in lower case; the whole name is in italics or underlined.", "0610-1-A17": "Species that share a genus name are closely related but are different species; genus names that merely look alike show nothing.", "0610-1-A18": "A dichotomous key is a series of steps, each a pair of contrasting statements about one identifiable feature, each statement leading to a name or to another step.", "0610-1-A19": "To use a key, start at step 1, choose the statement that is true for the organism, follow its instruction and repeat until a name is reached; every statement passed must be true for that organism.", "0610-1-A20": "To construct a key, split the organisms into two groups with a pair of opposite statements about one identifiable feature (visible and fixed, not size, behaviour or habitat), repeat until each organism is alone; n organisms need n - 1 steps."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Classification and DNA", "goal": "Explain how DNA base sequences show evolutionary relationships and use them to rank relatedness.", "atom_ids": ["0610-1-A21", "0610-1-A22", "0610-1-A23", "0610-1-A24", "0610-1-A25"], "paragraphs": ["P15", "P16", "P17"], "quizId": "0610_ch01_q03", "atoms": {"0610-1-A21": "Classification systems aim to reflect evolutionary relationships (how recently groups shared a common ancestor); similar features can evolve separately (bat and bird wings), so appearance alone can mislead.", "0610-1-A22": "The sequence of bases in DNA is used as a means of classification; it is the order of the bases that is compared, not the number or the types of base.", "0610-1-A23": "Groups that share a more recent ancestor have more similar DNA base sequences than groups sharing only a distant ancestor, because mutations build up separately in each line after they split.", "0610-1-A24": "To rank relatedness from data, count the positions where aligned sequences differ or compare percentage similarity: fewest differences or highest percentage identical means the most recent common ancestor.", "0610-1-A25": "In a branching evolutionary diagram, the groups joined at the most recent branch point share the most recent common ancestor and have the most similar DNA; a group that branched off earliest has the least similar DNA."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Five kingdoms and viruses", "goal": "State the features of the five kingdoms and of viruses, and place an unfamiliar organism in its kingdom.", "atom_ids": ["0610-1-A26", "0610-1-A27", "0610-1-A28", "0610-1-A29", "0610-1-A30", "0610-1-A31", "0610-1-A32", "0610-1-A33", "0610-1-A34", "0610-1-A35"], "paragraphs": ["P18", "P19", "P20", "P21", "P22", "P23"], "quizId": "0610_ch01_q04", "atoms": {"0610-1-A26": "Animals are multicellular; their cells have no cell walls and no chlorophyll; they feed on organic substances made by other organisms.", "0610-1-A27": "Plants are multicellular; their cells have cellulose cell walls and chloroplasts containing chlorophyll; they make their own food by photosynthesis.", "0610-1-A28": "Fungi have cells with a nucleus and cell walls not made of cellulose (chitin) and no chlorophyll; most are multicellular and made of hyphae (yeast is single-celled); they feed by secreting enzymes onto food and absorbing the products.", "0610-1-A29": "Prokaryotes (bacteria) are single-celled with no nucleus: circular DNA lies free in the cytoplasm; they have a cell wall (not cellulose), cell membrane, cytoplasm and ribosomes, often plasmids, and no mitochondria or chloroplasts.", "0610-1-A30": "Protoctists have cells with a nucleus and are mostly single-celled; some have chloroplasts and photosynthesise like plants (Chlorella, Euglena), others have no cell wall and feed like animals (Amoeba, Plasmodium).", "0610-1-A31": "The five kingdoms are animal, plant, fungus, prokaryote and protoctist; bacteria are organisms within the prokaryote kingdom, and viruses belong to no kingdom.", "0610-1-A32": "No single structure identifies a kingdom: cell walls occur in plants, fungi, prokaryotes and some protoctists; a nucleus in every kingdom except prokaryotes; chloroplasts in plants and some protoctists; membrane, cytoplasm and ribosomes in all.", "0610-1-A33": "Classify an organism into a kingdom by elimination: no nucleus means prokaryote; single-celled with a nucleus is usually a protoctist; multicellular with cellulose walls and chloroplasts a plant; walls not of cellulose, no chlorophyll, absorptive feeding a fungus; no walls and feeds on others an animal.", "0610-1-A34": "A virus has a protein coat surrounding genetic material (DNA or RNA).", "0610-1-A35": "Viruses are not cells (no cell membrane, cytoplasm, ribosomes or cell wall) and can only reproduce inside a living host cell, so they are placed in no kingdom; antibiotics do not affect them."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Vertebrates and arthropods", "goal": "Classify an animal into its vertebrate or arthropod group using the feature only that group has.", "atom_ids": ["0610-1-A36", "0610-1-A37", "0610-1-A38", "0610-1-A39", "0610-1-A40", "0610-1-A41", "0610-1-A42", "0610-1-A43", "0610-1-A44", "0610-1-A45", "0610-1-A46", "0610-1-A47", "0610-1-A48"], "paragraphs": ["P24", "P25", "P26", "P27"], "quizId": "0610_ch01_q05", "atoms": {"0610-1-A36": "Vertebrates are animals with a backbone; the five main groups are mammals, birds, reptiles, amphibians and fish.", "0610-1-A37": "Mammals have hair or fur, external ears (pinnae) and mammary glands that produce milk; most give birth to live young.", "0610-1-A38": "Birds have feathers, a beak, front limbs that are wings and eggs with hard shells.", "0610-1-A39": "Reptiles have dry skin covered in scales and lay eggs with soft, leathery shells on land.", "0610-1-A40": "Amphibians have moist, smooth skin without scales, lay eggs without shells in water, and have a larva (tadpole) with gills in water and an adult that usually has lungs.", "0610-1-A41": "Fish have skin covered in scales, fins, gills covered by an operculum, and lay eggs in water.", "0610-1-A42": "Classify a vertebrate by a feature only one group has (feathers for birds; hair, external ears or mammary glands for mammals; moist scaleless skin for amphibians; dry scales for reptiles; fins and gills for fish); wings, laying eggs and habitat do not decide the group.", "0610-1-A43": "Arthropods are invertebrates with jointed legs, an exoskeleton and a segmented body.", "0610-1-A44": "Insects have three pairs of legs, a body in three parts (head, thorax, abdomen), one pair of antennae and usually one or two pairs of wings.", "0610-1-A45": "Arachnids have four pairs of legs, a body in two parts and no antennae.", "0610-1-A46": "Crustaceans have more than four pairs of legs, two pairs of antennae and often a hard chalky exoskeleton; most live in water.", "0610-1-A47": "Myriapods have a long body of many similar segments, each with one or two pairs of legs (centipedes one, millipedes two), and one pair of antennae.", "0610-1-A48": "Classify an arthropod by its group-specific features (count legs in pairs, body parts, antennae); jointed legs, an exoskeleton and a segmented body only show it is an arthropod, and one pair of antennae is shared by insects and myriapods."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Ferns and flowering plants", "goal": "Tell ferns from flowering plants and monocotyledons from dicotyledons by visible features.", "atom_ids": ["0610-1-A49", "0610-1-A50", "0610-1-A51", "0610-1-A52"], "paragraphs": ["P28", "P29"], "quizId": "0610_ch01_q06", "atoms": {"0610-1-A49": "Ferns have fronds and no flowers or seeds and reproduce by spores made on the underside of the fronds; flowering plants reproduce using flowers and produce seeds.", "0610-1-A50": "Monocotyledons have one cotyledon, long narrow leaves with parallel veins and flower parts in threes or multiples of three (also accepted: fibrous roots, scattered vascular bundles).", "0610-1-A51": "Dicotyledons have two cotyledons, broad leaves with a branching network of veins and flower parts in fours or fives or multiples of these (also accepted: tap root, vascular bundles in a ring).", "0610-1-A52": "Classify a plant from visible features: parallel veins or strap-shaped leaves or parts in threes mean monocot; net veins or parts in fours or fives mean dicot; fronds with spores mean fern; having fruit or flowers does not separate monocots from dicots."}, "chunks": []}]}
data/topics/0610_ch02.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "mixedQuizId": "0610_ch02_q06", "topics": [{"id": "t1", "order": 1, "title": "Cells and their parts", "goal": "Name the parts of animal and plant cells, state what each does and compare the two cell types.", "atom_ids": ["0610-2-A01", "0610-2-A02", "0610-2-A03", "0610-2-A04", "0610-2-A05", "0610-2-A06", "0610-2-A07", "0610-2-A08", "0610-2-A09", "0610-2-A10", "0610-2-A11", "0610-2-A12", "0610-2-A13", "0610-2-A14", "0610-2-A15", "0610-2-A16"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7", "P11"], "quizId": "0610_ch02_q01", "atoms": {"0610-2-A01": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled.", "0610-2-A02": "New cells are produced by division of existing cells.", "0610-2-A03": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "0610-2-A04": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it.", "0610-2-A05": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "0610-2-A06": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "0610-2-A07": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "0610-2-A08": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "0610-2-A09": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "0610-2-A10": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "0610-2-A11": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "0610-2-A12": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton.", "0610-2-A13": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "0610-2-A14": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria.", "0610-2-A15": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "0610-2-A16": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall."}}, {"id": "t2", "order": 2, "title": "Bacterial cells and comparisons", "goal": "Describe a bacterial cell and compare plant, animal and bacterial cells structure by structure.", "atom_ids": ["0610-2-A17", "0610-2-A18", "0610-2-A19", "0610-2-A20", "0610-2-A21", "0610-2-A22", "0610-2-A23", "0610-2-A24", "0610-2-A25", "0610-2-A26"], "paragraphs": ["P8", "P9", "P10", "P11"], "quizId": "0610_ch02_q02", "atoms": {"0610-2-A17": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "0610-2-A18": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "0610-2-A19": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "0610-2-A20": "The bacterial cell wall is not made of cellulose.", "0610-2-A21": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting.", "0610-2-A22": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "0610-2-A23": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "0610-2-A24": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "0610-2-A25": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA.", "0610-2-A26": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside."}}, {"id": "t3", "order": 3, "title": "Specialised cells and levels", "goal": "State the function of each specialised cell and place structures on the cell-to-organism hierarchy.", "atom_ids": ["0610-2-A27", "0610-2-A28", "0610-2-A29", "0610-2-A30", "0610-2-A31", "0610-2-A32", "0610-2-A33", "0610-2-A34", "0610-2-A35", "0610-2-A36", "0610-2-A37", "0610-2-A38", "0610-2-A39", "0610-2-A40"], "paragraphs": ["P12", "P13", "P14", "P15", "P16", "P17"], "quizId": "0610_ch02_q03", "atoms": {"0610-2-A27": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "0610-2-A28": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "0610-2-A29": "Root hair cells absorb water and mineral ions from the soil.", "0610-2-A30": "Palisade mesophyll cells carry out photosynthesis.", "0610-2-A31": "Neurones conduct electrical impulses.", "0610-2-A32": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "0610-2-A33": "Sperm and egg cells (gametes) are specialised for reproduction.", "0610-2-A34": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing).", "0610-2-A35": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "0610-2-A36": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "0610-2-A37": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "0610-2-A38": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together.", "0610-2-A39": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "0610-2-A40": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level."}}, {"id": "t4", "order": 4, "title": "Units and magnification", "goal": "Convert between mm and micrometres and use magnification = image size ÷ actual size in all three arrangements.", "atom_ids": ["0610-2-A41", "0610-2-A42", "0610-2-A43", "0610-2-A44", "0610-2-A45", "0610-2-A46", "0610-2-A47", "0610-2-A48", "0610-2-A49"], "paragraphs": ["P18", "P19", "P20", "P21", "P23"], "quizId": "0610_ch02_q04", "atoms": {"0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-A42": "1 cm = 10 mm and 1 m = 1000 mm.", "0610-2-A43": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm.", "0610-2-A44": "magnification = image size / actual size.", "0610-2-A45": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "0610-2-A47": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "0610-2-A48": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size.", "0610-2-A49": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check."}}, {"id": "t5", "order": 5, "title": "Magnification in practice", "goal": "Measure, use scale bars and round magnification answers exactly as Paper 6 asks.", "atom_ids": ["0610-2-A50", "0610-2-A51", "0610-2-A52", "0610-2-A53", "0610-2-A54", "0610-2-A55"], "paragraphs": ["P22", "P24", "P25", "P26", "P27"], "quizId": "0610_ch02_q05", "atoms": {"0610-2-A50": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "0610-2-A51": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "0610-2-A52": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step.", "0610-2-A53": "Average size of one cell = distance spanned / number of identical cells across it.", "0610-2-A54": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "0610-2-A55": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm."}}]}
 
1
+ {"chapterId": "0610_ch02", "subject": "Biology", "code": "0610", "chapter": "Organisation of the organism", "mixedQuizId": "0610_ch02_q06", "topics": [{"id": "t1", "order": 1, "title": "Cells and their parts", "goal": "Name the parts of animal and plant cells, state what each does and compare the two cell types.", "atom_ids": ["0610-2-A01", "0610-2-A02", "0610-2-A03", "0610-2-A04", "0610-2-A05", "0610-2-A06", "0610-2-A07", "0610-2-A08", "0610-2-A09", "0610-2-A10", "0610-2-A11", "0610-2-A12", "0610-2-A13", "0610-2-A14", "0610-2-A15", "0610-2-A16"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7", "P11"], "chunks": [{"id": "t1c1", "order": 1, "title": "Membrane and cytoplasm", "question": "Why is a cell a bag of jelly with a skin?", "atom_ids": ["0610-2-A01", "0610-2-A03", "0610-2-A04"], "new_terms": ["cell membrane", "partially permeable", "cytoplasm"], "misconceptions": [], "paragraphs": ["P1", "P3", "P4"], "quizId": "0610_ch02_t1c1", "atoms": {"0610-2-A01": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled.", "0610-2-A03": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "0610-2-A04": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it."}}, {"id": "t1c2", "order": 2, "title": "Nucleus, mitochondria, ribosomes", "question": "What runs the cell, powers it and builds it, and where do new cells come from?", "atom_ids": ["0610-2-A02", "0610-2-A05", "0610-2-A06", "0610-2-A07", "0610-2-A14"], "new_terms": ["nucleus (DNA in chromosomes)", "mitochondria (aerobic respiration)", "ribosomes (protein synthesis)"], "misconceptions": ["0610-2-M04", "0610-2-M06"], "paragraphs": ["P2", "P4", "P5"], "quizId": "0610_ch02_t1c2", "atoms": {"0610-2-A02": "New cells are produced by division of existing cells.", "0610-2-A05": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "0610-2-A06": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "0610-2-A07": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "0610-2-A14": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria."}}, {"id": "t1c3", "order": 3, "title": "Wall, chloroplasts, vacuole", "question": "A plant can't move or eat. What extra parts does it need?", "atom_ids": ["0610-2-A08", "0610-2-A09", "0610-2-A10", "0610-2-A12", "0610-2-A13"], "new_terms": ["cell wall (cellulose)", "chloroplast (chlorophyll, photosynthesis)", "large permanent vacuole (cell sap)", "turgid"], "misconceptions": ["0610-2-M02", "0610-2-M05"], "paragraphs": ["P6", "P7"], "quizId": "0610_ch02_t1c3", "atoms": {"0610-2-A08": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "0610-2-A09": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "0610-2-A10": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "0610-2-A12": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton.", "0610-2-A13": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none."}}, {"id": "t1c4", "order": 4, "title": "Plant or animal cell?", "question": "How do you tell plant and animal cells apart?", "atom_ids": ["0610-2-A11", "0610-2-A15", "0610-2-A16"], "new_terms": [], "misconceptions": ["0610-2-M01", "0610-2-M02"], "paragraphs": ["P3", "P7", "P11"], "quizId": "0610_ch02_t1c4", "atoms": {"0610-2-A11": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "0610-2-A15": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "0610-2-A16": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall."}}], "quizId": "0610_ch02_q01", "atoms": {"0610-2-A01": "The cell is the basic unit of all living organisms: cytoplasm enclosed by a membrane so that the chemistry of life is contained and controlled.", "0610-2-A02": "New cells are produced by division of existing cells.", "0610-2-A03": "The cell membrane is partially permeable and controls which substances enter and leave the cell.", "0610-2-A04": "The cytoplasm is where most of the cell's chemical reactions take place; organelles are suspended in it.", "0610-2-A05": "The nucleus contains the genetic material (DNA in chromosomes) that controls the activities of the cell.", "0610-2-A06": "Mitochondria are the site of aerobic respiration, which releases energy from glucose.", "0610-2-A07": "Ribosomes are the site of protein synthesis; they are found in every cell, free in the cytoplasm.", "0610-2-A08": "A plant cell wall is made of cellulose; it supports the cell, keeps its shape and stops it bursting; it is fully permeable.", "0610-2-A09": "Chloroplasts contain chlorophyll, which absorbs light, and are the site of photosynthesis.", "0610-2-A10": "A plant cell has a large permanent vacuole containing cell sap; it stores substances and, when full, keeps the cell turgid.", "0610-2-A11": "Plant and animal cells both have a membrane, cytoplasm, nucleus, mitochondria and ribosomes; only plant cells have a cellulose cell wall, chloroplasts and a large permanent vacuole.", "0610-2-A12": "A plant has chloroplasts because it makes its own food, and a wall plus a turgid vacuole because it has no skeleton.", "0610-2-A13": "Not every plant cell has chloroplasts: root hair cells and other cells that receive no light have none.", "0610-2-A14": "Cells that use a lot of energy (muscle, sperm, root hair cells for active uptake) have many mitochondria.", "0610-2-A15": "Recognise structures in diagrams and micrographs: nucleus largest and round; chloroplasts green ovals; mitochondria small rods with folded inner membrane; vacuole large clear space; wall outermost layer; membrane thin line inside the wall; ribosomes tiny dots.", "0610-2-A16": "Follow the label line to its end: a line ending on the thin boundary inside the wall points to the membrane, not the wall."}}, {"id": "t2", "order": 2, "title": "Bacterial cells and comparisons", "goal": "Describe a bacterial cell and compare plant, animal and bacterial cells structure by structure.", "atom_ids": ["0610-2-A17", "0610-2-A18", "0610-2-A19", "0610-2-A20", "0610-2-A21", "0610-2-A22", "0610-2-A23", "0610-2-A24", "0610-2-A25", "0610-2-A26"], "paragraphs": ["P8", "P9", "P10", "P11"], "chunks": [{"id": "t2c1", "order": 1, "title": "Inside a bacterium", "question": "What is inside a bacterium, and what does each part do?", "atom_ids": ["0610-2-A17", "0610-2-A18", "0610-2-A20", "0610-2-A21"], "new_terms": ["bacterial cell", "circular DNA"], "misconceptions": ["0610-2-M03", "0610-2-M06", "0610-2-M02"], "paragraphs": ["P8", "P9"], "quizId": "0610_ch02_t2c1", "atoms": {"0610-2-A17": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "0610-2-A18": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "0610-2-A20": "The bacterial cell wall is not made of cellulose.", "0610-2-A21": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting."}}, {"id": "t2c2", "order": 2, "title": "Plasmids and prokaryotes", "question": "Which features do all bacteria have, and which are extras?", "atom_ids": ["0610-2-A19", "0610-2-A25"], "new_terms": ["plasmid", "prokaryote"], "misconceptions": ["0610-2-M14", "0610-2-M03"], "paragraphs": ["P8", "P9", "P10"], "quizId": "0610_ch02_t2c2", "atoms": {"0610-2-A19": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "0610-2-A25": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA."}}, {"id": "t2c3", "order": 3, "title": "Comparing all three cells", "question": "How do plant, animal and bacterial cells compare?", "atom_ids": ["0610-2-A22", "0610-2-A23", "0610-2-A24", "0610-2-A26"], "new_terms": [], "misconceptions": ["0610-2-M01", "0610-2-M06", "0610-2-M14"], "paragraphs": ["P7", "P8", "P10", "P11"], "quizId": "0610_ch02_t2c3", "atoms": {"0610-2-A22": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "0610-2-A23": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "0610-2-A24": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "0610-2-A26": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside."}}], "quizId": "0610_ch02_q02", "atoms": {"0610-2-A17": "A bacterial cell has a cell wall, cell membrane, cytoplasm, ribosomes, circular DNA and plasmids.", "0610-2-A18": "A bacterial cell has no nucleus: its DNA is one circular loop free in the cytoplasm; it has no mitochondria and no chloroplasts.", "0610-2-A19": "Plasmids are small extra rings of DNA carrying a few genes (e.g. antibiotic resistance); they are used to carry genes in genetic modification.", "0610-2-A20": "The bacterial cell wall is not made of cellulose.", "0610-2-A21": "In bacteria the circular DNA controls the cell, ribosomes make proteins, the membrane controls entry and exit, and the wall supports the cell and prevents bursting.", "0610-2-A22": "Every cell, plant, animal or bacterial, has a cell membrane, cytoplasm, ribosomes and DNA.", "0610-2-A23": "A cell wall is in plant and bacterial cells but not animal cells; nucleus and mitochondria in plant and animal cells but not bacteria; chloroplasts and a large permanent vacuole only in plant cells; plasmids only in bacteria.", "0610-2-A24": "To compare cells, write comparative statements that name the structure and which cell has it, and include similarities when asked.", "0610-2-A25": "Bacteria are prokaryotes; when asked for features of all prokaryotes give presences such as cell wall, cell membrane, cytoplasm, ribosomes and circular DNA.", "0610-2-A26": "Recognise a bacterial cell in a diagram: small (about 1-5 micrometres), no nucleus, a loop of DNA, small plasmid rings, wall with membrane just inside."}}, {"id": "t3", "order": 3, "title": "Specialised cells and levels", "goal": "State the function of each specialised cell and place structures on the cell-to-organism hierarchy.", "atom_ids": ["0610-2-A27", "0610-2-A28", "0610-2-A29", "0610-2-A30", "0610-2-A31", "0610-2-A32", "0610-2-A33", "0610-2-A34", "0610-2-A35", "0610-2-A36", "0610-2-A37", "0610-2-A38", "0610-2-A39", "0610-2-A40"], "paragraphs": ["P12", "P13", "P14", "P15", "P16", "P17"], "chunks": [{"id": "t3c1", "order": 1, "title": "Specialised plant cells", "question": "Why do cells specialise, and how are plant cells suited to their jobs?", "atom_ids": ["0610-2-A27", "0610-2-A29", "0610-2-A30", "0610-2-A34"], "new_terms": ["specialised cell", "root hair cell", "palisade mesophyll cell"], "misconceptions": ["0610-2-M05"], "paragraphs": ["P12", "P13", "P14", "P15"], "quizId": "0610_ch02_t3c1", "atoms": {"0610-2-A27": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "0610-2-A29": "Root hair cells absorb water and mineral ions from the soil.", "0610-2-A30": "Palisade mesophyll cells carry out photosynthesis.", "0610-2-A34": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing)."}}, {"id": "t3c2", "order": 2, "title": "Specialised animal cells", "question": "Which animal cells do special jobs, and what does each one do?", "atom_ids": ["0610-2-A28", "0610-2-A31", "0610-2-A32", "0610-2-A33"], "new_terms": ["ciliated cell", "neurone", "red blood cell", "gamete"], "misconceptions": ["0610-2-M08"], "paragraphs": ["P13", "P14", "P15"], "quizId": "0610_ch02_t3c2", "atoms": {"0610-2-A28": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "0610-2-A31": "Neurones conduct electrical impulses.", "0610-2-A32": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "0610-2-A33": "Sperm and egg cells (gametes) are specialised for reproduction."}}, {"id": "t3c3", "order": 3, "title": "Tissues, organs, systems", "question": "How are cells built up into a whole organism?", "atom_ids": ["0610-2-A35", "0610-2-A36", "0610-2-A37", "0610-2-A38"], "new_terms": ["tissue", "organ", "organ system", "organism"], "misconceptions": ["0610-2-M07"], "paragraphs": ["P16"], "quizId": "0610_ch02_t3c3", "atoms": {"0610-2-A35": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "0610-2-A36": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "0610-2-A37": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "0610-2-A38": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together."}}, {"id": "t3c4", "order": 4, "title": "Which level is it?", "question": "How do you tell which level a structure belongs to?", "atom_ids": ["0610-2-A39", "0610-2-A40"], "new_terms": [], "misconceptions": ["0610-2-M07"], "paragraphs": ["P16", "P17"], "quizId": "0610_ch02_t3c4", "atoms": {"0610-2-A39": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "0610-2-A40": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level."}}], "quizId": "0610_ch02_q03", "atoms": {"0610-2-A27": "After division, cells in a multicellular organism become specialised: their shape and contents suit one function.", "0610-2-A28": "Ciliated cells move mucus in the trachea and bronchi: their cilia beat to sweep mucus with trapped particles and pathogens up and away from the lungs.", "0610-2-A29": "Root hair cells absorb water and mineral ions from the soil.", "0610-2-A30": "Palisade mesophyll cells carry out photosynthesis.", "0610-2-A31": "Neurones conduct electrical impulses.", "0610-2-A32": "Red blood cells transport oxygen (haemoglobin combines with oxygen).", "0610-2-A33": "Sperm and egg cells (gametes) are specialised for reproduction.", "0610-2-A34": "To explain an adaptation, name a feature and then say how it helps the function (feature alone scores nothing).", "0610-2-A35": "A tissue is a group of cells with similar structures, working together to perform a shared function (e.g. palisade mesophyll, muscle tissue, xylem).", "0610-2-A36": "An organ is a structure made of a group of tissues working together to perform specific functions (e.g. leaf, stomach, heart, brain).", "0610-2-A37": "An organ system is a group of organs with related functions working together to perform body functions (e.g. digestive, circulatory, nervous systems).", "0610-2-A38": "An organism is the whole living thing; in a multicellular organism it is made of organ systems working together.", "0610-2-A39": "Order the levels cell -> tissue -> organ -> organ system -> organism and give an example of each.", "0610-2-A40": "Place a named structure on the hierarchy by asking what it is made of (neurone = cell; nervous tissue = tissue; brain = organ); a cell structure such as a chloroplast is not a level."}}, {"id": "t4", "order": 4, "title": "Units and magnification", "goal": "Convert between mm and micrometres and use magnification = image size ÷ actual size in all three arrangements.", "atom_ids": ["0610-2-A41", "0610-2-A42", "0610-2-A43", "0610-2-A44", "0610-2-A45", "0610-2-A46", "0610-2-A47", "0610-2-A48", "0610-2-A49"], "paragraphs": ["P18", "P19", "P20", "P21", "P23"], "chunks": [{"id": "t4c1", "order": 1, "title": "Millimetres and micrometres", "question": "How do you change between µm, mm and cm?", "atom_ids": ["0610-2-A41", "0610-2-A42"], "new_terms": ["micrometre (µm)"], "misconceptions": ["0610-2-M09"], "paragraphs": ["P18"], "quizId": "0610_ch02_t4c1", "atoms": {"0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-A42": "1 cm = 10 mm and 1 m = 1000 mm."}}, {"id": "t4c2", "order": 2, "title": "The magnification formula", "question": "How many times bigger is the image, and how do you find the real size?", "atom_ids": ["0610-2-A44", "0610-2-A45", "0610-2-A46", "0610-2-A48", "0610-2-A49"], "new_terms": ["magnification", "image size", "actual size"], "misconceptions": ["0610-2-M10", "0610-2-M11"], "paragraphs": ["P19", "P20", "P23"], "quizId": "0610_ch02_t4c2", "atoms": {"0610-2-A44": "magnification = image size / actual size.", "0610-2-A45": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "0610-2-A48": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size.", "0610-2-A49": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check."}}, {"id": "t4c3", "order": 3, "title": "Mixed units and sense checks", "question": "How do you calculate with mixed units, and spot an answer that can't be right?", "atom_ids": ["0610-2-A47", "0610-2-A43"], "new_terms": [], "misconceptions": ["0610-2-M12", "0610-2-M09"], "paragraphs": ["P18", "P21"], "quizId": "0610_ch02_t4c3", "atoms": {"0610-2-A47": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "0610-2-A43": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm."}}], "quizId": "0610_ch02_q04", "atoms": {"0610-2-A41": "1 mm = 1000 micrometres; mm to micrometres multiply by 1000; micrometres to mm divide by 1000.", "0610-2-A42": "1 cm = 10 mm and 1 m = 1000 mm.", "0610-2-A43": "Typical sizes: bacteria 1-5 micrometres, red blood cell about 7-8 micrometres, animal cells 10-30 micrometres, plant cells 20-100 micrometres, human egg about 0.1 mm.", "0610-2-A44": "magnification = image size / actual size.", "0610-2-A45": "Magnification is a ratio of two lengths in the same unit, so it has no unit (written x400 or 400).", "0610-2-A46": "Rearrange the formula: actual size = image size / magnification; image size = actual size x magnification.", "0610-2-A47": "Convert both lengths to millimetres before dividing, calculate, then convert the answer to the unit asked for and give that unit.", "0610-2-A48": "A magnification below 1 means the image is smaller than the specimen, so the actual size is larger than the image size.", "0610-2-A49": "Sense-check: with magnification above 1 the actual size must be smaller than the image; multiply back to check."}}, {"id": "t5", "order": 5, "title": "Magnification in practice", "goal": "Measure, use scale bars and round magnification answers exactly as Paper 6 asks.", "atom_ids": ["0610-2-A50", "0610-2-A51", "0610-2-A52", "0610-2-A53", "0610-2-A54", "0610-2-A55"], "paragraphs": ["P22", "P24", "P25", "P26", "P27"], "chunks": [{"id": "t5c1", "order": 1, "title": "Draw, measure, round", "question": "How do you draw, measure and round the way Paper 6 marks it?", "atom_ids": ["0610-2-A54", "0610-2-A50", "0610-2-A52"], "new_terms": ["significant figures", "decimal places"], "misconceptions": ["0610-2-M13", "0610-2-M12"], "paragraphs": ["P24", "P25", "P27"], "quizId": "0610_ch02_t5c1", "atoms": {"0610-2-A54": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "0610-2-A50": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "0610-2-A52": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step."}}, {"id": "t5c2", "order": 2, "title": "Scale bars, counts, tiny sizes", "question": "How do you find sizes with no magnification given, and write very small ones?", "atom_ids": ["0610-2-A51", "0610-2-A53", "0610-2-A55"], "new_terms": ["scale bar", "standard form"], "misconceptions": ["0610-2-M09"], "paragraphs": ["P18", "P22", "P26"], "quizId": "0610_ch02_t5c2", "atoms": {"0610-2-A51": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "0610-2-A53": "Average size of one cell = distance spanned / number of identical cells across it.", "0610-2-A55": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm."}}], "quizId": "0610_ch02_q05", "atoms": {"0610-2-A50": "Measure the line on the figure with a ruler, end to end, in whole millimetres, and record the unit mm.", "0610-2-A51": "Scale bar: magnification = measured bar length / the length on its label (same units); or scale another length in the same image by proportion.", "0610-2-A52": "Round to the stated number of significant figures or decimal places (s.f. count from the first non-zero digit; d.p. count digits after the point); keep the full value until the last step.", "0610-2-A53": "Average size of one cell = distance spanned / number of identical cells across it.", "0610-2-A54": "A biological drawing is large, with clear continuous single lines, no shading, correct proportions and visible detail; label lines are ruled and touch the structure.", "0610-2-A55": "Convert very small values with care and accept standard form: 0.00075 mm = 0.75 micrometres; 1.276 micrometres = 0.001276 mm."}}]}
data/topics/0610_ch03.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch03", "subject": "Biology", "code": "0610", "chapter": "Movement into and out of cells", "mixedQuizId": "0610_ch03_q07", "topics": [{"id": "t1", "order": 1, "title": "Diffusion", "goal": "Describe diffusion as net movement down a concentration gradient and explain why living things depend on it.", "atom_ids": ["0610-3-A01", "0610-3-A02", "0610-3-A03", "0610-3-A04", "0610-3-A05", "0610-3-A06", "0610-3-A07"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0610_ch03_q01", "atoms": {"0610-3-A01": "Diffusion is the net movement of particles from a region of their higher concentration to a region of their lower concentration (down a concentration gradient), as a result of their random movement.", "0610-3-A02": "Particles move randomly in all directions; more leave a crowded region than enter it, so the net movement is down the gradient; at an even spread movement continues with no net change.", "0610-3-A03": "The energy for diffusion comes from the kinetic energy of random movement of molecules and ions; diffusion is passive and needs no energy from respiration.", "0610-3-A04": "Some substances (oxygen, carbon dioxide, water, glucose, urea) move into and out of cells by diffusion through the cell membrane; large molecules such as starch and proteins cannot pass; the cell wall is fully permeable.", "0610-3-A05": "A concentration gradient is maintained when the substance is used or removed (respiration uses oxygen; blood carries absorbed glucose away; ventilation replaces alveolar air), so diffusion continues.", "0610-3-A06": "Diffusion of gases is essential: oxygen into blood from alveoli and into respiring cells; carbon dioxide out; carbon dioxide into leaves through stomata and oxygen and water vapour out.", "0610-3-A07": "Diffusion of solutes is essential: digested food (glucose, amino acids) from the small intestine into blood; urea from liver cells into blood."}}, {"id": "t2", "order": 2, "title": "Rate of diffusion and SA : V", "goal": "Explain how gradient, temperature, surface area and distance change the rate of diffusion, and use surface area : volume ratio.", "atom_ids": ["0610-3-A08", "0610-3-A09", "0610-3-A10", "0610-3-A11", "0610-3-A12", "0610-3-A13", "0610-3-A14", "0610-3-A15", "0610-3-A16", "0610-3-A50", "0610-3-A51"], "paragraphs": ["P5", "P6", "P7", "P8"], "quizId": "0610_ch03_q02", "atoms": {"0610-3-A08": "A steeper concentration gradient gives a faster rate of diffusion; a smaller gradient slows it.", "0610-3-A09": "A higher temperature gives particles more kinetic energy, so they move faster and diffusion is faster.", "0610-3-A10": "A larger surface area gives a faster rate of diffusion, because more particles can cross at the same time.", "0610-3-A11": "A shorter diffusion distance (thinner surface) gives a faster rate of diffusion.", "0610-3-A12": "Exchange surfaces combine the factors: large surface area, thin (often one cell thick) surface, and a maintained gradient (blood supply, ventilation).", "0610-3-A13": "Surface area and volume of a cube of side L: SA = 6L², V = L³; SA : V ratio = SA / V = 6/L, written as n : 1.", "0610-3-A14": "As an object gets larger its SA : V ratio falls and the distance to its centre rises, so diffusion takes longer to reach the centre; large organisms need exchange surfaces and transport systems.", "0610-3-A15": "Agar-cube diffusion practical: indicator in agar changes colour as acid (or alkali) diffuses in; measure time for the whole cube to change, or distance in a set time; vary cube size, acid concentration or temperature.", "0610-3-A16": "Rate of diffusion = 1 / time (or distance / time); a shorter time means a faster rate.", "0610-3-A50": "A conclusion relates the independent variable to the rate of diffusion or to water movement (e.g. as concentration of salt increases, more water is lost), not a restated reading.", "0610-3-A51": "Identify the independent variable (what is changed), the dependent variable (what is measured, e.g. time for cube to change colour, change in mass or length) and constants as measurable quantities (volume and concentration of solution, temperature, time, size of pieces, type of tissue)."}}, {"id": "t3", "order": 3, "title": "Osmosis and water potential", "goal": "Explain osmosis as the movement of water from higher to lower water potential through a partially permeable membrane.", "atom_ids": ["0610-3-A17", "0610-3-A18", "0610-3-A19", "0610-3-A20", "0610-3-A21", "0610-3-A22", "0610-3-A23", "0610-3-A24"], "paragraphs": ["P9", "P10", "P11", "P12", "P13", "P14"], "quizId": "0610_ch03_q03", "atoms": {"0610-3-A17": "Water is a solvent: in digestion food and products are dissolved for enzymes to act and for absorption; in excretion urea and ions are dissolved in urine; in transport plasma, xylem and phloem carry dissolved substances.", "0610-3-A18": "A partially permeable membrane lets water and small molecules through but not larger solute molecules; the cell membrane is partially permeable, the cell wall is fully permeable, dialysis (Visking) tubing is an artificial one.", "0610-3-A19": "Water diffuses through partially permeable membranes by osmosis; water moves into and out of cells by osmosis through the cell membrane; only water moves.", "0610-3-A20": "Water potential: pure water has the highest; dissolving solute lowers it; dilute solution = higher water potential, concentrated solution = lower water potential.", "0610-3-A21": "Osmosis is the net movement of water molecules from a region of higher water potential (dilute solution) to a region of lower water potential (concentrated solution), through a partially permeable membrane.", "0610-3-A22": "When water potentials are equal there is no net movement of water (water still crosses both ways at equal rates).", "0610-3-A23": "Dialysis tubing model: a bag of concentrated sucrose solution in water gains water and mass (liquid rises in a capillary tube); a water-filled bag in water is the control; rinse and blot the bag; small molecules such as glucose or maltose diffuse out, sucrose and starch do not.", "0610-3-A24": "Animal cells (no wall): in water, water enters by osmosis and the cell bursts; in a concentrated solution, water leaves and the cell shrinks; in a solution of equal water potential (e.g. plasma), no change."}}, {"id": "t4", "order": 4, "title": "Turgid, flaccid, plasmolysed", "goal": "Explain what happens to plant cells in water and in concentrated solutions, and how turgor supports plants.", "atom_ids": ["0610-3-A25", "0610-3-A26", "0610-3-A27", "0610-3-A28", "0610-3-A29", "0610-3-A30", "0610-3-A31"], "paragraphs": ["P15", "P16", "P17", "P18"], "quizId": "0610_ch03_q04", "atoms": {"0610-3-A25": "Plants are supported by the pressure of water inside the cells pressing outwards on the cell wall; turgid cells keep non-woody stems and leaves upright.", "0610-3-A26": "In water or a dilute solution a plant cell takes in water by osmosis; the vacuole swells and the contents press on the wall (turgor pressure); the strong wall resists, so the cell becomes turgid and does not burst.", "0610-3-A27": "When water loss exceeds uptake, cells lose water and turgor pressure, become flaccid and the plant wilts; turgor needs living cells with a membrane, not xylem.", "0610-3-A28": "In a concentrated solution (lower water potential than cell sap) a plant cell loses water by osmosis; the vacuole shrinks and the cell becomes flaccid (no longer pressing on the wall).", "0610-3-A29": "Plasmolysis: after enough water loss the cell membrane and cytoplasm pull away from the cell wall; the gap fills with the outside solution; the wall barely changes.", "0610-3-A30": "Recognise turgid, flaccid and plasmolysed plant cells and burst, normal and shrunken red blood cells in diagrams or photomicrographs, in order of water content.", "0610-3-A31": "Water potential and osmosis in water uptake and loss: root hair sap has a lower water potential than soil water so water enters; salty soil reverses this and plants wilt; in cholera chloride ions lower the water potential in the gut so water leaves the blood."}}, {"id": "t5", "order": 5, "title": "Osmosis practicals", "goal": "Carry out, calculate and interpret plant-tissue osmosis investigations, including percentage change in mass.", "atom_ids": ["0610-3-A32", "0610-3-A33", "0610-3-A34", "0610-3-A35", "0610-3-A36", "0610-3-A37", "0610-3-A38", "0610-3-A39", "0610-3-A40", "0610-3-A41", "0610-3-A52", "0610-3-A53"], "paragraphs": ["P13", "P19", "P20", "P21", "P22"], "quizId": "0610_ch03_q05", "atoms": {"0610-3-A32": "Plant tissue osmosis method: cut equal cylinders with a cork borer, peel, blot, weigh or measure; immerse in equal volumes of solutions for the same time at the same temperature; blot the same way and reweigh.", "0610-3-A33": "Make a range of concentrations by diluting a stock solution with distilled water to the same total volume (concentration = stock concentration x stock volume / total volume).", "0610-3-A34": "Percentage change = (final - initial) / initial x 100, keeping the sign (+ gain, - loss) and giving the precision asked for.", "0610-3-A35": "Percentage change, not change in grams, is used because pieces start with different masses; it allows a fair comparison.", "0610-3-A36": "Plot percentage change against concentration on one linear y-scale through zero; read the concentration where the line crosses zero with construction lines shown.", "0610-3-A37": "Gain in mass means the solution had a higher water potential than the cells; loss means lower; zero change means equal water potential, which estimates the concentration of the cell sap.", "0610-3-A38": "The larger the difference in water potential, the steeper the gradient and the larger the percentage change; loss levels off when cells are fully plasmolysed.", "0610-3-A39": "Other measures of osmosis: change in length or final/initial length ratio (above 1 = gain), firmness of strips, % of plasmolysed cells; measure several discs together when one changes too little.", "0610-3-A40": "Six-mark osmosis plan: independent variable with values and how made; dependent variable measured before and after; named constants; method details (cork borer, blot, submerge); repeats; matched safety.", "0610-3-A41": "Blot tissue before weighing to remove surface solution that would add mass; rinse dialysis bags so spilled solution does not change the outside liquid.", "0610-3-A52": "Evaluate: repeats let anomalies be identified and a mean calculated; a thermostatically controlled water-bath keeps temperature constant; the hazard named (scalpel, acid) must match its precaution.", "0610-3-A53": "A control is a set-up without the factor under test (a water-filled dialysis bag; agar in water without acid); it shows that the factor causes the change."}}, {"id": "t6", "order": 6, "title": "Active transport", "goal": "Explain how and why cells move particles against a concentration gradient using protein carriers and energy from respiration.", "atom_ids": ["0610-3-A42", "0610-3-A43", "0610-3-A44", "0610-3-A45", "0610-3-A46", "0610-3-A47", "0610-3-A48", "0610-3-A49"], "paragraphs": ["P23", "P24", "P25", "P26"], "quizId": "0610_ch03_q06", "atoms": {"0610-3-A42": "Active transport is the movement of particles through a cell membrane from a region of lower concentration to a region of higher concentration (against a concentration gradient), using energy from respiration.", "0610-3-A43": "Active transport needs living, respiring cells; lack of oxygen or a respiratory poison (cyanide) stops it, while diffusion and osmosis continue.", "0610-3-A44": "Protein carriers in the cell membrane move molecules or ions across the membrane during active transport: each binds a specific particle, changes shape using energy and releases it on the other side.", "0610-3-A45": "Active transport is important for ion uptake by root hairs (nitrate, magnesium from dilute soil water), glucose and amino acid absorption in the small intestine, and glucose reabsorption in the kidney; such cells have many mitochondria.", "0610-3-A46": "The rate of active transport is limited by the number of protein carriers: uptake levels off when all carriers are working; fewer carriers means slower uptake.", "0610-3-A47": "Compare the processes: diffusion (any particle, down gradient, passive, no membrane needed); osmosis (water only, partially permeable membrane, passive); active transport (against gradient, membrane carriers, respiration energy, living cells).", "0610-3-A48": "Interpret uptake data: uptake that continues without oxygen or with a poison is diffusion; extra uptake with oxygen, or uptake against a gradient, is active transport; both can occur together.", "0610-3-A49": "Ions taken up by active transport lower the water potential of root hair cells, helping water to enter by osmosis."}}]}
 
1
+ {"chapterId": "0610_ch03", "subject": "Biology", "code": "0610", "chapter": "Movement into and out of cells", "mixedQuizId": "0610_ch03_q07", "topics": [{"id": "t1", "order": 1, "title": "Diffusion", "goal": "Describe diffusion as net movement down a concentration gradient and explain why living things depend on it.", "atom_ids": ["0610-3-A01", "0610-3-A02", "0610-3-A03", "0610-3-A04", "0610-3-A05", "0610-3-A06", "0610-3-A07"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0610_ch03_q01", "atoms": {"0610-3-A01": "Diffusion is the net movement of particles from a region of their higher concentration to a region of their lower concentration (down a concentration gradient), as a result of their random movement.", "0610-3-A02": "Particles move randomly in all directions; more leave a crowded region than enter it, so the net movement is down the gradient; at an even spread movement continues with no net change.", "0610-3-A03": "The energy for diffusion comes from the kinetic energy of random movement of molecules and ions; diffusion is passive and needs no energy from respiration.", "0610-3-A04": "Some substances (oxygen, carbon dioxide, water, glucose, urea) move into and out of cells by diffusion through the cell membrane; large molecules such as starch and proteins cannot pass; the cell wall is fully permeable.", "0610-3-A05": "A concentration gradient is maintained when the substance is used or removed (respiration uses oxygen; blood carries absorbed glucose away; ventilation replaces alveolar air), so diffusion continues.", "0610-3-A06": "Diffusion of gases is essential: oxygen into blood from alveoli and into respiring cells; carbon dioxide out; carbon dioxide into leaves through stomata and oxygen and water vapour out.", "0610-3-A07": "Diffusion of solutes is essential: digested food (glucose, amino acids) from the small intestine into blood; urea from liver cells into blood."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Rate of diffusion and SA : V", "goal": "Explain how gradient, temperature, surface area and distance change the rate of diffusion, and use surface area : volume ratio.", "atom_ids": ["0610-3-A08", "0610-3-A09", "0610-3-A10", "0610-3-A11", "0610-3-A12", "0610-3-A13", "0610-3-A14", "0610-3-A15", "0610-3-A16", "0610-3-A50", "0610-3-A51"], "paragraphs": ["P5", "P6", "P7", "P8"], "quizId": "0610_ch03_q02", "atoms": {"0610-3-A08": "A steeper concentration gradient gives a faster rate of diffusion; a smaller gradient slows it.", "0610-3-A09": "A higher temperature gives particles more kinetic energy, so they move faster and diffusion is faster.", "0610-3-A10": "A larger surface area gives a faster rate of diffusion, because more particles can cross at the same time.", "0610-3-A11": "A shorter diffusion distance (thinner surface) gives a faster rate of diffusion.", "0610-3-A12": "Exchange surfaces combine the factors: large surface area, thin (often one cell thick) surface, and a maintained gradient (blood supply, ventilation).", "0610-3-A13": "Surface area and volume of a cube of side L: SA = 6L², V = L³; SA : V ratio = SA / V = 6/L, written as n : 1.", "0610-3-A14": "As an object gets larger its SA : V ratio falls and the distance to its centre rises, so diffusion takes longer to reach the centre; large organisms need exchange surfaces and transport systems.", "0610-3-A15": "Agar-cube diffusion practical: indicator in agar changes colour as acid (or alkali) diffuses in; measure time for the whole cube to change, or distance in a set time; vary cube size, acid concentration or temperature.", "0610-3-A16": "Rate of diffusion = 1 / time (or distance / time); a shorter time means a faster rate.", "0610-3-A50": "A conclusion relates the independent variable to the rate of diffusion or to water movement (e.g. as concentration of salt increases, more water is lost), not a restated reading.", "0610-3-A51": "Identify the independent variable (what is changed), the dependent variable (what is measured, e.g. time for cube to change colour, change in mass or length) and constants as measurable quantities (volume and concentration of solution, temperature, time, size of pieces, type of tissue)."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Osmosis and water potential", "goal": "Explain osmosis as the movement of water from higher to lower water potential through a partially permeable membrane.", "atom_ids": ["0610-3-A17", "0610-3-A18", "0610-3-A19", "0610-3-A20", "0610-3-A21", "0610-3-A22", "0610-3-A23", "0610-3-A24"], "paragraphs": ["P9", "P10", "P11", "P12", "P13", "P14"], "quizId": "0610_ch03_q03", "atoms": {"0610-3-A17": "Water is a solvent: in digestion food and products are dissolved for enzymes to act and for absorption; in excretion urea and ions are dissolved in urine; in transport plasma, xylem and phloem carry dissolved substances.", "0610-3-A18": "A partially permeable membrane lets water and small molecules through but not larger solute molecules; the cell membrane is partially permeable, the cell wall is fully permeable, dialysis (Visking) tubing is an artificial one.", "0610-3-A19": "Water diffuses through partially permeable membranes by osmosis; water moves into and out of cells by osmosis through the cell membrane; only water moves.", "0610-3-A20": "Water potential: pure water has the highest; dissolving solute lowers it; dilute solution = higher water potential, concentrated solution = lower water potential.", "0610-3-A21": "Osmosis is the net movement of water molecules from a region of higher water potential (dilute solution) to a region of lower water potential (concentrated solution), through a partially permeable membrane.", "0610-3-A22": "When water potentials are equal there is no net movement of water (water still crosses both ways at equal rates).", "0610-3-A23": "Dialysis tubing model: a bag of concentrated sucrose solution in water gains water and mass (liquid rises in a capillary tube); a water-filled bag in water is the control; rinse and blot the bag; small molecules such as glucose or maltose diffuse out, sucrose and starch do not.", "0610-3-A24": "Animal cells (no wall): in water, water enters by osmosis and the cell bursts; in a concentrated solution, water leaves and the cell shrinks; in a solution of equal water potential (e.g. plasma), no change."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Turgid, flaccid, plasmolysed", "goal": "Explain what happens to plant cells in water and in concentrated solutions, and how turgor supports plants.", "atom_ids": ["0610-3-A25", "0610-3-A26", "0610-3-A27", "0610-3-A28", "0610-3-A29", "0610-3-A30", "0610-3-A31"], "paragraphs": ["P15", "P16", "P17", "P18"], "quizId": "0610_ch03_q04", "atoms": {"0610-3-A25": "Plants are supported by the pressure of water inside the cells pressing outwards on the cell wall; turgid cells keep non-woody stems and leaves upright.", "0610-3-A26": "In water or a dilute solution a plant cell takes in water by osmosis; the vacuole swells and the contents press on the wall (turgor pressure); the strong wall resists, so the cell becomes turgid and does not burst.", "0610-3-A27": "When water loss exceeds uptake, cells lose water and turgor pressure, become flaccid and the plant wilts; turgor needs living cells with a membrane, not xylem.", "0610-3-A28": "In a concentrated solution (lower water potential than cell sap) a plant cell loses water by osmosis; the vacuole shrinks and the cell becomes flaccid (no longer pressing on the wall).", "0610-3-A29": "Plasmolysis: after enough water loss the cell membrane and cytoplasm pull away from the cell wall; the gap fills with the outside solution; the wall barely changes.", "0610-3-A30": "Recognise turgid, flaccid and plasmolysed plant cells and burst, normal and shrunken red blood cells in diagrams or photomicrographs, in order of water content.", "0610-3-A31": "Water potential and osmosis in water uptake and loss: root hair sap has a lower water potential than soil water so water enters; salty soil reverses this and plants wilt; in cholera chloride ions lower the water potential in the gut so water leaves the blood."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Osmosis practicals", "goal": "Carry out, calculate and interpret plant-tissue osmosis investigations, including percentage change in mass.", "atom_ids": ["0610-3-A32", "0610-3-A33", "0610-3-A34", "0610-3-A35", "0610-3-A36", "0610-3-A37", "0610-3-A38", "0610-3-A39", "0610-3-A40", "0610-3-A41", "0610-3-A52", "0610-3-A53"], "paragraphs": ["P13", "P19", "P20", "P21", "P22"], "quizId": "0610_ch03_q05", "atoms": {"0610-3-A32": "Plant tissue osmosis method: cut equal cylinders with a cork borer, peel, blot, weigh or measure; immerse in equal volumes of solutions for the same time at the same temperature; blot the same way and reweigh.", "0610-3-A33": "Make a range of concentrations by diluting a stock solution with distilled water to the same total volume (concentration = stock concentration x stock volume / total volume).", "0610-3-A34": "Percentage change = (final - initial) / initial x 100, keeping the sign (+ gain, - loss) and giving the precision asked for.", "0610-3-A35": "Percentage change, not change in grams, is used because pieces start with different masses; it allows a fair comparison.", "0610-3-A36": "Plot percentage change against concentration on one linear y-scale through zero; read the concentration where the line crosses zero with construction lines shown.", "0610-3-A37": "Gain in mass means the solution had a higher water potential than the cells; loss means lower; zero change means equal water potential, which estimates the concentration of the cell sap.", "0610-3-A38": "The larger the difference in water potential, the steeper the gradient and the larger the percentage change; loss levels off when cells are fully plasmolysed.", "0610-3-A39": "Other measures of osmosis: change in length or final/initial length ratio (above 1 = gain), firmness of strips, % of plasmolysed cells; measure several discs together when one changes too little.", "0610-3-A40": "Six-mark osmosis plan: independent variable with values and how made; dependent variable measured before and after; named constants; method details (cork borer, blot, submerge); repeats; matched safety.", "0610-3-A41": "Blot tissue before weighing to remove surface solution that would add mass; rinse dialysis bags so spilled solution does not change the outside liquid.", "0610-3-A52": "Evaluate: repeats let anomalies be identified and a mean calculated; a thermostatically controlled water-bath keeps temperature constant; the hazard named (scalpel, acid) must match its precaution.", "0610-3-A53": "A control is a set-up without the factor under test (a water-filled dialysis bag; agar in water without acid); it shows that the factor causes the change."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Active transport", "goal": "Explain how and why cells move particles against a concentration gradient using protein carriers and energy from respiration.", "atom_ids": ["0610-3-A42", "0610-3-A43", "0610-3-A44", "0610-3-A45", "0610-3-A46", "0610-3-A47", "0610-3-A48", "0610-3-A49"], "paragraphs": ["P23", "P24", "P25", "P26"], "quizId": "0610_ch03_q06", "atoms": {"0610-3-A42": "Active transport is the movement of particles through a cell membrane from a region of lower concentration to a region of higher concentration (against a concentration gradient), using energy from respiration.", "0610-3-A43": "Active transport needs living, respiring cells; lack of oxygen or a respiratory poison (cyanide) stops it, while diffusion and osmosis continue.", "0610-3-A44": "Protein carriers in the cell membrane move molecules or ions across the membrane during active transport: each binds a specific particle, changes shape using energy and releases it on the other side.", "0610-3-A45": "Active transport is important for ion uptake by root hairs (nitrate, magnesium from dilute soil water), glucose and amino acid absorption in the small intestine, and glucose reabsorption in the kidney; such cells have many mitochondria.", "0610-3-A46": "The rate of active transport is limited by the number of protein carriers: uptake levels off when all carriers are working; fewer carriers means slower uptake.", "0610-3-A47": "Compare the processes: diffusion (any particle, down gradient, passive, no membrane needed); osmosis (water only, partially permeable membrane, passive); active transport (against gradient, membrane carriers, respiration energy, living cells).", "0610-3-A48": "Interpret uptake data: uptake that continues without oxygen or with a poison is diffusion; extra uptake with oxygen, or uptake against a gradient, is active transport; both can occur together.", "0610-3-A49": "Ions taken up by active transport lower the water potential of root hair cells, helping water to enter by osmosis."}, "chunks": []}]}
data/topics/0610_ch04.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch04", "subject": "Biology", "code": "0610", "chapter": "Biological molecules", "mixedQuizId": "0610_ch04_q06", "topics": [{"id": "t1", "order": 1, "title": "Elements and building blocks", "goal": "List the elements in each nutrient and name the small molecules that large biological molecules are made from.", "atom_ids": ["0610-4-A01", "0610-4-A02", "0610-4-A03", "0610-4-A04", "0610-4-A05", "0610-4-A06", "0610-4-A07", "0610-4-A08", "0610-4-A09", "0610-4-A10", "0610-4-A11", "0610-4-A12"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8"], "quizId": "0610_ch04_q01", "atoms": {"0610-4-A01": "Carbohydrates (sugars, starch, glycogen, cellulose) contain the elements carbon, hydrogen and oxygen only.", "0610-4-A02": "Fats and oils contain the elements carbon, hydrogen and oxygen only.", "0610-4-A03": "All proteins contain carbon, hydrogen, oxygen and nitrogen.", "0610-4-A04": "Nitrogen is the element that marks protein: protein cannot be made from carbohydrate or fat alone, so plants need nitrate ions to make amino acids and the diet needs protein.", "0610-4-A05": "Large biological molecules are made by joining many smaller molecules; digestion (or using a store) breaks them back into the small units.", "0610-4-A06": "Starch, glycogen and cellulose are all made from glucose.", "0610-4-A07": "Starch is the energy store of plants, glycogen the energy store of animals (liver and muscles), and cellulose forms plant cell walls.", "0610-4-A08": "Proteins are made from amino acids (about twenty kinds, joined in a chain).", "0610-4-A09": "The sequence of amino acids makes a protein fold into a specific shape, and the shape decides its function; heat or extreme pH changes the shape (denaturation) without removing amino acids.", "0610-4-A10": "Fats and oils are made from fatty acids and glycerol (typically one glycerol joined to three fatty acids); fats are solid and oils liquid at room temperature.", "0610-4-A11": "Storage molecules such as starch and glycogen are large and insoluble, so they stay in the storage cell, do not affect its water potential (no osmotic effect) and pack many glucose units into a small space.", "0610-4-A12": "Maltose is two glucose units joined; sucrose is a glucose joined to a fructose."}}, {"id": "t2", "order": 2, "title": "Tests for starch and sugar", "goal": "Carry out and read the iodine and Benedict's tests, including why Benedict's must be heated.", "atom_ids": ["0610-4-A13", "0610-4-A14", "0610-4-A15", "0610-4-A16", "0610-4-A17", "0610-4-A18", "0610-4-A19", "0610-4-A20", "0610-4-A21", "0610-4-A22"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0610_ch04_q02", "atoms": {"0610-4-A13": "Before testing, grind a solid food with a little distilled water; test a separate sample for each nutrient; use a clean syringe or pipette for each liquid so one solution does not contaminate another.", "0610-4-A14": "A food-test result is read as a starting colour and a final colour: a positive result is the colour change; a negative result is that the reagent keeps its own colour.", "0610-4-A15": "Iodine test: add a few drops of iodine solution to the food (on a white tile or in a test-tube); no heating.", "0610-4-A16": "Iodine result: starch present, orange-brown changes to blue-black; no starch, it stays orange-brown (yellow-brown or brown accepted). 'Blue' alone or 'black' alone is not accepted.", "0610-4-A17": "Iodine solution detects starch only: it does not react with glucose or other sugars, and a Benedict's result says nothing about starch.", "0610-4-A18": "Benedict's test: add Benedict's solution (blue) to the food solution and heat in a hot water-bath (about 80 °C, or boiling water) for about five minutes.", "0610-4-A19": "Benedict's result: reducing sugar present, blue changes to green, yellow, orange or brick-red; none present, it stays blue.", "0610-4-A20": "The more reducing sugar present, the further the Benedict's colour goes along blue, green, yellow, orange, brick-red, so the test is semi-quantitative.", "0610-4-A21": "Glucose, maltose and fructose are reducing sugars; sucrose and starch are not, so on their own they leave Benedict's solution blue.", "0610-4-A22": "Without heating, Benedict's solution stays blue even if reducing sugar is present, so an unheated test is invalid (a false negative)."}}, {"id": "t3", "order": 3, "title": "Protein, fat, vitamin C tests", "goal": "Describe the biuret, ethanol emulsion and DCPIP tests and interpret their results.", "atom_ids": ["0610-4-A23", "0610-4-A24", "0610-4-A25", "0610-4-A26", "0610-4-A27", "0610-4-A28", "0610-4-A29", "0610-4-A30", "0610-4-A31", "0610-4-A32", "0610-4-A33"], "paragraphs": ["P13", "P14", "P15", "P16"], "quizId": "0610_ch04_q03", "atoms": {"0610-4-A23": "Biuret test: add biuret reagent (blue) to the food solution and mix (or add sodium hydroxide solution, then dilute copper sulfate solution); no heating.", "0610-4-A24": "Biuret result: protein present, blue changes to purple (lilac, mauve or violet accepted); no protein, it stays blue.", "0610-4-A25": "The biuret test detects the links between amino acids in a protein chain, so cooked (denatured) protein and enzyme solutions still give a purple result.", "0610-4-A26": "Ethanol emulsion test: shake the food with ethanol, then pour the ethanol into water (or add water) and shake again; no heating.", "0610-4-A27": "Emulsion result: fat or oil present, a cloudy white (milky) emulsion forms; none present, the liquid stays clear.", "0610-4-A28": "Fat dissolves in ethanol but not in water, so when the ethanol is mixed with water the fat comes out as tiny droplets (an emulsion); adding water first does not dissolve the fat.", "0610-4-A29": "DCPIP test: put a measured volume of blue DCPIP solution in a test-tube and add the food solution or juice drop by drop, shaking after each drop; no heating.", "0610-4-A30": "DCPIP result: vitamin C present, the blue DCPIP is decolourised (becomes colourless, or the colour of a coloured juice); no vitamin C, it stays blue.", "0610-4-A31": "The fewer drops of juice needed to decolourise a fixed volume of DCPIP, the more vitamin C the juice contains; equivalently, the more DCPIP a fixed volume of juice decolourises, the more vitamin C.", "0610-4-A32": "Only the Benedict's test is heated; the iodine, biuret, ethanol emulsion and DCPIP tests are done at room temperature (ethanol must never be heated).", "0610-4-A33": "Vitamin C is destroyed by heating, diffuses out of food into cooking water, and is lost slowly during storage."}}, {"id": "t4", "order": 4, "title": "Using food tests in practicals", "goal": "Deduce nutrients from results and record, compare and process food-test data safely and fairly.", "atom_ids": ["0610-4-A34", "0610-4-A35", "0610-4-A36", "0610-4-A37", "0610-4-A38", "0610-4-A39", "0610-4-A40", "0610-4-A41", "0610-4-A42", "0610-4-A43", "0610-4-A44"], "paragraphs": ["P17", "P18", "P19", "P20"], "quizId": "0610_ch04_q04", "atoms": {"0610-4-A34": "To deduce the nutrients in a food, read each test separately: blue-black iodine = starch; Benedict's not blue after heating = reducing sugar; purple biuret = protein; white emulsion = fat; decolourised DCPIP = vitamin C; a food can contain several.", "0610-4-A35": "A conclusion names the class of molecule the test detects ('reducing sugar', 'protein'); a negative result means the nutrient was not detected.", "0610-4-A36": "Record food-test results as words in one ruled table: samples in the first column, one column per test with a heading naming the test; leave conclusions out if told to.", "0610-4-A37": "A control tube of distilled water tested in the same way shows the reagent's negative colour for comparison.", "0610-4-A38": "Estimate a reducing-sugar concentration by comparing the unknown with colour standards of known glucose concentration tested in exactly the same way; the answer lies between the two nearest standards. Standards are made by diluting a stock with water, keeping the total volume the same.", "0610-4-A39": "Constants in a quantitative food test: volume of each sample, volume and concentration of reagent, water-bath temperature, heating time, size of drop; name the quantity, never 'amount'.", "0610-4-A40": "Sources of error and matched improvements: reusing a syringe carries one solution into another (use a clean syringe); colours judged by eye are subjective (colour chart or colorimeter); air bubbles in a syringe give a wrong volume (remove them).", "0610-4-A41": "Process food-test data: volume added = start reading minus end reading; percentage change = (new - original) / original x 100 (negative for a decrease); read an unknown from a calibration graph by interpolation, showing the lines.", "0610-4-A42": "Food-test safety: hot water-bath (test-tube holder, eye protection); Benedict's and biuret reagents are irritant (eye protection); ethanol is flammable (no flames, never heat it). The precaution must match a named hazard.", "0610-4-A43": "When amylase digests starch, the iodine result goes from blue-black to orange-brown and the Benedict's result becomes positive (maltose is a reducing sugar); sucrose tests positive only after it is broken down into glucose and fructose.", "0610-4-A44": "A plan using a food test states the independent variable with values, the dependent variable as a volume or number of drops (DCPIP) or the colour after a fixed time (Benedict's), named constants, repeats and a matched safety precaution."}}, {"id": "t5", "order": 5, "title": "DNA structure and base pairs", "goal": "Describe the double helix and use the A–T, C–G pairing rule to find sequences and percentages.", "atom_ids": ["0610-4-A45", "0610-4-A46", "0610-4-A47", "0610-4-A48", "0610-4-A49", "0610-4-A50", "0610-4-A51", "0610-4-A52"], "paragraphs": ["P21", "P22", "P23", "P24"], "quizId": "0610_ch04_q05", "atoms": {"0610-4-A45": "A DNA molecule is two strands coiled together to form a double helix.", "0610-4-A46": "Each DNA strand contains chemicals called bases; there are four, A, T, C and G (full names not required).", "0610-4-A47": "Bonds between pairs of bases hold the two strands together.", "0610-4-A48": "The bases always pair the same way: A with T, and C with G.", "0610-4-A49": "To write the complementary strand, replace each base by its partner in the same position (A to T, T to A, C to G, G to C), keeping the order.", "0610-4-A50": "In double-stranded DNA %A = %T and %C = %G, and all four add to 100%; from one value find the rest (the same works for numbers of bases), and use any extra fact the question gives (e.g. C-G pairs held more strongly).", "0610-4-A51": "On a DNA diagram a base pair is two bases facing each other across the strands (one 'rung'), not a single base and not two rungs.", "0610-4-A52": "The base sequence of DNA is information: a gene is a length of DNA whose base sequence codes for a protein, and base sequences are compared to classify organisms."}}]}
 
1
+ {"chapterId": "0610_ch04", "subject": "Biology", "code": "0610", "chapter": "Biological molecules", "mixedQuizId": "0610_ch04_q06", "topics": [{"id": "t1", "order": 1, "title": "Elements and building blocks", "goal": "List the elements in each nutrient and name the small molecules that large biological molecules are made from.", "atom_ids": ["0610-4-A01", "0610-4-A02", "0610-4-A03", "0610-4-A04", "0610-4-A05", "0610-4-A06", "0610-4-A07", "0610-4-A08", "0610-4-A09", "0610-4-A10", "0610-4-A11", "0610-4-A12"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8"], "quizId": "0610_ch04_q01", "atoms": {"0610-4-A01": "Carbohydrates (sugars, starch, glycogen, cellulose) contain the elements carbon, hydrogen and oxygen only.", "0610-4-A02": "Fats and oils contain the elements carbon, hydrogen and oxygen only.", "0610-4-A03": "All proteins contain carbon, hydrogen, oxygen and nitrogen.", "0610-4-A04": "Nitrogen is the element that marks protein: protein cannot be made from carbohydrate or fat alone, so plants need nitrate ions to make amino acids and the diet needs protein.", "0610-4-A05": "Large biological molecules are made by joining many smaller molecules; digestion (or using a store) breaks them back into the small units.", "0610-4-A06": "Starch, glycogen and cellulose are all made from glucose.", "0610-4-A07": "Starch is the energy store of plants, glycogen the energy store of animals (liver and muscles), and cellulose forms plant cell walls.", "0610-4-A08": "Proteins are made from amino acids (about twenty kinds, joined in a chain).", "0610-4-A09": "The sequence of amino acids makes a protein fold into a specific shape, and the shape decides its function; heat or extreme pH changes the shape (denaturation) without removing amino acids.", "0610-4-A10": "Fats and oils are made from fatty acids and glycerol (typically one glycerol joined to three fatty acids); fats are solid and oils liquid at room temperature.", "0610-4-A11": "Storage molecules such as starch and glycogen are large and insoluble, so they stay in the storage cell, do not affect its water potential (no osmotic effect) and pack many glucose units into a small space.", "0610-4-A12": "Maltose is two glucose units joined; sucrose is a glucose joined to a fructose."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Tests for starch and sugar", "goal": "Carry out and read the iodine and Benedict's tests, including why Benedict's must be heated.", "atom_ids": ["0610-4-A13", "0610-4-A14", "0610-4-A15", "0610-4-A16", "0610-4-A17", "0610-4-A18", "0610-4-A19", "0610-4-A20", "0610-4-A21", "0610-4-A22"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0610_ch04_q02", "atoms": {"0610-4-A13": "Before testing, grind a solid food with a little distilled water; test a separate sample for each nutrient; use a clean syringe or pipette for each liquid so one solution does not contaminate another.", "0610-4-A14": "A food-test result is read as a starting colour and a final colour: a positive result is the colour change; a negative result is that the reagent keeps its own colour.", "0610-4-A15": "Iodine test: add a few drops of iodine solution to the food (on a white tile or in a test-tube); no heating.", "0610-4-A16": "Iodine result: starch present, orange-brown changes to blue-black; no starch, it stays orange-brown (yellow-brown or brown accepted). 'Blue' alone or 'black' alone is not accepted.", "0610-4-A17": "Iodine solution detects starch only: it does not react with glucose or other sugars, and a Benedict's result says nothing about starch.", "0610-4-A18": "Benedict's test: add Benedict's solution (blue) to the food solution and heat in a hot water-bath (about 80 °C, or boiling water) for about five minutes.", "0610-4-A19": "Benedict's result: reducing sugar present, blue changes to green, yellow, orange or brick-red; none present, it stays blue.", "0610-4-A20": "The more reducing sugar present, the further the Benedict's colour goes along blue, green, yellow, orange, brick-red, so the test is semi-quantitative.", "0610-4-A21": "Glucose, maltose and fructose are reducing sugars; sucrose and starch are not, so on their own they leave Benedict's solution blue.", "0610-4-A22": "Without heating, Benedict's solution stays blue even if reducing sugar is present, so an unheated test is invalid (a false negative)."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Protein, fat, vitamin C tests", "goal": "Describe the biuret, ethanol emulsion and DCPIP tests and interpret their results.", "atom_ids": ["0610-4-A23", "0610-4-A24", "0610-4-A25", "0610-4-A26", "0610-4-A27", "0610-4-A28", "0610-4-A29", "0610-4-A30", "0610-4-A31", "0610-4-A32", "0610-4-A33"], "paragraphs": ["P13", "P14", "P15", "P16"], "quizId": "0610_ch04_q03", "atoms": {"0610-4-A23": "Biuret test: add biuret reagent (blue) to the food solution and mix (or add sodium hydroxide solution, then dilute copper sulfate solution); no heating.", "0610-4-A24": "Biuret result: protein present, blue changes to purple (lilac, mauve or violet accepted); no protein, it stays blue.", "0610-4-A25": "The biuret test detects the links between amino acids in a protein chain, so cooked (denatured) protein and enzyme solutions still give a purple result.", "0610-4-A26": "Ethanol emulsion test: shake the food with ethanol, then pour the ethanol into water (or add water) and shake again; no heating.", "0610-4-A27": "Emulsion result: fat or oil present, a cloudy white (milky) emulsion forms; none present, the liquid stays clear.", "0610-4-A28": "Fat dissolves in ethanol but not in water, so when the ethanol is mixed with water the fat comes out as tiny droplets (an emulsion); adding water first does not dissolve the fat.", "0610-4-A29": "DCPIP test: put a measured volume of blue DCPIP solution in a test-tube and add the food solution or juice drop by drop, shaking after each drop; no heating.", "0610-4-A30": "DCPIP result: vitamin C present, the blue DCPIP is decolourised (becomes colourless, or the colour of a coloured juice); no vitamin C, it stays blue.", "0610-4-A31": "The fewer drops of juice needed to decolourise a fixed volume of DCPIP, the more vitamin C the juice contains; equivalently, the more DCPIP a fixed volume of juice decolourises, the more vitamin C.", "0610-4-A32": "Only the Benedict's test is heated; the iodine, biuret, ethanol emulsion and DCPIP tests are done at room temperature (ethanol must never be heated).", "0610-4-A33": "Vitamin C is destroyed by heating, diffuses out of food into cooking water, and is lost slowly during storage."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Using food tests in practicals", "goal": "Deduce nutrients from results and record, compare and process food-test data safely and fairly.", "atom_ids": ["0610-4-A34", "0610-4-A35", "0610-4-A36", "0610-4-A37", "0610-4-A38", "0610-4-A39", "0610-4-A40", "0610-4-A41", "0610-4-A42", "0610-4-A43", "0610-4-A44"], "paragraphs": ["P17", "P18", "P19", "P20"], "quizId": "0610_ch04_q04", "atoms": {"0610-4-A34": "To deduce the nutrients in a food, read each test separately: blue-black iodine = starch; Benedict's not blue after heating = reducing sugar; purple biuret = protein; white emulsion = fat; decolourised DCPIP = vitamin C; a food can contain several.", "0610-4-A35": "A conclusion names the class of molecule the test detects ('reducing sugar', 'protein'); a negative result means the nutrient was not detected.", "0610-4-A36": "Record food-test results as words in one ruled table: samples in the first column, one column per test with a heading naming the test; leave conclusions out if told to.", "0610-4-A37": "A control tube of distilled water tested in the same way shows the reagent's negative colour for comparison.", "0610-4-A38": "Estimate a reducing-sugar concentration by comparing the unknown with colour standards of known glucose concentration tested in exactly the same way; the answer lies between the two nearest standards. Standards are made by diluting a stock with water, keeping the total volume the same.", "0610-4-A39": "Constants in a quantitative food test: volume of each sample, volume and concentration of reagent, water-bath temperature, heating time, size of drop; name the quantity, never 'amount'.", "0610-4-A40": "Sources of error and matched improvements: reusing a syringe carries one solution into another (use a clean syringe); colours judged by eye are subjective (colour chart or colorimeter); air bubbles in a syringe give a wrong volume (remove them).", "0610-4-A41": "Process food-test data: volume added = start reading minus end reading; percentage change = (new - original) / original x 100 (negative for a decrease); read an unknown from a calibration graph by interpolation, showing the lines.", "0610-4-A42": "Food-test safety: hot water-bath (test-tube holder, eye protection); Benedict's and biuret reagents are irritant (eye protection); ethanol is flammable (no flames, never heat it). The precaution must match a named hazard.", "0610-4-A43": "When amylase digests starch, the iodine result goes from blue-black to orange-brown and the Benedict's result becomes positive (maltose is a reducing sugar); sucrose tests positive only after it is broken down into glucose and fructose.", "0610-4-A44": "A plan using a food test states the independent variable with values, the dependent variable as a volume or number of drops (DCPIP) or the colour after a fixed time (Benedict's), named constants, repeats and a matched safety precaution."}, "chunks": []}, {"id": "t5", "order": 5, "title": "DNA structure and base pairs", "goal": "Describe the double helix and use the A–T, C–G pairing rule to find sequences and percentages.", "atom_ids": ["0610-4-A45", "0610-4-A46", "0610-4-A47", "0610-4-A48", "0610-4-A49", "0610-4-A50", "0610-4-A51", "0610-4-A52"], "paragraphs": ["P21", "P22", "P23", "P24"], "quizId": "0610_ch04_q05", "atoms": {"0610-4-A45": "A DNA molecule is two strands coiled together to form a double helix.", "0610-4-A46": "Each DNA strand contains chemicals called bases; there are four, A, T, C and G (full names not required).", "0610-4-A47": "Bonds between pairs of bases hold the two strands together.", "0610-4-A48": "The bases always pair the same way: A with T, and C with G.", "0610-4-A49": "To write the complementary strand, replace each base by its partner in the same position (A to T, T to A, C to G, G to C), keeping the order.", "0610-4-A50": "In double-stranded DNA %A = %T and %C = %G, and all four add to 100%; from one value find the rest (the same works for numbers of bases), and use any extra fact the question gives (e.g. C-G pairs held more strongly).", "0610-4-A51": "On a DNA diagram a base pair is two bases facing each other across the strands (one 'rung'), not a single base and not two rungs.", "0610-4-A52": "The base sequence of DNA is information: a gene is a length of DNA whose base sequence codes for a protein, and base sequences are compared to classify organisms."}, "chunks": []}]}
data/topics/0610_ch05.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch05", "subject": "Biology", "code": "0610", "chapter": "Enzymes (with enzyme practical skills)", "mixedQuizId": "0610_ch05_q07", "topics": [{"id": "t1", "order": 1, "title": "Enzymes and the active site", "goal": "Explain how an enzyme's complementary active site lets it catalyse one specific reaction.", "atom_ids": ["0610-5-A01", "0610-5-A02", "0610-5-A03", "0610-5-A04", "0610-5-A05", "0610-5-A06", "0610-5-A07", "0610-5-A09", "0610-5-A10", "0610-5-A11", "0610-5-A12"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P14"], "quizId": "0610_ch05_q01", "atoms": {"0610-5-A01": "A catalyst is a substance that increases the rate of a chemical reaction and is not changed (not used up) by the reaction, so it can be reused.", "0610-5-A02": "Enzymes are proteins that act as biological catalysts in all metabolic reactions.", "0610-5-A03": "Without enzymes, metabolic reactions at body temperature would be far too slow to sustain life; enzymes also let a cell control which reaction happens where.", "0610-5-A04": "Enzymes, being proteins, contain carbon, hydrogen, oxygen and nitrogen and give a purple (lilac) result with biuret reagent.", "0610-5-A05": "The active site is the region of the enzyme the substrate binds to; the substrate is the molecule acted on; the products are what is released.", "0610-5-A06": "The shape of the active site is complementary to (not the same as) the shape of its substrate.", "0610-5-A07": "Enzyme action: substrate collides with and binds to the active site, forming an enzyme-substrate complex; the reaction occurs; the products leave; the enzyme is unchanged and reused.", "0610-5-A09": "Specificity: only a substrate whose shape is complementary to the active site can bind and form a complex, so each enzyme catalyses one reaction.", "0610-5-A10": "Digestive enzymes: amylase starch to maltose; maltase maltose to glucose; proteases (pepsin, trypsin) protein to amino acids; lipase fats to fatty acids and glycerol.", "0610-5-A11": "Practical enzymes: catalase breaks hydrogen peroxide to water and oxygen; invertase breaks sucrose to reducing sugars; lactase breaks lactose to glucose and galactose; pectinase breaks down cell walls so more juice is released.", "0610-5-A12": "A molecule with a shape similar to the substrate can occupy the active site; while it is there substrate cannot bind, so the rate falls."}}, {"id": "t2", "order": 2, "title": "Temperature and enzymes", "goal": "Explain the rise to an optimum and the steep fall from denaturation on a rate-temperature graph.", "atom_ids": ["0610-5-A08", "0610-5-A13", "0610-5-A14", "0610-5-A15", "0610-5-A16", "0610-5-A17", "0610-5-A18", "0610-5-A26"], "paragraphs": ["P5", "P7", "P8", "P9", "P10", "P27"], "quizId": "0610_ch05_q02", "atoms": {"0610-5-A08": "The rate of an enzyme reaction is set by how many enzyme-substrate complexes form per second, i.e. by the frequency of effective collisions between enzyme and substrate.", "0610-5-A13": "Below the optimum, raising temperature gives molecules more kinetic energy, so effective collisions between enzyme and substrate become more frequent, more complexes form and the rate rises.", "0610-5-A14": "At low temperatures enzyme activity is low but the enzyme is not denatured; activity returns on warming.", "0610-5-A15": "The optimum temperature is the temperature at which the enzyme works fastest; about 37 C for most human enzymes.", "0610-5-A16": "Above the optimum, vibration breaks bonds holding the enzyme's shape, the active site changes shape, is no longer complementary, fewer complexes form and the rate falls.", "0610-5-A17": "Denaturation is a permanent change in the shape of the enzyme (its active site); enzymes are molecules, not living, so they are denatured, not killed.", "0610-5-A18": "The rate-temperature curve rises gradually to a peak at the optimum then falls more steeply to zero; where the line meets the x-axis all the enzyme is denatured.", "0610-5-A26": "Processes that depend on enzymes (photosynthesis, respiration, germination, fermenters, biological washing powders, juice extraction) show the same temperature and pH behaviour."}}, {"id": "t3", "order": 3, "title": "pH and enzyme concentration", "goal": "Explain pH effects by the shape of the active site and concentration effects by the number of active sites.", "atom_ids": ["0610-5-A19", "0610-5-A20", "0610-5-A21", "0610-5-A22", "0610-5-A23", "0610-5-A24", "0610-5-A25"], "paragraphs": ["P11", "P12", "P13"], "quizId": "0610_ch05_q03", "atoms": {"0610-5-A19": "Moving pH away from the optimum changes the shape of the active site, so the fit with the substrate is poorer and fewer complexes form; extremes of pH denature the enzyme.", "0610-5-A20": "pH effects are explained by shape and fit, not by kinetic energy; temperature is held constant in a pH experiment.", "0610-5-A21": "A rate-pH graph has a peak at the optimum pH and falls on both sides; different enzymes peak at different pH values.", "0610-5-A22": "Optimum pH matches where the enzyme works: pepsin about pH 2 in the stomach; amylase, trypsin and lipase near neutral to slightly alkaline in the mouth and small intestine.", "0610-5-A23": "Stomach hydrochloric acid denatures amylase; alkaline bile neutralises the acidic mixture so the duodenum has a suitable pH for amylase, trypsin and lipase.", "0610-5-A24": "More enzyme means more active sites, so more complexes form per second and the rate rises.", "0610-5-A25": "When every active site is busy (or another factor limits), the rate stops rising and the graph levels off; a plateau means something else is limiting."}}, {"id": "t4", "order": 4, "title": "Lab: measuring and fair tests", "goal": "Choose how to measure an enzyme's rate and name the variables, constants and control of a fair test.", "atom_ids": ["0610-PS-A01", "0610-PS-A02", "0610-PS-A03", "0610-PS-A04", "0610-PS-A05", "0610-PS-A08", "0610-PS-A09", "0610-PS-A10", "0610-PS-A11", "0610-PS-A12", "0610-PS-A13", "0610-PS-A14", "0610-PS-A31", "0610-PS-A33"], "paragraphs": ["P14", "P16", "P17", "P18"], "quizId": "0610_ch05_q04", "atoms": {"0610-PS-A01": "An enzyme rate is measured as substrate disappearing or product appearing per unit time; choose the dependent variable that fits the reaction.", "0610-PS-A02": "Starch-amylase: take samples at fixed intervals onto iodine solution on a spotting tile; blue-black means starch remains, yellow-brown means it has gone (the end-point).", "0610-PS-A03": "Benedict's test: add Benedict's solution and heat in a hot water-bath; blue, green, yellow, orange, brick-red show increasing reducing sugar.", "0610-PS-A04": "Oxygen from catalase is measured more accurately as a gas volume (gas syringe or upturned measuring cylinder over water) than as foam height or bubble counts.", "0610-PS-A05": "Other enzyme measures: lipase lowers pH (follow with indicator or pH meter); protease clears albumen or protein jelly; pectinase juice is filtered and its volume measured.", "0610-PS-A08": "The independent variable is changed by the experimenter; the dependent variable is measured.", "0610-PS-A09": "Controlled variables are stated as measurable quantities: volume and concentration of enzyme and substrate, temperature, pH, time, sampling interval, size or mass of tissue.", "0610-PS-A10": "pH is set and held with buffer solutions.", "0610-PS-A11": "A control experiment is the same set-up with the enzyme absent (same volume of water) or denatured (boiled); it shows that the change is caused by the enzyme.", "0610-PS-A12": "When tubes receive different reagents, add water so that every tube has the same total volume.", "0610-PS-A13": "A thermostatically controlled water-bath holds temperature; a beaker of warm water cools (insulating it is a weaker fix).", "0610-PS-A14": "Equilibration: stand the enzyme and substrate tubes separately in the water-bath before mixing, so the reaction starts at the intended temperature.", "0610-PS-A31": "Name and draw standard apparatus: thermometer, gas syringe, measuring cylinder, spotting tile, filter funnel with filter paper over a measuring cylinder.", "0610-PS-A33": "Explain why a variable must be kept constant: it also changes the rate, so the effect of the independent variable could not be isolated."}}, {"id": "t5", "order": 5, "title": "Lab: tables, graphs, conclusions", "goal": "Record, process and graph enzyme results and turn them into a conclusion about the independent variable.", "atom_ids": ["0610-PS-A06", "0610-PS-A19", "0610-PS-A20", "0610-PS-A21", "0610-PS-A22", "0610-PS-A23", "0610-PS-A24", "0610-PS-A25", "0610-PS-A26"], "paragraphs": ["P15", "P21", "P22", "P23", "P24"], "quizId": "0610_ch05_q05", "atoms": {"0610-PS-A06": "Rate = 1 / time to end-point; a tube that never reaches the end-point is recorded as greater than the last time tested (e.g. > 270 s).", "0610-PS-A19": "Results table: ruled, header line, independent variable first, headings 'quantity / unit', no units in the body, readings to a consistent precision that matches the instrument (diagrams measured to the nearest mm).", "0610-PS-A20": "Record what is asked for: derived times (with '>' where no end-point) rather than lists of colours; qualitative results written as words.", "0610-PS-A21": "Line graph: independent variable on x, both axes labelled with quantity and unit, linear scale using more than half the grid, points to half a small square, ruled point-to-point or smooth line, no extension to the origin.", "0610-PS-A22": "To read a value from a graph, draw construction lines from the axis to the line and across, leave them visible, and read from your own line.", "0610-PS-A23": "Find an initial rate as the gradient of a product-time graph near t = 0, or extrapolate a trend line, with units.", "0610-PS-A24": "Process data: mean of repeats, percentage change, scaling a per-gram value, volume of a cylinder (pi r^2 h) with mm to cm conversion (1 cm3 = 1000 mm3); give the requested significant figures and show working.", "0610-PS-A25": "A conclusion states how the independent variable affected enzyme activity, in the terms of the aim, not a restatement of a reading.", "0610-PS-A26": "A description of data gives direction, turning point or plateau with values and units; 'describe' does not ask for reasons, 'explain' does."}}, {"id": "t6", "order": 6, "title": "Lab: planning and evaluation", "goal": "Plan an enzyme investigation and evaluate one by spotting anomalies, errors and matched improvements.", "atom_ids": ["0610-PS-A07", "0610-PS-A15", "0610-PS-A16", "0610-PS-A17", "0610-PS-A18", "0610-PS-A27", "0610-PS-A28", "0610-PS-A29", "0610-PS-A30", "0610-PS-A32"], "paragraphs": ["P15", "P19", "P20", "P25", "P26"], "quizId": "0610_ch05_q06", "atoms": {"0610-PS-A07": "End-points judged by eye are subjective and the true end-point lies somewhere inside the sampling interval; shorter intervals, a colour standard or a colorimeter improve accuracy.", "0610-PS-A15": "Choose enough values of the independent variable (at least five for a pattern; at least two or three in a plan) spread on both sides of any expected optimum.", "0610-PS-A16": "To locate an optimum or the start of a plateau, test extra values at smaller intervals around it.", "0610-PS-A17": "Repeat each value at least three times in total so anomalies can be spotted and a mean calculated; repeats improve reliability, not the accuracy of a single reading.", "0610-PS-A18": "Safety answers pair a named hazard with a matching precaution: hydrogen peroxide or enzymes, irritant, goggles and gloves; cutting, cut on a tile away from the body; hot water-bath, test-tube holder.", "0610-PS-A27": "An anomalous result does not fit the pattern; identify it, leave it out of the mean or line, and repeat that reading.", "0610-PS-A28": "Name a specific source of error in the method and an improvement that removes it (uneven pieces to equal mass; cooling beaker to thermostatic bath; foam height to gas syringe); human slips are not method errors.", "0610-PS-A29": "Use a clean syringe for each solution so one solution does not contaminate another and change its concentration.", "0610-PS-A30": "Six-mark plan: independent variable with stated values and how they are made; dependent variable and how and when it is measured; named constants; method steps (equilibrate, sample, measure); at least two repeats; one matched safety precaution.", "0610-PS-A32": "Make a reasoned prediction from enzyme theory (e.g. a boiled-enzyme tube shows no change; a 5 C tube reacts slowly but is not denatured)."}}]}
 
1
+ {"chapterId": "0610_ch05", "subject": "Biology", "code": "0610", "chapter": "Enzymes (with enzyme practical skills)", "mixedQuizId": "0610_ch05_q07", "topics": [{"id": "t1", "order": 1, "title": "Enzymes and the active site", "goal": "Explain how an enzyme's complementary active site lets it catalyse one specific reaction.", "atom_ids": ["0610-5-A01", "0610-5-A02", "0610-5-A03", "0610-5-A04", "0610-5-A05", "0610-5-A06", "0610-5-A07", "0610-5-A09", "0610-5-A10", "0610-5-A11", "0610-5-A12"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P6", "P14"], "quizId": "0610_ch05_q01", "atoms": {"0610-5-A01": "A catalyst is a substance that increases the rate of a chemical reaction and is not changed (not used up) by the reaction, so it can be reused.", "0610-5-A02": "Enzymes are proteins that act as biological catalysts in all metabolic reactions.", "0610-5-A03": "Without enzymes, metabolic reactions at body temperature would be far too slow to sustain life; enzymes also let a cell control which reaction happens where.", "0610-5-A04": "Enzymes, being proteins, contain carbon, hydrogen, oxygen and nitrogen and give a purple (lilac) result with biuret reagent.", "0610-5-A05": "The active site is the region of the enzyme the substrate binds to; the substrate is the molecule acted on; the products are what is released.", "0610-5-A06": "The shape of the active site is complementary to (not the same as) the shape of its substrate.", "0610-5-A07": "Enzyme action: substrate collides with and binds to the active site, forming an enzyme-substrate complex; the reaction occurs; the products leave; the enzyme is unchanged and reused.", "0610-5-A09": "Specificity: only a substrate whose shape is complementary to the active site can bind and form a complex, so each enzyme catalyses one reaction.", "0610-5-A10": "Digestive enzymes: amylase starch to maltose; maltase maltose to glucose; proteases (pepsin, trypsin) protein to amino acids; lipase fats to fatty acids and glycerol.", "0610-5-A11": "Practical enzymes: catalase breaks hydrogen peroxide to water and oxygen; invertase breaks sucrose to reducing sugars; lactase breaks lactose to glucose and galactose; pectinase breaks down cell walls so more juice is released.", "0610-5-A12": "A molecule with a shape similar to the substrate can occupy the active site; while it is there substrate cannot bind, so the rate falls."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Temperature and enzymes", "goal": "Explain the rise to an optimum and the steep fall from denaturation on a rate-temperature graph.", "atom_ids": ["0610-5-A08", "0610-5-A13", "0610-5-A14", "0610-5-A15", "0610-5-A16", "0610-5-A17", "0610-5-A18", "0610-5-A26"], "paragraphs": ["P5", "P7", "P8", "P9", "P10", "P27"], "quizId": "0610_ch05_q02", "atoms": {"0610-5-A08": "The rate of an enzyme reaction is set by how many enzyme-substrate complexes form per second, i.e. by the frequency of effective collisions between enzyme and substrate.", "0610-5-A13": "Below the optimum, raising temperature gives molecules more kinetic energy, so effective collisions between enzyme and substrate become more frequent, more complexes form and the rate rises.", "0610-5-A14": "At low temperatures enzyme activity is low but the enzyme is not denatured; activity returns on warming.", "0610-5-A15": "The optimum temperature is the temperature at which the enzyme works fastest; about 37 C for most human enzymes.", "0610-5-A16": "Above the optimum, vibration breaks bonds holding the enzyme's shape, the active site changes shape, is no longer complementary, fewer complexes form and the rate falls.", "0610-5-A17": "Denaturation is a permanent change in the shape of the enzyme (its active site); enzymes are molecules, not living, so they are denatured, not killed.", "0610-5-A18": "The rate-temperature curve rises gradually to a peak at the optimum then falls more steeply to zero; where the line meets the x-axis all the enzyme is denatured.", "0610-5-A26": "Processes that depend on enzymes (photosynthesis, respiration, germination, fermenters, biological washing powders, juice extraction) show the same temperature and pH behaviour."}, "chunks": []}, {"id": "t3", "order": 3, "title": "pH and enzyme concentration", "goal": "Explain pH effects by the shape of the active site and concentration effects by the number of active sites.", "atom_ids": ["0610-5-A19", "0610-5-A20", "0610-5-A21", "0610-5-A22", "0610-5-A23", "0610-5-A24", "0610-5-A25"], "paragraphs": ["P11", "P12", "P13"], "quizId": "0610_ch05_q03", "atoms": {"0610-5-A19": "Moving pH away from the optimum changes the shape of the active site, so the fit with the substrate is poorer and fewer complexes form; extremes of pH denature the enzyme.", "0610-5-A20": "pH effects are explained by shape and fit, not by kinetic energy; temperature is held constant in a pH experiment.", "0610-5-A21": "A rate-pH graph has a peak at the optimum pH and falls on both sides; different enzymes peak at different pH values.", "0610-5-A22": "Optimum pH matches where the enzyme works: pepsin about pH 2 in the stomach; amylase, trypsin and lipase near neutral to slightly alkaline in the mouth and small intestine.", "0610-5-A23": "Stomach hydrochloric acid denatures amylase; alkaline bile neutralises the acidic mixture so the duodenum has a suitable pH for amylase, trypsin and lipase.", "0610-5-A24": "More enzyme means more active sites, so more complexes form per second and the rate rises.", "0610-5-A25": "When every active site is busy (or another factor limits), the rate stops rising and the graph levels off; a plateau means something else is limiting."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Lab: measuring and fair tests", "goal": "Choose how to measure an enzyme's rate and name the variables, constants and control of a fair test.", "atom_ids": ["0610-PS-A01", "0610-PS-A02", "0610-PS-A03", "0610-PS-A04", "0610-PS-A05", "0610-PS-A08", "0610-PS-A09", "0610-PS-A10", "0610-PS-A11", "0610-PS-A12", "0610-PS-A13", "0610-PS-A14", "0610-PS-A31", "0610-PS-A33"], "paragraphs": ["P14", "P16", "P17", "P18"], "quizId": "0610_ch05_q04", "atoms": {"0610-PS-A01": "An enzyme rate is measured as substrate disappearing or product appearing per unit time; choose the dependent variable that fits the reaction.", "0610-PS-A02": "Starch-amylase: take samples at fixed intervals onto iodine solution on a spotting tile; blue-black means starch remains, yellow-brown means it has gone (the end-point).", "0610-PS-A03": "Benedict's test: add Benedict's solution and heat in a hot water-bath; blue, green, yellow, orange, brick-red show increasing reducing sugar.", "0610-PS-A04": "Oxygen from catalase is measured more accurately as a gas volume (gas syringe or upturned measuring cylinder over water) than as foam height or bubble counts.", "0610-PS-A05": "Other enzyme measures: lipase lowers pH (follow with indicator or pH meter); protease clears albumen or protein jelly; pectinase juice is filtered and its volume measured.", "0610-PS-A08": "The independent variable is changed by the experimenter; the dependent variable is measured.", "0610-PS-A09": "Controlled variables are stated as measurable quantities: volume and concentration of enzyme and substrate, temperature, pH, time, sampling interval, size or mass of tissue.", "0610-PS-A10": "pH is set and held with buffer solutions.", "0610-PS-A11": "A control experiment is the same set-up with the enzyme absent (same volume of water) or denatured (boiled); it shows that the change is caused by the enzyme.", "0610-PS-A12": "When tubes receive different reagents, add water so that every tube has the same total volume.", "0610-PS-A13": "A thermostatically controlled water-bath holds temperature; a beaker of warm water cools (insulating it is a weaker fix).", "0610-PS-A14": "Equilibration: stand the enzyme and substrate tubes separately in the water-bath before mixing, so the reaction starts at the intended temperature.", "0610-PS-A31": "Name and draw standard apparatus: thermometer, gas syringe, measuring cylinder, spotting tile, filter funnel with filter paper over a measuring cylinder.", "0610-PS-A33": "Explain why a variable must be kept constant: it also changes the rate, so the effect of the independent variable could not be isolated."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Lab: tables, graphs, conclusions", "goal": "Record, process and graph enzyme results and turn them into a conclusion about the independent variable.", "atom_ids": ["0610-PS-A06", "0610-PS-A19", "0610-PS-A20", "0610-PS-A21", "0610-PS-A22", "0610-PS-A23", "0610-PS-A24", "0610-PS-A25", "0610-PS-A26"], "paragraphs": ["P15", "P21", "P22", "P23", "P24"], "quizId": "0610_ch05_q05", "atoms": {"0610-PS-A06": "Rate = 1 / time to end-point; a tube that never reaches the end-point is recorded as greater than the last time tested (e.g. > 270 s).", "0610-PS-A19": "Results table: ruled, header line, independent variable first, headings 'quantity / unit', no units in the body, readings to a consistent precision that matches the instrument (diagrams measured to the nearest mm).", "0610-PS-A20": "Record what is asked for: derived times (with '>' where no end-point) rather than lists of colours; qualitative results written as words.", "0610-PS-A21": "Line graph: independent variable on x, both axes labelled with quantity and unit, linear scale using more than half the grid, points to half a small square, ruled point-to-point or smooth line, no extension to the origin.", "0610-PS-A22": "To read a value from a graph, draw construction lines from the axis to the line and across, leave them visible, and read from your own line.", "0610-PS-A23": "Find an initial rate as the gradient of a product-time graph near t = 0, or extrapolate a trend line, with units.", "0610-PS-A24": "Process data: mean of repeats, percentage change, scaling a per-gram value, volume of a cylinder (pi r^2 h) with mm to cm conversion (1 cm3 = 1000 mm3); give the requested significant figures and show working.", "0610-PS-A25": "A conclusion states how the independent variable affected enzyme activity, in the terms of the aim, not a restatement of a reading.", "0610-PS-A26": "A description of data gives direction, turning point or plateau with values and units; 'describe' does not ask for reasons, 'explain' does."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Lab: planning and evaluation", "goal": "Plan an enzyme investigation and evaluate one by spotting anomalies, errors and matched improvements.", "atom_ids": ["0610-PS-A07", "0610-PS-A15", "0610-PS-A16", "0610-PS-A17", "0610-PS-A18", "0610-PS-A27", "0610-PS-A28", "0610-PS-A29", "0610-PS-A30", "0610-PS-A32"], "paragraphs": ["P15", "P19", "P20", "P25", "P26"], "quizId": "0610_ch05_q06", "atoms": {"0610-PS-A07": "End-points judged by eye are subjective and the true end-point lies somewhere inside the sampling interval; shorter intervals, a colour standard or a colorimeter improve accuracy.", "0610-PS-A15": "Choose enough values of the independent variable (at least five for a pattern; at least two or three in a plan) spread on both sides of any expected optimum.", "0610-PS-A16": "To locate an optimum or the start of a plateau, test extra values at smaller intervals around it.", "0610-PS-A17": "Repeat each value at least three times in total so anomalies can be spotted and a mean calculated; repeats improve reliability, not the accuracy of a single reading.", "0610-PS-A18": "Safety answers pair a named hazard with a matching precaution: hydrogen peroxide or enzymes, irritant, goggles and gloves; cutting, cut on a tile away from the body; hot water-bath, test-tube holder.", "0610-PS-A27": "An anomalous result does not fit the pattern; identify it, leave it out of the mean or line, and repeat that reading.", "0610-PS-A28": "Name a specific source of error in the method and an improvement that removes it (uneven pieces to equal mass; cooling beaker to thermostatic bath; foam height to gas syringe); human slips are not method errors.", "0610-PS-A29": "Use a clean syringe for each solution so one solution does not contaminate another and change its concentration.", "0610-PS-A30": "Six-mark plan: independent variable with stated values and how they are made; dependent variable and how and when it is measured; named constants; method steps (equilibrate, sample, measure); at least two repeats; one matched safety precaution.", "0610-PS-A32": "Make a reasoned prediction from enzyme theory (e.g. a boiled-enzyme tube shows no change; a 5 C tube reacts slowly but is not denatured)."}, "chunks": []}]}
data/topics/0610_ch07.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0610_ch07", "subject": "Biology", "code": "0610", "chapter": "Human nutrition", "mixedQuizId": "0610_ch07_q06", "topics": [{"id": "t1", "order": 1, "title": "Diet and deficiency diseases", "goal": "Describe a balanced diet, the sources and jobs of each nutrient, and what causes scurvy and rickets.", "atom_ids": ["0610-7-A01", "0610-7-A02", "0610-7-A03", "0610-7-A04", "0610-7-A05", "0610-7-A06", "0610-7-A07", "0610-7-A08", "0610-7-A09", "0610-7-A10", "0610-7-A11", "0610-7-A12", "0610-7-A13"], "paragraphs": ["P2", "P3", "P4", "P5", "P6", "P7", "P8"], "quizId": "0610_ch07_q01", "atoms": {"0610-7-A01": "A balanced diet contains all the nutrients (carbohydrates, fats and oils, proteins, vitamins, mineral ions) plus fibre and water, in the correct amounts and proportions for the person's needs (age, sex, activity), giving the right amount of energy.", "0610-7-A02": "Carbohydrates (bread, rice, pasta, potatoes, cereals, sugar) are the main source of energy: their glucose is respired by cells.", "0610-7-A03": "Fats and oils (butter, oils, nuts, cheese, oily fish, meat) store energy (more per gram than carbohydrate), insulate the body and are needed for cell membranes.", "0610-7-A04": "Proteins (meat, fish, eggs, dairy, beans, pulses) supply amino acids for growth and repair and for making enzymes, antibodies, haemoglobin and some hormones; protein is not the main energy source.", "0610-7-A05": "Vitamin C (citrus fruit, fresh fruit and vegetables) keeps skin, gums and connective tissue healthy and is needed for wound healing.", "0610-7-A06": "Vitamin D (oily fish, eggs, dairy; also made in the skin in sunlight) is needed to absorb calcium from the gut, so for strong bones and teeth.", "0610-7-A07": "Calcium (milk, cheese, dairy, green vegetables) builds and maintains bones and teeth; it is also used in blood clotting and muscle and nerve function.", "0610-7-A08": "Iron (red meat, liver, eggs, beans, spinach) is needed to make haemoglobin in red blood cells, which carries oxygen.", "0610-7-A09": "Fibre (roughage: cellulose in wholegrain cereals, bran, vegetables, fruit) cannot be digested; it adds bulk, helps food move through the intestine and prevents constipation.", "0610-7-A10": "Water is the solvent for reactions and transport (e.g. blood plasma), and is needed for digestion, excretion in urine and cooling by sweating.", "0610-7-A11": "A long-term lack of vitamin C causes scurvy: swollen, bleeding gums and slow wound healing.", "0610-7-A12": "A long-term lack of vitamin D or calcium causes rickets: soft, weak bones that bend (bowed legs) in children.", "0610-7-A13": "Reading diet data: a person is at risk of a deficiency only for a nutrient eaten below its recommended daily amount; doses are found by dividing the required daily mass by the mass in one tablet or serving, rounded as asked."}}, {"id": "t2", "order": 2, "title": "The gut: organs and processes", "goal": "Name the organs of the digestive system in order and state what each does in ingestion, digestion, absorption, assimilation and egestion.", "atom_ids": ["0610-7-A14", "0610-7-A15", "0610-7-A16", "0610-7-A17", "0610-7-A18", "0610-7-A19", "0610-7-A20"], "paragraphs": ["P1", "P9", "P10", "P11", "P12"], "quizId": "0610_ch07_q02", "atoms": {"0610-7-A14": "Starch, proteins and fats are large insoluble molecules that cannot cross cell membranes into the blood, so food must be digested into small soluble molecules before it can be absorbed.", "0610-7-A15": "The five processes: ingestion (taking food and drink into the body), digestion (breakdown of food), absorption (nutrients from intestines into blood), assimilation (uptake and use of nutrients by cells), egestion (removal of undigested food as faeces).", "0610-7-A16": "Egestion is not excretion (faeces are undigested food that never entered cells; excretion removes metabolic waste such as urea), and absorption is not assimilation (getting into blood vs being used by cells).", "0610-7-A17": "The alimentary canal in order: mouth, oesophagus, stomach, small intestine (duodenum then ileum), large intestine (colon then rectum), anus; the small intestine is narrower but longer than the large intestine.", "0610-7-A18": "Associated organs: salivary glands (saliva with amylase into the mouth), pancreas (amylase, trypsin, lipase into the duodenum), liver (makes bile), gall bladder (stores bile, releases it into the duodenum); food does not pass through them.", "0610-7-A19": "Organ functions: mouth (ingestion, teeth, salivary amylase); oesophagus (carries food to stomach); stomach (churning, protein digestion, HCl); duodenum (digestion by pancreatic enzymes and bile); ileum (final digestion, absorption of nutrients and most water); colon (absorbs some water); rectum (stores faeces); anus (egestion).", "0610-7-A20": "The liver makes bile and is the main site of assimilation of amino acids (built into proteins); it makes no digestive enzymes."}}, {"id": "t3", "order": 3, "title": "Physical digestion and teeth", "goal": "Explain how teeth, stomach churning and bile break food into smaller pieces to increase the surface area for enzymes.", "atom_ids": ["0610-7-A21", "0610-7-A22", "0610-7-A23", "0610-7-A24", "0610-7-A25", "0610-7-A26", "0610-7-A27", "0610-7-A28", "0610-7-A29"], "paragraphs": ["P13", "P14", "P15", "P16", "P17"], "quizId": "0610_ch07_q03", "atoms": {"0610-7-A21": "Physical digestion is the breakdown of food into smaller pieces without chemical change to the food molecules.", "0610-7-A22": "Physical digestion increases the surface area of food for the action of enzymes, so chemical digestion is faster.", "0610-7-A23": "Physical digestion happens in the mouth (teeth), the stomach (churning) and the small intestine (bile emulsifying fat), not in the mouth only.", "0610-7-A24": "Teeth by position and shape: incisors at the front, flat and chisel-shaped; canines beside them, pointed; premolars and molars further back, broad with ridged surfaces, molars largest and furthest back.", "0610-7-A25": "Incisors bite and cut; canines grip and tear; premolars and molars chew, crush and grind; each breaks food into smaller pieces, increasing surface area.", "0610-7-A26": "Tooth structure: enamel (hardest, outer layer of the crown), dentine beneath it, pulp cavity with nerves and blood vessels, cement fixing the root into the jaw bone; teeth are embedded in bone and gums.", "0610-7-A27": "The muscular wall of the stomach contracts to churn food, breaking it into smaller pieces and mixing it with gastric juice.", "0610-7-A28": "Bile emulsifies fats and oils: it breaks large fat globules into small droplets, a physical change that increases the surface area for lipase, so fat is digested faster.", "0610-7-A29": "Bile is made in the liver, stored in the gall bladder and released into the duodenum; it contains no enzymes and does not digest fat."}}, {"id": "t4", "order": 4, "title": "Enzymes, acid and bile", "goal": "State which enzyme digests each food, where it is secreted and acts, and how stomach acid and bile set the pH.", "atom_ids": ["0610-7-A30", "0610-7-A31", "0610-7-A32", "0610-7-A33", "0610-7-A34", "0610-7-A35", "0610-7-A36", "0610-7-A37", "0610-7-A38", "0610-7-A39", "0610-7-A40", "0610-7-A41", "0610-7-A42", "0610-7-A43", "0610-7-A44"], "paragraphs": ["P18", "P19", "P20", "P21", "P22", "P23", "P24", "P25"], "quizId": "0610_ch07_q04", "atoms": {"0610-7-A30": "Chemical digestion is the breakdown of large insoluble molecules into small soluble molecules, catalysed by enzymes.", "0610-7-A31": "The role of chemical digestion is to produce small soluble molecules that can be absorbed (into the blood).", "0610-7-A32": "Amylase breaks down starch to simple reducing sugars.", "0610-7-A33": "Proteases break down proteins to amino acids.", "0610-7-A34": "Lipase breaks down fats and oils to fatty acids and glycerol.", "0610-7-A35": "Amylase is secreted by the salivary glands (acts in the mouth) and by the pancreas (acts in the small intestine).", "0610-7-A36": "Protease is secreted by the stomach (acts in the stomach) and by the pancreas (acts in the small intestine).", "0610-7-A37": "Lipase is secreted by the pancreas and acts in the small intestine.", "0610-7-A38": "Hydrochloric acid in gastric juice (from the stomach wall) kills harmful microorganisms in food and gives an acidic pH (about 2), the optimum for the stomach protease; it is not an enzyme.", "0610-7-A39": "Starch digestion: amylase breaks starch to maltose; maltase, on the membranes of the epithelium lining the small intestine, breaks maltose to glucose.", "0610-7-A40": "Pepsin breaks down protein in the acidic conditions of the stomach (optimum about pH 2).", "0610-7-A41": "Trypsin, secreted by the pancreas, breaks down protein in the alkaline conditions of the small intestine (optimum about pH 8).", "0610-7-A42": "Bile is an alkaline mixture that neutralises the acidic mixture of food and gastric juice entering the duodenum, giving a suitable pH for the enzymes of the small intestine.", "0610-7-A43": "Salivary amylase stops working in the stomach: the acid gives a low pH, the shape of amylase's active site changes so it is no longer complementary to starch, and the enzyme is denatured; in the duodenum bile has neutralised the acid so pancreatic amylase works.", "0610-7-A44": "When lipase digests fat the pH falls because fatty acids are produced; bile makes this faster by emulsifying the fat; neither lipase nor bile is acidic."}}, {"id": "t5", "order": 5, "title": "Absorption and the villus", "goal": "Explain where nutrients and water are absorbed and how villi, microvilli, capillaries and lacteals make absorption fast.", "atom_ids": ["0610-7-A45", "0610-7-A46", "0610-7-A47", "0610-7-A48", "0610-7-A49", "0610-7-A50", "0610-7-A51", "0610-7-A52", "0610-7-A53"], "paragraphs": ["P26", "P27", "P28", "P29", "P30", "P31"], "quizId": "0610_ch07_q05", "atoms": {"0610-7-A45": "The small intestine is the region where nutrients are absorbed.", "0610-7-A46": "Most water is absorbed from the small intestine, but some is also absorbed from the colon.", "0610-7-A47": "Villi and microvilli greatly increase the internal surface area of the small intestine, so nutrients are absorbed faster.", "0610-7-A48": "Villi are finger-like projections of the intestine lining; microvilli are tiny projections of the cell membrane of each epithelial cell on a villus; microvilli are not cilia and move nothing.", "0610-7-A49": "A villus has a wall one cell thick (epithelium with microvilli), a dense network of blood capillaries beneath it, and a central lacteal (lymph vessel).", "0610-7-A50": "Capillaries in a villus absorb glucose and amino acids (and water and ions) and carry them away in the blood, keeping a steep concentration gradient; the blood goes to the liver.", "0610-7-A51": "The lacteal absorbs fatty acids and glycerol (products of fat digestion) and carries them away in the lymph; it does not digest fat or absorb glucose or amino acids.", "0610-7-A52": "Nutrients cross the villus epithelium by diffusion while their concentration in the gut is higher than in the blood and by active transport when it is lower, so epithelial cells have many mitochondria.", "0610-7-A53": "Describe the digestion of a named food in order: physical digestion and its site, surface area, the enzyme and where it is secreted and acts, substrate and product, conditions (acid / bile), then where and into which vessel the products are absorbed."}}]}
 
1
+ {"chapterId": "0610_ch07", "subject": "Biology", "code": "0610", "chapter": "Human nutrition", "mixedQuizId": "0610_ch07_q06", "topics": [{"id": "t1", "order": 1, "title": "Diet and deficiency diseases", "goal": "Describe a balanced diet, the sources and jobs of each nutrient, and what causes scurvy and rickets.", "atom_ids": ["0610-7-A01", "0610-7-A02", "0610-7-A03", "0610-7-A04", "0610-7-A05", "0610-7-A06", "0610-7-A07", "0610-7-A08", "0610-7-A09", "0610-7-A10", "0610-7-A11", "0610-7-A12", "0610-7-A13"], "paragraphs": ["P2", "P3", "P4", "P5", "P6", "P7", "P8"], "quizId": "0610_ch07_q01", "atoms": {"0610-7-A01": "A balanced diet contains all the nutrients (carbohydrates, fats and oils, proteins, vitamins, mineral ions) plus fibre and water, in the correct amounts and proportions for the person's needs (age, sex, activity), giving the right amount of energy.", "0610-7-A02": "Carbohydrates (bread, rice, pasta, potatoes, cereals, sugar) are the main source of energy: their glucose is respired by cells.", "0610-7-A03": "Fats and oils (butter, oils, nuts, cheese, oily fish, meat) store energy (more per gram than carbohydrate), insulate the body and are needed for cell membranes.", "0610-7-A04": "Proteins (meat, fish, eggs, dairy, beans, pulses) supply amino acids for growth and repair and for making enzymes, antibodies, haemoglobin and some hormones; protein is not the main energy source.", "0610-7-A05": "Vitamin C (citrus fruit, fresh fruit and vegetables) keeps skin, gums and connective tissue healthy and is needed for wound healing.", "0610-7-A06": "Vitamin D (oily fish, eggs, dairy; also made in the skin in sunlight) is needed to absorb calcium from the gut, so for strong bones and teeth.", "0610-7-A07": "Calcium (milk, cheese, dairy, green vegetables) builds and maintains bones and teeth; it is also used in blood clotting and muscle and nerve function.", "0610-7-A08": "Iron (red meat, liver, eggs, beans, spinach) is needed to make haemoglobin in red blood cells, which carries oxygen.", "0610-7-A09": "Fibre (roughage: cellulose in wholegrain cereals, bran, vegetables, fruit) cannot be digested; it adds bulk, helps food move through the intestine and prevents constipation.", "0610-7-A10": "Water is the solvent for reactions and transport (e.g. blood plasma), and is needed for digestion, excretion in urine and cooling by sweating.", "0610-7-A11": "A long-term lack of vitamin C causes scurvy: swollen, bleeding gums and slow wound healing.", "0610-7-A12": "A long-term lack of vitamin D or calcium causes rickets: soft, weak bones that bend (bowed legs) in children.", "0610-7-A13": "Reading diet data: a person is at risk of a deficiency only for a nutrient eaten below its recommended daily amount; doses are found by dividing the required daily mass by the mass in one tablet or serving, rounded as asked."}, "chunks": []}, {"id": "t2", "order": 2, "title": "The gut: organs and processes", "goal": "Name the organs of the digestive system in order and state what each does in ingestion, digestion, absorption, assimilation and egestion.", "atom_ids": ["0610-7-A14", "0610-7-A15", "0610-7-A16", "0610-7-A17", "0610-7-A18", "0610-7-A19", "0610-7-A20"], "paragraphs": ["P1", "P9", "P10", "P11", "P12"], "quizId": "0610_ch07_q02", "atoms": {"0610-7-A14": "Starch, proteins and fats are large insoluble molecules that cannot cross cell membranes into the blood, so food must be digested into small soluble molecules before it can be absorbed.", "0610-7-A15": "The five processes: ingestion (taking food and drink into the body), digestion (breakdown of food), absorption (nutrients from intestines into blood), assimilation (uptake and use of nutrients by cells), egestion (removal of undigested food as faeces).", "0610-7-A16": "Egestion is not excretion (faeces are undigested food that never entered cells; excretion removes metabolic waste such as urea), and absorption is not assimilation (getting into blood vs being used by cells).", "0610-7-A17": "The alimentary canal in order: mouth, oesophagus, stomach, small intestine (duodenum then ileum), large intestine (colon then rectum), anus; the small intestine is narrower but longer than the large intestine.", "0610-7-A18": "Associated organs: salivary glands (saliva with amylase into the mouth), pancreas (amylase, trypsin, lipase into the duodenum), liver (makes bile), gall bladder (stores bile, releases it into the duodenum); food does not pass through them.", "0610-7-A19": "Organ functions: mouth (ingestion, teeth, salivary amylase); oesophagus (carries food to stomach); stomach (churning, protein digestion, HCl); duodenum (digestion by pancreatic enzymes and bile); ileum (final digestion, absorption of nutrients and most water); colon (absorbs some water); rectum (stores faeces); anus (egestion).", "0610-7-A20": "The liver makes bile and is the main site of assimilation of amino acids (built into proteins); it makes no digestive enzymes."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Physical digestion and teeth", "goal": "Explain how teeth, stomach churning and bile break food into smaller pieces to increase the surface area for enzymes.", "atom_ids": ["0610-7-A21", "0610-7-A22", "0610-7-A23", "0610-7-A24", "0610-7-A25", "0610-7-A26", "0610-7-A27", "0610-7-A28", "0610-7-A29"], "paragraphs": ["P13", "P14", "P15", "P16", "P17"], "quizId": "0610_ch07_q03", "atoms": {"0610-7-A21": "Physical digestion is the breakdown of food into smaller pieces without chemical change to the food molecules.", "0610-7-A22": "Physical digestion increases the surface area of food for the action of enzymes, so chemical digestion is faster.", "0610-7-A23": "Physical digestion happens in the mouth (teeth), the stomach (churning) and the small intestine (bile emulsifying fat), not in the mouth only.", "0610-7-A24": "Teeth by position and shape: incisors at the front, flat and chisel-shaped; canines beside them, pointed; premolars and molars further back, broad with ridged surfaces, molars largest and furthest back.", "0610-7-A25": "Incisors bite and cut; canines grip and tear; premolars and molars chew, crush and grind; each breaks food into smaller pieces, increasing surface area.", "0610-7-A26": "Tooth structure: enamel (hardest, outer layer of the crown), dentine beneath it, pulp cavity with nerves and blood vessels, cement fixing the root into the jaw bone; teeth are embedded in bone and gums.", "0610-7-A27": "The muscular wall of the stomach contracts to churn food, breaking it into smaller pieces and mixing it with gastric juice.", "0610-7-A28": "Bile emulsifies fats and oils: it breaks large fat globules into small droplets, a physical change that increases the surface area for lipase, so fat is digested faster.", "0610-7-A29": "Bile is made in the liver, stored in the gall bladder and released into the duodenum; it contains no enzymes and does not digest fat."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Enzymes, acid and bile", "goal": "State which enzyme digests each food, where it is secreted and acts, and how stomach acid and bile set the pH.", "atom_ids": ["0610-7-A30", "0610-7-A31", "0610-7-A32", "0610-7-A33", "0610-7-A34", "0610-7-A35", "0610-7-A36", "0610-7-A37", "0610-7-A38", "0610-7-A39", "0610-7-A40", "0610-7-A41", "0610-7-A42", "0610-7-A43", "0610-7-A44"], "paragraphs": ["P18", "P19", "P20", "P21", "P22", "P23", "P24", "P25"], "quizId": "0610_ch07_q04", "atoms": {"0610-7-A30": "Chemical digestion is the breakdown of large insoluble molecules into small soluble molecules, catalysed by enzymes.", "0610-7-A31": "The role of chemical digestion is to produce small soluble molecules that can be absorbed (into the blood).", "0610-7-A32": "Amylase breaks down starch to simple reducing sugars.", "0610-7-A33": "Proteases break down proteins to amino acids.", "0610-7-A34": "Lipase breaks down fats and oils to fatty acids and glycerol.", "0610-7-A35": "Amylase is secreted by the salivary glands (acts in the mouth) and by the pancreas (acts in the small intestine).", "0610-7-A36": "Protease is secreted by the stomach (acts in the stomach) and by the pancreas (acts in the small intestine).", "0610-7-A37": "Lipase is secreted by the pancreas and acts in the small intestine.", "0610-7-A38": "Hydrochloric acid in gastric juice (from the stomach wall) kills harmful microorganisms in food and gives an acidic pH (about 2), the optimum for the stomach protease; it is not an enzyme.", "0610-7-A39": "Starch digestion: amylase breaks starch to maltose; maltase, on the membranes of the epithelium lining the small intestine, breaks maltose to glucose.", "0610-7-A40": "Pepsin breaks down protein in the acidic conditions of the stomach (optimum about pH 2).", "0610-7-A41": "Trypsin, secreted by the pancreas, breaks down protein in the alkaline conditions of the small intestine (optimum about pH 8).", "0610-7-A42": "Bile is an alkaline mixture that neutralises the acidic mixture of food and gastric juice entering the duodenum, giving a suitable pH for the enzymes of the small intestine.", "0610-7-A43": "Salivary amylase stops working in the stomach: the acid gives a low pH, the shape of amylase's active site changes so it is no longer complementary to starch, and the enzyme is denatured; in the duodenum bile has neutralised the acid so pancreatic amylase works.", "0610-7-A44": "When lipase digests fat the pH falls because fatty acids are produced; bile makes this faster by emulsifying the fat; neither lipase nor bile is acidic."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Absorption and the villus", "goal": "Explain where nutrients and water are absorbed and how villi, microvilli, capillaries and lacteals make absorption fast.", "atom_ids": ["0610-7-A45", "0610-7-A46", "0610-7-A47", "0610-7-A48", "0610-7-A49", "0610-7-A50", "0610-7-A51", "0610-7-A52", "0610-7-A53"], "paragraphs": ["P26", "P27", "P28", "P29", "P30", "P31"], "quizId": "0610_ch07_q05", "atoms": {"0610-7-A45": "The small intestine is the region where nutrients are absorbed.", "0610-7-A46": "Most water is absorbed from the small intestine, but some is also absorbed from the colon.", "0610-7-A47": "Villi and microvilli greatly increase the internal surface area of the small intestine, so nutrients are absorbed faster.", "0610-7-A48": "Villi are finger-like projections of the intestine lining; microvilli are tiny projections of the cell membrane of each epithelial cell on a villus; microvilli are not cilia and move nothing.", "0610-7-A49": "A villus has a wall one cell thick (epithelium with microvilli), a dense network of blood capillaries beneath it, and a central lacteal (lymph vessel).", "0610-7-A50": "Capillaries in a villus absorb glucose and amino acids (and water and ions) and carry them away in the blood, keeping a steep concentration gradient; the blood goes to the liver.", "0610-7-A51": "The lacteal absorbs fatty acids and glycerol (products of fat digestion) and carries them away in the lymph; it does not digest fat or absorb glucose or amino acids.", "0610-7-A52": "Nutrients cross the villus epithelium by diffusion while their concentration in the gut is higher than in the blood and by active transport when it is lower, so epithelial cells have many mitochondria.", "0610-7-A53": "Describe the digestion of a named food in order: physical digestion and its site, surface area, the enzyme and where it is secreted and acts, substrate and product, conditions (acid / bile), then where and into which vessel the products are absorbed."}, "chunks": []}]}
data/topics/0620_ch04.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0620_ch04", "subject": "Chemistry", "code": "0620", "chapter": "Chemical formulae and equations", "mixedQuizId": "0620_ch04_q07", "topics": [{"id": "t1", "order": 1, "title": "Symbols and reading formulae", "goal": "Read symbols, subscripts, brackets and coefficients to count every atom in a formula.", "atom_ids": ["0620-3.1-A01", "0620-3.1-A03", "0620-3.1-A04", "0620-3.1-A05", "0620-3.1-A06", "0620-3.1-A07", "0620-3.1-A08", "0620-3.1-A09", "0620-3.1-A10"], "paragraphs": ["P1", "P2", "P3"], "quizId": "0620_ch04_q01", "atoms": {"0620-3.1-A01": "Atoms are conserved in a chemical reaction: they are regrouped, never created, destroyed or turned into another element.", "0620-3.1-A03": "Element symbols start with a capital letter; a second letter is lower case, and case carries meaning (Co is cobalt, CO is carbon monoxide).", "0620-3.1-A04": "Seven elements exist as diatomic molecules and are written H2, N2, O2, F2, Cl2, Br2, I2 whenever they appear as the element.", "0620-3.1-A05": "Other elements are written as single atoms in equations: metals, carbon, silicon, sulfur and the noble gases.", "0620-3.1-A06": "A subscript counts the atom (or bracketed group) immediately before it: H2SO4 has 2 H, 1 S, 4 O.", "0620-3.1-A07": "A subscript after a bracket multiplies everything inside; brackets are used only when a compound ion appears more than once (Ca(NO3)2, but NaNO3).", "0620-3.1-A08": "A coefficient in front of a formula multiplies the whole formula: 3H2SO4 contains 6 H, 3 S, 12 O.", "0620-3.1-A09": "The raised dot in a hydrated salt (CuSO4.5H2O) means together with: whole water molecules are added, not multiplied.", "0620-3.1-A10": "A compound formula never shows the ion charges: MgCl2, not Mg2+Cl2-."}}, {"id": "t2", "order": 2, "title": "Molecular and empirical formulae", "goal": "Deduce molecular and empirical formulae and explain when only an empirical formula exists.", "atom_ids": ["0620-3.1-A11", "0620-3.1-A12", "0620-3.1-A13", "0620-3.1-A14", "0620-3.1-A15", "0620-3.1-A16", "0620-3.1-A17"], "paragraphs": ["P4", "P5"], "quizId": "0620_ch04_q02", "atoms": {"0620-3.1-A11": "Molecular formula: the number and type of different atoms in one molecule.", "0620-3.1-A12": "Deduce a molecular formula from a model, displayed or structural formula by counting each kind of atom, including atoms inside groups (CH3, OH, COOH).", "0620-3.1-A13": "A molecular formula loses the arrangement of atoms, so different compounds (isomers) can share one molecular formula; organic formulae are written C, then H, then other elements.", "0620-3.1-A14": "Empirical formula: the simplest whole-number ratio of the different atoms or ions in a compound.", "0620-3.1-A15": "Ionic lattices and giant covalent substances (NaCl, SiO2) have only an empirical formula, because there is no separate molecule.", "0620-3.1-A16": "Find an empirical formula from a molecular formula by dividing every subscript by their highest common factor; if it is 1 the two formulae are the same.", "0620-3.1-A17": "A polymer has no single molecular formula because its chains are of indefinite and varying length; only the repeat unit can be written."}}, {"id": "t3", "order": 3, "title": "Ions and their charges", "goal": "Predict ion charges from the Periodic Table and recall the compound ions and their names.", "atom_ids": ["0620-3.1-A18", "0620-3.1-A19", "0620-3.1-A20", "0620-3.1-A21", "0620-3.1-A22", "0620-3.1-A23", "0620-3.1-A24"], "paragraphs": ["P6", "P7"], "quizId": "0620_ch04_q03", "atoms": {"0620-3.1-A18": "Main-group ion charge follows the group: I 1+, II 2+, Al 3+, V 3-, VI 2-, VII 1-.", "0620-3.1-A19": "Group IV and Group VIII elements do not normally form simple ions; hydrogen forms H+.", "0620-3.1-A20": "A Roman numeral in a name gives the oxidation number of the element it follows; for a metal in a simple ionic compound this equals the charge on the metal ion, e.g. iron(III) = Fe3+, copper(II) = Cu2+ (but silicon(IV) oxide is not ionic).", "0620-3.1-A21": "Zinc forms only Zn2+ and silver only Ag+, so their names usually carry no numeral.", "0620-3.1-A22": "Compound ions to know: NH4+, OH-, NO3-, CO3 2-, SO4 2-, HCO3-, PO4 3-.", "0620-3.1-A23": "A carboxylic acid RCOOH gives the anion RCOO- (ethanoate CH3COO-), so its salts are written like other salts: (CH3COO)2Ca.", "0620-3.1-A24": "Name endings: -ide means a single element (or hydroxide), -ate means the ion contains oxygen; sulfide S2- and sulfate SO4 2- are different ions."}}, {"id": "t4", "order": 4, "title": "Formulae of ionic compounds", "goal": "Build neutral formulae from ion charges, and work backwards from a formula to an ion.", "atom_ids": ["0620-3.1-A02", "0620-3.1-A25", "0620-3.1-A26", "0620-3.1-A27", "0620-3.1-A28", "0620-3.1-A29", "0620-3.1-A30", "0620-3.1-A31", "0620-3.1-A32", "0620-3.1-A33", "0620-3.1-A34", "0620-3.1-A35", "0620-3.1-A36"], "paragraphs": ["P8", "P9", "P10"], "quizId": "0620_ch04_q04", "atoms": {"0620-3.1-A02": "Charge is conserved: the total charge on each side of an equation is the same.", "0620-3.1-A25": "An ionic compound is neutral: total positive charge equals total negative charge.", "0620-3.1-A26": "Formula from charges: write both ions, find the lowest common multiple of the charge sizes, take enough of each ion to reach it, bracket a compound ion used more than once (Al2(SO4)3).", "0620-3.1-A27": "The swap-the-charges shortcut must be followed by simplifying (Mg2O2 becomes MgO).", "0620-3.1-A28": "Apply the charge method to supplied or unfamiliar ions, and to compounds with three kinds of ion, by totalling all positive and all negative charges.", "0620-3.1-A29": "Inverse: find an unknown ion charge from a formula and the known ion (Cr2(SO4)3 gives Cr3+).", "0620-3.1-A30": "Read the anion from a salt formula, and the parent acid by replacing the metal ions with H+ (Na2SO3 gives SO3 2- and H2SO3).", "0620-3.1-A31": "Deduce a formula from a model or lattice diagram by counting the relative numbers of each particle, checking neutrality when charges are shown.", "0620-3.1-A32": "For a compound containing two ions of one element (mixed valence), choose the formula that is both neutral and contains every stated ion.", "0620-3.1-A33": "Formulae of named molecular compounds: H2O, CO2, CO, NH3, CH4, SO2, SO3, NO2, NO.", "0620-3.1-A34": "Formulae of the common acids: HCl, H2SO4, HNO3, CH3COOH.", "0620-3.1-A35": "Hydrated copper(II) sulfate is CuSO4.5H2O (blue) and hydrated cobalt(II) chloride is CoCl2.6H2O (pink).", "0620-3.1-A36": "When a formula is asked for, give a formula, not a name; when a formula is printed in the question, copy it exactly."}}, {"id": "t5", "order": 5, "title": "Writing and balancing equations", "goal": "Write balanced symbol equations with correct state symbols, including for reactions described in words.", "atom_ids": ["0620-3.1-A37", "0620-3.1-A38", "0620-3.1-A39", "0620-3.1-A40", "0620-3.1-A41", "0620-3.1-A42", "0620-3.1-A43", "0620-3.1-A44", "0620-3.1-A45", "0620-3.1-A46", "0620-3.1-A47", "0620-3.1-A48", "0620-3.1-A49"], "paragraphs": ["P11", "P12", "P13", "P14", "P15"], "quizId": "0620_ch04_q05", "atoms": {"0620-3.1-A37": "A word equation names reactants and products (reactants -> products); it is not accepted where a chemical or symbol equation is asked for.", "0620-3.1-A38": "First step of any symbol equation: write the correct formula of every species; this is usually the first mark (M1).", "0620-3.1-A39": "Balance by changing coefficients only, never subscripts or formulae.", "0620-3.1-A40": "Balancing order: an element found in one substance each side first (largest formula first), compound ions as units, free elements last; recount everything and use the smallest whole numbers.", "0620-3.1-A41": "Combustion: balance C into CO2, then H into H2O, count the O needed, supply it as O2 (subtract any O in the fuel); if the O2 count is odd or half, double all coefficients.", "0620-3.1-A42": "Deduce an unknown formula in an equation from the atom count (missing product; cracking products from a given ratio).", "0620-3.1-A43": "A reversible reaction is written with a double arrow; balancing rules are unchanged.", "0620-3.1-A44": "State symbols: (s) solid, (l) liquid, (g) gas, (aq) dissolved in water; aqueous is not the same as liquid.", "0620-3.1-A45": "Assigning states: metals, oxides, powdered carbonates and precipitates (s); acids, alkalis and soluble salts in solution (aq); water (l); gases at r.t.p. (g); a halogen formed in solution (aq).", "0620-3.1-A46": "The state depends on the conditions stated: water from a hot combustion is (g); a liquid product at r.t.p. is (l).", "0620-3.1-A47": "Deduce an equation from information: list the named species, write formulae (copy given ones), deduce unnamed products from a reaction pattern or the atom count, balance, add state symbols if asked.", "0620-3.1-A48": "Acid patterns: acid + metal -> salt + hydrogen; acid + base -> salt + water; acid + carbonate -> salt + water + carbon dioxide; reactive metal + water -> hydroxide + hydrogen.", "0620-3.1-A49": "Other patterns: element + oxygen -> oxide; a more reactive metal or halogen displaces a less reactive one; carbonate on heating -> oxide + carbon dioxide; complete combustion -> carbon dioxide + water."}}, {"id": "t6", "order": 6, "title": "Ionic equations", "goal": "Write ionic equations for precipitation, neutralisation and displacement, balanced for atoms and charge.", "atom_ids": ["0620-3.1-A50", "0620-3.1-A51", "0620-3.1-A52", "0620-3.1-A53", "0620-3.1-A54", "0620-3.1-A55", "0620-3.1-A56", "0620-3.1-A57"], "paragraphs": ["P16", "P17", "P18"], "quizId": "0620_ch04_q06", "atoms": {"0620-3.1-A50": "A dissolved ionic compound exists as separate ions; ions present unchanged before and after a reaction are spectator ions.", "0620-3.1-A51": "Ionic equation recipe: full equation; split aqueous ionic substances into ions; do not split solids, water, gases, covalent molecules or metals; cancel spectators; check atoms and charge.", "0620-3.1-A52": "Precipitation ionic equation: two aqueous ions -> one solid, (aq) + (aq) -> (s); take the precipitate formula and split it into its ions to get the left-hand side (Pb2+ + 2I- -> PbI2).", "0620-3.1-A53": "Every acid-alkali neutralisation has the ionic equation H+(aq) + OH-(aq) -> H2O(l).", "0620-3.1-A54": "Displacement ionic equations: metal + metal ion (Fe + Cu2+ -> Fe2+ + Cu) or halogen molecule + halide ion (Cl2 + 2I- -> 2Cl- + I2); the halogens stay diatomic and the Group I cations are spectators.", "0620-3.1-A55": "Balance an ionic equation for charge as well as atoms (2Al + 3Cu2+ -> 2Al3+ + 3Cu has 6+ on each side).", "0620-3.1-A56": "An ionic half-equation is a different object: one electrode process with electrons written explicitly; it belongs to electrolysis and redox.", "0620-3.1-A57": "Marking pattern: formula items one mark, exact; equations M1 species, M2 balanced, M3 state symbols; precipitation ionic M1 precipitate only, M2 its two ions only, M3 (aq)+(aq)->(s); extra species lose M1."}}]}
 
1
+ {"chapterId": "0620_ch04", "subject": "Chemistry", "code": "0620", "chapter": "Chemical formulae and equations", "mixedQuizId": "0620_ch04_q07", "topics": [{"id": "t1", "order": 1, "title": "Symbols and reading formulae", "goal": "Read symbols, subscripts, brackets and coefficients to count every atom in a formula.", "atom_ids": ["0620-3.1-A01", "0620-3.1-A03", "0620-3.1-A04", "0620-3.1-A05", "0620-3.1-A06", "0620-3.1-A07", "0620-3.1-A08", "0620-3.1-A09", "0620-3.1-A10"], "paragraphs": ["P1", "P2", "P3"], "quizId": "0620_ch04_q01", "atoms": {"0620-3.1-A01": "Atoms are conserved in a chemical reaction: they are regrouped, never created, destroyed or turned into another element.", "0620-3.1-A03": "Element symbols start with a capital letter; a second letter is lower case, and case carries meaning (Co is cobalt, CO is carbon monoxide).", "0620-3.1-A04": "Seven elements exist as diatomic molecules and are written H2, N2, O2, F2, Cl2, Br2, I2 whenever they appear as the element.", "0620-3.1-A05": "Other elements are written as single atoms in equations: metals, carbon, silicon, sulfur and the noble gases.", "0620-3.1-A06": "A subscript counts the atom (or bracketed group) immediately before it: H2SO4 has 2 H, 1 S, 4 O.", "0620-3.1-A07": "A subscript after a bracket multiplies everything inside; brackets are used only when a compound ion appears more than once (Ca(NO3)2, but NaNO3).", "0620-3.1-A08": "A coefficient in front of a formula multiplies the whole formula: 3H2SO4 contains 6 H, 3 S, 12 O.", "0620-3.1-A09": "The raised dot in a hydrated salt (CuSO4.5H2O) means together with: whole water molecules are added, not multiplied.", "0620-3.1-A10": "A compound formula never shows the ion charges: MgCl2, not Mg2+Cl2-."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Molecular and empirical formulae", "goal": "Deduce molecular and empirical formulae and explain when only an empirical formula exists.", "atom_ids": ["0620-3.1-A11", "0620-3.1-A12", "0620-3.1-A13", "0620-3.1-A14", "0620-3.1-A15", "0620-3.1-A16", "0620-3.1-A17"], "paragraphs": ["P4", "P5"], "quizId": "0620_ch04_q02", "atoms": {"0620-3.1-A11": "Molecular formula: the number and type of different atoms in one molecule.", "0620-3.1-A12": "Deduce a molecular formula from a model, displayed or structural formula by counting each kind of atom, including atoms inside groups (CH3, OH, COOH).", "0620-3.1-A13": "A molecular formula loses the arrangement of atoms, so different compounds (isomers) can share one molecular formula; organic formulae are written C, then H, then other elements.", "0620-3.1-A14": "Empirical formula: the simplest whole-number ratio of the different atoms or ions in a compound.", "0620-3.1-A15": "Ionic lattices and giant covalent substances (NaCl, SiO2) have only an empirical formula, because there is no separate molecule.", "0620-3.1-A16": "Find an empirical formula from a molecular formula by dividing every subscript by their highest common factor; if it is 1 the two formulae are the same.", "0620-3.1-A17": "A polymer has no single molecular formula because its chains are of indefinite and varying length; only the repeat unit can be written."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Ions and their charges", "goal": "Predict ion charges from the Periodic Table and recall the compound ions and their names.", "atom_ids": ["0620-3.1-A18", "0620-3.1-A19", "0620-3.1-A20", "0620-3.1-A21", "0620-3.1-A22", "0620-3.1-A23", "0620-3.1-A24"], "paragraphs": ["P6", "P7"], "quizId": "0620_ch04_q03", "atoms": {"0620-3.1-A18": "Main-group ion charge follows the group: I 1+, II 2+, Al 3+, V 3-, VI 2-, VII 1-.", "0620-3.1-A19": "Group IV and Group VIII elements do not normally form simple ions; hydrogen forms H+.", "0620-3.1-A20": "A Roman numeral in a name gives the oxidation number of the element it follows; for a metal in a simple ionic compound this equals the charge on the metal ion, e.g. iron(III) = Fe3+, copper(II) = Cu2+ (but silicon(IV) oxide is not ionic).", "0620-3.1-A21": "Zinc forms only Zn2+ and silver only Ag+, so their names usually carry no numeral.", "0620-3.1-A22": "Compound ions to know: NH4+, OH-, NO3-, CO3 2-, SO4 2-, HCO3-, PO4 3-.", "0620-3.1-A23": "A carboxylic acid RCOOH gives the anion RCOO- (ethanoate CH3COO-), so its salts are written like other salts: (CH3COO)2Ca.", "0620-3.1-A24": "Name endings: -ide means a single element (or hydroxide), -ate means the ion contains oxygen; sulfide S2- and sulfate SO4 2- are different ions."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Formulae of ionic compounds", "goal": "Build neutral formulae from ion charges, and work backwards from a formula to an ion.", "atom_ids": ["0620-3.1-A02", "0620-3.1-A25", "0620-3.1-A26", "0620-3.1-A27", "0620-3.1-A28", "0620-3.1-A29", "0620-3.1-A30", "0620-3.1-A31", "0620-3.1-A32", "0620-3.1-A33", "0620-3.1-A34", "0620-3.1-A35", "0620-3.1-A36"], "paragraphs": ["P8", "P9", "P10"], "quizId": "0620_ch04_q04", "atoms": {"0620-3.1-A02": "Charge is conserved: the total charge on each side of an equation is the same.", "0620-3.1-A25": "An ionic compound is neutral: total positive charge equals total negative charge.", "0620-3.1-A26": "Formula from charges: write both ions, find the lowest common multiple of the charge sizes, take enough of each ion to reach it, bracket a compound ion used more than once (Al2(SO4)3).", "0620-3.1-A27": "The swap-the-charges shortcut must be followed by simplifying (Mg2O2 becomes MgO).", "0620-3.1-A28": "Apply the charge method to supplied or unfamiliar ions, and to compounds with three kinds of ion, by totalling all positive and all negative charges.", "0620-3.1-A29": "Inverse: find an unknown ion charge from a formula and the known ion (Cr2(SO4)3 gives Cr3+).", "0620-3.1-A30": "Read the anion from a salt formula, and the parent acid by replacing the metal ions with H+ (Na2SO3 gives SO3 2- and H2SO3).", "0620-3.1-A31": "Deduce a formula from a model or lattice diagram by counting the relative numbers of each particle, checking neutrality when charges are shown.", "0620-3.1-A32": "For a compound containing two ions of one element (mixed valence), choose the formula that is both neutral and contains every stated ion.", "0620-3.1-A33": "Formulae of named molecular compounds: H2O, CO2, CO, NH3, CH4, SO2, SO3, NO2, NO.", "0620-3.1-A34": "Formulae of the common acids: HCl, H2SO4, HNO3, CH3COOH.", "0620-3.1-A35": "Hydrated copper(II) sulfate is CuSO4.5H2O (blue) and hydrated cobalt(II) chloride is CoCl2.6H2O (pink).", "0620-3.1-A36": "When a formula is asked for, give a formula, not a name; when a formula is printed in the question, copy it exactly."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Writing and balancing equations", "goal": "Write balanced symbol equations with correct state symbols, including for reactions described in words.", "atom_ids": ["0620-3.1-A37", "0620-3.1-A38", "0620-3.1-A39", "0620-3.1-A40", "0620-3.1-A41", "0620-3.1-A42", "0620-3.1-A43", "0620-3.1-A44", "0620-3.1-A45", "0620-3.1-A46", "0620-3.1-A47", "0620-3.1-A48", "0620-3.1-A49"], "paragraphs": ["P11", "P12", "P13", "P14", "P15"], "quizId": "0620_ch04_q05", "atoms": {"0620-3.1-A37": "A word equation names reactants and products (reactants -> products); it is not accepted where a chemical or symbol equation is asked for.", "0620-3.1-A38": "First step of any symbol equation: write the correct formula of every species; this is usually the first mark (M1).", "0620-3.1-A39": "Balance by changing coefficients only, never subscripts or formulae.", "0620-3.1-A40": "Balancing order: an element found in one substance each side first (largest formula first), compound ions as units, free elements last; recount everything and use the smallest whole numbers.", "0620-3.1-A41": "Combustion: balance C into CO2, then H into H2O, count the O needed, supply it as O2 (subtract any O in the fuel); if the O2 count is odd or half, double all coefficients.", "0620-3.1-A42": "Deduce an unknown formula in an equation from the atom count (missing product; cracking products from a given ratio).", "0620-3.1-A43": "A reversible reaction is written with a double arrow; balancing rules are unchanged.", "0620-3.1-A44": "State symbols: (s) solid, (l) liquid, (g) gas, (aq) dissolved in water; aqueous is not the same as liquid.", "0620-3.1-A45": "Assigning states: metals, oxides, powdered carbonates and precipitates (s); acids, alkalis and soluble salts in solution (aq); water (l); gases at r.t.p. (g); a halogen formed in solution (aq).", "0620-3.1-A46": "The state depends on the conditions stated: water from a hot combustion is (g); a liquid product at r.t.p. is (l).", "0620-3.1-A47": "Deduce an equation from information: list the named species, write formulae (copy given ones), deduce unnamed products from a reaction pattern or the atom count, balance, add state symbols if asked.", "0620-3.1-A48": "Acid patterns: acid + metal -> salt + hydrogen; acid + base -> salt + water; acid + carbonate -> salt + water + carbon dioxide; reactive metal + water -> hydroxide + hydrogen.", "0620-3.1-A49": "Other patterns: element + oxygen -> oxide; a more reactive metal or halogen displaces a less reactive one; carbonate on heating -> oxide + carbon dioxide; complete combustion -> carbon dioxide + water."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Ionic equations", "goal": "Write ionic equations for precipitation, neutralisation and displacement, balanced for atoms and charge.", "atom_ids": ["0620-3.1-A50", "0620-3.1-A51", "0620-3.1-A52", "0620-3.1-A53", "0620-3.1-A54", "0620-3.1-A55", "0620-3.1-A56", "0620-3.1-A57"], "paragraphs": ["P16", "P17", "P18"], "quizId": "0620_ch04_q06", "atoms": {"0620-3.1-A50": "A dissolved ionic compound exists as separate ions; ions present unchanged before and after a reaction are spectator ions.", "0620-3.1-A51": "Ionic equation recipe: full equation; split aqueous ionic substances into ions; do not split solids, water, gases, covalent molecules or metals; cancel spectators; check atoms and charge.", "0620-3.1-A52": "Precipitation ionic equation: two aqueous ions -> one solid, (aq) + (aq) -> (s); take the precipitate formula and split it into its ions to get the left-hand side (Pb2+ + 2I- -> PbI2).", "0620-3.1-A53": "Every acid-alkali neutralisation has the ionic equation H+(aq) + OH-(aq) -> H2O(l).", "0620-3.1-A54": "Displacement ionic equations: metal + metal ion (Fe + Cu2+ -> Fe2+ + Cu) or halogen molecule + halide ion (Cl2 + 2I- -> 2Cl- + I2); the halogens stay diatomic and the Group I cations are spectators.", "0620-3.1-A55": "Balance an ionic equation for charge as well as atoms (2Al + 3Cu2+ -> 2Al3+ + 3Cu has 6+ on each side).", "0620-3.1-A56": "An ionic half-equation is a different object: one electrode process with electrons written explicitly; it belongs to electrolysis and redox.", "0620-3.1-A57": "Marking pattern: formula items one mark, exact; equations M1 species, M2 balanced, M3 state symbols; precipitation ionic M1 precipitate only, M2 its two ions only, M3 (aq)+(aq)->(s); extra species lose M1."}, "chunks": []}]}
data/topics/0620_ch05.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0620_ch05", "subject": "Chemistry", "code": "0620", "chapter": "Chemical calculations", "mixedQuizId": "0620_ch05_q07", "topics": [{"id": "t1", "order": 1, "title": "Relative masses", "goal": "Work out Ar from isotope data and Mr from a formula, and explain why both are relative.", "atom_ids": ["0620-3.2-A01", "0620-3.2-A02", "0620-3.2-A03", "0620-3.2-A04", "0620-3.2-A05", "0620-3.2-A06", "0620-3.2-A07", "0620-3.2-A08", "0620-3.2-A09", "0620-3.2-A10", "0620-3.2-A11"], "paragraphs": ["P2", "P3"], "quizId": "0620_ch05_q01", "atoms": {"0620-3.2-A01": "Relative atomic mass, Ar, is the average mass of the isotopes of an element compared with 1/12 of the mass of one atom of carbon-12.", "0620-3.2-A02": "Relative masses are ratios, so Ar and Mr have no units.", "0620-3.2-A03": "The reference isotope is carbon-12, taken as exactly 12.", "0620-3.2-A04": "Ar values are usually not whole numbers because they are weighted averages over the natural isotopes.", "0620-3.2-A05": "Calculate Ar from isotope masses and % abundances: Ar = sum(mass x abundance) / 100 (or / total ratio parts).", "0620-3.2-A06": "Find the abundance of an isotope (or identify the missing isotope) from Ar and the isotope masses.", "0620-3.2-A07": "If Ar equals the nucleon number of one isotope, the element effectively has only that isotope.", "0620-3.2-A08": "Relative molecular mass, Mr, is the sum of the Ar of the atoms in the formula; for ionic compounds the same sum is called relative formula mass, also written Mr.", "0620-3.2-A09": "Compute Mr for any formula, multiplying through brackets and adding water of crystallisation.", "0620-3.2-A10": "Relative masses add because mass is conserved when atoms combine.", "0620-3.2-A11": "Invert Mr: subtract the known atoms from a given Mr to find a missing fragment or an unknown Ar."}}, {"id": "t2", "order": 2, "title": "The mole", "goal": "Convert between mass, moles and numbers of particles, always naming the particle.", "atom_ids": ["0620-3.3-A14", "0620-3.3-A15", "0620-3.3-A16", "0620-3.3-A17", "0620-3.3-A18", "0620-3.3-A19", "0620-3.3-A20", "0620-3.3-A21", "0620-3.3-A57", "0620-3.3-A58"], "paragraphs": ["P4", "P5", "P6", "P17", "P18"], "quizId": "0620_ch05_q02", "atoms": {"0620-3.3-A14": "The mole (mol) is the unit of amount of substance; one mole contains 6.02 x 10^23 particles, the Avogadro constant.", "0620-3.3-A15": "Ar grams of any element (Mr grams of any compound) contain the same number of particles, so weighing is counting.", "0620-3.3-A16": "A mole statement must name the particle: atoms, molecules, ions or electrons.", "0620-3.3-A17": "Molar mass (g/mol) is numerically equal to Ar or Mr.", "0620-3.3-A18": "amount (mol) = mass (g) / molar mass (g/mol); rearranged: mass = n x M, M = m / n.", "0620-3.3-A19": "Find the molar mass, Ar or Mr of an unknown from a measured mass and amount, then identify the substance.", "0620-3.3-A20": "Number of particles = amount (mol) x 6.02 x 10^23; and amount = number / 6.02 x 10^23.", "0620-3.3-A21": "Particles inside particles: multiply moles of molecules or formula units by the subscript to get moles of a given atom or ion.", "0620-3.3-A57": "Mark-scheme conventions: answers to 3 s.f. unless told otherwise; Ar to 1 d.p. when asked; final mark lost for a missing/wrong unit unless the unit is printed; correct answer without working gets full marks unless 'show your working'; ecf applies between steps.", "0620-3.3-A58": "The 'per mole' idea recurs in bond energies and enthalpy (kJ/mol), electrolysis (moles of electrons), diffusion rate (depends on Mr) and salt preparation (excess reagent)."}}, {"id": "t3", "order": 3, "title": "Reacting masses and limits", "goal": "Use equation ratios to find reacting masses and identify the limiting reactant.", "atom_ids": ["0620-3.2-A12", "0620-3.2-A13", "0620-3.3-A22", "0620-3.3-A23", "0620-3.3-A24", "0620-3.3-A25", "0620-3.3-A26", "0620-3.3-A27", "0620-3.3-A56"], "paragraphs": ["P7", "P8", "P9"], "quizId": "0620_ch05_q03", "atoms": {"0620-3.2-A12": "Reacting masses by simple proportion: coefficient x Mr gives the mass of each substance; scale to the given mass.", "0620-3.2-A13": "Total mass of reactants equals total mass of products; use it as a check on a mass statement.", "0620-3.3-A22": "The coefficients of a balanced equation are mole ratios.", "0620-3.3-A23": "Three-step mole method: convert the given quantity to moles, apply the coefficient ratio (wanted / given), convert the wanted moles back.", "0620-3.3-A24": "The limiting reactant is the one used up first; the other is in excess; the product is fixed by the limiting reactant.", "0620-3.3-A25": "Identify the limiting reactant: convert both reactants to moles and compare with the equation ratio (e.g. moles / coefficient; smaller is limiting).", "0620-3.3-A26": "Theoretical product (and hence % yield) must be calculated from the limiting reactant, never from the one in excess.", "0620-3.3-A27": "Excess of a solid reactant is shown by solid remaining undissolved and effervescence stopping.", "0620-3.3-A56": "Paper 4 presents chains as 'Use the following steps' bullets with an answer line and unit for each step; each bullet is one mark."}}, {"id": "t4", "order": 4, "title": "Gases, solutions, titrations", "goal": "Use the gas bridge (24 dm³) and the solution bridge (c × V) in mole chains and titrations.", "atom_ids": ["0620-3.3-A28", "0620-3.3-A29", "0620-3.3-A30", "0620-3.3-A31", "0620-3.3-A33", "0620-3.3-A34", "0620-3.3-A35", "0620-3.3-A36", "0620-3.3-A37", "0620-3.3-A38", "0620-3.3-A39", "0620-3.3-A40"], "paragraphs": ["P10", "P11", "P12"], "quizId": "0620_ch05_q04", "atoms": {"0620-3.3-A28": "Equal volumes of gases at the same temperature and pressure contain equal numbers of molecules, because gas volume depends on particle number and conditions, not identity.", "0620-3.3-A29": "The molar gas volume is 24 dm3 (24 000 cm3) for any gas at room temperature and pressure (r.t.p.).", "0620-3.3-A30": "Gas bridge: moles = volume (dm3) / 24 or volume (cm3) / 24 000; volume = moles x 24 dm3.", "0620-3.3-A31": "For gases reacting with gases, volumes are in the same ratio as the coefficients (same conditions).", "0620-3.3-A33": "Concentration is the amount of solute per dm3 of solution, in g/dm3 or mol/dm3; 1 dm3 = 1000 cm3.", "0620-3.3-A34": "concentration in g/dm3 = concentration in mol/dm3 x Mr (and the reverse).", "0620-3.3-A35": "Convert cm3 to dm3 by dividing by 1000 before using a volume with a concentration.", "0620-3.3-A36": "moles = concentration (mol/dm3) x volume (dm3); concentration = moles / volume; volume = moles / concentration.", "0620-3.3-A37": "Titration calculation: moles of the known solution = c x V; apply the equation ratio; then unknown concentration = n / V or required volume = n / c.", "0620-3.3-A38": "When the answer is wanted in g/dm3, finish a titration chain by multiplying the mol/dm3 result by the Mr of the solute.", "0620-3.3-A39": "Scale titration results from a 25.0 cm3 portion back to the whole 250 cm3 solution (x10) when a sample was made up to volume.", "0620-3.3-A40": "A titration measures the volume of one solution (burette) needed to react exactly with a measured volume of another (pipette), using an indicator to show the end-point."}}, {"id": "t5", "order": 5, "title": "Empirical and molecular formulae", "goal": "Deduce empirical, molecular and hydrated-salt formulae from composition and mass data.", "atom_ids": ["0620-3.3-A41", "0620-3.3-A42", "0620-3.3-A43", "0620-3.3-A44", "0620-3.3-A45", "0620-3.3-A46", "0620-3.3-A47", "0620-3.3-A48", "0620-3.3-A49", "0620-3.3-A50", "0620-3.3-A51"], "paragraphs": ["P13", "P14"], "quizId": "0620_ch05_q05", "atoms": {"0620-3.3-A41": "The empirical formula is the simplest whole-number ratio of the atoms (or ions) in a compound.", "0620-3.3-A42": "Empirical formula from composition: mass (or %) of each element / Ar -> divide by the smallest -> clear fractions -> write the formula.", "0620-3.3-A43": "Dividing each mass by Ar converts to moles of atoms, and mole ratio = atom ratio because every mole is the same count.", "0620-3.3-A44": "Clear a fractional ratio by multiplying through (x2 for .5, x3 for .33/.67, x4 for .25/.75); never round 1.5 to 2.", "0620-3.3-A45": "Empirical formula from combustion data: moles C = moles CO2; moles H = 2 x moles H2O; oxygen by difference.", "0620-3.3-A46": "The molecular formula is the actual number of atoms of each element in one molecule; it is a whole-number multiple of the empirical formula.", "0620-3.3-A47": "Molecular formula from empirical formula and Mr: multiplier = Mr / (empirical formula mass); multiply the subscripts.", "0620-3.3-A48": "Empirical formula from a molecular formula or structure: count the atoms, divide subscripts by their highest common factor.", "0620-3.3-A49": "Read the molecular formula off a displayed or structural formula or a systematic name.", "0620-3.3-A50": "Water of crystallisation: moles of anhydrous salt = residue mass / Mr; moles of water = mass lost / 18; x = moles water / moles salt.", "0620-3.3-A51": "Heat the hydrate to constant mass (heat, cool, weigh, repeat) to be sure all the water has been removed."}}, {"id": "t6", "order": 6, "title": "Composition, yield, purity", "goal": "Calculate percentage by mass, percentage yield and percentage purity without mixing them up.", "atom_ids": ["0620-3.3-A52", "0620-3.3-A53", "0620-3.3-A54", "0620-3.3-A55"], "paragraphs": ["P15", "P16"], "quizId": "0620_ch05_q06", "atoms": {"0620-3.3-A52": "Percentage composition by mass of an element = (atoms x Ar) / Mr x 100.", "0620-3.3-A53": "Percentage yield = actual mass / theoretical mass x 100, with the theoretical mass found by the mole method from the limiting reactant.", "0620-3.3-A54": "Yields are below 100% because reactions may be reversible or incomplete, side reactions occur, and product is lost on transfer, filtering and purification.", "0620-3.3-A55": "Percentage purity = mass of pure substance / mass of impure sample x 100, the pure mass being inferred from the product formed, assuming impurities do not react."}}]}
 
1
+ {"chapterId": "0620_ch05", "subject": "Chemistry", "code": "0620", "chapter": "Chemical calculations", "mixedQuizId": "0620_ch05_q07", "topics": [{"id": "t1", "order": 1, "title": "Relative masses", "goal": "Work out Ar from isotope data and Mr from a formula, and explain why both are relative.", "atom_ids": ["0620-3.2-A01", "0620-3.2-A02", "0620-3.2-A03", "0620-3.2-A04", "0620-3.2-A05", "0620-3.2-A06", "0620-3.2-A07", "0620-3.2-A08", "0620-3.2-A09", "0620-3.2-A10", "0620-3.2-A11"], "paragraphs": ["P2", "P3"], "quizId": "0620_ch05_q01", "atoms": {"0620-3.2-A01": "Relative atomic mass, Ar, is the average mass of the isotopes of an element compared with 1/12 of the mass of one atom of carbon-12.", "0620-3.2-A02": "Relative masses are ratios, so Ar and Mr have no units.", "0620-3.2-A03": "The reference isotope is carbon-12, taken as exactly 12.", "0620-3.2-A04": "Ar values are usually not whole numbers because they are weighted averages over the natural isotopes.", "0620-3.2-A05": "Calculate Ar from isotope masses and % abundances: Ar = sum(mass x abundance) / 100 (or / total ratio parts).", "0620-3.2-A06": "Find the abundance of an isotope (or identify the missing isotope) from Ar and the isotope masses.", "0620-3.2-A07": "If Ar equals the nucleon number of one isotope, the element effectively has only that isotope.", "0620-3.2-A08": "Relative molecular mass, Mr, is the sum of the Ar of the atoms in the formula; for ionic compounds the same sum is called relative formula mass, also written Mr.", "0620-3.2-A09": "Compute Mr for any formula, multiplying through brackets and adding water of crystallisation.", "0620-3.2-A10": "Relative masses add because mass is conserved when atoms combine.", "0620-3.2-A11": "Invert Mr: subtract the known atoms from a given Mr to find a missing fragment or an unknown Ar."}, "chunks": []}, {"id": "t2", "order": 2, "title": "The mole", "goal": "Convert between mass, moles and numbers of particles, always naming the particle.", "atom_ids": ["0620-3.3-A14", "0620-3.3-A15", "0620-3.3-A16", "0620-3.3-A17", "0620-3.3-A18", "0620-3.3-A19", "0620-3.3-A20", "0620-3.3-A21", "0620-3.3-A57", "0620-3.3-A58"], "paragraphs": ["P4", "P5", "P6", "P17", "P18"], "quizId": "0620_ch05_q02", "atoms": {"0620-3.3-A14": "The mole (mol) is the unit of amount of substance; one mole contains 6.02 x 10^23 particles, the Avogadro constant.", "0620-3.3-A15": "Ar grams of any element (Mr grams of any compound) contain the same number of particles, so weighing is counting.", "0620-3.3-A16": "A mole statement must name the particle: atoms, molecules, ions or electrons.", "0620-3.3-A17": "Molar mass (g/mol) is numerically equal to Ar or Mr.", "0620-3.3-A18": "amount (mol) = mass (g) / molar mass (g/mol); rearranged: mass = n x M, M = m / n.", "0620-3.3-A19": "Find the molar mass, Ar or Mr of an unknown from a measured mass and amount, then identify the substance.", "0620-3.3-A20": "Number of particles = amount (mol) x 6.02 x 10^23; and amount = number / 6.02 x 10^23.", "0620-3.3-A21": "Particles inside particles: multiply moles of molecules or formula units by the subscript to get moles of a given atom or ion.", "0620-3.3-A57": "Mark-scheme conventions: answers to 3 s.f. unless told otherwise; Ar to 1 d.p. when asked; final mark lost for a missing/wrong unit unless the unit is printed; correct answer without working gets full marks unless 'show your working'; ecf applies between steps.", "0620-3.3-A58": "The 'per mole' idea recurs in bond energies and enthalpy (kJ/mol), electrolysis (moles of electrons), diffusion rate (depends on Mr) and salt preparation (excess reagent)."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Reacting masses and limits", "goal": "Use equation ratios to find reacting masses and identify the limiting reactant.", "atom_ids": ["0620-3.2-A12", "0620-3.2-A13", "0620-3.3-A22", "0620-3.3-A23", "0620-3.3-A24", "0620-3.3-A25", "0620-3.3-A26", "0620-3.3-A27", "0620-3.3-A56"], "paragraphs": ["P7", "P8", "P9"], "quizId": "0620_ch05_q03", "atoms": {"0620-3.2-A12": "Reacting masses by simple proportion: coefficient x Mr gives the mass of each substance; scale to the given mass.", "0620-3.2-A13": "Total mass of reactants equals total mass of products; use it as a check on a mass statement.", "0620-3.3-A22": "The coefficients of a balanced equation are mole ratios.", "0620-3.3-A23": "Three-step mole method: convert the given quantity to moles, apply the coefficient ratio (wanted / given), convert the wanted moles back.", "0620-3.3-A24": "The limiting reactant is the one used up first; the other is in excess; the product is fixed by the limiting reactant.", "0620-3.3-A25": "Identify the limiting reactant: convert both reactants to moles and compare with the equation ratio (e.g. moles / coefficient; smaller is limiting).", "0620-3.3-A26": "Theoretical product (and hence % yield) must be calculated from the limiting reactant, never from the one in excess.", "0620-3.3-A27": "Excess of a solid reactant is shown by solid remaining undissolved and effervescence stopping.", "0620-3.3-A56": "Paper 4 presents chains as 'Use the following steps' bullets with an answer line and unit for each step; each bullet is one mark."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Gases, solutions, titrations", "goal": "Use the gas bridge (24 dm³) and the solution bridge (c × V) in mole chains and titrations.", "atom_ids": ["0620-3.3-A28", "0620-3.3-A29", "0620-3.3-A30", "0620-3.3-A31", "0620-3.3-A33", "0620-3.3-A34", "0620-3.3-A35", "0620-3.3-A36", "0620-3.3-A37", "0620-3.3-A38", "0620-3.3-A39", "0620-3.3-A40"], "paragraphs": ["P10", "P11", "P12"], "quizId": "0620_ch05_q04", "atoms": {"0620-3.3-A28": "Equal volumes of gases at the same temperature and pressure contain equal numbers of molecules, because gas volume depends on particle number and conditions, not identity.", "0620-3.3-A29": "The molar gas volume is 24 dm3 (24 000 cm3) for any gas at room temperature and pressure (r.t.p.).", "0620-3.3-A30": "Gas bridge: moles = volume (dm3) / 24 or volume (cm3) / 24 000; volume = moles x 24 dm3.", "0620-3.3-A31": "For gases reacting with gases, volumes are in the same ratio as the coefficients (same conditions).", "0620-3.3-A33": "Concentration is the amount of solute per dm3 of solution, in g/dm3 or mol/dm3; 1 dm3 = 1000 cm3.", "0620-3.3-A34": "concentration in g/dm3 = concentration in mol/dm3 x Mr (and the reverse).", "0620-3.3-A35": "Convert cm3 to dm3 by dividing by 1000 before using a volume with a concentration.", "0620-3.3-A36": "moles = concentration (mol/dm3) x volume (dm3); concentration = moles / volume; volume = moles / concentration.", "0620-3.3-A37": "Titration calculation: moles of the known solution = c x V; apply the equation ratio; then unknown concentration = n / V or required volume = n / c.", "0620-3.3-A38": "When the answer is wanted in g/dm3, finish a titration chain by multiplying the mol/dm3 result by the Mr of the solute.", "0620-3.3-A39": "Scale titration results from a 25.0 cm3 portion back to the whole 250 cm3 solution (x10) when a sample was made up to volume.", "0620-3.3-A40": "A titration measures the volume of one solution (burette) needed to react exactly with a measured volume of another (pipette), using an indicator to show the end-point."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Empirical and molecular formulae", "goal": "Deduce empirical, molecular and hydrated-salt formulae from composition and mass data.", "atom_ids": ["0620-3.3-A41", "0620-3.3-A42", "0620-3.3-A43", "0620-3.3-A44", "0620-3.3-A45", "0620-3.3-A46", "0620-3.3-A47", "0620-3.3-A48", "0620-3.3-A49", "0620-3.3-A50", "0620-3.3-A51"], "paragraphs": ["P13", "P14"], "quizId": "0620_ch05_q05", "atoms": {"0620-3.3-A41": "The empirical formula is the simplest whole-number ratio of the atoms (or ions) in a compound.", "0620-3.3-A42": "Empirical formula from composition: mass (or %) of each element / Ar -> divide by the smallest -> clear fractions -> write the formula.", "0620-3.3-A43": "Dividing each mass by Ar converts to moles of atoms, and mole ratio = atom ratio because every mole is the same count.", "0620-3.3-A44": "Clear a fractional ratio by multiplying through (x2 for .5, x3 for .33/.67, x4 for .25/.75); never round 1.5 to 2.", "0620-3.3-A45": "Empirical formula from combustion data: moles C = moles CO2; moles H = 2 x moles H2O; oxygen by difference.", "0620-3.3-A46": "The molecular formula is the actual number of atoms of each element in one molecule; it is a whole-number multiple of the empirical formula.", "0620-3.3-A47": "Molecular formula from empirical formula and Mr: multiplier = Mr / (empirical formula mass); multiply the subscripts.", "0620-3.3-A48": "Empirical formula from a molecular formula or structure: count the atoms, divide subscripts by their highest common factor.", "0620-3.3-A49": "Read the molecular formula off a displayed or structural formula or a systematic name.", "0620-3.3-A50": "Water of crystallisation: moles of anhydrous salt = residue mass / Mr; moles of water = mass lost / 18; x = moles water / moles salt.", "0620-3.3-A51": "Heat the hydrate to constant mass (heat, cool, weigh, repeat) to be sure all the water has been removed."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Composition, yield, purity", "goal": "Calculate percentage by mass, percentage yield and percentage purity without mixing them up.", "atom_ids": ["0620-3.3-A52", "0620-3.3-A53", "0620-3.3-A54", "0620-3.3-A55"], "paragraphs": ["P15", "P16"], "quizId": "0620_ch05_q06", "atoms": {"0620-3.3-A52": "Percentage composition by mass of an element = (atoms x Ar) / Mr x 100.", "0620-3.3-A53": "Percentage yield = actual mass / theoretical mass x 100, with the theoretical mass found by the mole method from the limiting reactant.", "0620-3.3-A54": "Yields are below 100% because reactions may be reversible or incomplete, side reactions occur, and product is lost on transfer, filtering and purification.", "0620-3.3-A55": "Percentage purity = mass of pure substance / mass of impure sample x 100, the pure mass being inferred from the product formed, assuming impurities do not react."}, "chunks": []}]}
data/topics/0625_ch01.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0625_ch01", "subject": "Physics", "code": "0625", "chapter": "Making measurements", "mixedQuizId": "0625_ch01_q07", "topics": [{"id": "t1", "order": 1, "title": "Measuring length and volume", "goal": "Measure lengths and volumes with a ruler and a measuring cylinder, including volume by displacement.", "atom_ids": ["0625-1.1-A01", "0625-1.1-A02", "0625-1.1-A03", "0625-1.1-A04", "0625-1.1-A05", "0625-1.1-A06", "0625-1.1-A07", "0625-1.1-A08", "0625-1.1-A09", "0625-1.1-A10", "0625-1.1-A11"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P7", "P8", "P9", "P10"], "quizId": "0625_ch01_q01", "atoms": {"0625-1.1-A01": "A physical quantity is a number with a unit; SI units here are m (length), kg (mass), s (time); prefixes milli = 10⁻³, centi = 10⁻², kilo = 10³.", "0625-1.1-A02": "Convert units: 1 m = 100 cm = 1000 mm; 1 m³ = 10⁶ cm³; 1 cm³ = 1 ml; 1 litre = 1000 cm³; minutes and seconds to seconds (1 min 30 s = 90 s).", "0625-1.1-A03": "A ruler with 1 mm divisions measures to the nearest millimetre; record lengths in cm to one decimal place (3.0 cm, not 3 or 3.00).", "0625-1.1-A04": "Avoid parallax (line-of-sight) error by looking perpendicularly at the scale with the ruler close to the object; avoid zero error by measuring from a clear mark and subtracting.", "0625-1.1-A05": "Use a set square or other horizontal aid to carry a level (bottom of a spring, centre of a bob) across to a vertical rule.", "0625-1.1-A06": "Diameter of a ball: place it between two rectangular blocks touching it and measure the gap with a ruler; check the gap at both ends (blocks parallel), rotate the ball and average.", "0625-1.1-A07": "Read a measuring cylinder at the bottom of the meniscus, with the eye level with the liquid surface and the cylinder on a horizontal surface; record to the nearest graduation.", "0625-1.1-A08": "Choose the smallest (narrowest) measuring cylinder that holds the volume: finer graduations give a more precise reading.", "0625-1.1-A09": "Volume of a rectangular block = length × width × height from ruler measurements; it is approximate for an uneven block, so measure each dimension in several places and average.", "0625-1.1-A10": "Volume of an irregular solid that sinks by displacement: read V₁, lower the object gently until fully submerged, read V₂, V = V₂ − V₁ (or collect the overflow from a displacement can); works for several small objects at once.", "0625-1.1-A11": "Displacement errors: trapped air bubbles, splashing, the volume of the thread, water absorbed by the object, and graduations too coarse for the volume change."}}, {"id": "t2", "order": 2, "title": "Timing and measuring multiples", "goal": "Choose timing instruments and find short times and small lengths by measuring many and dividing.", "atom_ids": ["0625-1.1-A12", "0625-1.1-A13", "0625-1.1-A14", "0625-1.1-A15", "0625-1.1-A16", "0625-1.1-A17", "0625-1.1-A18", "0625-1.1-A19"], "paragraphs": ["P6", "P11", "P12", "P13"], "quizId": "0625_ch01_q02", "atoms": {"0625-1.1-A12": "Clocks or watches measure long intervals; stop-watches measure seconds and display to 0.01 s, but human reaction time (about 0.1–0.3 s) limits hand timing.", "0625-1.1-A13": "Very short intervals are measured with a digital timer started and stopped electrically (e.g. by light gates), removing reaction time.", "0625-1.1-A14": "Record a stop-watch exactly as displayed (00:17.76 → 17.76 s) and convert minutes to seconds before calculating.", "0625-1.1-A15": "The period of a pendulum is the time for one complete oscillation: from one side, to the other and back to the start.", "0625-1.1-A16": "Measure a short repeating time by multiples: time 10 or 20 oscillations and divide, T = t ÷ n; this spreads the reaction-time error over many oscillations (smaller percentage error), and is better than repeating a single timing.", "0625-1.1-A17": "Timing technique: small displacement, fiducial mark at the centre of the swing, start on a pass and count it as zero, count passes in the same direction, repeat and average.", "0625-1.1-A18": "Counting passes: after a starting pass, n further passes in the same direction take n periods, so T = (t₂ − t₁) ÷ n.", "0625-1.1-A19": "Measure a small distance by multiples: thickness of one sheet = stack thickness ÷ number of sheets; one marble's diameter = length of a row ÷ number; the result is an average."}}, {"id": "t3", "order": 3, "title": "Recording good results", "goal": "Record readings with the right precision, units and significant figures, and judge and improve results.", "atom_ids": ["0625-1.1-A20", "0625-1.1-A21", "0625-1.1-A22", "0625-1.1-A23", "0625-1.1-A24", "0625-1.1-A25"], "paragraphs": ["P14", "P15", "P16"], "quizId": "0625_ch01_q03", "atoms": {"0625-1.1-A20": "Accurate = close to the true value; precise = repeated values close together (finer scale = more precise instrument).", "0625-1.1-A21": "Repeat readings and average them (sum ÷ number), leaving out an anomalous reading; repeating reduces random error but cannot remove a systematic error such as a zero error or reading the top of a meniscus.", "0625-1.1-A22": "Tables: column headings give quantity / unit with a solidus (t / s, T² / s²); no units in the body; each column recorded to the instrument's precision with the same number of decimal places.", "0625-1.1-A23": "Give calculated values to the same number of significant figures as the least precise data (usually 2 or 3), consistent within a column; never 1 s.f.; round only at the end.", "0625-1.1-A24": "Two results are equal within the limits of experimental accuracy if they differ by about 10% or less; support the judgement with a percentage-difference calculation.", "0625-1.1-A25": "State a specific source of inaccuracy and pair it with a matching improvement (graduations too large → narrower cylinder; reaction time → more oscillations; uneven block → measure in several places; thread → thinner thread)."}}, {"id": "t4", "order": 4, "title": "Scalars, vectors, resultants", "goal": "Classify scalars and vectors and find the resultant of two vectors at right angles.", "atom_ids": ["0625-1.1-A26", "0625-1.1-A27", "0625-1.1-A28", "0625-1.1-A29", "0625-1.1-A30", "0625-1.1-A31", "0625-1.1-A32", "0625-1.1-A33", "0625-1.1-A34"], "paragraphs": ["P17", "P18", "P19", "P20"], "quizId": "0625_ch01_q04", "atoms": {"0625-1.1-A26": "A scalar quantity has magnitude (size) only; a vector quantity has magnitude and direction.", "0625-1.1-A27": "Scalars: distance, speed, time, mass, energy and temperature (density, volume and pressure are also scalars).", "0625-1.1-A28": "Vectors: force, weight, velocity, acceleration, momentum, electric field strength and gravitational field strength.", "0625-1.1-A29": "Paired quantities differ by direction: speed (scalar) and velocity (vector); mass (scalar) and weight (vector, towards the centre of the Earth).", "0625-1.1-A30": "A vector is drawn as an arrow whose length (to a stated scale) shows the magnitude and whose head shows the direction; a negative value means the opposite direction.", "0625-1.1-A31": "Resultant of two perpendicular vectors by calculation: magnitude = √(a² + b²); angle from tan θ = opposite ÷ adjacent, stated from the named reference.", "0625-1.1-A32": "Resultant graphically: choose a scale, draw the two vectors tail to tip at right angles, draw and measure the resultant, convert with the scale, measure the angle with a protractor.", "0625-1.1-A33": "The resultant of two perpendicular vectors is larger than either one but smaller than their sum, and lies closer to the larger vector.", "0625-1.1-A34": "Perpendicular-vector contexts: a boat or swimmer crossing a river (velocity relative to the bank), an aircraft in a cross-wind, two forces at right angles on an object; limited to forces or velocities."}}, {"id": "t5", "order": 5, "title": "Density and measuring it", "goal": "Use density = mass ÷ volume and describe how to measure the density of liquids and solids.", "atom_ids": ["0625-1.4-A01", "0625-1.4-A02", "0625-1.4-A03", "0625-1.4-A04", "0625-1.4-A05", "0625-1.4-A06", "0625-1.4-A07", "0625-1.4-A08", "0625-1.4-A09", "0625-1.4-A10", "0625-1.4-A11"], "paragraphs": ["P21", "P22", "P23", "P24", "P25", "P26"], "quizId": "0625_ch01_q05", "atoms": {"0625-1.4-A01": "Density is mass per unit volume: ρ = m ÷ V.", "0625-1.4-A02": "Density units: g/cm³ or kg/m³; 1 g/cm³ = 1000 kg/m³; water is 1.0 g/cm³ = 1000 kg/m³.", "0625-1.4-A03": "Use ρ = m/V in all three forms (m = ρV, V = m/ρ) with consistent units; keep g with cm³ to avoid power-of-ten errors.", "0625-1.4-A04": "Multi-step density problems: find a volume from dimensions (pool, room, tank), then mass = density × volume; or find a mass from a balance change, then density.", "0625-1.4-A05": "Density is a property of the material: cutting a piece in half leaves its density unchanged; same volume but different mass means different density.", "0625-1.4-A06": "Compressing a material that contains air pockets reduces its volume but not its mass, so its average density increases.", "0625-1.4-A07": "Density of a liquid: mass of empty measuring cylinder, read the liquid volume, mass of cylinder plus liquid, subtract, then ρ = m ÷ V.", "0625-1.4-A08": "Density of a regular solid: mass with a balance, dimensions with a ruler, V from the volume formula, ρ = m ÷ V.", "0625-1.4-A09": "Density of an irregular solid that sinks: mass with a balance, volume by displacement, ρ = m ÷ (V₂ − V₁).", "0625-1.4-A10": "Apparatus for density: regular solid → balance and ruler; irregular solid → balance and measuring cylinder with water; no timer, thermometer or extra ruler is needed.", "0625-1.4-A11": "Choosing between density methods: displacement measures volume directly so beats dimensions for an uneven lump; for sand, a dry volume includes air gaps, while water poured in fills them so the rise gives the grains' volume."}}, {"id": "t6", "order": 6, "title": "Floating, sinking and layers", "goal": "Predict from density data whether an object floats and how liquids that do not mix will layer.", "atom_ids": ["0625-1.4-A12", "0625-1.4-A13", "0625-1.4-A14", "0625-1.4-A15", "0625-1.4-A16"], "paragraphs": ["P27", "P28", "P29"], "quizId": "0625_ch01_q06", "atoms": {"0625-1.4-A12": "An object floats in a liquid if its density is less than the liquid's and sinks if greater; mass or size alone do not decide.", "0625-1.4-A13": "To decide floating from data, calculate each density (mass ÷ volume) first, then compare.", "0625-1.4-A14": "A hollow object (ship, ball) floats if its average density (total mass ÷ total volume including air) is less than the liquid's; it sinks once filling with liquid raises its average density above the liquid's.", "0625-1.4-A15": "Liquids that do not mix settle in layers in order of density, least dense on top; the explanation compares the mass of the same volume (1 cm³) of each, not total masses or volumes.", "0625-1.4-A16": "A solid in a column of layered liquids comes to rest on top of the first liquid denser than itself, so a block at a boundary is denser than the upper liquid and less dense than the lower."}}]}
 
1
+ {"chapterId": "0625_ch01", "subject": "Physics", "code": "0625", "chapter": "Making measurements", "mixedQuizId": "0625_ch01_q07", "topics": [{"id": "t1", "order": 1, "title": "Measuring length and volume", "goal": "Measure lengths and volumes with a ruler and a measuring cylinder, including volume by displacement.", "atom_ids": ["0625-1.1-A01", "0625-1.1-A02", "0625-1.1-A03", "0625-1.1-A04", "0625-1.1-A05", "0625-1.1-A06", "0625-1.1-A07", "0625-1.1-A08", "0625-1.1-A09", "0625-1.1-A10", "0625-1.1-A11"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P7", "P8", "P9", "P10"], "quizId": "0625_ch01_q01", "atoms": {"0625-1.1-A01": "A physical quantity is a number with a unit; SI units here are m (length), kg (mass), s (time); prefixes milli = 10⁻³, centi = 10⁻², kilo = 10³.", "0625-1.1-A02": "Convert units: 1 m = 100 cm = 1000 mm; 1 m³ = 10⁶ cm³; 1 cm³ = 1 ml; 1 litre = 1000 cm³; minutes and seconds to seconds (1 min 30 s = 90 s).", "0625-1.1-A03": "A ruler with 1 mm divisions measures to the nearest millimetre; record lengths in cm to one decimal place (3.0 cm, not 3 or 3.00).", "0625-1.1-A04": "Avoid parallax (line-of-sight) error by looking perpendicularly at the scale with the ruler close to the object; avoid zero error by measuring from a clear mark and subtracting.", "0625-1.1-A05": "Use a set square or other horizontal aid to carry a level (bottom of a spring, centre of a bob) across to a vertical rule.", "0625-1.1-A06": "Diameter of a ball: place it between two rectangular blocks touching it and measure the gap with a ruler; check the gap at both ends (blocks parallel), rotate the ball and average.", "0625-1.1-A07": "Read a measuring cylinder at the bottom of the meniscus, with the eye level with the liquid surface and the cylinder on a horizontal surface; record to the nearest graduation.", "0625-1.1-A08": "Choose the smallest (narrowest) measuring cylinder that holds the volume: finer graduations give a more precise reading.", "0625-1.1-A09": "Volume of a rectangular block = length × width × height from ruler measurements; it is approximate for an uneven block, so measure each dimension in several places and average.", "0625-1.1-A10": "Volume of an irregular solid that sinks by displacement: read V₁, lower the object gently until fully submerged, read V₂, V = V₂ − V₁ (or collect the overflow from a displacement can); works for several small objects at once.", "0625-1.1-A11": "Displacement errors: trapped air bubbles, splashing, the volume of the thread, water absorbed by the object, and graduations too coarse for the volume change."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Timing and measuring multiples", "goal": "Choose timing instruments and find short times and small lengths by measuring many and dividing.", "atom_ids": ["0625-1.1-A12", "0625-1.1-A13", "0625-1.1-A14", "0625-1.1-A15", "0625-1.1-A16", "0625-1.1-A17", "0625-1.1-A18", "0625-1.1-A19"], "paragraphs": ["P6", "P11", "P12", "P13"], "quizId": "0625_ch01_q02", "atoms": {"0625-1.1-A12": "Clocks or watches measure long intervals; stop-watches measure seconds and display to 0.01 s, but human reaction time (about 0.1–0.3 s) limits hand timing.", "0625-1.1-A13": "Very short intervals are measured with a digital timer started and stopped electrically (e.g. by light gates), removing reaction time.", "0625-1.1-A14": "Record a stop-watch exactly as displayed (00:17.76 → 17.76 s) and convert minutes to seconds before calculating.", "0625-1.1-A15": "The period of a pendulum is the time for one complete oscillation: from one side, to the other and back to the start.", "0625-1.1-A16": "Measure a short repeating time by multiples: time 10 or 20 oscillations and divide, T = t ÷ n; this spreads the reaction-time error over many oscillations (smaller percentage error), and is better than repeating a single timing.", "0625-1.1-A17": "Timing technique: small displacement, fiducial mark at the centre of the swing, start on a pass and count it as zero, count passes in the same direction, repeat and average.", "0625-1.1-A18": "Counting passes: after a starting pass, n further passes in the same direction take n periods, so T = (t₂ − t₁) ÷ n.", "0625-1.1-A19": "Measure a small distance by multiples: thickness of one sheet = stack thickness ÷ number of sheets; one marble's diameter = length of a row ÷ number; the result is an average."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Recording good results", "goal": "Record readings with the right precision, units and significant figures, and judge and improve results.", "atom_ids": ["0625-1.1-A20", "0625-1.1-A21", "0625-1.1-A22", "0625-1.1-A23", "0625-1.1-A24", "0625-1.1-A25"], "paragraphs": ["P14", "P15", "P16"], "quizId": "0625_ch01_q03", "atoms": {"0625-1.1-A20": "Accurate = close to the true value; precise = repeated values close together (finer scale = more precise instrument).", "0625-1.1-A21": "Repeat readings and average them (sum ÷ number), leaving out an anomalous reading; repeating reduces random error but cannot remove a systematic error such as a zero error or reading the top of a meniscus.", "0625-1.1-A22": "Tables: column headings give quantity / unit with a solidus (t / s, T² / s²); no units in the body; each column recorded to the instrument's precision with the same number of decimal places.", "0625-1.1-A23": "Give calculated values to the same number of significant figures as the least precise data (usually 2 or 3), consistent within a column; never 1 s.f.; round only at the end.", "0625-1.1-A24": "Two results are equal within the limits of experimental accuracy if they differ by about 10% or less; support the judgement with a percentage-difference calculation.", "0625-1.1-A25": "State a specific source of inaccuracy and pair it with a matching improvement (graduations too large → narrower cylinder; reaction time → more oscillations; uneven block → measure in several places; thread → thinner thread)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Scalars, vectors, resultants", "goal": "Classify scalars and vectors and find the resultant of two vectors at right angles.", "atom_ids": ["0625-1.1-A26", "0625-1.1-A27", "0625-1.1-A28", "0625-1.1-A29", "0625-1.1-A30", "0625-1.1-A31", "0625-1.1-A32", "0625-1.1-A33", "0625-1.1-A34"], "paragraphs": ["P17", "P18", "P19", "P20"], "quizId": "0625_ch01_q04", "atoms": {"0625-1.1-A26": "A scalar quantity has magnitude (size) only; a vector quantity has magnitude and direction.", "0625-1.1-A27": "Scalars: distance, speed, time, mass, energy and temperature (density, volume and pressure are also scalars).", "0625-1.1-A28": "Vectors: force, weight, velocity, acceleration, momentum, electric field strength and gravitational field strength.", "0625-1.1-A29": "Paired quantities differ by direction: speed (scalar) and velocity (vector); mass (scalar) and weight (vector, towards the centre of the Earth).", "0625-1.1-A30": "A vector is drawn as an arrow whose length (to a stated scale) shows the magnitude and whose head shows the direction; a negative value means the opposite direction.", "0625-1.1-A31": "Resultant of two perpendicular vectors by calculation: magnitude = √(a² + b²); angle from tan θ = opposite ÷ adjacent, stated from the named reference.", "0625-1.1-A32": "Resultant graphically: choose a scale, draw the two vectors tail to tip at right angles, draw and measure the resultant, convert with the scale, measure the angle with a protractor.", "0625-1.1-A33": "The resultant of two perpendicular vectors is larger than either one but smaller than their sum, and lies closer to the larger vector.", "0625-1.1-A34": "Perpendicular-vector contexts: a boat or swimmer crossing a river (velocity relative to the bank), an aircraft in a cross-wind, two forces at right angles on an object; limited to forces or velocities."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Density and measuring it", "goal": "Use density = mass ÷ volume and describe how to measure the density of liquids and solids.", "atom_ids": ["0625-1.4-A01", "0625-1.4-A02", "0625-1.4-A03", "0625-1.4-A04", "0625-1.4-A05", "0625-1.4-A06", "0625-1.4-A07", "0625-1.4-A08", "0625-1.4-A09", "0625-1.4-A10", "0625-1.4-A11"], "paragraphs": ["P21", "P22", "P23", "P24", "P25", "P26"], "quizId": "0625_ch01_q05", "atoms": {"0625-1.4-A01": "Density is mass per unit volume: ρ = m ÷ V.", "0625-1.4-A02": "Density units: g/cm³ or kg/m³; 1 g/cm³ = 1000 kg/m³; water is 1.0 g/cm³ = 1000 kg/m³.", "0625-1.4-A03": "Use ρ = m/V in all three forms (m = ρV, V = m/ρ) with consistent units; keep g with cm³ to avoid power-of-ten errors.", "0625-1.4-A04": "Multi-step density problems: find a volume from dimensions (pool, room, tank), then mass = density × volume; or find a mass from a balance change, then density.", "0625-1.4-A05": "Density is a property of the material: cutting a piece in half leaves its density unchanged; same volume but different mass means different density.", "0625-1.4-A06": "Compressing a material that contains air pockets reduces its volume but not its mass, so its average density increases.", "0625-1.4-A07": "Density of a liquid: mass of empty measuring cylinder, read the liquid volume, mass of cylinder plus liquid, subtract, then ρ = m ÷ V.", "0625-1.4-A08": "Density of a regular solid: mass with a balance, dimensions with a ruler, V from the volume formula, ρ = m ÷ V.", "0625-1.4-A09": "Density of an irregular solid that sinks: mass with a balance, volume by displacement, ρ = m ÷ (V₂ − V₁).", "0625-1.4-A10": "Apparatus for density: regular solid → balance and ruler; irregular solid → balance and measuring cylinder with water; no timer, thermometer or extra ruler is needed.", "0625-1.4-A11": "Choosing between density methods: displacement measures volume directly so beats dimensions for an uneven lump; for sand, a dry volume includes air gaps, while water poured in fills them so the rise gives the grains' volume."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Floating, sinking and layers", "goal": "Predict from density data whether an object floats and how liquids that do not mix will layer.", "atom_ids": ["0625-1.4-A12", "0625-1.4-A13", "0625-1.4-A14", "0625-1.4-A15", "0625-1.4-A16"], "paragraphs": ["P27", "P28", "P29"], "quizId": "0625_ch01_q06", "atoms": {"0625-1.4-A12": "An object floats in a liquid if its density is less than the liquid's and sinks if greater; mass or size alone do not decide.", "0625-1.4-A13": "To decide floating from data, calculate each density (mass ÷ volume) first, then compare.", "0625-1.4-A14": "A hollow object (ship, ball) floats if its average density (total mass ÷ total volume including air) is less than the liquid's; it sinks once filling with liquid raises its average density above the liquid's.", "0625-1.4-A15": "Liquids that do not mix settle in layers in order of density, least dense on top; the explanation compares the mass of the same volume (1 cm³) of each, not total masses or volumes.", "0625-1.4-A16": "A solid in a column of layered liquids comes to rest on top of the first liquid denser than itself, so a block at a boundary is denser than the upper liquid and less dense than the lower."}, "chunks": []}]}
data/topics/0625_ch02.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0625_ch02", "subject": "Physics", "code": "0625", "chapter": "Describing motion", "mixedQuizId": "0625_ch02_q06", "topics": [{"id": "t1", "order": 1, "title": "Speed, velocity, average speed", "goal": "Calculate speeds and average speeds with the right units and tell speed from velocity.", "atom_ids": ["0625-1.2-A01", "0625-1.2-A02", "0625-1.2-A03", "0625-1.2-A04", "0625-1.2-A05", "0625-1.2-A06", "0625-1.2-A07", "0625-1.2-A08"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0625_ch02_q01", "atoms": {"0625-1.2-A01": "Speed is the distance travelled per unit time: v = s/t, unit m/s.", "0625-1.2-A02": "Use v = s/t and its rearrangements s = vt and t = s/v, converting km to m, minutes or hours to s, and km/h to m/s (divide by 3.6) before substituting.", "0625-1.2-A03": "Average speed = total distance travelled / total time taken.", "0625-1.2-A04": "For a multi-stage journey add all the distances and all the times (including stops), then divide; never average the stage speeds.", "0625-1.2-A05": "To measure an average speed: measure the distance between two marks (metre rule or tape) and the time between them (stopwatch or light gates); repeat and average; keep the start point and distances fixed; timing the exact instant is the main inaccuracy.", "0625-1.2-A06": "Velocity is speed in a given direction; velocity is a vector, speed is a scalar.", "0625-1.2-A07": "Velocity changes when the direction changes, even at constant speed; with one direction chosen as positive, motion the opposite way has a negative velocity.", "0625-1.2-A08": "Distance, speed and time are scalars; velocity and acceleration are vectors."}}, {"id": "t2", "order": 2, "title": "Distance–time graphs", "goal": "Read motion from the shape of a distance–time graph and find speed from its gradient.", "atom_ids": ["0625-1.2-A09", "0625-1.2-A10", "0625-1.2-A11", "0625-1.2-A12"], "paragraphs": ["P5", "P6"], "quizId": "0625_ch02_q02", "atoms": {"0625-1.2-A09": "On a distance-time graph: horizontal line = at rest; straight sloping line = constant speed; steeper straight line = higher speed.", "0625-1.2-A10": "On a distance-time graph a curve getting steeper means accelerating; a curve getting less steep means decelerating.", "0625-1.2-A11": "Speed = gradient of a straight section of a distance-time graph = change in distance / change in time, using two far-apart points; one reading divided by its time only works if the line passes through the origin.", "0625-1.2-A12": "Positions recorded at equal time intervals (images, data table): equal spacing = constant speed; growing spacing = speeding up; shrinking spacing = slowing down."}}, {"id": "t3", "order": 3, "title": "Speed–time graphs and distance", "goal": "Describe motion from a speed–time graph and find the distance from the area under it.", "atom_ids": ["0625-1.2-A13", "0625-1.2-A14", "0625-1.2-A15", "0625-1.2-A16", "0625-1.2-A17", "0625-1.2-A18", "0625-1.2-A19", "0625-1.2-A20", "0625-1.2-A21", "0625-1.2-A22", "0625-1.2-A23"], "paragraphs": ["P7", "P8", "P16"], "quizId": "0625_ch02_q03", "atoms": {"0625-1.2-A13": "On a speed-time graph: horizontal line above the axis = constant speed; line along the time axis = at rest; straight line up = constant acceleration; straight line down = constant deceleration.", "0625-1.2-A14": "The same shape means different motion on the two graphs: a horizontal line is 'at rest' on a distance-time graph but 'constant speed' on a speed-time graph; read the axis label first.", "0625-1.2-A15": "Describe a speed-time graph section by section with the time interval and an exact phrase: constant speed, constant acceleration, constant deceleration, at rest.", "0625-1.2-A16": "Read values from a graph: check the axis quantity and unit (minutes or seconds, km/h or m/s) and the scale before reading or calculating.", "0625-1.2-A17": "Plot or sketch a speed-time graph: straight lines for each stage of constant speed or constant acceleration, starting and ending at the stated speeds and times.", "0625-1.2-A18": "The area under a speed-time graph equals the distance travelled.", "0625-1.2-A19": "Find the area by splitting into rectangles (v x t) and triangles (1/2 x t x v), or a trapezium, and adding; convert minutes to seconds first.", "0625-1.2-A20": "Distance = speed x time only while the speed is constant; during uniform acceleration distance = average of start and end speeds x time (the triangle or trapezium area).", "0625-1.2-A21": "Average speed for a whole speed-time graph = total area / total time.", "0625-1.2-A22": "On a velocity-time graph, area below the time axis is distance travelled in the opposite direction; the object is back at its start when the area below equals the area above.", "0625-1.2-A23": "A journey takes longer if the acceleration or deceleration is smaller or the top speed is lower (for the same distance)."}}, {"id": "t4", "order": 4, "title": "Acceleration and deceleration", "goal": "Define and calculate acceleration and deceleration, from data and from graph gradients.", "atom_ids": ["0625-1.2-A24", "0625-1.2-A25", "0625-1.2-A26", "0625-1.2-A27", "0625-1.2-A28", "0625-1.2-A29", "0625-1.2-A30", "0625-1.2-A31", "0625-1.2-A32"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0625_ch02_q04", "atoms": {"0625-1.2-A24": "Acceleration is the change in velocity per unit time (or rate of change of velocity, not both): a = Δv/Δt, unit m/s².", "0625-1.2-A25": "Use a = (v - u)/t and its rearrangements Δv = aΔt and Δt = Δv/a; Δv is final minus initial velocity.", "0625-1.2-A26": "Constant acceleration means equal changes of velocity in equal times; in a table of distances covered in successive equal intervals it shows as equal increases.", "0625-1.2-A27": "On a speed-time graph a straight sloping line = constant acceleration; a curve = changing acceleration: getting steeper = increasing acceleration, flattening = decreasing acceleration (speed still rising).", "0625-1.2-A28": "Acceleration = gradient of a straight section of a speed-time graph = change in speed / change in time, from two far-apart points.", "0625-1.2-A29": "The steeper the line on a speed-time graph, the greater the acceleration; the greatest deceleration is the steepest falling section; a horizontal section has zero acceleration.", "0625-1.2-A30": "Acceleration at one instant on a curved speed-time graph = gradient of the tangent drawn at that time (long tangent, far-apart points); not the speed divided by the time.", "0625-1.2-A31": "A deceleration is a negative acceleration: a decrease in velocity per unit time.", "0625-1.2-A32": "In calculations a = (v - u)/t comes out negative when slowing; quote 'deceleration = 6.0 m/s²' or 'acceleration = -6.0 m/s²'; a falling straight section has a negative gradient."}}, {"id": "t5", "order": 5, "title": "Free fall and terminal velocity", "goal": "Describe falling with and without air resistance, up to and after terminal velocity.", "atom_ids": ["0625-1.2-A33", "0625-1.2-A34", "0625-1.2-A35", "0625-1.2-A36", "0625-1.2-A37", "0625-1.2-A38", "0625-1.2-A39", "0625-1.2-A40", "0625-1.2-A41", "0625-1.2-A42"], "paragraphs": ["P11", "P13", "P14", "P15"], "quizId": "0625_ch02_q05", "atoms": {"0625-1.2-A33": "An object thrown straight up (no air resistance) decelerates at 9.8 m/s², so the time to reach the top = launch speed / 9.8.", "0625-1.2-A34": "The acceleration of free fall g near the Earth's surface is approximately constant and approximately 9.8 m/s².", "0625-1.2-A35": "Without air resistance every object falls with the same constant acceleration g whatever its mass; its speed rises by 9.8 m/s every second, and its acceleration is the same at the top and bottom of the fall.", "0625-1.2-A36": "Free fall without air resistance gives a straight speed-time line through the origin with gradient 9.8 m/s²; the distance fallen is the triangle area.", "0625-1.2-A37": "Falling with air (or liquid) resistance: at release a = g; as speed increases air resistance increases, so the acceleration decreases; when air resistance equals the weight the acceleration is zero and the object falls at terminal velocity.", "0625-1.2-A38": "Speed-time graph of a fall with air resistance: starts with gradient 9.8 m/s² and curves over to a horizontal line at the terminal velocity.", "0625-1.2-A39": "Terminal velocity is the constant velocity of an object falling through a fluid when the resistance balances the weight; acceleration is then zero (not negative). The term is not used for horizontal motion.", "0625-1.2-A40": "Opening a parachute at terminal velocity: the skydiver keeps moving down but decelerates (negative acceleration) until she reaches a new, lower terminal velocity.", "0625-1.2-A41": "Label a fall graph: zero acceleration on horizontal sections, negative acceleration where the speed falls, decreasing acceleration on the curve that flattens before a terminal velocity.", "0625-1.2-A42": "Falling in a liquid (or a light object with a large area in air) follows the same pattern but reaches a lower terminal velocity much sooner."}}]}
 
1
+ {"chapterId": "0625_ch02", "subject": "Physics", "code": "0625", "chapter": "Describing motion", "mixedQuizId": "0625_ch02_q06", "topics": [{"id": "t1", "order": 1, "title": "Speed, velocity, average speed", "goal": "Calculate speeds and average speeds with the right units and tell speed from velocity.", "atom_ids": ["0625-1.2-A01", "0625-1.2-A02", "0625-1.2-A03", "0625-1.2-A04", "0625-1.2-A05", "0625-1.2-A06", "0625-1.2-A07", "0625-1.2-A08"], "paragraphs": ["P1", "P2", "P3", "P4"], "quizId": "0625_ch02_q01", "atoms": {"0625-1.2-A01": "Speed is the distance travelled per unit time: v = s/t, unit m/s.", "0625-1.2-A02": "Use v = s/t and its rearrangements s = vt and t = s/v, converting km to m, minutes or hours to s, and km/h to m/s (divide by 3.6) before substituting.", "0625-1.2-A03": "Average speed = total distance travelled / total time taken.", "0625-1.2-A04": "For a multi-stage journey add all the distances and all the times (including stops), then divide; never average the stage speeds.", "0625-1.2-A05": "To measure an average speed: measure the distance between two marks (metre rule or tape) and the time between them (stopwatch or light gates); repeat and average; keep the start point and distances fixed; timing the exact instant is the main inaccuracy.", "0625-1.2-A06": "Velocity is speed in a given direction; velocity is a vector, speed is a scalar.", "0625-1.2-A07": "Velocity changes when the direction changes, even at constant speed; with one direction chosen as positive, motion the opposite way has a negative velocity.", "0625-1.2-A08": "Distance, speed and time are scalars; velocity and acceleration are vectors."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Distance–time graphs", "goal": "Read motion from the shape of a distance–time graph and find speed from its gradient.", "atom_ids": ["0625-1.2-A09", "0625-1.2-A10", "0625-1.2-A11", "0625-1.2-A12"], "paragraphs": ["P5", "P6"], "quizId": "0625_ch02_q02", "atoms": {"0625-1.2-A09": "On a distance-time graph: horizontal line = at rest; straight sloping line = constant speed; steeper straight line = higher speed.", "0625-1.2-A10": "On a distance-time graph a curve getting steeper means accelerating; a curve getting less steep means decelerating.", "0625-1.2-A11": "Speed = gradient of a straight section of a distance-time graph = change in distance / change in time, using two far-apart points; one reading divided by its time only works if the line passes through the origin.", "0625-1.2-A12": "Positions recorded at equal time intervals (images, data table): equal spacing = constant speed; growing spacing = speeding up; shrinking spacing = slowing down."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Speed–time graphs and distance", "goal": "Describe motion from a speed–time graph and find the distance from the area under it.", "atom_ids": ["0625-1.2-A13", "0625-1.2-A14", "0625-1.2-A15", "0625-1.2-A16", "0625-1.2-A17", "0625-1.2-A18", "0625-1.2-A19", "0625-1.2-A20", "0625-1.2-A21", "0625-1.2-A22", "0625-1.2-A23"], "paragraphs": ["P7", "P8", "P16"], "quizId": "0625_ch02_q03", "atoms": {"0625-1.2-A13": "On a speed-time graph: horizontal line above the axis = constant speed; line along the time axis = at rest; straight line up = constant acceleration; straight line down = constant deceleration.", "0625-1.2-A14": "The same shape means different motion on the two graphs: a horizontal line is 'at rest' on a distance-time graph but 'constant speed' on a speed-time graph; read the axis label first.", "0625-1.2-A15": "Describe a speed-time graph section by section with the time interval and an exact phrase: constant speed, constant acceleration, constant deceleration, at rest.", "0625-1.2-A16": "Read values from a graph: check the axis quantity and unit (minutes or seconds, km/h or m/s) and the scale before reading or calculating.", "0625-1.2-A17": "Plot or sketch a speed-time graph: straight lines for each stage of constant speed or constant acceleration, starting and ending at the stated speeds and times.", "0625-1.2-A18": "The area under a speed-time graph equals the distance travelled.", "0625-1.2-A19": "Find the area by splitting into rectangles (v x t) and triangles (1/2 x t x v), or a trapezium, and adding; convert minutes to seconds first.", "0625-1.2-A20": "Distance = speed x time only while the speed is constant; during uniform acceleration distance = average of start and end speeds x time (the triangle or trapezium area).", "0625-1.2-A21": "Average speed for a whole speed-time graph = total area / total time.", "0625-1.2-A22": "On a velocity-time graph, area below the time axis is distance travelled in the opposite direction; the object is back at its start when the area below equals the area above.", "0625-1.2-A23": "A journey takes longer if the acceleration or deceleration is smaller or the top speed is lower (for the same distance)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Acceleration and deceleration", "goal": "Define and calculate acceleration and deceleration, from data and from graph gradients.", "atom_ids": ["0625-1.2-A24", "0625-1.2-A25", "0625-1.2-A26", "0625-1.2-A27", "0625-1.2-A28", "0625-1.2-A29", "0625-1.2-A30", "0625-1.2-A31", "0625-1.2-A32"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0625_ch02_q04", "atoms": {"0625-1.2-A24": "Acceleration is the change in velocity per unit time (or rate of change of velocity, not both): a = Δv/Δt, unit m/s².", "0625-1.2-A25": "Use a = (v - u)/t and its rearrangements Δv = aΔt and Δt = Δv/a; Δv is final minus initial velocity.", "0625-1.2-A26": "Constant acceleration means equal changes of velocity in equal times; in a table of distances covered in successive equal intervals it shows as equal increases.", "0625-1.2-A27": "On a speed-time graph a straight sloping line = constant acceleration; a curve = changing acceleration: getting steeper = increasing acceleration, flattening = decreasing acceleration (speed still rising).", "0625-1.2-A28": "Acceleration = gradient of a straight section of a speed-time graph = change in speed / change in time, from two far-apart points.", "0625-1.2-A29": "The steeper the line on a speed-time graph, the greater the acceleration; the greatest deceleration is the steepest falling section; a horizontal section has zero acceleration.", "0625-1.2-A30": "Acceleration at one instant on a curved speed-time graph = gradient of the tangent drawn at that time (long tangent, far-apart points); not the speed divided by the time.", "0625-1.2-A31": "A deceleration is a negative acceleration: a decrease in velocity per unit time.", "0625-1.2-A32": "In calculations a = (v - u)/t comes out negative when slowing; quote 'deceleration = 6.0 m/s²' or 'acceleration = -6.0 m/s²'; a falling straight section has a negative gradient."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Free fall and terminal velocity", "goal": "Describe falling with and without air resistance, up to and after terminal velocity.", "atom_ids": ["0625-1.2-A33", "0625-1.2-A34", "0625-1.2-A35", "0625-1.2-A36", "0625-1.2-A37", "0625-1.2-A38", "0625-1.2-A39", "0625-1.2-A40", "0625-1.2-A41", "0625-1.2-A42"], "paragraphs": ["P11", "P13", "P14", "P15"], "quizId": "0625_ch02_q05", "atoms": {"0625-1.2-A33": "An object thrown straight up (no air resistance) decelerates at 9.8 m/s², so the time to reach the top = launch speed / 9.8.", "0625-1.2-A34": "The acceleration of free fall g near the Earth's surface is approximately constant and approximately 9.8 m/s².", "0625-1.2-A35": "Without air resistance every object falls with the same constant acceleration g whatever its mass; its speed rises by 9.8 m/s every second, and its acceleration is the same at the top and bottom of the fall.", "0625-1.2-A36": "Free fall without air resistance gives a straight speed-time line through the origin with gradient 9.8 m/s²; the distance fallen is the triangle area.", "0625-1.2-A37": "Falling with air (or liquid) resistance: at release a = g; as speed increases air resistance increases, so the acceleration decreases; when air resistance equals the weight the acceleration is zero and the object falls at terminal velocity.", "0625-1.2-A38": "Speed-time graph of a fall with air resistance: starts with gradient 9.8 m/s² and curves over to a horizontal line at the terminal velocity.", "0625-1.2-A39": "Terminal velocity is the constant velocity of an object falling through a fluid when the resistance balances the weight; acceleration is then zero (not negative). The term is not used for horizontal motion.", "0625-1.2-A40": "Opening a parachute at terminal velocity: the skydiver keeps moving down but decelerates (negative acceleration) until she reaches a new, lower terminal velocity.", "0625-1.2-A41": "Label a fall graph: zero acceleration on horizontal sections, negative acceleration where the speed falls, decreasing acceleration on the curve that flattens before a terminal velocity.", "0625-1.2-A42": "Falling in a liquid (or a light object with a large area in air) follows the same pattern but reaches a lower terminal velocity much sooner."}, "chunks": []}]}
data/topics/0625_ch03.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0625_ch03", "subject": "Physics", "code": "0625", "chapter": "Forces and motion", "mixedQuizId": "0625_ch03_q07", "topics": [{"id": "t1", "order": 1, "title": "Mass, weight and g", "goal": "Tell mass from weight and use W = mg, on Earth and on other planets.", "atom_ids": ["0625-1.5-A01", "0625-1.3-A01", "0625-1.3-A02", "0625-1.3-A03", "0625-1.3-A04", "0625-1.3-A05", "0625-1.3-A06", "0625-1.3-A07", "0625-1.3-A08", "0625-1.3-A09", "0625-1.3-A10", "0625-1.3-A12"], "paragraphs": ["P1", "P2", "P3", "P5"], "quizId": "0625_ch03_q01", "atoms": {"0625-1.5-A01": "A force is a push or pull measured in newtons; it is a vector (size and direction).", "0625-1.3-A01": "Mass is a measure of the quantity of matter in an object; unit kg.", "0625-1.3-A02": "Mass does not change with location, shape, compression or heating.", "0625-1.3-A03": "Mass is also what resists a change in motion: the same force gives a smaller acceleration to a larger mass.", "0625-1.3-A04": "Weight is the gravitational force on an object that has mass; it is a force, in newtons, directed towards the centre of the Earth.", "0625-1.3-A05": "A gravitational field is a region in which a mass experiences a force; weight is the effect of a gravitational field on a mass.", "0625-1.3-A06": "Gravitational field strength is force per unit mass: g = W/m, unit N/kg.", "0625-1.3-A07": "g = 9.8 N/kg near the Earth's surface; other bodies have different values (Moon about 1.6, Mars about 3.7 N/kg), given in questions.", "0625-1.3-A08": "Calculate weight: W = mg (mass in kg).", "0625-1.3-A09": "Inverse and chained weight problems: m = W/g, then W' = m g' at another place.", "0625-1.3-A10": "For a fixed mass, weight is proportional to g: a larger g gives a larger weight, while mass stays the same.", "0625-1.3-A12": "A balance compares weights at the same place and hence masses (same reading on the Moon); a force meter measures one weight (reads less on the Moon)."}}, {"id": "t2", "order": 2, "title": "Resultant force and F = ma", "goal": "Combine forces into a resultant and use F = ma to predict how motion changes.", "atom_ids": ["0625-1.5-A02", "0625-1.5-A03", "0625-1.5-A04", "0625-1.5-A05", "0625-1.5-A06", "0625-1.5-A07", "0625-1.5-A08", "0625-1.5-A09", "0625-1.5-A10", "0625-1.5-A11", "0625-1.5-A12", "0625-1.5-A13"], "paragraphs": ["P6", "P7", "P8", "P9", "P10", "P11"], "quizId": "0625_ch03_q02", "atoms": {"0625-1.5-A02": "Resultant of forces along a line: choose a positive direction, add with signs, state the direction; zero resultant = equilibrium.", "0625-1.5-A03": "Resultant of two perpendicular forces: magnitude by Pythagoras, angle by tan, or a scale drawing from tail to tip; quote the angle from the stated reference.", "0625-1.5-A04": "Newton's first law: with no resultant force an object stays at rest or moves in a straight line at constant speed.", "0625-1.5-A05": "Constant velocity means the forces are balanced, not absent; an explanation names the opposing force and says it balances the forward force.", "0625-1.5-A06": "A resultant force changes velocity: it changes the speed, the direction of motion, or both.", "0625-1.5-A07": "Forces can change the size and shape of an object; they cannot change its mass.", "0625-1.5-A08": "F = ma: acceleration is proportional to resultant force and inversely proportional to mass; 1 N gives 1 kg an acceleration of 1 m/s².", "0625-1.5-A09": "The acceleration is in the same direction as the resultant force, not necessarily the direction of motion.", "0625-1.5-A10": "Forces-to-motion method: draw the forces, find the resultant (including weight for vertical motion), then a = F/m.", "0625-1.5-A11": "Chain F = ma with a = Δv/Δt and the speed-time graph (gradient = a, area = distance), in either direction.", "0625-1.5-A12": "Speed-time graph: gradient is acceleration (tangent on a curve); zero gradient = zero acceleration; falling gradient = decreasing acceleration; negative gradient = deceleration.", "0625-1.5-A13": "Qualitatively, the same force changes the motion of a smaller mass more; an extra opposing force lowers the resultant and the acceleration."}}, {"id": "t3", "order": 3, "title": "Friction, drag and falling", "goal": "Explain how friction and drag act and describe a fall up to terminal velocity.", "atom_ids": ["0625-1.3-A11", "0625-1.3-A13", "0625-1.5-A14", "0625-1.5-A15", "0625-1.5-A16", "0625-1.5-A17", "0625-1.5-A18", "0625-1.5-A19", "0625-1.5-A20", "0625-1.5-A21", "0625-1.5-A22", "0625-1.5-A23"], "paragraphs": ["P4", "P12", "P13", "P14", "P15"], "quizId": "0625_ch03_q03", "atoms": {"0625-1.3-A11": "g is equal to the acceleration of free fall: with weight the only force, a = mg/m = g for every mass; 1 N/kg = 1 m/s². A larger g means faster falling.", "0625-1.3-A13": "When a supporting force balances the weight (terminal velocity, hanging load, maximum lift), weight = that force, so m = F/g.", "0625-1.5-A14": "Solid friction acts between surfaces in contact, opposes their relative (or attempted) motion and produces heating.", "0625-1.5-A15": "Friction provides grip for driving, braking and turning; less friction (wet road) means a longer braking distance; friction can push an object forward (book on an accelerating train).", "0625-1.5-A16": "Drag is friction on an object moving through a liquid or a gas (air resistance); it opposes the motion.", "0625-1.5-A17": "Drag increases as speed increases (and with frontal area) and is zero at rest.", "0625-1.5-A18": "A driving force must exceed ma: part of it only balances friction and drag; the rest is the resultant.", "0625-1.5-A19": "Falling with no air resistance: the only force is weight, so the acceleration is constant at g for every mass; the speed-time graph is straight.", "0625-1.5-A20": "Falling with drag, in order: at release drag is zero so a = g; drag rises with speed; resultant (weight - drag) and acceleration fall; when drag = weight, resultant is zero and velocity is constant (terminal velocity).", "0625-1.5-A21": "At terminal velocity drag equals weight, the resultant force is zero and the acceleration is zero.", "0625-1.5-A22": "Speed-time graph of a fall with drag: initial gradient 9.8 m/s², gradient decreasing smoothly to zero, then horizontal.", "0625-1.5-A23": "Opening a parachute makes drag exceed weight: the resultant is upward, the object decelerates, drag falls with speed, and a lower terminal velocity is reached."}}, {"id": "t4", "order": 4, "title": "Motion in a circle", "goal": "Explain why motion in a circle at constant speed needs a force towards the centre.", "atom_ids": ["0625-1.5-A24", "0625-1.5-A25", "0625-1.5-A26"], "paragraphs": ["P16"], "quizId": "0625_ch03_q04", "atoms": {"0625-1.5-A24": "Motion in a circle at constant speed is accelerated motion because the direction of velocity changes, so a resultant force must act.", "0625-1.5-A25": "The resultant force on an object moving in a circle is perpendicular to its motion, towards the centre; friction, tension or gravity supplies it.", "0625-1.5-A26": "Circular motion, qualitatively: larger force -> higher speed (m, r fixed); larger force -> smaller radius (m, v fixed); larger mass needs larger force (v, r fixed); too little friction -> the object slides off."}}, {"id": "t5", "order": 5, "title": "Springs and extension", "goal": "Find extensions and spring constants and identify the limit of proportionality.", "atom_ids": ["0625-1.5-A27", "0625-1.5-A28", "0625-1.5-A29", "0625-1.5-A30", "0625-1.5-A31", "0625-1.5-A32", "0625-1.5-A33"], "paragraphs": ["P17", "P18"], "quizId": "0625_ch03_q05", "atoms": {"0625-1.5-A27": "Extension = loaded length - original length; it is extension, not length, that is proportional to load.", "0625-1.5-A28": "Load-extension experiment: clamp spring by a vertical rule, pointer at eye level, add known loads one at a time, record length, subtract original length, check return on unloading, plot load against extension.", "0625-1.5-A29": "Load-extension graph: straight line through the origin up to the limit of proportionality, then curving; a load-length graph does not pass through the origin.", "0625-1.5-A30": "Spring constant k = F/x, force per unit extension, in N/m or N/cm; it is the gradient of the straight part of the load-extension graph.", "0625-1.5-A31": "Use k: from two load-length points (difference of loads over difference of lengths), x = F/k, original length from one point, negative extension for compression.", "0625-1.5-A32": "A larger spring constant means a stiffer spring: smaller extension for the same load.", "0625-1.5-A33": "The limit of proportionality is the point beyond which extension is no longer proportional to load (the graph stops being straight); k = F/x applies only below it."}}, {"id": "t6", "order": 6, "title": "Momentum and impulse", "goal": "Use p = mv, impulse = FΔt and F = Δp/Δt, and conserve momentum in collisions and explosions.", "atom_ids": ["0625-1.6-A01", "0625-1.6-A02", "0625-1.6-A03", "0625-1.6-A04", "0625-1.6-A05", "0625-1.6-A06", "0625-1.6-A07", "0625-1.6-A08", "0625-1.6-A09", "0625-1.6-A10"], "paragraphs": ["P19", "P20", "P21", "P22"], "quizId": "0625_ch03_q06", "atoms": {"0625-1.6-A01": "Momentum p = mv (mass x velocity), unit kg m/s; it is a vector in the direction of the velocity.", "0625-1.6-A02": "F = ma rewritten: F = m(v - u)/t = (mv - mu)/t, so resultant force = change in momentum per unit time.", "0625-1.6-A03": "Resultant force F = Δp/Δt (change in momentum per unit time).", "0625-1.6-A04": "Impulse = force x time for which it acts = change in momentum: FΔt = Δ(mv); unit N s (= kg m/s).", "0625-1.6-A05": "Change of momentum with direction: fix a positive direction, Δp = m(v - u) with signs; on a rebound the speeds add; a reverse impulse first cancels the initial momentum.", "0625-1.6-A06": "Force from a momentum change: F = Δp/Δt, converting ms to s; or initial velocity from FΔt/m.", "0625-1.6-A07": "For a fixed change in momentum, a longer contact time gives a smaller force; the impulse itself is not reduced (airbags, crumple zones, bending knees, moving hands back, soft floors).", "0625-1.6-A08": "In an interaction the two objects receive equal and opposite impulses, so with no external resultant force the total momentum is conserved.", "0625-1.6-A09": "Conservation method: positive direction; total momentum before (with signs) = total after; solve for the unknown velocity or mass; the sign gives the direction.", "0625-1.6-A10": "Explosions and recoil from rest: total momentum stays zero, so the parts move apart with equal and opposite momenta."}}]}
 
1
+ {"chapterId": "0625_ch03", "subject": "Physics", "code": "0625", "chapter": "Forces and motion", "mixedQuizId": "0625_ch03_q07", "topics": [{"id": "t1", "order": 1, "title": "Mass, weight and g", "goal": "Tell mass from weight and use W = mg, on Earth and on other planets.", "atom_ids": ["0625-1.5-A01", "0625-1.3-A01", "0625-1.3-A02", "0625-1.3-A03", "0625-1.3-A04", "0625-1.3-A05", "0625-1.3-A06", "0625-1.3-A07", "0625-1.3-A08", "0625-1.3-A09", "0625-1.3-A10", "0625-1.3-A12"], "paragraphs": ["P1", "P2", "P3", "P5"], "quizId": "0625_ch03_q01", "atoms": {"0625-1.5-A01": "A force is a push or pull measured in newtons; it is a vector (size and direction).", "0625-1.3-A01": "Mass is a measure of the quantity of matter in an object; unit kg.", "0625-1.3-A02": "Mass does not change with location, shape, compression or heating.", "0625-1.3-A03": "Mass is also what resists a change in motion: the same force gives a smaller acceleration to a larger mass.", "0625-1.3-A04": "Weight is the gravitational force on an object that has mass; it is a force, in newtons, directed towards the centre of the Earth.", "0625-1.3-A05": "A gravitational field is a region in which a mass experiences a force; weight is the effect of a gravitational field on a mass.", "0625-1.3-A06": "Gravitational field strength is force per unit mass: g = W/m, unit N/kg.", "0625-1.3-A07": "g = 9.8 N/kg near the Earth's surface; other bodies have different values (Moon about 1.6, Mars about 3.7 N/kg), given in questions.", "0625-1.3-A08": "Calculate weight: W = mg (mass in kg).", "0625-1.3-A09": "Inverse and chained weight problems: m = W/g, then W' = m g' at another place.", "0625-1.3-A10": "For a fixed mass, weight is proportional to g: a larger g gives a larger weight, while mass stays the same.", "0625-1.3-A12": "A balance compares weights at the same place and hence masses (same reading on the Moon); a force meter measures one weight (reads less on the Moon)."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Resultant force and F = ma", "goal": "Combine forces into a resultant and use F = ma to predict how motion changes.", "atom_ids": ["0625-1.5-A02", "0625-1.5-A03", "0625-1.5-A04", "0625-1.5-A05", "0625-1.5-A06", "0625-1.5-A07", "0625-1.5-A08", "0625-1.5-A09", "0625-1.5-A10", "0625-1.5-A11", "0625-1.5-A12", "0625-1.5-A13"], "paragraphs": ["P6", "P7", "P8", "P9", "P10", "P11"], "quizId": "0625_ch03_q02", "atoms": {"0625-1.5-A02": "Resultant of forces along a line: choose a positive direction, add with signs, state the direction; zero resultant = equilibrium.", "0625-1.5-A03": "Resultant of two perpendicular forces: magnitude by Pythagoras, angle by tan, or a scale drawing from tail to tip; quote the angle from the stated reference.", "0625-1.5-A04": "Newton's first law: with no resultant force an object stays at rest or moves in a straight line at constant speed.", "0625-1.5-A05": "Constant velocity means the forces are balanced, not absent; an explanation names the opposing force and says it balances the forward force.", "0625-1.5-A06": "A resultant force changes velocity: it changes the speed, the direction of motion, or both.", "0625-1.5-A07": "Forces can change the size and shape of an object; they cannot change its mass.", "0625-1.5-A08": "F = ma: acceleration is proportional to resultant force and inversely proportional to mass; 1 N gives 1 kg an acceleration of 1 m/s².", "0625-1.5-A09": "The acceleration is in the same direction as the resultant force, not necessarily the direction of motion.", "0625-1.5-A10": "Forces-to-motion method: draw the forces, find the resultant (including weight for vertical motion), then a = F/m.", "0625-1.5-A11": "Chain F = ma with a = Δv/Δt and the speed-time graph (gradient = a, area = distance), in either direction.", "0625-1.5-A12": "Speed-time graph: gradient is acceleration (tangent on a curve); zero gradient = zero acceleration; falling gradient = decreasing acceleration; negative gradient = deceleration.", "0625-1.5-A13": "Qualitatively, the same force changes the motion of a smaller mass more; an extra opposing force lowers the resultant and the acceleration."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Friction, drag and falling", "goal": "Explain how friction and drag act and describe a fall up to terminal velocity.", "atom_ids": ["0625-1.3-A11", "0625-1.3-A13", "0625-1.5-A14", "0625-1.5-A15", "0625-1.5-A16", "0625-1.5-A17", "0625-1.5-A18", "0625-1.5-A19", "0625-1.5-A20", "0625-1.5-A21", "0625-1.5-A22", "0625-1.5-A23"], "paragraphs": ["P4", "P12", "P13", "P14", "P15"], "quizId": "0625_ch03_q03", "atoms": {"0625-1.3-A11": "g is equal to the acceleration of free fall: with weight the only force, a = mg/m = g for every mass; 1 N/kg = 1 m/s². A larger g means faster falling.", "0625-1.3-A13": "When a supporting force balances the weight (terminal velocity, hanging load, maximum lift), weight = that force, so m = F/g.", "0625-1.5-A14": "Solid friction acts between surfaces in contact, opposes their relative (or attempted) motion and produces heating.", "0625-1.5-A15": "Friction provides grip for driving, braking and turning; less friction (wet road) means a longer braking distance; friction can push an object forward (book on an accelerating train).", "0625-1.5-A16": "Drag is friction on an object moving through a liquid or a gas (air resistance); it opposes the motion.", "0625-1.5-A17": "Drag increases as speed increases (and with frontal area) and is zero at rest.", "0625-1.5-A18": "A driving force must exceed ma: part of it only balances friction and drag; the rest is the resultant.", "0625-1.5-A19": "Falling with no air resistance: the only force is weight, so the acceleration is constant at g for every mass; the speed-time graph is straight.", "0625-1.5-A20": "Falling with drag, in order: at release drag is zero so a = g; drag rises with speed; resultant (weight - drag) and acceleration fall; when drag = weight, resultant is zero and velocity is constant (terminal velocity).", "0625-1.5-A21": "At terminal velocity drag equals weight, the resultant force is zero and the acceleration is zero.", "0625-1.5-A22": "Speed-time graph of a fall with drag: initial gradient 9.8 m/s², gradient decreasing smoothly to zero, then horizontal.", "0625-1.5-A23": "Opening a parachute makes drag exceed weight: the resultant is upward, the object decelerates, drag falls with speed, and a lower terminal velocity is reached."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Motion in a circle", "goal": "Explain why motion in a circle at constant speed needs a force towards the centre.", "atom_ids": ["0625-1.5-A24", "0625-1.5-A25", "0625-1.5-A26"], "paragraphs": ["P16"], "quizId": "0625_ch03_q04", "atoms": {"0625-1.5-A24": "Motion in a circle at constant speed is accelerated motion because the direction of velocity changes, so a resultant force must act.", "0625-1.5-A25": "The resultant force on an object moving in a circle is perpendicular to its motion, towards the centre; friction, tension or gravity supplies it.", "0625-1.5-A26": "Circular motion, qualitatively: larger force -> higher speed (m, r fixed); larger force -> smaller radius (m, v fixed); larger mass needs larger force (v, r fixed); too little friction -> the object slides off."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Springs and extension", "goal": "Find extensions and spring constants and identify the limit of proportionality.", "atom_ids": ["0625-1.5-A27", "0625-1.5-A28", "0625-1.5-A29", "0625-1.5-A30", "0625-1.5-A31", "0625-1.5-A32", "0625-1.5-A33"], "paragraphs": ["P17", "P18"], "quizId": "0625_ch03_q05", "atoms": {"0625-1.5-A27": "Extension = loaded length - original length; it is extension, not length, that is proportional to load.", "0625-1.5-A28": "Load-extension experiment: clamp spring by a vertical rule, pointer at eye level, add known loads one at a time, record length, subtract original length, check return on unloading, plot load against extension.", "0625-1.5-A29": "Load-extension graph: straight line through the origin up to the limit of proportionality, then curving; a load-length graph does not pass through the origin.", "0625-1.5-A30": "Spring constant k = F/x, force per unit extension, in N/m or N/cm; it is the gradient of the straight part of the load-extension graph.", "0625-1.5-A31": "Use k: from two load-length points (difference of loads over difference of lengths), x = F/k, original length from one point, negative extension for compression.", "0625-1.5-A32": "A larger spring constant means a stiffer spring: smaller extension for the same load.", "0625-1.5-A33": "The limit of proportionality is the point beyond which extension is no longer proportional to load (the graph stops being straight); k = F/x applies only below it."}, "chunks": []}, {"id": "t6", "order": 6, "title": "Momentum and impulse", "goal": "Use p = mv, impulse = FΔt and F = Δp/Δt, and conserve momentum in collisions and explosions.", "atom_ids": ["0625-1.6-A01", "0625-1.6-A02", "0625-1.6-A03", "0625-1.6-A04", "0625-1.6-A05", "0625-1.6-A06", "0625-1.6-A07", "0625-1.6-A08", "0625-1.6-A09", "0625-1.6-A10"], "paragraphs": ["P19", "P20", "P21", "P22"], "quizId": "0625_ch03_q06", "atoms": {"0625-1.6-A01": "Momentum p = mv (mass x velocity), unit kg m/s; it is a vector in the direction of the velocity.", "0625-1.6-A02": "F = ma rewritten: F = m(v - u)/t = (mv - mu)/t, so resultant force = change in momentum per unit time.", "0625-1.6-A03": "Resultant force F = Δp/Δt (change in momentum per unit time).", "0625-1.6-A04": "Impulse = force x time for which it acts = change in momentum: FΔt = Δ(mv); unit N s (= kg m/s).", "0625-1.6-A05": "Change of momentum with direction: fix a positive direction, Δp = m(v - u) with signs; on a rebound the speeds add; a reverse impulse first cancels the initial momentum.", "0625-1.6-A06": "Force from a momentum change: F = Δp/Δt, converting ms to s; or initial velocity from FΔt/m.", "0625-1.6-A07": "For a fixed change in momentum, a longer contact time gives a smaller force; the impulse itself is not reduced (airbags, crumple zones, bending knees, moving hands back, soft floors).", "0625-1.6-A08": "In an interaction the two objects receive equal and opposite impulses, so with no external resultant force the total momentum is conserved.", "0625-1.6-A09": "Conservation method: positive direction; total momentum before (with signs) = total after; solve for the unknown velocity or mass; the sign gives the direction.", "0625-1.6-A10": "Explosions and recoil from rest: total momentum stays zero, so the parts move apart with equal and opposite momenta."}, "chunks": []}]}
data/topics/0625_energy_work_power.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0625_energy_work_power", "subject": "Physics", "code": "0625", "chapter": "Energy, work and power", "mixedQuizId": "0625_energy_work_power_q06", "topics": [{"id": "t1", "order": 1, "title": "Energy stores and transfers", "goal": "Name energy stores and transfers, apply conservation of energy and read Sankey diagrams.", "atom_ids": ["0625-1.7-A01", "0625-1.7-A02", "0625-1.7-A03", "0625-1.7-A04", "0625-1.7-A05", "0625-1.7-A06", "0625-1.7-A07", "0625-1.7-A08", "0625-1.7-A09", "0625-1.7-A10", "0625-1.7-A11", "0625-1.7-A12", "0625-1.7-A13", "0625-1.7-A14"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P8"], "quizId": "0625_energy_work_power_q01", "atoms": {"0625-1.7-A01": "Energy is a quantity that is stored and transferred but never created or destroyed; its unit is the joule (J).", "0625-1.7-A02": "Energy may be stored as kinetic, gravitational potential, chemical, elastic (strain), nuclear, electrostatic and internal (thermal).", "0625-1.7-A03": "What fills each store: kinetic - mass and speed; gravitational potential - height in a field; chemical - fuels, food, batteries; elastic - stretched or squashed objects; nuclear - nuclei; electrostatic - charges; internal - particle energy (hotter = more).", "0625-1.7-A04": "There is no electrical store and no light store: electric currents and waves transfer energy, they do not hold it.", "0625-1.7-A05": "Energy is transferred between stores by mechanical work (forces), electrical work (currents), heating, and waves (electromagnetic and sound).", "0625-1.7-A06": "Describe an event as start store -> pathway -> end store(s), naming every store in order and ending with the internal (thermal) store of the surroundings when energy is dissipated.", "0625-1.7-A07": "Principle of conservation of energy: energy cannot be created or destroyed, only transferred from one store to another, so the total stays constant.", "0625-1.7-A08": "'Wasted' or 'lost' energy is dissipated: friction, air resistance and resistance transfer it by heating to the internal stores of the device and surroundings, where it spreads out and is no longer useful.", "0625-1.7-A09": "A bouncing ball rises less each bounce and a dropped ball that does not bounce ends with its energy in internal stores (and sound), because energy is dissipated at each impact and by air resistance.", "0625-1.7-A10": "A simple energy flow diagram shows stores as boxes and transfers as labelled arrows.", "0625-1.7-A11": "A Sankey diagram draws the input as an arrow whose width is proportional to energy (or power); useful output continues, wasted outputs branch away, and output widths add to the input width.", "0625-1.7-A12": "In multi-stage examples (Sankey, power station losses) useful output = input - every wasted output; read widths x scale.", "0625-1.7-A13": "In oscillations and rides energy passes back and forth between kinetic, gravitational potential and elastic stores; at a turning point the object is momentarily still (kinetic store zero).", "0625-1.7-A14": "An object on an elliptical orbit moves fastest nearest the Sun, where its gravitational potential store is smallest and kinetic store largest; the total stays constant."}}, {"id": "t2", "order": 2, "title": "Kinetic and potential energy", "goal": "Calculate kinetic and gravitational potential energy and link them when objects rise and fall.", "atom_ids": ["0625-1.7-A15", "0625-1.7-A16", "0625-1.7-A17", "0625-1.7-A18", "0625-1.7-A19", "0625-1.7-A20", "0625-1.7-A21", "0625-1.7-A22", "0625-1.7-A23", "0625-1.7-A24"], "paragraphs": ["P6", "P7", "P8"], "quizId": "0625_energy_work_power_q02", "atoms": {"0625-1.7-A15": "Kinetic energy Ek = 1/2 mv^2, with m in kg, v in m/s and Ek in J.", "0625-1.7-A16": "Kinetic energy is proportional to mass and to the square of speed: doubling the speed multiplies Ek by four.", "0625-1.7-A17": "Calculate Ek: convert g to kg, square the speed, then halve the product of mass and speed squared.", "0625-1.7-A18": "Rearrange Ek = 1/2 mv^2 for speed v = sqrt(2Ek/m) or mass m = 2Ek/v^2.", "0625-1.7-A19": "Change in gravitational potential energy dEp = mg dh, with g = 9.8 N/kg and dh the change in vertical height.", "0625-1.7-A20": "Only the vertical height change counts in dEp, not the distance along a slope or path.", "0625-1.7-A21": "Gravitational potential energy is measured from a chosen reference level; only its changes matter.", "0625-1.7-A22": "Calculate dEp and rearrange it for height dh = dEp/(mg) or mass.", "0625-1.7-A23": "Free fall with no air resistance: GPE lost = KE gained, mg dh = 1/2 mv^2, so v = sqrt(2g dh) and h = v^2/(2g); the mass cancels.", "0625-1.7-A24": "With friction or air resistance: KE gained = GPE lost - work done against friction (or air resistance)."}}, {"id": "t3", "order": 3, "title": "Work and power", "goal": "Use W = Fd = ΔE and P = W/t to find work, force, distance, power and time.", "atom_ids": ["0625-1.7-A25", "0625-1.7-A26", "0625-1.7-A27", "0625-1.7-A28", "0625-1.7-A29", "0625-1.7-A30", "0625-1.7-A31", "0625-1.7-A32", "0625-1.7-A33", "0625-1.7-A34", "0625-1.7-A35"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0625_energy_work_power_q03", "atoms": {"0625-1.7-A25": "Mechanical or electrical work done equals the energy transferred.", "0625-1.7-A26": "W = Fd = dE: work (J) = force (N) x distance moved in the direction of the force (m); 1 J = 1 N m.", "0625-1.7-A27": "The distance in W = Fd is measured along the force: a rope pulling along a slope does F x (distance along the slope); lifting steadily needs F = mg, so W = mg dh.", "0625-1.7-A28": "Use W = Fd = dE to find a force or distance from an energy change: braking force F = Ek/d, stopping distance d = Ek/F.", "0625-1.7-A29": "For the same braking force the braking distance is proportional to the kinetic energy, so doubling speed makes it four times longer.", "0625-1.7-A30": "Work done against friction or drag transfers energy to internal stores (heating), e.g. hot brakes, an arrow slowing in air.", "0625-1.7-A31": "Power is work done per unit time and energy transferred per unit time: P = W/t = dE/t; unit watt (W) = J/s.", "0625-1.7-A32": "Calculate power, energy (E = Pt) or time (t = E/P) with time in seconds and kW or MW converted to W.", "0625-1.7-A33": "A power rating says how much energy is transferred each second (900 W = 900 J every second); a large power does not mean a large force or a high speed.", "0625-1.7-A34": "Useful power climbing stairs or lifting: P = mg dh / t; the same work in less time needs more power.", "0625-1.7-A35": "Energy in kilowatt-hours = power in kW x time in h (bridge to 4.2.5)."}}, {"id": "t4", "order": 4, "title": "Efficiency", "goal": "Explain efficiency and calculate it, or the input or useful output, from energies and powers.", "atom_ids": ["0625-1.7-A36", "0625-1.7-A37", "0625-1.7-A38", "0625-1.7-A39", "0625-1.7-A40", "0625-1.7-A41", "0625-1.7-A42"], "paragraphs": ["P5", "P13", "P14"], "quizId": "0625_energy_work_power_q04", "atoms": {"0625-1.7-A36": "Efficiency describes how much of the input energy is transferred usefully; an efficient device wastes little of the energy supplied (not: uses little energy, or has high power).", "0625-1.7-A37": "No device can have an efficiency above 100% (or 1), because energy cannot be created; real devices are below 100%.", "0625-1.7-A38": "When a measured efficiency is lower than expected, name where the extra wasted energy goes (air, container, wires, bearings, sound).", "0625-1.7-A39": "(%) efficiency = useful energy output / total energy input (x 100%) = useful power output / total power input (x 100%); no unit.", "0625-1.7-A40": "Calculate efficiency from useful and total energy or power, as a decimal or a percentage.", "0625-1.7-A41": "Rearrange: useful output = efficiency x input; input = useful output / efficiency.", "0625-1.7-A42": "Find the hidden energy first (mgh, 1/2 mv^2, Pt, or useful = input - wasted), then the efficiency."}}, {"id": "t5", "order": 5, "title": "Energy resources", "goal": "Describe how each energy resource gives useful energy, compare them, and trace them to the Sun.", "atom_ids": ["0625-1.7-A43", "0625-1.7-A44", "0625-1.7-A45", "0625-1.7-A46", "0625-1.7-A47", "0625-1.7-A48", "0625-1.7-A49", "0625-1.7-A50", "0625-1.7-A51", "0625-1.7-A52", "0625-1.7-A53", "0625-1.7-A54", "0625-1.7-A55", "0625-1.7-A56", "0625-1.7-A57"], "paragraphs": ["P15", "P16", "P17", "P18", "P19"], "quizId": "0625_energy_work_power_q05", "atoms": {"0625-1.7-A43": "Thermal power stations: energy source heats water in a boiler -> high-pressure steam -> turns a turbine -> turbine drives a generator (electrical work).", "0625-1.7-A44": "Fossil fuels (coal, oil, gas) are chemical stores burned in the boiler: reliable and large-scale, but non-renewable and they release carbon dioxide and pollutants.", "0625-1.7-A45": "Biofuels (wood, ethanol, biogas) are chemical stores from recently grown plants: renewable, but they need land and still release carbon dioxide when burned.", "0625-1.7-A46": "Nuclear fuel (uranium) releases energy by fission in a reactor, heating water for the turbine-generator chain: a small mass of fuel gives a lot of energy with no CO2, but it is non-renewable, the waste is radioactive and hard to store, and building and decommissioning cost a lot.", "0625-1.7-A47": "Hydroelectric: water held behind a dam in a gravitational potential store flows down, gains kinetic energy and turns turbines driving generators.", "0625-1.7-A48": "Tidal schemes trap and release water through turbines (tides caused mainly by the Moon's gravity); wave machines use the up-and-down motion of the sea surface driven by wind.", "0625-1.7-A49": "Geothermal: water pumped down to hot rocks returns as steam or hot water to drive a turbine or heat buildings.", "0625-1.7-A50": "Solar cells transfer energy from light directly by electrical work (no turbine); solar panels absorb the Sun's infrared radiation to heat water; wind turbines take energy from the kinetic store of moving air.", "0625-1.7-A51": "Compare resources by renewability, availability (site needed), reliability (on demand, predictable or weather-dependent), scale (output per site) and environmental impact, with specific statements.", "0625-1.7-A52": "Renewable resources are replaced naturally and will not run out: biofuels, hydroelectric, tides, waves, wind, geothermal, solar; fossil and nuclear fuels are non-renewable.", "0625-1.7-A53": "Tides are predictable, so tidal power is more reliable than wind, waves or solar, which depend on weather and daylight (solar needs storage for night).", "0625-1.7-A54": "Radiation from the Sun is the main source of energy for all our energy resources except geothermal, nuclear and tidal.", "0625-1.7-A55": "Sun-derived chains: photosynthesis stores sunlight in plants (biofuels now, fossil fuels long ago); uneven heating makes wind, wind makes waves; evaporation and rain fill reservoirs for hydroelectricity.", "0625-1.7-A56": "The Sun releases energy by nuclear fusion: hydrogen nuclei join to form helium nuclei in its hot, dense core.", "0625-1.7-A57": "Research aims to use fusion to generate electricity on a large scale; it is difficult because positively charged nuclei repel, so very high temperatures and densities are needed."}}]}
 
1
+ {"chapterId": "0625_energy_work_power", "subject": "Physics", "code": "0625", "chapter": "Energy, work and power", "mixedQuizId": "0625_energy_work_power_q06", "topics": [{"id": "t1", "order": 1, "title": "Energy stores and transfers", "goal": "Name energy stores and transfers, apply conservation of energy and read Sankey diagrams.", "atom_ids": ["0625-1.7-A01", "0625-1.7-A02", "0625-1.7-A03", "0625-1.7-A04", "0625-1.7-A05", "0625-1.7-A06", "0625-1.7-A07", "0625-1.7-A08", "0625-1.7-A09", "0625-1.7-A10", "0625-1.7-A11", "0625-1.7-A12", "0625-1.7-A13", "0625-1.7-A14"], "paragraphs": ["P1", "P2", "P3", "P4", "P5", "P8"], "quizId": "0625_energy_work_power_q01", "atoms": {"0625-1.7-A01": "Energy is a quantity that is stored and transferred but never created or destroyed; its unit is the joule (J).", "0625-1.7-A02": "Energy may be stored as kinetic, gravitational potential, chemical, elastic (strain), nuclear, electrostatic and internal (thermal).", "0625-1.7-A03": "What fills each store: kinetic - mass and speed; gravitational potential - height in a field; chemical - fuels, food, batteries; elastic - stretched or squashed objects; nuclear - nuclei; electrostatic - charges; internal - particle energy (hotter = more).", "0625-1.7-A04": "There is no electrical store and no light store: electric currents and waves transfer energy, they do not hold it.", "0625-1.7-A05": "Energy is transferred between stores by mechanical work (forces), electrical work (currents), heating, and waves (electromagnetic and sound).", "0625-1.7-A06": "Describe an event as start store -> pathway -> end store(s), naming every store in order and ending with the internal (thermal) store of the surroundings when energy is dissipated.", "0625-1.7-A07": "Principle of conservation of energy: energy cannot be created or destroyed, only transferred from one store to another, so the total stays constant.", "0625-1.7-A08": "'Wasted' or 'lost' energy is dissipated: friction, air resistance and resistance transfer it by heating to the internal stores of the device and surroundings, where it spreads out and is no longer useful.", "0625-1.7-A09": "A bouncing ball rises less each bounce and a dropped ball that does not bounce ends with its energy in internal stores (and sound), because energy is dissipated at each impact and by air resistance.", "0625-1.7-A10": "A simple energy flow diagram shows stores as boxes and transfers as labelled arrows.", "0625-1.7-A11": "A Sankey diagram draws the input as an arrow whose width is proportional to energy (or power); useful output continues, wasted outputs branch away, and output widths add to the input width.", "0625-1.7-A12": "In multi-stage examples (Sankey, power station losses) useful output = input - every wasted output; read widths x scale.", "0625-1.7-A13": "In oscillations and rides energy passes back and forth between kinetic, gravitational potential and elastic stores; at a turning point the object is momentarily still (kinetic store zero).", "0625-1.7-A14": "An object on an elliptical orbit moves fastest nearest the Sun, where its gravitational potential store is smallest and kinetic store largest; the total stays constant."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Kinetic and potential energy", "goal": "Calculate kinetic and gravitational potential energy and link them when objects rise and fall.", "atom_ids": ["0625-1.7-A15", "0625-1.7-A16", "0625-1.7-A17", "0625-1.7-A18", "0625-1.7-A19", "0625-1.7-A20", "0625-1.7-A21", "0625-1.7-A22", "0625-1.7-A23", "0625-1.7-A24"], "paragraphs": ["P6", "P7", "P8"], "quizId": "0625_energy_work_power_q02", "atoms": {"0625-1.7-A15": "Kinetic energy Ek = 1/2 mv^2, with m in kg, v in m/s and Ek in J.", "0625-1.7-A16": "Kinetic energy is proportional to mass and to the square of speed: doubling the speed multiplies Ek by four.", "0625-1.7-A17": "Calculate Ek: convert g to kg, square the speed, then halve the product of mass and speed squared.", "0625-1.7-A18": "Rearrange Ek = 1/2 mv^2 for speed v = sqrt(2Ek/m) or mass m = 2Ek/v^2.", "0625-1.7-A19": "Change in gravitational potential energy dEp = mg dh, with g = 9.8 N/kg and dh the change in vertical height.", "0625-1.7-A20": "Only the vertical height change counts in dEp, not the distance along a slope or path.", "0625-1.7-A21": "Gravitational potential energy is measured from a chosen reference level; only its changes matter.", "0625-1.7-A22": "Calculate dEp and rearrange it for height dh = dEp/(mg) or mass.", "0625-1.7-A23": "Free fall with no air resistance: GPE lost = KE gained, mg dh = 1/2 mv^2, so v = sqrt(2g dh) and h = v^2/(2g); the mass cancels.", "0625-1.7-A24": "With friction or air resistance: KE gained = GPE lost - work done against friction (or air resistance)."}, "chunks": []}, {"id": "t3", "order": 3, "title": "Work and power", "goal": "Use W = Fd = ΔE and P = W/t to find work, force, distance, power and time.", "atom_ids": ["0625-1.7-A25", "0625-1.7-A26", "0625-1.7-A27", "0625-1.7-A28", "0625-1.7-A29", "0625-1.7-A30", "0625-1.7-A31", "0625-1.7-A32", "0625-1.7-A33", "0625-1.7-A34", "0625-1.7-A35"], "paragraphs": ["P9", "P10", "P11", "P12"], "quizId": "0625_energy_work_power_q03", "atoms": {"0625-1.7-A25": "Mechanical or electrical work done equals the energy transferred.", "0625-1.7-A26": "W = Fd = dE: work (J) = force (N) x distance moved in the direction of the force (m); 1 J = 1 N m.", "0625-1.7-A27": "The distance in W = Fd is measured along the force: a rope pulling along a slope does F x (distance along the slope); lifting steadily needs F = mg, so W = mg dh.", "0625-1.7-A28": "Use W = Fd = dE to find a force or distance from an energy change: braking force F = Ek/d, stopping distance d = Ek/F.", "0625-1.7-A29": "For the same braking force the braking distance is proportional to the kinetic energy, so doubling speed makes it four times longer.", "0625-1.7-A30": "Work done against friction or drag transfers energy to internal stores (heating), e.g. hot brakes, an arrow slowing in air.", "0625-1.7-A31": "Power is work done per unit time and energy transferred per unit time: P = W/t = dE/t; unit watt (W) = J/s.", "0625-1.7-A32": "Calculate power, energy (E = Pt) or time (t = E/P) with time in seconds and kW or MW converted to W.", "0625-1.7-A33": "A power rating says how much energy is transferred each second (900 W = 900 J every second); a large power does not mean a large force or a high speed.", "0625-1.7-A34": "Useful power climbing stairs or lifting: P = mg dh / t; the same work in less time needs more power.", "0625-1.7-A35": "Energy in kilowatt-hours = power in kW x time in h (bridge to 4.2.5)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Efficiency", "goal": "Explain efficiency and calculate it, or the input or useful output, from energies and powers.", "atom_ids": ["0625-1.7-A36", "0625-1.7-A37", "0625-1.7-A38", "0625-1.7-A39", "0625-1.7-A40", "0625-1.7-A41", "0625-1.7-A42"], "paragraphs": ["P5", "P13", "P14"], "quizId": "0625_energy_work_power_q04", "atoms": {"0625-1.7-A36": "Efficiency describes how much of the input energy is transferred usefully; an efficient device wastes little of the energy supplied (not: uses little energy, or has high power).", "0625-1.7-A37": "No device can have an efficiency above 100% (or 1), because energy cannot be created; real devices are below 100%.", "0625-1.7-A38": "When a measured efficiency is lower than expected, name where the extra wasted energy goes (air, container, wires, bearings, sound).", "0625-1.7-A39": "(%) efficiency = useful energy output / total energy input (x 100%) = useful power output / total power input (x 100%); no unit.", "0625-1.7-A40": "Calculate efficiency from useful and total energy or power, as a decimal or a percentage.", "0625-1.7-A41": "Rearrange: useful output = efficiency x input; input = useful output / efficiency.", "0625-1.7-A42": "Find the hidden energy first (mgh, 1/2 mv^2, Pt, or useful = input - wasted), then the efficiency."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Energy resources", "goal": "Describe how each energy resource gives useful energy, compare them, and trace them to the Sun.", "atom_ids": ["0625-1.7-A43", "0625-1.7-A44", "0625-1.7-A45", "0625-1.7-A46", "0625-1.7-A47", "0625-1.7-A48", "0625-1.7-A49", "0625-1.7-A50", "0625-1.7-A51", "0625-1.7-A52", "0625-1.7-A53", "0625-1.7-A54", "0625-1.7-A55", "0625-1.7-A56", "0625-1.7-A57"], "paragraphs": ["P15", "P16", "P17", "P18", "P19"], "quizId": "0625_energy_work_power_q05", "atoms": {"0625-1.7-A43": "Thermal power stations: energy source heats water in a boiler -> high-pressure steam -> turns a turbine -> turbine drives a generator (electrical work).", "0625-1.7-A44": "Fossil fuels (coal, oil, gas) are chemical stores burned in the boiler: reliable and large-scale, but non-renewable and they release carbon dioxide and pollutants.", "0625-1.7-A45": "Biofuels (wood, ethanol, biogas) are chemical stores from recently grown plants: renewable, but they need land and still release carbon dioxide when burned.", "0625-1.7-A46": "Nuclear fuel (uranium) releases energy by fission in a reactor, heating water for the turbine-generator chain: a small mass of fuel gives a lot of energy with no CO2, but it is non-renewable, the waste is radioactive and hard to store, and building and decommissioning cost a lot.", "0625-1.7-A47": "Hydroelectric: water held behind a dam in a gravitational potential store flows down, gains kinetic energy and turns turbines driving generators.", "0625-1.7-A48": "Tidal schemes trap and release water through turbines (tides caused mainly by the Moon's gravity); wave machines use the up-and-down motion of the sea surface driven by wind.", "0625-1.7-A49": "Geothermal: water pumped down to hot rocks returns as steam or hot water to drive a turbine or heat buildings.", "0625-1.7-A50": "Solar cells transfer energy from light directly by electrical work (no turbine); solar panels absorb the Sun's infrared radiation to heat water; wind turbines take energy from the kinetic store of moving air.", "0625-1.7-A51": "Compare resources by renewability, availability (site needed), reliability (on demand, predictable or weather-dependent), scale (output per site) and environmental impact, with specific statements.", "0625-1.7-A52": "Renewable resources are replaced naturally and will not run out: biofuels, hydroelectric, tides, waves, wind, geothermal, solar; fossil and nuclear fuels are non-renewable.", "0625-1.7-A53": "Tides are predictable, so tidal power is more reliable than wind, waves or solar, which depend on weather and daylight (solar needs storage for night).", "0625-1.7-A54": "Radiation from the Sun is the main source of energy for all our energy resources except geothermal, nuclear and tidal.", "0625-1.7-A55": "Sun-derived chains: photosynthesis stores sunlight in plants (biofuels now, fossil fuels long ago); uneven heating makes wind, wind makes waves; evaporation and rain fill reservoirs for hydroelectricity.", "0625-1.7-A56": "The Sun releases energy by nuclear fusion: hydrogen nuclei join to form helium nuclei in its hot, dense core.", "0625-1.7-A57": "Research aims to use fusion to generate electricity on a large scale; it is difficult because positively charged nuclei repel, so very high temperatures and densities are needed."}, "chunks": []}]}
data/topics/0625_waves.json CHANGED
@@ -1 +1 @@
1
- {"chapterId": "0625_waves", "subject": "Physics", "code": "0625", "chapter": "General properties of waves", "mixedQuizId": "0625_waves_q06", "topics": [{"id": "t1", "order": 1, "title": "Waves and their two types", "goal": "Explain how waves carry energy and sort waves into transverse and longitudinal.", "atom_ids": ["0625-3.1-A01", "0625-3.1-A02", "0625-3.1-A03", "0625-3.1-A04", "0625-3.1-A05", "0625-3.1-A06", "0625-3.1-A07", "0625-3.1-A08", "0625-3.1-A09", "0625-3.1-A10"], "paragraphs": ["P1", "P2", "P3", "P4", "P5"], "quizId": "0625_waves_q01", "atoms": {"0625-3.1-A01": "Waves transfer energy from one place to another without transferring matter.", "0625-3.1-A02": "As a wave passes, each part of the medium vibrates about a fixed position and passes the disturbance on to its neighbour; the pattern travels, the medium does not.", "0625-3.1-A03": "A rope moved sideways at one end carries a transverse wave along it; a slinky spring pushed and pulled along its length carries a longitudinal wave (bunched coils travel along).", "0625-3.1-A04": "A cork or float on water moves up and down as transverse water waves pass; it is not carried along with the waves.", "0625-3.1-A05": "In a transverse wave the vibrations are at right angles (perpendicular) to the direction of propagation; it has crests (peaks) and troughs.", "0625-3.1-A06": "Electromagnetic radiation (light, radio, X-rays...), water waves and seismic S-waves can be modelled as transverse.", "0625-3.1-A07": "In a longitudinal wave the vibrations are parallel to the direction of propagation; it has compressions (particles closer, higher pressure) and rarefactions (particles further apart, lower pressure).", "0625-3.1-A08": "Sound (including ultrasound) and seismic P-waves can be modelled as longitudinal.", "0625-3.1-A09": "Electromagnetic waves need no medium (they cross a vacuum); longitudinal waves such as sound need a medium of particles.", "0625-3.1-A10": "To describe or contrast the two types, name both directions: the direction of vibration compared with the direction of propagation (travel / energy transfer); 'up and down' or 'side to side' alone is not enough."}}, {"id": "t2", "order": 2, "title": "Describing a wave", "goal": "Read amplitude, wavelength and frequency from wave pictures, graphs and counts.", "atom_ids": ["0625-3.1-A11", "0625-3.1-A12", "0625-3.1-A13", "0625-3.1-A14", "0625-3.1-A15", "0625-3.1-A16", "0625-3.1-A17", "0625-3.1-A18", "0625-3.1-A19", "0625-3.1-A20", "0625-3.1-A21"], "paragraphs": ["P6", "P7", "P8", "P9", "P10"], "quizId": "0625_waves_q02", "atoms": {"0625-3.1-A11": "A displacement-distance graph is a snapshot of the whole wave at one instant; a displacement-time graph follows one point of the medium over time. Read the horizontal axis first.", "0625-3.1-A12": "Amplitude is the maximum displacement of a point from its undisturbed (rest) position: centre line to crest, half the crest-to-trough height.", "0625-3.1-A13": "A larger amplitude means larger vibrations and more energy carried by the wave.", "0625-3.1-A14": "Wavelength is the distance between a point on a wave and the nearest point doing exactly the same thing (crest to next crest, trough to trough, compression to compression); a length, in m.", "0625-3.1-A15": "Counting wavelengths: n successive crests (or wavefronts) span n - 1 wavelengths; a crest and the next trough, or a compression and the nearest rarefaction, are half a wavelength apart.", "0625-3.1-A16": "Frequency is the number of complete waves passing a point (or produced by the source) per second; unit hertz (Hz); 1 kHz = 10³ Hz, 1 MHz = 10⁶ Hz, 1 GHz = 10⁹ Hz.", "0625-3.1-A17": "Find the frequency from a count: f = number of waves ÷ time taken; the period T = 1/f is the time for one wave (gap between crests on a displacement-time graph); more cycles in the same time = higher frequency.", "0625-3.1-A18": "Wavelength can be read only from a displacement-distance graph; frequency (via the period) only from a displacement-time graph.", "0625-3.1-A19": "A wavefront is a line joining points of a wave that are in step (e.g. along one crest); neighbouring wavefronts are one wavelength apart and the wave travels at right angles to its wavefronts; a straight source makes plane wavefronts, a point source circular ones.", "0625-3.1-A20": "Wave speed is the distance travelled by a crest or wavefront per unit time, in m/s; it is set by the medium, not by the amplitude or how hard the source vibrates.", "0625-3.1-A21": "Units: amplitude and wavelength in m (lengths), frequency in Hz, wave speed in m/s; only amplitude and wavelength share a unit."}}, {"id": "t3", "order": 3, "title": "The wave equation v = fλ", "goal": "Use v = fλ with correct units and predict how frequency and wavelength change.", "atom_ids": ["0625-3.1-A22", "0625-3.1-A23", "0625-3.1-A24", "0625-3.1-A25", "0625-3.1-A26", "0625-3.1-A27"], "paragraphs": ["P11", "P12", "P13"], "quizId": "0625_waves_q03", "atoms": {"0625-3.1-A22": "v = fλ: wave speed (m/s) = frequency (Hz) × wavelength (m), because f waves each λ long pass a point every second.", "0625-3.1-A23": "Rearrange v = fλ as f = v/λ or λ = v/f; write the equation before the numbers; check the units (m/s ÷ Hz = m); give the answer to 2 s.f. with a unit (wavelength in m, never 'λ').", "0625-3.1-A24": "Convert to SI before substituting: km to m (× 1000), cm to m (÷ 100), nm to m (× 10⁻⁹), kHz/MHz/GHz to Hz (× 10³/10⁶/10⁹).", "0625-3.1-A25": "In one medium the speed is fixed, so frequency and wavelength are inversely proportional: doubling f halves λ; a lower-frequency source makes longer waves.", "0625-3.1-A26": "The source sets the frequency, so when a wave enters a different medium its frequency stays the same; the speed changes and the wavelength changes in proportion to it.", "0625-3.1-A27": "Chain v = fλ with other data: f from a count in a time, v from distance ÷ time, λ from a measured distance across several waves; then solve for the unknown (including time for n oscillations = n/f)."}}, {"id": "t4", "order": 4, "title": "Reflection and refraction", "goal": "Describe how water waves reflect and refract and how a ripple tank shows this.", "atom_ids": ["0625-3.1-A28", "0625-3.1-A29", "0625-3.1-A30", "0625-3.1-A31", "0625-3.1-A32", "0625-3.1-A33", "0625-3.1-A34", "0625-3.1-A35", "0625-3.1-A36", "0625-3.1-A37"], "paragraphs": ["P14", "P15", "P16", "P17"], "quizId": "0625_waves_q04", "atoms": {"0625-3.1-A28": "Waves can be reflected at a plane surface, refracted when their speed changes, and diffracted at a narrow gap or an edge; do not confuse these with rarefaction or dispersion.", "0625-3.1-A29": "Ripple tank: shallow tray of water with a transparent base; a lamp above projects the waves onto a screen below (crests show as bright lines); a vibrating straight bar makes plane waves, a ball dipper circular ones; the motor sets the frequency.", "0625-3.1-A30": "In a ripple tank, measure the wavelength across several wavefronts (e.g. ten) and divide by the number of gaps; find the frequency by counting waves passing a point in a measured time (or with a stroboscope).", "0625-3.1-A31": "Ripple-tank set-ups: a straight barrier shows reflection; a glass or plastic plate (shallower water) shows refraction; a gap between two barriers shows diffraction at a gap; the end of one barrier shows diffraction at an edge.", "0625-3.1-A32": "Reflection at a plane surface: the waves leave at the same angle to the normal as they arrive (angle of incidence = angle of reflection); waves arriving head-on return along the same line.", "0625-3.1-A33": "Reflection changes only the direction of travel: speed, frequency and wavelength are unchanged (same medium, same source).", "0625-3.1-A34": "Water waves travel more slowly in shallower water; with the frequency unchanged their wavelength is shorter there (wavefronts closer together).", "0625-3.1-A35": "Refraction: when wavefronts meet a boundary at an angle, the part that enters the slower region first slows first, so each wavefront turns and the direction of travel bends towards the normal (away from it on entering a faster region); along the normal there is no change of direction.", "0625-3.1-A36": "Drawing refracted wavefronts: continuous with the incident ones at the boundary, parallel to each other, closer together in the slower region, and turned the correct way.", "0625-3.1-A37": "An explanation of refraction must state the cause, a change of speed (e.g. change of depth for water waves; mantle to liquid core for seismic P-waves); 'the waves bend' alone earns nothing."}}, {"id": "t5", "order": 5, "title": "Diffraction", "goal": "Predict how gap size and wavelength change the spreading of waves at a gap or edge.", "atom_ids": ["0625-3.1-A38", "0625-3.1-A39", "0625-3.1-A40", "0625-3.1-A41", "0625-3.1-A42", "0625-3.1-A43", "0625-3.1-A44"], "paragraphs": ["P18", "P19", "P20", "P21"], "quizId": "0625_waves_q05", "atoms": {"0625-3.1-A38": "Diffraction is the spreading of waves as they pass through a gap or past an edge, so they reach the region behind the barrier; the wavefronts become curved.", "0625-3.1-A39": "Diffraction does not change the speed, frequency or wavelength (same medium), so wavefronts after a gap are drawn with the same spacing as before.", "0625-3.1-A40": "Diffraction is greatest when the gap is about the same as the wavelength (or narrower): wavefronts become near semicircles centred on the gap; when the gap is much wider than the wavelength, the wavefronts stay straight in the middle with curved ends and spread little.", "0625-3.1-A41": "For a fixed wavelength a narrower gap gives more diffraction; for a fixed gap a longer wavelength gives more diffraction; amplitude has no effect on the shape.", "0625-3.1-A42": "To make a wave diffract more at a given gap by changing the wave, lower its frequency at the same speed (λ = v/f becomes longer); to diffract less, raise the frequency.", "0625-3.1-A43": "At an edge, longer wavelengths bend further round into the region behind the barrier than shorter wavelengths.", "0625-3.1-A44": "Everyday diffraction: sound (λ about 0.3-3 m, similar to a doorway) is heard round a door while light (λ about 5 × 10⁻⁷ m) is not seen round it; low notes spread more than high notes; waves spread into a harbour; a wide telescope aperture and short wavelength give least diffraction and the sharpest image."}}]}
 
1
+ {"chapterId": "0625_waves", "subject": "Physics", "code": "0625", "chapter": "General properties of waves", "mixedQuizId": "0625_waves_q06", "topics": [{"id": "t1", "order": 1, "title": "Waves and their two types", "goal": "Explain how waves carry energy and sort waves into transverse and longitudinal.", "atom_ids": ["0625-3.1-A01", "0625-3.1-A02", "0625-3.1-A03", "0625-3.1-A04", "0625-3.1-A05", "0625-3.1-A06", "0625-3.1-A07", "0625-3.1-A08", "0625-3.1-A09", "0625-3.1-A10"], "paragraphs": ["P1", "P2", "P3", "P4", "P5"], "quizId": "0625_waves_q01", "atoms": {"0625-3.1-A01": "Waves transfer energy from one place to another without transferring matter.", "0625-3.1-A02": "As a wave passes, each part of the medium vibrates about a fixed position and passes the disturbance on to its neighbour; the pattern travels, the medium does not.", "0625-3.1-A03": "A rope moved sideways at one end carries a transverse wave along it; a slinky spring pushed and pulled along its length carries a longitudinal wave (bunched coils travel along).", "0625-3.1-A04": "A cork or float on water moves up and down as transverse water waves pass; it is not carried along with the waves.", "0625-3.1-A05": "In a transverse wave the vibrations are at right angles (perpendicular) to the direction of propagation; it has crests (peaks) and troughs.", "0625-3.1-A06": "Electromagnetic radiation (light, radio, X-rays...), water waves and seismic S-waves can be modelled as transverse.", "0625-3.1-A07": "In a longitudinal wave the vibrations are parallel to the direction of propagation; it has compressions (particles closer, higher pressure) and rarefactions (particles further apart, lower pressure).", "0625-3.1-A08": "Sound (including ultrasound) and seismic P-waves can be modelled as longitudinal.", "0625-3.1-A09": "Electromagnetic waves need no medium (they cross a vacuum); longitudinal waves such as sound need a medium of particles.", "0625-3.1-A10": "To describe or contrast the two types, name both directions: the direction of vibration compared with the direction of propagation (travel / energy transfer); 'up and down' or 'side to side' alone is not enough."}, "chunks": []}, {"id": "t2", "order": 2, "title": "Describing a wave", "goal": "Read amplitude, wavelength and frequency from wave pictures, graphs and counts.", "atom_ids": ["0625-3.1-A11", "0625-3.1-A12", "0625-3.1-A13", "0625-3.1-A14", "0625-3.1-A15", "0625-3.1-A16", "0625-3.1-A17", "0625-3.1-A18", "0625-3.1-A19", "0625-3.1-A20", "0625-3.1-A21"], "paragraphs": ["P6", "P7", "P8", "P9", "P10"], "quizId": "0625_waves_q02", "atoms": {"0625-3.1-A11": "A displacement-distance graph is a snapshot of the whole wave at one instant; a displacement-time graph follows one point of the medium over time. Read the horizontal axis first.", "0625-3.1-A12": "Amplitude is the maximum displacement of a point from its undisturbed (rest) position: centre line to crest, half the crest-to-trough height.", "0625-3.1-A13": "A larger amplitude means larger vibrations and more energy carried by the wave.", "0625-3.1-A14": "Wavelength is the distance between a point on a wave and the nearest point doing exactly the same thing (crest to next crest, trough to trough, compression to compression); a length, in m.", "0625-3.1-A15": "Counting wavelengths: n successive crests (or wavefronts) span n - 1 wavelengths; a crest and the next trough, or a compression and the nearest rarefaction, are half a wavelength apart.", "0625-3.1-A16": "Frequency is the number of complete waves passing a point (or produced by the source) per second; unit hertz (Hz); 1 kHz = 10³ Hz, 1 MHz = 10⁶ Hz, 1 GHz = 10⁹ Hz.", "0625-3.1-A17": "Find the frequency from a count: f = number of waves ÷ time taken; the period T = 1/f is the time for one wave (gap between crests on a displacement-time graph); more cycles in the same time = higher frequency.", "0625-3.1-A18": "Wavelength can be read only from a displacement-distance graph; frequency (via the period) only from a displacement-time graph.", "0625-3.1-A19": "A wavefront is a line joining points of a wave that are in step (e.g. along one crest); neighbouring wavefronts are one wavelength apart and the wave travels at right angles to its wavefronts; a straight source makes plane wavefronts, a point source circular ones.", "0625-3.1-A20": "Wave speed is the distance travelled by a crest or wavefront per unit time, in m/s; it is set by the medium, not by the amplitude or how hard the source vibrates.", "0625-3.1-A21": "Units: amplitude and wavelength in m (lengths), frequency in Hz, wave speed in m/s; only amplitude and wavelength share a unit."}, "chunks": []}, {"id": "t3", "order": 3, "title": "The wave equation v = fλ", "goal": "Use v = fλ with correct units and predict how frequency and wavelength change.", "atom_ids": ["0625-3.1-A22", "0625-3.1-A23", "0625-3.1-A24", "0625-3.1-A25", "0625-3.1-A26", "0625-3.1-A27"], "paragraphs": ["P11", "P12", "P13"], "quizId": "0625_waves_q03", "atoms": {"0625-3.1-A22": "v = fλ: wave speed (m/s) = frequency (Hz) × wavelength (m), because f waves each λ long pass a point every second.", "0625-3.1-A23": "Rearrange v = fλ as f = v/λ or λ = v/f; write the equation before the numbers; check the units (m/s ÷ Hz = m); give the answer to 2 s.f. with a unit (wavelength in m, never 'λ').", "0625-3.1-A24": "Convert to SI before substituting: km to m (× 1000), cm to m (÷ 100), nm to m (× 10⁻⁹), kHz/MHz/GHz to Hz (× 10³/10⁶/10⁹).", "0625-3.1-A25": "In one medium the speed is fixed, so frequency and wavelength are inversely proportional: doubling f halves λ; a lower-frequency source makes longer waves.", "0625-3.1-A26": "The source sets the frequency, so when a wave enters a different medium its frequency stays the same; the speed changes and the wavelength changes in proportion to it.", "0625-3.1-A27": "Chain v = fλ with other data: f from a count in a time, v from distance ÷ time, λ from a measured distance across several waves; then solve for the unknown (including time for n oscillations = n/f)."}, "chunks": []}, {"id": "t4", "order": 4, "title": "Reflection and refraction", "goal": "Describe how water waves reflect and refract and how a ripple tank shows this.", "atom_ids": ["0625-3.1-A28", "0625-3.1-A29", "0625-3.1-A30", "0625-3.1-A31", "0625-3.1-A32", "0625-3.1-A33", "0625-3.1-A34", "0625-3.1-A35", "0625-3.1-A36", "0625-3.1-A37"], "paragraphs": ["P14", "P15", "P16", "P17"], "quizId": "0625_waves_q04", "atoms": {"0625-3.1-A28": "Waves can be reflected at a plane surface, refracted when their speed changes, and diffracted at a narrow gap or an edge; do not confuse these with rarefaction or dispersion.", "0625-3.1-A29": "Ripple tank: shallow tray of water with a transparent base; a lamp above projects the waves onto a screen below (crests show as bright lines); a vibrating straight bar makes plane waves, a ball dipper circular ones; the motor sets the frequency.", "0625-3.1-A30": "In a ripple tank, measure the wavelength across several wavefronts (e.g. ten) and divide by the number of gaps; find the frequency by counting waves passing a point in a measured time (or with a stroboscope).", "0625-3.1-A31": "Ripple-tank set-ups: a straight barrier shows reflection; a glass or plastic plate (shallower water) shows refraction; a gap between two barriers shows diffraction at a gap; the end of one barrier shows diffraction at an edge.", "0625-3.1-A32": "Reflection at a plane surface: the waves leave at the same angle to the normal as they arrive (angle of incidence = angle of reflection); waves arriving head-on return along the same line.", "0625-3.1-A33": "Reflection changes only the direction of travel: speed, frequency and wavelength are unchanged (same medium, same source).", "0625-3.1-A34": "Water waves travel more slowly in shallower water; with the frequency unchanged their wavelength is shorter there (wavefronts closer together).", "0625-3.1-A35": "Refraction: when wavefronts meet a boundary at an angle, the part that enters the slower region first slows first, so each wavefront turns and the direction of travel bends towards the normal (away from it on entering a faster region); along the normal there is no change of direction.", "0625-3.1-A36": "Drawing refracted wavefronts: continuous with the incident ones at the boundary, parallel to each other, closer together in the slower region, and turned the correct way.", "0625-3.1-A37": "An explanation of refraction must state the cause, a change of speed (e.g. change of depth for water waves; mantle to liquid core for seismic P-waves); 'the waves bend' alone earns nothing."}, "chunks": []}, {"id": "t5", "order": 5, "title": "Diffraction", "goal": "Predict how gap size and wavelength change the spreading of waves at a gap or edge.", "atom_ids": ["0625-3.1-A38", "0625-3.1-A39", "0625-3.1-A40", "0625-3.1-A41", "0625-3.1-A42", "0625-3.1-A43", "0625-3.1-A44"], "paragraphs": ["P18", "P19", "P20", "P21"], "quizId": "0625_waves_q05", "atoms": {"0625-3.1-A38": "Diffraction is the spreading of waves as they pass through a gap or past an edge, so they reach the region behind the barrier; the wavefronts become curved.", "0625-3.1-A39": "Diffraction does not change the speed, frequency or wavelength (same medium), so wavefronts after a gap are drawn with the same spacing as before.", "0625-3.1-A40": "Diffraction is greatest when the gap is about the same as the wavelength (or narrower): wavefronts become near semicircles centred on the gap; when the gap is much wider than the wavelength, the wavefronts stay straight in the middle with curved ends and spread little.", "0625-3.1-A41": "For a fixed wavelength a narrower gap gives more diffraction; for a fixed gap a longer wavelength gives more diffraction; amplitude has no effect on the shape.", "0625-3.1-A42": "To make a wave diffract more at a given gap by changing the wave, lower its frequency at the same speed (λ = v/f becomes longer); to diffract less, raise the frequency.", "0625-3.1-A43": "At an edge, longer wavelengths bend further round into the region behind the barrier than shorter wavelengths.", "0625-3.1-A44": "Everyday diffraction: sound (λ about 0.3-3 m, similar to a doorway) is heard round a door while light (λ about 5 × 10⁻⁷ m) is not seen round it; low notes spread more than high notes; waves spread into a harbour; a wide telescope aperture and short wavelength give least diffraction and the sharpest image."}, "chunks": []}]}
static/index.html CHANGED
The diff for this file is too large to render. See raw diff
 
tools/build_quizzes.py CHANGED
@@ -10,6 +10,7 @@ Model and rules: syllabus/igcse/quizzes/QUIZ_MODEL.md
10
  """
11
  import json
12
  import pathlib
 
13
  import sys
14
 
15
  import openpyxl
@@ -22,18 +23,21 @@ TOPICS = ROOT / "apps" / "selfcheck-space" / "data" / "topics"
22
 
23
  def read_atoms(atoms_file):
24
  wb = openpyxl.load_workbook(ROOT / atoms_file, read_only=True, data_only=True)
25
- text, kind = {}, {}
26
  for sheet, col in (("atoms", "statement"), ("misconceptions", "wrong belief")):
27
  it = wb[sheet].iter_rows(values_only=True)
28
  head = [str(c or "").strip().lower() for c in next(it)]
29
  i_id, i_txt = head.index("id"), head.index(col)
30
  i_type = head.index("type") if "type" in head else None
 
31
  for r in it:
32
  if r and r[i_id]:
33
  aid = str(r[i_id]).strip()
34
  text[aid] = str(r[i_txt] or "").strip()
35
  kind[aid] = "misconception" if sheet == "misconceptions" else str(r[i_type] or "").strip().lower()
36
- return text, kind
 
 
37
 
38
 
39
  def check_question(q, text, errs, where):
@@ -57,9 +61,83 @@ def check_question(q, text, errs, where):
57
  errs.append(f"{where}: unknown atom {a}")
58
 
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  def validate(c):
61
  errs = []
62
- text, kind = read_atoms(c["atoms_file"])
63
  topics = sorted(c.get("topics", []), key=lambda t: t["order"])
64
  if not 4 <= len(topics) <= 6:
65
  errs.append(f"{len(topics)} topics (need 4-6)")
@@ -109,6 +187,13 @@ def validate(c):
109
  errs.append(f"{w}: question id {q.get('id')} used twice in the chapter")
110
  seen.add(q.get("id"))
111
  check_question(q, text, errs, f"{w}/{q.get('id')}")
 
 
 
 
 
 
 
112
  return errs, text, topics, quizzes
113
 
114
 
@@ -131,12 +216,27 @@ def publish(c, text, topics, quizzes):
131
  "intro": z.get("intro", ""), "minutes": max(5, min(12, marks)), "active": True,
132
  "questions": z["questions"], "atoms": used}
133
  (SETS / f"{z['id']}.json").write_text(json.dumps(doc, ensure_ascii=False), encoding="utf-8")
 
 
 
 
 
 
 
 
 
 
 
 
134
  qid_by_topic = {z.get("topicId"): z["id"] for z in quizzes}
135
  mixed = next(z["id"] for z in quizzes if z["kind"] == "mixed")
136
  tdoc = {"chapterId": c["chapterId"], "subject": c["subject"], "code": c["code"], "chapter": c["chapter"],
137
  "mixedQuizId": mixed,
138
  "topics": [{**t, "quizId": qid_by_topic.get(t["id"]),
139
- "atoms": {a: text.get(a, "") for a in t["atom_ids"]}} for t in topics]}
 
 
 
140
  (TOPICS / f"{c['chapterId']}.json").write_text(json.dumps(tdoc, ensure_ascii=False), encoding="utf-8")
141
 
142
 
@@ -154,6 +254,10 @@ def main():
154
  continue
155
  publish(c, text, topics, quizzes)
156
  nq = sum(len(z["questions"]) for z in quizzes)
 
 
 
 
157
  print(f"OK {c['chapterId']}: {len(topics)} topics, {len(quizzes)} quizzes, {nq} questions: "
158
  + " | ".join(f"{z['title']} ({len(z['questions'])})" for z in quizzes))
159
  sys.exit(0 if ok else 1)
 
10
  """
11
  import json
12
  import pathlib
13
+ import re
14
  import sys
15
 
16
  import openpyxl
 
23
 
24
  def read_atoms(atoms_file):
25
  wb = openpyxl.load_workbook(ROOT / atoms_file, read_only=True, data_only=True)
26
+ text, kind, prereq = {}, {}, {}
27
  for sheet, col in (("atoms", "statement"), ("misconceptions", "wrong belief")):
28
  it = wb[sheet].iter_rows(values_only=True)
29
  head = [str(c or "").strip().lower() for c in next(it)]
30
  i_id, i_txt = head.index("id"), head.index(col)
31
  i_type = head.index("type") if "type" in head else None
32
+ i_pre = head.index("prerequisites") if "prerequisites" in head else None
33
  for r in it:
34
  if r and r[i_id]:
35
  aid = str(r[i_id]).strip()
36
  text[aid] = str(r[i_txt] or "").strip()
37
  kind[aid] = "misconception" if sheet == "misconceptions" else str(r[i_type] or "").strip().lower()
38
+ if i_pre is not None:
39
+ prereq[aid] = [x for x in re.split(r"[;,\s]+", str(r[i_pre] or "")) if x and x.lower() not in ("none", "-")]
40
+ return text, kind, prereq
41
 
42
 
43
  def check_question(q, text, errs, where):
 
61
  errs.append(f"{where}: unknown atom {a}")
62
 
63
 
64
+ def validate_chunks(c, topics, text, kind, prereq, errs):
65
+ """Chunks (CHUNK_MODEL.md): optional per chapter, but if any topic has them every topic must."""
66
+ have = [t for t in topics if t.get("chunks")]
67
+ zs = c.get("chunk_quizzes", [])
68
+ if not have:
69
+ if zs:
70
+ errs.append("chunk_quizzes given but no topic has chunks")
71
+ return []
72
+ if len(have) != len(topics):
73
+ errs.append("only some topics have chunks: chunk every topic")
74
+ order, chunks = {}, [] # atom -> position of its chunk in teaching order
75
+ for t in topics:
76
+ cs = sorted(t.get("chunks", []), key=lambda x: x["order"])
77
+ if cs and not 2 <= len(cs) <= 4:
78
+ errs.append(f"topic {t['id']}: {len(cs)} chunks (need 2-4)")
79
+ inside = set()
80
+ for n, ch in enumerate(cs, 1):
81
+ w = f"chunk {ch.get('id')}"
82
+ if ch.get("id") != f"{t['id']}c{n}":
83
+ errs.append(f"{w}: id should be {t['id']}c{n}")
84
+ if not ch.get("title") or len(ch["title"]) > 32:
85
+ errs.append(f"{w}: title missing or over 32 characters")
86
+ if not str(ch.get("question", "")).strip().endswith("?"):
87
+ errs.append(f"{w}: driving question missing (must end with ?)")
88
+ ids = ch.get("atom_ids", [])
89
+ if not 2 <= len(ids) <= 6:
90
+ errs.append(f"{w}: {len(ids)} atoms (need 2-6)")
91
+ if len(ch.get("new_terms", [])) > 4:
92
+ errs.append(f"{w}: {len(ch['new_terms'])} new terms (at most 4)")
93
+ for m in ch.get("misconceptions", []):
94
+ if kind.get(m) != "misconception":
95
+ errs.append(f"{w}: {m} is not a misconception id")
96
+ for a in ids:
97
+ if a not in t.get("atom_ids", []):
98
+ errs.append(f"{w}: atom {a} is not in topic {t['id']}")
99
+ if a in inside:
100
+ errs.append(f"{w}: atom {a} is in two chunks")
101
+ inside.add(a)
102
+ order[a] = len(chunks)
103
+ chunks.append({**ch, "topicId": t["id"]})
104
+ missing = [a for a in t.get("atom_ids", []) if a not in inside]
105
+ if cs and missing:
106
+ errs.append(f"topic {t['id']}: atoms in no chunk: {', '.join(missing)}")
107
+ for a, pos in order.items(): # prerequisites must be in the same or an earlier chunk
108
+ for p in prereq.get(a, []):
109
+ if p in order and order[p] > pos:
110
+ errs.append(f"atom {a} (chunk {chunks[pos]['id']}) needs {p}, which comes later (chunk {chunks[order[p]]['id']})")
111
+ byid = {ch["id"]: (i, ch) for i, ch in enumerate(chunks)}
112
+ if [z.get("chunkId") for z in zs] != [ch["id"] for ch in chunks]:
113
+ errs.append(f"chunk_quizzes must be one per chunk in teaching order; got {[z.get('chunkId') for z in zs]}")
114
+ for z in zs:
115
+ pos, ch = byid.get(z.get("chunkId"), (None, None))
116
+ w = z.get("id", "chunk quiz")
117
+ if ch and z.get("id") != f"{c['chapterId']}_{ch['id']}":
118
+ errs.append(f"{w}: id should be {c['chapterId']}_{ch['id']}")
119
+ if ch and ch.get("quizId") != z.get("id"):
120
+ errs.append(f"chunk {ch['id']}: quizId should be {z.get('id')}")
121
+ qs = z.get("questions", [])
122
+ if not 3 <= len(qs) <= 4:
123
+ errs.append(f"{w}: {len(qs)} questions (need 3-4)")
124
+ marks = sum(q.get("marks", 1) for q in qs)
125
+ auto = sum(q.get("marks", 1) for q in qs if q.get("type") != "short")
126
+ if marks and auto / marks < 0.75:
127
+ errs.append(f"{w}: only {round(100 * auto / marks)}% of marks auto-marked (need 75%)")
128
+ if ch:
129
+ for q in qs:
130
+ if not any(a in ch["atom_ids"] for a in q.get("atom_ids", [])):
131
+ errs.append(f"{w}/{q.get('id')}: tests none of the chunk's own atoms")
132
+ for a in q.get("atom_ids", []):
133
+ if a in order and order[a] > pos:
134
+ errs.append(f"{w}/{q.get('id')}: atom {a} is taught in a later chunk")
135
+ return chunks
136
+
137
+
138
  def validate(c):
139
  errs = []
140
+ text, kind, prereq = read_atoms(c["atoms_file"])
141
  topics = sorted(c.get("topics", []), key=lambda t: t["order"])
142
  if not 4 <= len(topics) <= 6:
143
  errs.append(f"{len(topics)} topics (need 4-6)")
 
187
  errs.append(f"{w}: question id {q.get('id')} used twice in the chapter")
188
  seen.add(q.get("id"))
189
  check_question(q, text, errs, f"{w}/{q.get('id')}")
190
+ validate_chunks(c, topics, text, kind, prereq, errs)
191
+ for z in c.get("chunk_quizzes", []):
192
+ for q in z.get("questions", []):
193
+ if q.get("id") in seen:
194
+ errs.append(f"{z.get('id')}: question id {q.get('id')} used twice in the chapter")
195
+ seen.add(q.get("id"))
196
+ check_question(q, text, errs, f"{z.get('id')}/{q.get('id')}")
197
  return errs, text, topics, quizzes
198
 
199
 
 
216
  "intro": z.get("intro", ""), "minutes": max(5, min(12, marks)), "active": True,
217
  "questions": z["questions"], "atoms": used}
218
  (SETS / f"{z['id']}.json").write_text(json.dumps(doc, ensure_ascii=False), encoding="utf-8")
219
+ where = {ch["id"]: (t, ch) for t in topics for ch in t.get("chunks", [])}
220
+ for n, z in enumerate(c.get("chunk_quizzes", []), 1):
221
+ t, ch = where[z["chunkId"]]
222
+ used = {a: text.get(a, "") for q in z["questions"]
223
+ for a in q["atom_ids"] + ([q["misconception_id"]] if q.get("misconception_id") else [])}
224
+ marks = sum(q.get("marks", 1) for q in z["questions"])
225
+ doc = {"id": z["id"], "chapterId": c["chapterId"], "subject": c["subject"], "code": c["code"],
226
+ "chapter": c["chapter"], "topicId": t["id"], "topicTitle": t["title"], "chunkId": ch["id"],
227
+ "chunkTitle": ch["title"], "order": 100 + n, "title": z.get("title") or ch["title"], "kind": "chunk",
228
+ "intro": z.get("intro", ""), "minutes": max(3, min(6, marks)), "active": True,
229
+ "questions": z["questions"], "atoms": used}
230
+ (SETS / f"{z['id']}.json").write_text(json.dumps(doc, ensure_ascii=False), encoding="utf-8")
231
  qid_by_topic = {z.get("topicId"): z["id"] for z in quizzes}
232
  mixed = next(z["id"] for z in quizzes if z["kind"] == "mixed")
233
  tdoc = {"chapterId": c["chapterId"], "subject": c["subject"], "code": c["code"], "chapter": c["chapter"],
234
  "mixedQuizId": mixed,
235
  "topics": [{**t, "quizId": qid_by_topic.get(t["id"]),
236
+ "atoms": {a: text.get(a, "") for a in t["atom_ids"]},
237
+ "chunks": [{**ch, "atoms": {a: text.get(a, "") for a in ch["atom_ids"]}}
238
+ for ch in sorted(t.get("chunks", []), key=lambda x: x["order"])]}
239
+ for t in topics]}
240
  (TOPICS / f"{c['chapterId']}.json").write_text(json.dumps(tdoc, ensure_ascii=False), encoding="utf-8")
241
 
242
 
 
254
  continue
255
  publish(c, text, topics, quizzes)
256
  nq = sum(len(z["questions"]) for z in quizzes)
257
+ cz = c.get("chunk_quizzes", [])
258
+ if cz:
259
+ print(f" {c['chapterId']}: {sum(len(t.get('chunks', [])) for t in topics)} chunks, {len(cz)} chunk quizzes, "
260
+ f"{sum(len(z['questions']) for z in cz)} chunk-quiz questions")
261
  print(f"OK {c['chapterId']}: {len(topics)} topics, {len(quizzes)} quizzes, {nq} questions: "
262
  + " | ".join(f"{z['title']} ({len(z['questions'])})" for z in quizzes))
263
  sys.exit(0 if ok else 1)
tutor.py CHANGED
@@ -1,603 +1,776 @@
1
- """The StepWise tutor: a topic-bound Claude tutor with per-idea levels and spaced review.
2
-
3
- Design: syllabus/igcse/midterm/TUTOR_AGENT_PLAN.md in the project repo.
4
-
5
- - Mastery: each student holds a level 0-4 on every atom (idea). Two correct answers in a
6
- row at or above the current level move it up one; a wrong answer moves it down one (two
7
- if the student said they were sure) and makes it due tomorrow. Self-check results feed
8
- the same levels.
9
- - Sessions are typed and planned by the server (apps/selfcheck-space/TUTOR_STRUCTURE.md):
10
- learn <topic>, ask <topic>, fix <quiz attempt>, review <chapter>. Each has a fixed list of
11
- steps; Claude teaches one step at a time and calls finish_step to advance. Exchanges per
12
- step and per session are capped, and each student has a daily spend cap.
13
- - Claude works only through five tools: get_student_state, record_attempt, calculate,
14
- finish_step, flag.
15
- - Every message, tool call and level change is stored; parents read the full text.
16
- """
17
- from __future__ import annotations
18
-
19
- import ast
20
- import json
21
- import math
22
- import operator
23
- import threading
24
- import uuid
25
- from datetime import datetime, timedelta, timezone
26
- from pathlib import Path
27
-
28
- import re
29
- import time
30
-
31
- # $ per million tokens. Cache writes use the default 5-minute TTL (1.25x input).
32
- PRICES = {
33
- "claude-opus-5-5": {"in": 4.0, "out": 20.0, "write": 5.0, "read": 0.20, "label": "Opus 5.5"},
34
- "claude-fable-5-1": {"in": 10.0, "out": 50.0, "write": 12.5, "read": 0.25, "label": "Fable 5.1"},
35
- }
36
- OPUS, FABLE = "claude-opus-5-5", "claude-fable-5-1"
37
- ROUTING_MODES = ("auto", "opus", "fable")
38
- MAX_TOOL_ROUNDS = 6
39
-
40
- HARD_WORDS = re.compile(
41
- r"\b(why|explain|don'?t (get|understand)|confus\w*|stuck|how come|prove|derive|what if|difference between|"
42
- r"compare|calculate|work out|show that|evaluate|discuss|plan an? (experiment|investigation))\b", re.I)
43
- NUMBERY = re.compile(r"\d+(?:\.\d+)?")
44
-
45
-
46
- def route(sess: dict, text, mode: str) -> tuple:
47
- """Pick (model, effort, reason) for one tutor turn.
48
-
49
- auto: quick turns (short answers, acknowledgements, simple recall) go to Opus 5.5 at low
50
- effort so they stay fast. Turns that need diagnosis or multi-step reasoning go to Fable 5.1:
51
- a why/explain/stuck message, a multi-step numeric answer, or a reply right after the
52
- student's last recorded answer was wrong.
53
- """
54
- if mode == "opus":
55
- return OPUS, "medium", "always Opus"
56
- if mode == "fable":
57
- return FABLE, "medium", "always Fable"
58
- if text is None:
59
- return OPUS, "medium", "session start"
60
- # Sticky upgrade: each model keeps its own prompt cache (the chapter text, ~20k tokens),
61
- # so once a session needs Fable it stays on Fable instead of paying to load both caches.
62
- if sess.get("upgraded"):
63
- return FABLE, "low" if len(text.split()) <= 12 else "medium", "session moved to Fable"
64
- reason = None
65
- if sess.get("lastResult") is False:
66
- reason = "last answer was wrong: diagnose"
67
- elif HARD_WORDS.search(text):
68
- reason = "asks why or multi-step"
69
- elif len(NUMBERY.findall(text)) >= 3 and len(text.split()) >= 8:
70
- reason = "multi-step working"
71
- if reason:
72
- sess["upgraded"] = True
73
- return FABLE, "medium", reason
74
- if len(text.split()) <= 12:
75
- return OPUS, "low", "short reply"
76
- return OPUS, "medium", "default"
77
-
78
-
79
- def turn_cost(model: str, u) -> float:
80
- p = PRICES.get(model) or PRICES[OPUS]
81
- return ((u.input_tokens or 0) * p["in"] + (u.output_tokens or 0) * p["out"]
82
- + (getattr(u, "cache_creation_input_tokens", 0) or 0) * p["write"]
83
- + (getattr(u, "cache_read_input_tokens", 0) or 0) * p["read"]) / 1e6
84
- INTERVAL_DAYS = {0: 0, 1: 1, 2: 2, 3: 4, 4: 7}
85
- LEVEL_NAMES = {0: "not met", 1: "recall", 2: "apply one step", 3: "combine", 4: "exam-ready"}
86
-
87
- HERE = Path(__file__).parent
88
- CHAPTERS: dict[str, dict] = {
89
- json.loads(p.read_text(encoding="utf-8"))["id"]: json.loads(p.read_text(encoding="utf-8"))
90
- for p in sorted((HERE / "data" / "chapters").glob("*.json"))
91
- }
92
-
93
-
94
- TOPICS: dict[str, dict] = {}
95
- for _p in sorted((HERE / "data" / "topics").glob("*.json")):
96
- _d = json.loads(_p.read_text(encoding="utf-8"))
97
- TOPICS[_d["chapterId"]] = _d
98
- if _d["chapterId"] in CHAPTERS: # topic files carry the cleaned-up chapter title
99
- CHAPTERS[_d["chapterId"]]["chapter"] = _d["chapter"]
100
-
101
- DAILY_CAP_USD = 5.0
102
- MAX_EXCHANGES_PER_STEP = 3
103
- MAX_STUDENT_MESSAGES = 16
104
-
105
- # What Claude must do in each step. The server shows exactly one of these at a time.
106
- STEPS = {
107
- "predict": ("Predict", "low", "Ask ONE short prediction or intuition question about this topic before any teaching (e.g. what do you think happens if…, why might…). Accept any honest attempt, react in one or two warm sentences, then call finish_step and move straight on to the next step."),
108
- "explain": ("Explain", "medium", "Teach the topic's core idea from first principles, building on what the student just predicted. Use the listed paragraphs of the chapter text. Two to four short paragraphs, one everyday example, no new jargon without a meaning. End by asking whether it makes sense or if they want anything clarified. When they acknowledge (or after you answer one follow-up), call finish_step."),
109
- "check": ("Check", "low", "Ask two quick questions, ONE at a time, each on a different idea of this topic (recall or one-step). After each answer call record_attempt (level 1 or 2) and give one line of feedback; if wrong, give the right idea in one or two lines. After the second answer, call finish_step."),
110
- "apply": ("Apply", "medium", "Ask ONE exam-style question that needs two steps or combines two ideas of this topic (level 3). Use the hint ladder if they are stuck; never give the final answer first. When they reach an answer, call record_attempt, explain briefly, then call finish_step."),
111
- "wrapup": ("Wrap-up", "low", "Close the session: three short bullet points of what they practised and one thing to watch for. Praise effort specifically. Do NOT ask a new question. Call finish_step."),
112
- "diagnose": ("Your thinking", "medium", "Show the quiz question and the student's answer (given below). Ask them to explain how they got their answer. Do NOT reveal the correct answer yet. When they have explained, call finish_step."),
113
- "reteach": ("The idea", "medium", "From their explanation, name the exact faulty idea kindly. Re-teach only that idea in a few lines, with a quick case where the wrong belief gives an absurd result. Then give the correct answer to the quiz question with the reasoning. Call finish_step."),
114
- "retry": ("Try one", "low", "Give ONE new question testing the same idea with different numbers or context. When they answer, call record_attempt, give one line of feedback, and call finish_step."),
115
- "review_q": ("Review", "low", "Ask ONE quick question on the focus idea (it is due for review). After the answer call record_attempt; if wrong, explain the idea in two lines. Call finish_step."),
116
- "answer": ("Your question", "medium", "If the student has not asked yet, invite their question about this topic in one line and wait. When they ask, answer it clearly and briefly (under 150 words), grounded in the chapter text. If the question is outside this topic, say so in one line and offer the nearest thing in this topic. Then call finish_step."),
117
- "check1": ("Check", "low", "Ask ONE quick question that checks they understood your answer. After their answer call record_attempt, give one line of feedback, and call finish_step."),
118
- }
119
-
120
-
121
- def chapter_of(set_or_chapter_id: str) -> str:
122
- """Quiz ids look like <chapterId>_qNN; anything else is already a chapter id."""
123
- import re as _re
124
- return _re.sub(r"_q\d{2}$", "", set_or_chapter_id)
125
-
126
-
127
- def topic_of(chapter_id: str, topic_id: str | None) -> dict | None:
128
- for t in (TOPICS.get(chapter_id) or {}).get("topics", []):
129
- if t["id"] == topic_id:
130
- return t
131
- return None
132
-
133
-
134
- def build_plan(kind: str, chapter_id: str, m: dict, topic: dict | None, fix_items: list | None) -> tuple[str, list]:
135
- """Return (goal, steps). Each step: {name, label, focus[atom ids], context, status}."""
136
- def step(name, focus=(), context=""):
137
- label, _, _ = STEPS[name]
138
- return {"name": name, "label": label, "focus": list(focus), "context": context, "status": "todo", "exchanges": 0}
139
- chapter = CHAPTERS[chapter_id]
140
- if kind == "learn":
141
- ids = topic["atom_ids"]
142
- return (f"Learn: {topic['title']}. {topic['goal']}",
143
- [step("predict", ids), step("explain", ids), step("check", ids), step("apply", ids), step("wrapup", ids)])
144
- if kind == "ask":
145
- ids = topic["atom_ids"]
146
- return (f"Ask about: {topic['title']}", [step("answer", ids), step("check1", ids), step("wrapup", ids)])
147
- if kind == "fix":
148
- steps = []
149
- for it in (fix_items or [])[:3]:
150
- ctx = (f"Quiz question: {it['prompt']}\n" + (f"Options: {' | '.join(f'{chr(65 + i)}. {o}' for i, o in enumerate(it['options']))}\n" if it.get("options") else "")
151
- + f"Student's answer: {it['response']}\nCorrect answer (do not reveal before the 'The idea' step): {it['correct']}\n"
152
- + f"Mark scheme: {it.get('mark_scheme', '')}")
153
- steps += [step("diagnose", it["atom_ids"], ctx), step("reteach", it["atom_ids"], ctx), step("retry", it["atom_ids"])]
154
- steps.append(step("wrapup", [a for it in (fix_items or [])[:3] for a in it["atom_ids"]]))
155
- n = min(3, len(fix_items or []))
156
- return (f"Fix {n} mistake{'s' if n != 1 else ''} from your quiz", steps)
157
- if kind == "review":
158
- t = now()
159
- ids = {a["id"] for a in chapter["atoms"]}
160
- due = sorted([aid for aid, st in m.items() if aid in ids and st.get("level", 0) > 0 and st.get("due")
161
- and datetime.fromisoformat(st["due"]) <= t], key=lambda aid: (m[aid]["level"], m[aid]["due"]))
162
- if len(due) < 5: # top up with the weakest ideas already met
163
- due += [aid for aid, st in sorted(m.items(), key=lambda kv: kv[1].get("level", 0))
164
- if aid in ids and st.get("seen") and aid not in due][: 5 - len(due)]
165
- due = due[:5]
166
- return (f"Review: {chapter['chapter']}", [step("review_q", [a]) for a in due] + [step("wrapup", due)])
167
- raise ValueError(kind)
168
-
169
-
170
- def now() -> datetime:
171
- return datetime.now(timezone.utc)
172
-
173
-
174
- def iso(d: datetime) -> str:
175
- return d.isoformat(timespec="seconds")
176
-
177
-
178
- # ---------------------------------------------------------------- mastery
179
- def blank_atom() -> dict:
180
- return {"level": 0, "streak": 0, "seen": 0, "right": 0, "last": None, "due": None}
181
-
182
-
183
- def apply_result(m: dict, atom_id: str, correct: bool, level_tested: int, confidence: str | None, source: str) -> dict:
184
- a = m.setdefault(atom_id, blank_atom())
185
- before = a["level"]
186
- a["seen"] += 1
187
- a["last"] = iso(now())
188
- if correct:
189
- a["right"] += 1
190
- if level_tested >= a["level"]:
191
- a["streak"] += 1
192
- if a["level"] == 0:
193
- a["level"], a["streak"] = 1, 0 # first correct answer: met it
194
- elif a["streak"] >= 2:
195
- a["level"], a["streak"] = min(4, a["level"] + 1), 0
196
- a["due"] = iso(now() + timedelta(days=INTERVAL_DAYS[a["level"]]))
197
- else:
198
- drop = 2 if confidence == "sure" else 1
199
- a["level"] = max(0, a["level"] - drop)
200
- a["streak"] = 0
201
- a["due"] = iso(now() + timedelta(days=1))
202
- a.setdefault("log", []).append({"t": a["last"], "ok": correct, "lv": level_tested, "conf": confidence, "src": source})
203
- a["log"] = a["log"][-15:]
204
- return {"atom": atom_id, "from": before, "to": a["level"]}
205
-
206
-
207
- def apply_selfcheck(m: dict, set_id: str, attempt: dict) -> None:
208
- """A self-check answer counts as a level-2 test of each atom it covers."""
209
- for atom_id, (got, mx) in attempt.get("atoms", {}).items():
210
- if mx:
211
- apply_result(m, atom_id, got / mx >= 0.8, 2, None, f"selfcheck:{set_id}")
212
-
213
-
214
- def plan(m: dict, chapter: dict, reviews: int = 5, new: int = 2) -> dict:
215
- t = now()
216
- levels = {a["id"]: m.get(a["id"], blank_atom())["level"] for a in chapter["atoms"]}
217
- due = [aid for aid, st in m.items() if aid in levels and st.get("due") and st["level"] > 0
218
- and datetime.fromisoformat(st["due"]) <= t]
219
- due.sort(key=lambda aid: (m[aid]["level"], m[aid]["due"]))
220
- ready = [a["id"] for a in chapter["atoms"] if levels[a["id"]] == 0
221
- and all(levels.get(p, 0) >= 2 for p in a["prerequisites"])]
222
- return {"reviews": due[:reviews], "new": ready[:new]}
223
-
224
-
225
- # ---------------------------------------------------------------- tools
226
- TOOLS = [
227
- {
228
- "name": "get_student_state",
229
- "description": "Get this student's current level (0-4) on every idea in this chapter, which ideas are due for review, recent results and their latest self-check score. Call it at the start of a session and whenever you need to choose what to ask next.",
230
- "input_schema": {"type": "object", "properties": {}, "additionalProperties": False},
231
- },
232
- {
233
- "name": "record_attempt",
234
- "description": "Record the student's answer to a question you asked, so their idea levels update. Call it once for every question the student actually attempts, after you have judged the answer, before you reply.",
235
- "strict": True,
236
- "input_schema": {
237
- "type": "object",
238
- "properties": {
239
- "atom_ids": {"type": "array", "items": {"type": "string"}, "description": "1-4 atom ids the question tested, from this chapter's list."},
240
- "correct": {"type": "boolean", "description": "True only if the answer AND the reasoning were right. A right answer with a wrong reason is false."},
241
- "level_tested": {"type": "integer", "enum": [1, 2, 3, 4], "description": "1 recall, 2 apply one step, 3 combine ideas, 4 exam-style unfamiliar or multi-part."},
242
- "misconception_id": {"type": ["string", "null"], "description": "Misconception id if the wrong answer matches one, else null."},
243
- "question": {"type": "string", "description": "The question, in under 25 words."},
244
- "student_answer": {"type": "string", "description": "The student's answer, in under 25 words."},
245
- },
246
- "required": ["atom_ids", "correct", "level_tested", "misconception_id", "question", "student_answer"],
247
- "additionalProperties": False,
248
- },
249
- },
250
- {
251
- "name": "calculate",
252
- "description": "Evaluate an arithmetic expression exactly as written and return the number. Use it to check every numerical answer before you tell the student it is right or wrong. Supports + - * / ** ( ), sqrt(), log10(), and numbers like 6.02e23.",
253
- "strict": True,
254
- "input_schema": {
255
- "type": "object",
256
- "properties": {"expression": {"type": "string"}},
257
- "required": ["expression"],
258
- "additionalProperties": False,
259
- },
260
- },
261
- {
262
- "name": "finish_step",
263
- "description": "Call when the CURRENT step's goal (shown in the latest session note) is met. The server then moves to the next step and returns its instructions, which you should follow straight away in the same reply. When the last step is finished the session is complete.",
264
- "strict": True,
265
- "input_schema": {
266
- "type": "object",
267
- "properties": {
268
- "outcome": {"type": "string", "enum": ["done", "skipped"], "description": "done if the goal was met; skipped if the student wanted to move on or could not engage."},
269
- "note": {"type": "string", "description": "One short line for the parent about how this step went."},
270
- },
271
- "required": ["outcome", "note"],
272
- "additionalProperties": False,
273
- },
274
- },
275
- {
276
- "name": "flag",
277
- "description": "Flag something the parent should see: off_topic (student keeps pulling away from the subject), answer_seeking (student asks you to just give answers to homework or a test), distress (student says something upsetting or personal), other.",
278
- "strict": True,
279
- "input_schema": {
280
- "type": "object",
281
- "properties": {
282
- "kind": {"type": "string", "enum": ["off_topic", "answer_seeking", "distress", "other"]},
283
- "note": {"type": "string", "description": "One sentence for the parent."},
284
- },
285
- "required": ["kind", "note"],
286
- "additionalProperties": False,
287
- },
288
- },
289
- ]
290
-
291
- _OPS = {ast.Add: operator.add, ast.Sub: operator.sub, ast.Mult: operator.mul, ast.Div: operator.truediv,
292
- ast.Pow: operator.pow, ast.USub: operator.neg, ast.UAdd: operator.pos}
293
- _FUNCS = {"sqrt": math.sqrt, "log10": math.log10, "ln": math.log, "abs": abs, "round": round}
294
-
295
-
296
- def safe_eval(expr: str) -> float:
297
- def ev(n):
298
- if isinstance(n, ast.Expression):
299
- return ev(n.body)
300
- if isinstance(n, ast.Constant) and isinstance(n.value, (int, float)):
301
- return n.value
302
- if isinstance(n, ast.BinOp) and type(n.op) in _OPS:
303
- if isinstance(n.op, ast.Pow) and abs(ev(n.right)) > 400:
304
- raise ValueError("exponent too large")
305
- return _OPS[type(n.op)](ev(n.left), ev(n.right))
306
- if isinstance(n, ast.UnaryOp) and type(n.op) in _OPS:
307
- return _OPS[type(n.op)](ev(n.operand))
308
- if isinstance(n, ast.Call) and isinstance(n.func, ast.Name) and n.func.id in _FUNCS and not n.keywords:
309
- return _FUNCS[n.func.id](*[ev(a) for a in n.args])
310
- raise ValueError("only numbers, + - * / ** ( ) and sqrt/log10/ln/abs/round are allowed")
311
- cleaned = expr.replace("×", "*").replace("^", "**").replace("−", "-")
312
- return ev(ast.parse(cleaned, mode="eval"))
313
-
314
-
315
- # ---------------------------------------------------------------- prompts
316
- RULES = """You are the StepWise tutor for a Cambridge IGCSE student (about 15 years old). You tutor ONE chapter, given below. Your job is to make the student's understanding visible and fix it, and to test them in small, increasing steps. You are not an answer machine.
317
-
318
- How you teach
319
- - One question at a time. Ask, then wait for the student's answer. Keep each message short (usually under 120 words); longer only when explaining an idea from first principles.
320
- - Before explaining something new, ask the student to predict or try first.
321
- - When they are stuck, use the hint ladder: (1) name the idea, (2) name the first step, (3) show the first step, (4) a worked example with DIFFERENT numbers, then they redo the original. Never give the final answer first.
322
- - When they are right, ask why. A right answer with a wrong or missing reason does not count as correct.
323
- - When a wrong answer matches a listed misconception, name it kindly, show a quick case where the wrong belief gives an absurd result, then ask a fresh question on the same idea.
324
- - Ground every explanation in the chapter text below (you may cite paragraph ids like [P5] for yourself, but explain in plain words). If something is outside this chapter, say so briefly and offer to come back to the chapter.
325
- - Check every number with the calculate tool before saying an answer is right or wrong. Never do arithmetic in your head.
326
- - Use British spelling and IGCSE terms. Write chemistry and physics with Unicode (H₂O, 6.02 × 10²³, m/s²). Plain text with short lines; no tables, no headings, no LaTeX.
327
-
328
- Levels (each idea, per student): 0 not met, 1 recall, 2 apply one step, 3 combine with other ideas, 4 exam-ready. Pitch questions at the student's current level or one above. Only introduce an idea when its prerequisites are at level 2. Combination questions may only use ideas the student already holds at level 2 or above.
329
-
330
- Sessions and steps: every session has a goal and a fixed list of steps chosen by the app. A session note tells you the current step, what to do in it, and the focus ideas. Do only the current step; when its goal is met call finish_step and then follow the next step's instructions in the same reply. Do not name the steps to the student unless it helps ("Now a quick check…"). Keep each step to about three exchanges. If the student asks something off the plan but on this chapter, answer briefly and return to the step.
331
-
332
- Recording: after judging every attempted answer, call record_attempt with the atom ids it tested, before you reply. The student may tag a message with [confidence: guess|think so|sure]; that is attached automatically.
333
-
334
- Boundaries
335
- - Stay on this chapter, its subject's exam technique, and study skills. Redirect anything else in one friendly sentence. If they keep pulling away, call flag with off_topic.
336
- - If they ask you to just give answers to homework, a test or a self-check, decline kindly, offer to work through the idea on a different example, and call flag with answer_seeking.
337
- - If they say anything distressing or personal (feeling unsafe, very upset, self-harm, bullying), respond with warmth, do not counsel, suggest talking to a parent or a teacher they trust, and call flag with distress.
338
- - The student knows their parent can read these chats. Be warm, encouraging and honest. Praise effort and good reasoning, not just right answers."""
339
-
340
-
341
- def system_blocks(chapter: dict) -> list[dict]:
342
- atoms = "\n".join(
343
- f"{a['id']} [{a['type']}, {a['tier']}, {a['paragraphs']}] {a['statement']} | why: {a['why']}"
344
- + (f" | needs: {', '.join(a['prerequisites'])}" if a["prerequisites"] else "")
345
- for a in chapter["atoms"])
346
- mis = "\n".join(f"{m['id']}: wrong belief: {m['wrong']} | correct: {m['correct']} | fix with: {', '.join(m['atoms'])}"
347
- for m in chapter["misconceptions"])
348
- text = (f"{RULES}\n\n=== CHAPTER: {chapter['subject']} {chapter['code']}, {chapter['chapter']} ===\n\n"
349
- f"--- Chapter text (canonical, from first principles) ---\n{chapter['text']}\n\n"
350
- f"--- Ideas (atoms) ---\n{atoms}\n\n--- Known misconceptions ---\n{mis}\n")
351
- return [{"type": "text", "text": text, "cache_control": {"type": "ephemeral"}}]
352
-
353
-
354
- # ---------------------------------------------------------------- sessions
355
- def current_step(sess: dict) -> dict | None:
356
- return next((st for st in sess.get("plan", []) if st["status"] == "todo"), None)
357
-
358
-
359
- def step_note(sess: dict, st: dict) -> str:
360
- chapter = CHAPTERS[sess["chapterId"]]
361
- names = {a["id"]: a["statement"] for a in chapter["atoms"]}
362
- idx = sess["plan"].index(st) + 1
363
- focus = "\n".join(f"- {a}: {names.get(a, '')}" for a in st["focus"][:12])
364
- paras = ""
365
- if sess.get("topicId"):
366
- t = topic_of(sess["chapterId"], sess["topicId"])
367
- if t and t.get("paragraphs"):
368
- paras = f"\nChapter paragraphs for this topic: {', '.join(t['paragraphs'])}"
369
- over = ""
370
- if st["exchanges"] >= MAX_EXCHANGES_PER_STEP:
371
- over = "\nThis step has run its course: wrap it up in this reply and call finish_step."
372
- if sess.get("studentMessages", 0) >= MAX_STUDENT_MESSAGES:
373
- over = "\nThe session has run long: finish the current step quickly and move to the wrap-up."
374
- ctx = f"\nContext:\n{st['context']}" if st.get("context") else ""
375
- return (f"SESSION GOAL: {sess['goal']}\nCURRENT STEP {idx} of {len(sess['plan'])}: {STEPS[st['name']][0]}\n"
376
- f"What to do: {STEPS[st['name']][2]}\nFocus ideas:\n{focus}{paras}{ctx}{over}")
377
-
378
-
379
- def spent_today(store, student_id: str) -> float:
380
- today = now().date().isoformat()
381
- return sum(m.get("cost") or 0 for s in store.chats.values() if s["studentId"] == student_id
382
- for m in s["transcript"] if m.get("role") == "tutor" and str(m.get("t", "")).startswith(today))
383
-
384
-
385
- class CapReached(Exception):
386
- pass
387
-
388
-
389
- def _meta(sess: dict) -> dict:
390
- last = sess["transcript"][-1]
391
- return {k: last.get(k) for k in ("model", "effort", "why", "seconds", "cost")}
392
-
393
-
394
- class Tutor:
395
- def __init__(self, store, students: dict, client_factory) -> None:
396
- self.store = store # app.Store: .mastery, .chats, queue_write()
397
- self.students = students
398
- self.client_factory = client_factory
399
- self.locks: dict[str, threading.Lock] = {}
400
-
401
- def _lock(self, sid: str) -> threading.Lock:
402
- return self.locks.setdefault(sid, threading.Lock())
403
-
404
- def state_for(self, student_id: str, chapter: dict) -> dict:
405
- m = self.store.mastery.get(student_id, {})
406
- t = now()
407
- out = []
408
- for a in chapter["atoms"]:
409
- st = m.get(a["id"], blank_atom())
410
- out.append({"id": a["id"], "level": st["level"], "seen": st["seen"], "right": st["right"],
411
- "due": bool(st.get("due") and datetime.fromisoformat(st["due"]) <= t and st["level"] > 0)})
412
- last = [x for x in self.store.attempts if x["studentId"] == student_id and x["setId"] == chapter["id"]]
413
- last.sort(key=lambda x: x["submittedAt"])
414
- return {"ideas": out, "due_plan": plan(m, chapter),
415
- "latest_selfcheck": (f"{last[-1]['score']}/{last[-1]['max']}" if last else "none yet")}
416
-
417
- def _run_tool(self, sess: dict, name: str, args: dict) -> str:
418
- chapter = CHAPTERS[sess["setId"]]
419
- if name == "get_student_state":
420
- return json.dumps(self.state_for(sess["studentId"], chapter))
421
- if name == "calculate":
422
- try:
423
- v = safe_eval(args["expression"])
424
- return json.dumps({"value": v, "rounded_3sf": float(f"{v:.3g}")})
425
- except Exception as e: # noqa: BLE001 - report any evaluation problem to the model
426
- return json.dumps({"error": str(e)})
427
- if name == "record_attempt":
428
- valid = {a["id"] for a in chapter["atoms"]}
429
- ids = [a for a in args.get("atom_ids", []) if a in valid][:4]
430
- if not ids:
431
- return json.dumps({"error": "none of those atom ids are in this chapter"})
432
- m = self.store.mastery.setdefault(sess["studentId"], {})
433
- changes = [apply_result(m, a, bool(args["correct"]), int(args["level_tested"]), sess.get("confidence"), f"tutor:{sess['id']}")
434
- for a in ids]
435
- sess["attempts"].append({"t": iso(now()), **args, "confidence": sess.get("confidence"), "changes": changes})
436
- sess["lastResult"] = bool(args["correct"])
437
- self.store.queue_write(f"mastery/{sess['studentId']}.json", m)
438
- return json.dumps({"recorded": True, "level_changes": changes})
439
- if name == "finish_step":
440
- cur = current_step(sess)
441
- if cur is None:
442
- return json.dumps({"session_complete": True, "instruction": "The session is complete. Say a short goodbye; do not ask a new question."})
443
- cur["status"] = "done" if args.get("outcome") != "skipped" else "skipped"
444
- cur["note"] = args.get("note", "")
445
- nxt = current_step(sess)
446
- if nxt is None:
447
- sess["complete"] = True
448
- sess["summary"] = self.summary(sess)
449
- return json.dumps({"session_complete": True, "instruction": "That was the last step. Finish your message warmly in one line; the app shows the summary."})
450
- return json.dumps({"next_step": nxt["label"], "instruction": step_note(sess, nxt)})
451
- if name == "flag":
452
- sess["flags"].append({"t": iso(now()), **args})
453
- return json.dumps({"flagged": True})
454
- return json.dumps({"error": f"unknown tool {name}"})
455
-
456
- def _turn(self, sess: dict, model: str, effort: str, reason: str) -> str:
457
- import anthropic
458
-
459
- client = self.client_factory()
460
- chapter = CHAPTERS[sess["setId"]]
461
- replies, t0, cost, served = [], time.monotonic(), 0.0, model
462
- for _ in range(MAX_TOOL_ROUNDS):
463
- try:
464
- resp = client.beta.messages.create(
465
- model=model,
466
- max_tokens=16000,
467
- betas=["server-side-fallback-2026-07-01"],
468
- fallbacks="default",
469
- output_config={"effort": effort},
470
- cache_control={"type": "ephemeral"}, # also cache the growing conversation
471
- system=system_blocks(chapter),
472
- tools=TOOLS,
473
- messages=sess["messages"],
474
- )
475
- except anthropic.BadRequestError:
476
- if model == FABLE: # e.g. Fable not enabled for this account: use Opus for this turn
477
- sess["flags"].append({"t": iso(now()), "kind": "other", "note": "A Fable 5.1 request was rejected; Opus 5.5 answered instead."})
478
- model, effort, reason = OPUS, "medium", reason + " (Fable unavailable)"
479
- continue
480
- raise
481
- served = getattr(resp, "model", None) or model
482
- u = resp.usage
483
- c = turn_cost(served, u)
484
- cost += c
485
- bm = sess["usage"].setdefault("byModel", {}).setdefault(
486
- served, {"turns": 0, "input": 0, "output": 0, "cache_read": 0, "cache_write": 0, "cost": 0.0})
487
- parts = {"input": u.input_tokens or 0, "output": u.output_tokens or 0,
488
- "cache_read": getattr(u, "cache_read_input_tokens", 0) or 0,
489
- "cache_write": getattr(u, "cache_creation_input_tokens", 0) or 0}
490
- for k, v in parts.items():
491
- bm[k] += v
492
- sess["usage"][k] = sess["usage"].get(k, 0) + v
493
- bm["cost"] = round(bm["cost"] + c, 6)
494
- sess["messages"].append({"role": "assistant", "content": [blk.to_dict() for blk in resp.content]})
495
- text = "\n".join(blk.text for blk in resp.content if blk.type == "text").strip()
496
- if text:
497
- replies.append(text)
498
- if resp.stop_reason == "refusal":
499
- replies.append(f"I can't help with that one. Let's get back to {chapter['chapter']}.")
500
- sess["flags"].append({"t": iso(now()), "kind": "other", "note": "The model declined a message."})
501
- break
502
- if resp.stop_reason != "tool_use":
503
- break
504
- results = []
505
- for blk in resp.content:
506
- if blk.type == "tool_use":
507
- out = self._run_tool(sess, blk.name, blk.input or {})
508
- sess["tools"].append({"t": iso(now()), "name": blk.name, "input": blk.input, "output": out})
509
- results.append({"type": "tool_result", "tool_use_id": blk.id, "content": out})
510
- sess["messages"].append({"role": "user", "content": results})
511
- sess["usage"].setdefault("byModel", {}).setdefault(
512
- served, {"turns": 0, "input": 0, "output": 0, "cache_read": 0, "cache_write": 0, "cost": 0.0})["turns"] += 1
513
- sess["usage"]["cost"] = round(sess["usage"].get("cost", 0.0) + cost, 6)
514
- reply = "\n\n".join(replies) or "Sorry, I lost my train of thought. Could you say that again?"
515
- sess["transcript"].append({"role": "tutor", "text": reply, "t": iso(now()), "model": served, "effort": effort,
516
- "why": reason, "seconds": round(time.monotonic() - t0, 1), "cost": round(cost, 5)})
517
- return reply
518
-
519
- def summary(self, sess: dict) -> dict:
520
- moved: dict[str, list] = {}
521
- for att in sess["attempts"]:
522
- for c in att["changes"]:
523
- moved.setdefault(c["atom"], [c["from"], c["to"]])[1] = c["to"]
524
- names = {a["id"]: a["statement"] for a in CHAPTERS[sess["chapterId"]]["atoms"]}
525
- up = [{"atom": a, "idea": names.get(a, ""), "to": v[1]} for a, v in moved.items() if v[1] > v[0]]
526
- down = [{"atom": a, "idea": names.get(a, ""), "to": v[1]} for a, v in moved.items() if v[1] < v[0]]
527
- right = sum(1 for x in sess["attempts"] if x.get("correct"))
528
- nxt = None
529
- if sess.get("topicId"):
530
- t = topic_of(sess["chapterId"], sess["topicId"])
531
- if t and t.get("quizId"):
532
- nxt = {"kind": "quiz", "id": t["quizId"], "label": f"Take the {t['title']} quiz"}
533
- return {"steps": sum(1 for st in sess["plan"] if st["status"] == "done"), "of": len(sess["plan"]),
534
- "answered": len(sess["attempts"]), "right": right, "up": up, "down": down, "next": nxt}
535
-
536
- def _public(self, sess: dict) -> dict:
537
- cur = current_step(sess)
538
- return {"sessionId": sess["id"], "kind": sess["kind"], "goal": sess["goal"], "complete": bool(sess.get("complete")),
539
- "plan": [{"label": st["label"], "status": st["status"]} for st in sess["plan"]],
540
- "step": sess["plan"].index(cur) if cur else len(sess["plan"]), "summary": sess.get("summary")}
541
-
542
- def _run(self, sess: dict) -> str:
543
- cur = current_step(sess)
544
- if cur is not None:
545
- cur["exchanges"] += 1
546
- note = step_note(sess, cur)
547
- if sess.pop("greet", None) and not any(m["role"] == "tutor" for m in sess["transcript"]):
548
- note = f"The student is {self.students[sess['studentId']]['name']}. Greet them by name in a few words, then begin.\n" + note
549
- sess["messages"].append({"role": "system", "content": note})
550
- effort = STEPS[cur["name"]][1]
551
- else:
552
- sess["messages"].append({"role": "system", "content": "The session is complete. Reply briefly and kindly; do not start new questions. Suggest they take the topic quiz or end the session."})
553
- effort = "low"
554
- mode = self.store.settings.get("tutorRouting", "opus")
555
- model = FABLE if mode == "fable" else OPUS
556
- return self._turn(sess, model, effort, f"step: {cur['label'] if cur else 'after end'}")
557
-
558
- def start(self, student_id: str, chapter_id: str, kind: str, topic_id: str | None = None,
559
- attempt_id: str | None = None, fix_items: list | None = None) -> dict:
560
- if spent_today(self.store, student_id) >= DAILY_CAP_USD:
561
- raise CapReached()
562
- name = self.students[student_id]["name"]
563
- topic = topic_of(chapter_id, topic_id) if topic_id else None
564
- if kind in ("learn", "ask") and not topic:
565
- raise ValueError("unknown topic")
566
- m = self.store.mastery.get(student_id, {})
567
- goal, steps = build_plan(kind, chapter_id, m, topic, fix_items)
568
- if kind == "review" and len(steps) <= 1:
569
- raise ValueError("nothing to review yet")
570
- sid = now().strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
571
- sess = {"id": sid, "studentId": student_id, "setId": chapter_id, "chapterId": chapter_id, "topicId": topic_id,
572
- "attemptId": attempt_id, "kind": kind, "mode": kind, "goal": goal, "plan": steps,
573
- "started": iso(now()), "updated": iso(now()), "messages": [], "transcript": [], "attempts": [],
574
- "flags": [], "tools": [], "usage": {"input": 0, "output": 0, "cache_read": 0, "cache_write": 0},
575
- "confidence": None, "studentMessages": 0}
576
- opener = {"learn": f"I'd like to learn: {topic['title'] if topic else ''}.", "ask": f"I have a question about {topic['title'] if topic else 'this topic'}.",
577
- "fix": "Help me fix my quiz mistakes.", "review": "Let's do my review."}[kind]
578
- sess["messages"] = [{"role": "user", "content": opener}]
579
- sess["greet"] = f"The student is {name}. Greet them by name in a few words, then begin the first step."
580
- sess["transcript"].append({"role": "student", "text": opener, "t": iso(now())})
581
- with self._lock(sid):
582
- self.store.chats[sid] = sess
583
- reply = self._run(sess)
584
- sess["updated"] = iso(now())
585
- self.store.queue_write(f"chats/{sid}.json", sess)
586
- return {**self._public(sess), "reply": reply, "meta": _meta(sess)}
587
-
588
- def message(self, sid: str, text: str, confidence: str | None) -> dict:
589
- sess = self.store.chats[sid]
590
- if spent_today(self.store, sess["studentId"]) >= DAILY_CAP_USD:
591
- raise CapReached()
592
- with self._lock(sid):
593
- n_before = len(sess["attempts"])
594
- sess["confidence"] = confidence
595
- sess["studentMessages"] = sess.get("studentMessages", 0) + 1
596
- tagged = text + (f"\n[confidence: {confidence}]" if confidence else "")
597
- sess["messages"].append({"role": "user", "content": tagged})
598
- sess["transcript"].append({"role": "student", "text": text, "confidence": confidence, "t": iso(now())})
599
- reply = self._run(sess)
600
- sess["updated"] = iso(now())
601
- self.store.queue_write(f"chats/{sid}.json", sess)
602
- changes = [c for att in sess["attempts"][n_before:] for c in att["changes"]]
603
- return {**self._public(sess), "reply": reply, "changes": changes, "meta": _meta(sess)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """The StepWise tutor: a topic-bound Claude tutor with per-idea levels and spaced review.
2
+
3
+ Design: syllabus/igcse/midterm/TUTOR_AGENT_PLAN.md in the project repo.
4
+
5
+ - Mastery: each student holds a level 0-4 on every atom (idea). Two correct answers in a
6
+ row at or above the current level move it up one; a wrong answer moves it down one (two
7
+ if the student said they were sure) and makes it due tomorrow. Self-check results feed
8
+ the same levels.
9
+ - Sessions are typed and planned by the server (apps/selfcheck-space/TUTOR_STRUCTURE.md):
10
+ learn <topic>, ask <topic>, fix <quiz attempt>, review <chapter>. Each has a fixed list of
11
+ steps; Claude teaches one step at a time and calls finish_step to advance. Learn sessions on
12
+ chunked topics run part by part with no turn limit (CHUNK_MODEL.md); the daily spend cap stays.
13
+ - Claude works only through five tools: get_student_state, record_attempt, calculate,
14
+ finish_step, flag.
15
+ - Every message, tool call and level change is stored; parents read the full text.
16
+ """
17
+ from __future__ import annotations
18
+
19
+ import ast
20
+ import json
21
+ import math
22
+ import operator
23
+ import threading
24
+ import uuid
25
+ from datetime import datetime, timedelta, timezone
26
+ from pathlib import Path
27
+
28
+ import re
29
+ import time
30
+
31
+ # $ per million tokens. Cache writes use the default 5-minute TTL (1.25x input).
32
+ PRICES = {
33
+ "claude-opus-5-5": {"in": 4.0, "out": 20.0, "write": 5.0, "read": 0.20, "label": "Opus 5.5"},
34
+ "claude-fable-5-1": {"in": 10.0, "out": 50.0, "write": 12.5, "read": 0.25, "label": "Fable 5.1"},
35
+ }
36
+ OPUS, FABLE = "claude-opus-5-5", "claude-fable-5-1"
37
+ ROUTING_MODES = ("auto", "opus", "fable")
38
+ MAX_TOOL_ROUNDS = 6
39
+
40
+ HARD_WORDS = re.compile(
41
+ r"\b(why|explain|don'?t (get|understand)|confus\w*|stuck|how come|prove|derive|what if|difference between|"
42
+ r"compare|calculate|work out|show that|evaluate|discuss|plan an? (experiment|investigation))\b", re.I)
43
+ NUMBERY = re.compile(r"\d+(?:\.\d+)?")
44
+
45
+
46
+ def route(sess: dict, text, mode: str) -> tuple:
47
+ """Pick (model, effort, reason) for one tutor turn.
48
+
49
+ auto: quick turns (short answers, acknowledgements, simple recall) go to Opus 5.5 at low
50
+ effort so they stay fast. Turns that need diagnosis or multi-step reasoning go to Fable 5.1:
51
+ a why/explain/stuck message, a multi-step numeric answer, or a reply right after the
52
+ student's last recorded answer was wrong.
53
+ """
54
+ if mode == "opus":
55
+ return OPUS, "medium", "always Opus"
56
+ if mode == "fable":
57
+ return FABLE, "medium", "always Fable"
58
+ if text is None:
59
+ return OPUS, "medium", "session start"
60
+ # Sticky upgrade: each model keeps its own prompt cache (the chapter text, ~20k tokens),
61
+ # so once a session needs Fable it stays on Fable instead of paying to load both caches.
62
+ if sess.get("upgraded"):
63
+ return FABLE, "low" if len(text.split()) <= 12 else "medium", "session moved to Fable"
64
+ reason = None
65
+ if sess.get("lastResult") is False:
66
+ reason = "last answer was wrong: diagnose"
67
+ elif HARD_WORDS.search(text):
68
+ reason = "asks why or multi-step"
69
+ elif len(NUMBERY.findall(text)) >= 3 and len(text.split()) >= 8:
70
+ reason = "multi-step working"
71
+ if reason:
72
+ sess["upgraded"] = True
73
+ return FABLE, "medium", reason
74
+ if len(text.split()) <= 12:
75
+ return OPUS, "low", "short reply"
76
+ return OPUS, "medium", "default"
77
+
78
+
79
+ def turn_cost(model: str, u) -> float:
80
+ p = PRICES.get(model) or PRICES[OPUS]
81
+ return ((u.input_tokens or 0) * p["in"] + (u.output_tokens or 0) * p["out"]
82
+ + (getattr(u, "cache_creation_input_tokens", 0) or 0) * p["write"]
83
+ + (getattr(u, "cache_read_input_tokens", 0) or 0) * p["read"]) / 1e6
84
+ INTERVAL_DAYS = {0: 0, 1: 1, 2: 2, 3: 4, 4: 7}
85
+ LEVEL_NAMES = {0: "not met", 1: "recall", 2: "apply one step", 3: "combine", 4: "exam-ready"}
86
+
87
+ HERE = Path(__file__).parent
88
+ CHAPTERS: dict[str, dict] = {
89
+ json.loads(p.read_text(encoding="utf-8"))["id"]: json.loads(p.read_text(encoding="utf-8"))
90
+ for p in sorted((HERE / "data" / "chapters").glob("*.json"))
91
+ }
92
+
93
+
94
+ TOPICS: dict[str, dict] = {}
95
+ for _p in sorted((HERE / "data" / "topics").glob("*.json")):
96
+ _d = json.loads(_p.read_text(encoding="utf-8"))
97
+ TOPICS[_d["chapterId"]] = _d
98
+ if _d["chapterId"] in CHAPTERS: # topic files carry the cleaned-up chapter title
99
+ CHAPTERS[_d["chapterId"]]["chapter"] = _d["chapter"]
100
+
101
+ DAILY_CAP_USD = 5.0 # the only hard stop; there is no limit on turns (CHUNK_MODEL.md)
102
+ BREAK_AFTER_MIN = 20 # offer (never force) a break after this long on one part
103
+
104
+ # What Claude must do in each step. The server shows exactly one of these at a time.
105
+ STEPS = {
106
+ "predict": ("Predict", "low", "Ask ONE short prediction or intuition question about this topic before any teaching (e.g. what do you think happens if…, why might…). Accept any honest attempt, react in one or two warm sentences, then call finish_step and move straight on to the next step."),
107
+ "explain": ("Explain", "medium", "Teach the topic's core idea from first principles, building on what the student just predicted. Use the listed paragraphs of the chapter text. Two to four short paragraphs, one everyday example, no new jargon without a meaning. End by asking whether it makes sense or if they want anything clarified. When they acknowledge (or after you answer one follow-up), call finish_step."),
108
+ "check": ("Check", "low", "Ask two quick questions, ONE at a time, each on a different idea of this topic (recall or one-step). After each answer call record_attempt (level 1 or 2) and give one line of feedback; if wrong, give the right idea in one or two lines. After the second answer, call finish_step."),
109
+ "apply": ("Apply", "medium", "Ask ONE exam-style question that needs two steps or combines two ideas of this topic (level 3). Use the hint ladder if they are stuck; never give the final answer first. When they reach an answer, call record_attempt, explain briefly, then call finish_step."),
110
+ "wrapup": ("Wrap-up", "low", "Close the session: three short bullet points of what they practised and one thing to watch for. Praise effort specifically. Do NOT ask a new question. Call finish_step."),
111
+ "diagnose": ("Your thinking", "medium", "Show the quiz question and the student's answer (given below). Ask them to explain how they got their answer. Do NOT reveal the correct answer yet. When they have explained, call finish_step."),
112
+ "reteach": ("The idea", "medium", "From their explanation, name the exact faulty idea kindly. Re-teach only that idea in a few lines, with a quick case where the wrong belief gives an absurd result. Then give the correct answer to the quiz question with the reasoning. Call finish_step."),
113
+ "retry": ("Try one", "low", "Give ONE new question testing the same idea with different numbers or context. When they answer, call record_attempt, give one line of feedback, and call finish_step."),
114
+ "review_q": ("Review", "low", "Ask ONE quick question on the focus idea (it is due for review). After the answer call record_attempt; if wrong, explain the idea in two lines. Call finish_step."),
115
+ "answer": ("Your question", "medium", "If the student has not asked yet, invite their question about this topic in one line and wait. When they ask, answer it clearly and briefly (under 150 words), grounded in the chapter text. If the question is outside this topic, say so in one line and offer the nearest thing in this topic. Then call finish_step."),
116
+ "check1": ("Check", "low", "Ask ONE quick question that checks they understood your answer. After their answer call record_attempt, give one line of feedback, and call finish_step."),
117
+ # Learning in parts ("chunks", syllabus/igcse/quizzes/CHUNK_MODEL.md). No turn limit in any of these.
118
+ "c_predict": ("Predict", "low", "Open this part with its driving question (below), in your own words, as ONE question for the student to try before any teaching. Accept any honest attempt, including 'I don't know', warmly in one or two sentences, then call finish_step and go straight on to the next step in the same reply."),
119
+ "c_explain": ("Explain", "medium", "Teach ONLY this part's ideas (listed below), from first principles, starting from the driving question and what the student just said. One idea at a time: first why the organism or system needs it, then its name and meaning. Use no technical term outside this part's new terms and words the student already knows. Keep each message short (under about 150 words) and end it with a quick question that checks they are following. If they say it doesn't make sense, rebuild from a simpler starting point and an everyday example; never just repeat. There is no limit on exchanges: take as many as they need. When they have followed every idea in this part, call finish_step."),
120
+ "c_check": ("Check", "low", "Make sure every idea in this part has landed. Ask ONE question at a time, each on an idea not yet answered right (listed below as 'still to check'). A question may combine two of this part's ideas. After each answer call record_attempt with the atom ids it tested (level 1 or 2) and give one line of feedback. If it was wrong, re-explain that idea a fresh way in two to four lines, then ask a new question on it. When every idea has been answered right, call finish_step."),
121
+ }
122
+ CHUNK_STEPS = ("c_predict", "c_explain", "c_check")
123
+
124
+
125
+ def chapter_of(set_or_chapter_id: str) -> str:
126
+ """Quiz ids look like <chapterId>_qNN; anything else is already a chapter id."""
127
+ import re as _re
128
+ return _re.sub(r"_q\d{2}$", "", set_or_chapter_id)
129
+
130
+
131
+ def topic_of(chapter_id: str, topic_id: str | None) -> dict | None:
132
+ for t in (TOPICS.get(chapter_id) or {}).get("topics", []):
133
+ if t["id"] == topic_id:
134
+ return t
135
+ return None
136
+
137
+
138
+ def chunk_key(chapter_id: str, chunk_id: str) -> str:
139
+ return f"{chapter_id}/{chunk_id}"
140
+
141
+
142
+ def chunk_of(sess: dict, chunk_id: str | None) -> dict | None:
143
+ t = topic_of(sess["chapterId"], sess.get("topicId"))
144
+ return next((c for c in (t or {}).get("chunks", []) if c["id"] == chunk_id), None)
145
+
146
+
147
+ def chunk_status(progress: dict, chapter_id: str, chunk_id: str) -> str:
148
+ """'learned', 'skipped' or 'todo' for one student."""
149
+ return (progress.get("chunks", {}).get(chunk_key(chapter_id, chunk_id)) or {}).get("status", "todo")
150
+
151
+
152
+ def chunk_plan(chapter_id: str, topic: dict, progress: dict, start_id: str | None) -> list[str]:
153
+ """Which parts a Learn session covers: from the start part (asked for, else the first not yet
154
+ learned, else the first) to the end of the topic, skipping later parts already learned."""
155
+ ids = [c["id"] for c in topic["chunks"]]
156
+ todo = [c for c in ids if chunk_status(progress, chapter_id, c) != "learned"]
157
+ start = start_id if start_id in ids else (todo[0] if todo else ids[0])
158
+ i = ids.index(start)
159
+ return [start] + [c for c in ids[i + 1:] if c in todo]
160
+
161
+
162
+ def build_plan(kind: str, chapter_id: str, m: dict, topic: dict | None, fix_items: list | None,
163
+ progress: dict | None = None, chunk_id: str | None = None) -> tuple[str, list]:
164
+ """Return (goal, steps). Each step: {name, label, focus[atom ids], context, status}."""
165
+ def step(name, focus=(), context="", chunk=None):
166
+ label, _, _ = STEPS[name]
167
+ return {"name": name, "label": label, "focus": list(focus), "context": context, "status": "todo", "exchanges": 0,
168
+ **({"chunk": chunk} if chunk else {})}
169
+ chapter = CHAPTERS[chapter_id]
170
+ if kind == "learn" and topic and topic.get("chunks"):
171
+ by = {c["id"]: c for c in topic["chunks"]}
172
+ steps = [step(n, by[cid]["atom_ids"], chunk=cid) for cid in chunk_plan(chapter_id, topic, progress or {}, chunk_id)
173
+ for n in CHUNK_STEPS]
174
+ return (f"Learn: {topic['title']}. {topic['goal']}", steps)
175
+ if kind == "learn":
176
+ ids = topic["atom_ids"]
177
+ return (f"Learn: {topic['title']}. {topic['goal']}",
178
+ [step("predict", ids), step("explain", ids), step("check", ids), step("apply", ids), step("wrapup", ids)])
179
+ if kind == "ask":
180
+ ids = topic["atom_ids"]
181
+ return (f"Ask about: {topic['title']}", [step("answer", ids), step("check1", ids), step("wrapup", ids)])
182
+ if kind == "fix":
183
+ steps = []
184
+ for it in (fix_items or [])[:3]:
185
+ ctx = (f"Quiz question: {it['prompt']}\n" + (f"Options: {' | '.join(f'{chr(65 + i)}. {o}' for i, o in enumerate(it['options']))}\n" if it.get("options") else "")
186
+ + f"Student's answer: {it['response']}\nCorrect answer (do not reveal before the 'The idea' step): {it['correct']}\n"
187
+ + f"Mark scheme: {it.get('mark_scheme', '')}")
188
+ steps += [step("diagnose", it["atom_ids"], ctx), step("reteach", it["atom_ids"], ctx), step("retry", it["atom_ids"])]
189
+ steps.append(step("wrapup", [a for it in (fix_items or [])[:3] for a in it["atom_ids"]]))
190
+ n = min(3, len(fix_items or []))
191
+ return (f"Fix {n} mistake{'s' if n != 1 else ''} from your quiz", steps)
192
+ if kind == "review":
193
+ t = now()
194
+ ids = {a["id"] for a in chapter["atoms"]}
195
+ due = sorted([aid for aid, st in m.items() if aid in ids and st.get("level", 0) > 0 and st.get("due")
196
+ and datetime.fromisoformat(st["due"]) <= t], key=lambda aid: (m[aid]["level"], m[aid]["due"]))
197
+ if len(due) < 5: # top up with the weakest ideas already met
198
+ due += [aid for aid, st in sorted(m.items(), key=lambda kv: kv[1].get("level", 0))
199
+ if aid in ids and st.get("seen") and aid not in due][: 5 - len(due)]
200
+ due = due[:5]
201
+ return (f"Review: {chapter['chapter']}", [step("review_q", [a]) for a in due] + [step("wrapup", due)])
202
+ raise ValueError(kind)
203
+
204
+
205
+ def now() -> datetime:
206
+ return datetime.now(timezone.utc)
207
+
208
+
209
+ def iso(d: datetime) -> str:
210
+ return d.isoformat(timespec="seconds")
211
+
212
+
213
+ # ---------------------------------------------------------------- mastery
214
+ def blank_atom() -> dict:
215
+ return {"level": 0, "streak": 0, "seen": 0, "right": 0, "last": None, "due": None}
216
+
217
+
218
+ def apply_result(m: dict, atom_id: str, correct: bool, level_tested: int, confidence: str | None, source: str) -> dict:
219
+ a = m.setdefault(atom_id, blank_atom())
220
+ before = a["level"]
221
+ a["seen"] += 1
222
+ a["last"] = iso(now())
223
+ if correct:
224
+ a["right"] += 1
225
+ if level_tested >= a["level"]:
226
+ a["streak"] += 1
227
+ if a["level"] == 0:
228
+ a["level"], a["streak"] = 1, 0 # first correct answer: met it
229
+ elif a["streak"] >= 2:
230
+ a["level"], a["streak"] = min(4, a["level"] + 1), 0
231
+ a["due"] = iso(now() + timedelta(days=INTERVAL_DAYS[a["level"]]))
232
+ else:
233
+ drop = 2 if confidence == "sure" else 1
234
+ a["level"] = max(0, a["level"] - drop)
235
+ a["streak"] = 0
236
+ a["due"] = iso(now() + timedelta(days=1))
237
+ a.setdefault("log", []).append({"t": a["last"], "ok": correct, "lv": level_tested, "conf": confidence, "src": source})
238
+ a["log"] = a["log"][-15:]
239
+ return {"atom": atom_id, "from": before, "to": a["level"]}
240
+
241
+
242
+ def apply_selfcheck(m: dict, set_id: str, attempt: dict) -> None:
243
+ """A self-check answer counts as a level-2 test of each atom it covers."""
244
+ for atom_id, (got, mx) in attempt.get("atoms", {}).items():
245
+ if mx:
246
+ apply_result(m, atom_id, got / mx >= 0.8, 2, None, f"selfcheck:{set_id}")
247
+
248
+
249
+ def plan(m: dict, chapter: dict, reviews: int = 5, new: int = 2) -> dict:
250
+ t = now()
251
+ levels = {a["id"]: m.get(a["id"], blank_atom())["level"] for a in chapter["atoms"]}
252
+ due = [aid for aid, st in m.items() if aid in levels and st.get("due") and st["level"] > 0
253
+ and datetime.fromisoformat(st["due"]) <= t]
254
+ due.sort(key=lambda aid: (m[aid]["level"], m[aid]["due"]))
255
+ ready = [a["id"] for a in chapter["atoms"] if levels[a["id"]] == 0
256
+ and all(levels.get(p, 0) >= 2 for p in a["prerequisites"])]
257
+ return {"reviews": due[:reviews], "new": ready[:new]}
258
+
259
+
260
+ # ---------------------------------------------------------------- tools
261
+ TOOLS = [
262
+ {
263
+ "name": "get_student_state",
264
+ "description": "Get this student's current level (0-4) on every idea in this chapter, which ideas are due for review, recent results and their latest self-check score. Call it at the start of a session and whenever you need to choose what to ask next.",
265
+ "input_schema": {"type": "object", "properties": {}, "additionalProperties": False},
266
+ },
267
+ {
268
+ "name": "record_attempt",
269
+ "description": "Record the student's answer to a question you asked, so their idea levels update. Call it once for every question the student actually attempts, after you have judged the answer, before you reply.",
270
+ "strict": True,
271
+ "input_schema": {
272
+ "type": "object",
273
+ "properties": {
274
+ "atom_ids": {"type": "array", "items": {"type": "string"}, "description": "1-4 atom ids the question tested, from this chapter's list."},
275
+ "correct": {"type": "boolean", "description": "True only if the answer AND the reasoning were right. A right answer with a wrong reason is false."},
276
+ "level_tested": {"type": "integer", "enum": [1, 2, 3, 4], "description": "1 recall, 2 apply one step, 3 combine ideas, 4 exam-style unfamiliar or multi-part."},
277
+ "misconception_id": {"type": ["string", "null"], "description": "Misconception id if the wrong answer matches one, else null."},
278
+ "question": {"type": "string", "description": "The question, in under 25 words."},
279
+ "student_answer": {"type": "string", "description": "The student's answer, in under 25 words."},
280
+ },
281
+ "required": ["atom_ids", "correct", "level_tested", "misconception_id", "question", "student_answer"],
282
+ "additionalProperties": False,
283
+ },
284
+ },
285
+ {
286
+ "name": "calculate",
287
+ "description": "Evaluate an arithmetic expression exactly as written and return the number. Use it to check every numerical answer before you tell the student it is right or wrong. Supports + - * / ** ( ), sqrt(), log10(), and numbers like 6.02e23.",
288
+ "strict": True,
289
+ "input_schema": {
290
+ "type": "object",
291
+ "properties": {"expression": {"type": "string"}},
292
+ "required": ["expression"],
293
+ "additionalProperties": False,
294
+ },
295
+ },
296
+ {
297
+ "name": "finish_step",
298
+ "description": "Call when the CURRENT step's goal (shown in the latest session note) is met. The server then moves to the next step and returns its instructions, which you should follow straight away in the same reply. When the last step is finished the session is complete.",
299
+ "strict": True,
300
+ "input_schema": {
301
+ "type": "object",
302
+ "properties": {
303
+ "outcome": {"type": "string", "enum": ["done", "skipped"], "description": "done if the goal was met; skipped if the student wanted to move on or could not engage."},
304
+ "note": {"type": "string", "description": "One short line for the parent about how this step went."},
305
+ },
306
+ "required": ["outcome", "note"],
307
+ "additionalProperties": False,
308
+ },
309
+ },
310
+ {
311
+ "name": "flag",
312
+ "description": "Flag something the parent should see: off_topic (student keeps pulling away from the subject), answer_seeking (student asks you to just give answers to homework or a test), distress (student says something upsetting or personal), other.",
313
+ "strict": True,
314
+ "input_schema": {
315
+ "type": "object",
316
+ "properties": {
317
+ "kind": {"type": "string", "enum": ["off_topic", "answer_seeking", "distress", "other"]},
318
+ "note": {"type": "string", "description": "One sentence for the parent."},
319
+ },
320
+ "required": ["kind", "note"],
321
+ "additionalProperties": False,
322
+ },
323
+ },
324
+ ]
325
+
326
+ _OPS = {ast.Add: operator.add, ast.Sub: operator.sub, ast.Mult: operator.mul, ast.Div: operator.truediv,
327
+ ast.Pow: operator.pow, ast.USub: operator.neg, ast.UAdd: operator.pos}
328
+ _FUNCS = {"sqrt": math.sqrt, "log10": math.log10, "ln": math.log, "abs": abs, "round": round}
329
+
330
+
331
+ def safe_eval(expr: str) -> float:
332
+ def ev(n):
333
+ if isinstance(n, ast.Expression):
334
+ return ev(n.body)
335
+ if isinstance(n, ast.Constant) and isinstance(n.value, (int, float)):
336
+ return n.value
337
+ if isinstance(n, ast.BinOp) and type(n.op) in _OPS:
338
+ if isinstance(n.op, ast.Pow) and abs(ev(n.right)) > 400:
339
+ raise ValueError("exponent too large")
340
+ return _OPS[type(n.op)](ev(n.left), ev(n.right))
341
+ if isinstance(n, ast.UnaryOp) and type(n.op) in _OPS:
342
+ return _OPS[type(n.op)](ev(n.operand))
343
+ if isinstance(n, ast.Call) and isinstance(n.func, ast.Name) and n.func.id in _FUNCS and not n.keywords:
344
+ return _FUNCS[n.func.id](*[ev(a) for a in n.args])
345
+ raise ValueError("only numbers, + - * / ** ( ) and sqrt/log10/ln/abs/round are allowed")
346
+ cleaned = expr.replace("×", "*").replace("^", "**").replace("−", "-")
347
+ return ev(ast.parse(cleaned, mode="eval"))
348
+
349
+
350
+ # ---------------------------------------------------------------- prompts
351
+ RULES = """You are the StepWise tutor for a Cambridge IGCSE student (about 15 years old). You tutor ONE chapter, given below. Your job is to make the student's understanding visible and fix it, and to test them in small, increasing steps. You are not an answer machine.
352
+
353
+ How you teach
354
+ - One question at a time. Ask, then wait for the student's answer. Keep each message short (usually under 120 words); longer only when explaining an idea from first principles.
355
+ - Before explaining something new, ask the student to predict or try first.
356
+ - When they are stuck, use the hint ladder: (1) name the idea, (2) name the first step, (3) show the first step, (4) a worked example with DIFFERENT numbers, then they redo the original. Never give the final answer first.
357
+ - When they are right, ask why. A right answer with a wrong or missing reason does not count as correct.
358
+ - When a wrong answer matches a listed misconception, name it kindly, show a quick case where the wrong belief gives an absurd result, then ask a fresh question on the same idea.
359
+ - Ground every explanation in the chapter text below (you may cite paragraph ids like [P5] for yourself, but explain in plain words). If something is outside this chapter, say so briefly and offer to come back to the chapter.
360
+ - Check every number with the calculate tool before saying an answer is right or wrong. Never do arithmetic in your head.
361
+ - Use British spelling and IGCSE terms. Write chemistry and physics with Unicode (H₂O, 6.02 × 10²³, m/s²). Plain text with short lines; no tables, no headings, no LaTeX.
362
+
363
+ Levels (each idea, per student): 0 not met, 1 recall, 2 apply one step, 3 combine with other ideas, 4 exam-ready. Pitch questions at the student's current level or one above. Only introduce an idea when its prerequisites are at level 2. Combination questions may only use ideas the student already holds at level 2 or above.
364
+
365
+ Sessions and steps: every session has a goal and a fixed list of steps chosen by the app. A session note tells you the current step, what to do in it, and the focus ideas. Do only the current step; when its goal is met call finish_step and then follow the next step's instructions in the same reply. Do not name the steps to the student unless it helps ("Now a quick check…"). There is no limit on exchanges: move on when the step's goal is met, not before. If the student asks something off the plan but on this chapter, answer briefly and return to the step.
366
+
367
+ Parts: a Learn session may be split into parts, each answering one driving question with a few ideas. Teach only the current part's ideas; never front-load names of structures or terms from later parts. If the student asks about a later part's idea, say in one line that it is coming in a later part, then carry on.
368
+
369
+ Recording: after judging every attempted answer, call record_attempt with the atom ids it tested, before you reply. The student may tag a message with [confidence: guess|think so|sure]; that is attached automatically.
370
+
371
+ Boundaries
372
+ - Stay on this chapter, its subject's exam technique, and study skills. Redirect anything else in one friendly sentence. If they keep pulling away, call flag with off_topic.
373
+ - If they ask you to just give answers to homework, a test or a self-check, decline kindly, offer to work through the idea on a different example, and call flag with answer_seeking.
374
+ - If they say anything distressing or personal (feeling unsafe, very upset, self-harm, bullying), respond with warmth, do not counsel, suggest talking to a parent or a teacher they trust, and call flag with distress.
375
+ - The student knows their parent can read these chats. Be warm, encouraging and honest. Praise effort and good reasoning, not just right answers."""
376
+
377
+
378
+ def system_blocks(chapter: dict) -> list[dict]:
379
+ atoms = "\n".join(
380
+ f"{a['id']} [{a['type']}, {a['tier']}, {a['paragraphs']}] {a['statement']} | why: {a['why']}"
381
+ + (f" | needs: {', '.join(a['prerequisites'])}" if a["prerequisites"] else "")
382
+ for a in chapter["atoms"])
383
+ mis = "\n".join(f"{m['id']}: wrong belief: {m['wrong']} | correct: {m['correct']} | fix with: {', '.join(m['atoms'])}"
384
+ for m in chapter["misconceptions"])
385
+ text = (f"{RULES}\n\n=== CHAPTER: {chapter['subject']} {chapter['code']}, {chapter['chapter']} ===\n\n"
386
+ f"--- Chapter text (canonical, from first principles) ---\n{chapter['text']}\n\n"
387
+ f"--- Ideas (atoms) ---\n{atoms}\n\n--- Known misconceptions ---\n{mis}\n")
388
+ return [{"type": "text", "text": text, "cache_control": {"type": "ephemeral"}}]
389
+
390
+
391
+ # ---------------------------------------------------------------- sessions
392
+ def current_step(sess: dict) -> dict | None:
393
+ return next((st for st in sess.get("plan", []) if st["status"] == "todo"), None)
394
+
395
+
396
+ def session_chunks(sess: dict) -> list[str]:
397
+ out = []
398
+ for st in sess.get("plan", []):
399
+ if st.get("chunk") and st["chunk"] not in out:
400
+ out.append(st["chunk"])
401
+ return out
402
+
403
+
404
+ def still_to_check(sess: dict, chunk_id: str) -> list[str]:
405
+ ch = chunk_of(sess, chunk_id) or {"atom_ids": []}
406
+ right = set(sess.get("chunkRight", {}).get(chunk_id, []))
407
+ return [a for a in ch["atom_ids"] if a not in right]
408
+
409
+
410
+ def step_note(sess: dict, st: dict) -> str:
411
+ chapter = CHAPTERS[sess["chapterId"]]
412
+ names = {a["id"]: a["statement"] for a in chapter["atoms"]}
413
+ mis = {m["id"]: m for m in chapter["misconceptions"]}
414
+ ctx = f"\nContext:\n{st['context']}" if st.get("context") else ""
415
+ if st.get("chunk"):
416
+ ch = chunk_of(sess, st["chunk"]) or {}
417
+ parts = session_chunks(sess)
418
+ k = parts.index(st["chunk"]) + 1
419
+ steps = [s for s in sess["plan"] if s.get("chunk") == st["chunk"]]
420
+ focus = "\n".join(f"- {a}: {names.get(a, '')}" for a in ch.get("atom_ids", []))
421
+ extra = ""
422
+ if ch.get("new_terms"):
423
+ extra += f"\nNew terms allowed in this part: {', '.join(ch['new_terms'])}"
424
+ if ch.get("paragraphs"):
425
+ extra += f"\nChapter paragraphs: {', '.join(ch['paragraphs'])}"
426
+ if ch.get("misconceptions"):
427
+ extra += "\nWatch for: " + "; ".join(f"{m} ({mis[m]['wrong']})" for m in ch["misconceptions"] if m in mis)
428
+ done_before = [c for c in parts[:k - 1]]
429
+ if done_before:
430
+ extra += f"\nEarlier parts already learned this session: {', '.join((chunk_of(sess, c) or {}).get('title', c) for c in done_before)}"
431
+ if st["name"] == "c_check":
432
+ left = still_to_check(sess, st["chunk"])
433
+ extra += "\nStill to check: " + (", ".join(left) if left else "none: call finish_step")
434
+ started = sess.get("chunkStarted", {}).get(st["chunk"])
435
+ if started and not sess.get("breakOffered", {}).get(st["chunk"]) \
436
+ and now() - datetime.fromisoformat(started) > timedelta(minutes=BREAK_AFTER_MIN):
437
+ sess.setdefault("breakOffered", {})[st["chunk"]] = True
438
+ extra += ("\nThey have been on this part for over 20 minutes. Once, kindly, offer a short break "
439
+ "(they can stop and carry on later from this part, or keep going). Do not end the session yourself.")
440
+ return (f"SESSION GOAL: {sess['goal']}\nPART {k} of {len(parts)}: {ch.get('title', '')}\n"
441
+ f"Driving question: {ch.get('question', '')}\n"
442
+ f"CURRENT STEP {steps.index(st) + 1} of {len(steps)} in this part: {STEPS[st['name']][0]}\n"
443
+ f"What to do: {STEPS[st['name']][2]}\nThis part's ideas (teach and check only these):\n{focus}{extra}{ctx}")
444
+ idx = sess["plan"].index(st) + 1
445
+ focus = "\n".join(f"- {a}: {names.get(a, '')}" for a in st["focus"][:12])
446
+ paras = ""
447
+ if sess.get("topicId"):
448
+ t = topic_of(sess["chapterId"], sess["topicId"])
449
+ if t and t.get("paragraphs"):
450
+ paras = f"\nChapter paragraphs for this topic: {', '.join(t['paragraphs'])}"
451
+ return (f"SESSION GOAL: {sess['goal']}\nCURRENT STEP {idx} of {len(sess['plan'])}: {STEPS[st['name']][0]}\n"
452
+ f"What to do: {STEPS[st['name']][2]}\nFocus ideas:\n{focus}{paras}{ctx}")
453
+
454
+
455
+ def spent_today(store, student_id: str) -> float:
456
+ today = now().date().isoformat()
457
+ return sum(m.get("cost") or 0 for s in store.chats.values() if s["studentId"] == student_id
458
+ for m in s["transcript"] if m.get("role") == "tutor" and str(m.get("t", "")).startswith(today))
459
+
460
+
461
+ class CapReached(Exception):
462
+ pass
463
+
464
+
465
+ def _meta(sess: dict) -> dict:
466
+ last = sess["transcript"][-1]
467
+ return {k: last.get(k) for k in ("model", "effort", "why", "seconds", "cost")}
468
+
469
+
470
+ class Tutor:
471
+ def __init__(self, store, students: dict, client_factory) -> None:
472
+ self.store = store # app.Store: .mastery, .chats, queue_write()
473
+ self.students = students
474
+ self.client_factory = client_factory
475
+ self.locks: dict[str, threading.Lock] = {}
476
+
477
+ def _lock(self, sid: str) -> threading.Lock:
478
+ return self.locks.setdefault(sid, threading.Lock())
479
+
480
+ def state_for(self, student_id: str, chapter: dict) -> dict:
481
+ m = self.store.mastery.get(student_id, {})
482
+ t = now()
483
+ out = []
484
+ for a in chapter["atoms"]:
485
+ st = m.get(a["id"], blank_atom())
486
+ out.append({"id": a["id"], "level": st["level"], "seen": st["seen"], "right": st["right"],
487
+ "due": bool(st.get("due") and datetime.fromisoformat(st["due"]) <= t and st["level"] > 0)})
488
+ last = [x for x in self.store.attempts if x["studentId"] == student_id and x["setId"] == chapter["id"]]
489
+ last.sort(key=lambda x: x["submittedAt"])
490
+ return {"ideas": out, "due_plan": plan(m, chapter),
491
+ "latest_selfcheck": (f"{last[-1]['score']}/{last[-1]['max']}" if last else "none yet")}
492
+
493
+ def _run_tool(self, sess: dict, name: str, args: dict) -> str:
494
+ chapter = CHAPTERS[sess["setId"]]
495
+ if name == "get_student_state":
496
+ return json.dumps(self.state_for(sess["studentId"], chapter))
497
+ if name == "calculate":
498
+ try:
499
+ v = safe_eval(args["expression"])
500
+ return json.dumps({"value": v, "rounded_3sf": float(f"{v:.3g}")})
501
+ except Exception as e: # noqa: BLE001 - report any evaluation problem to the model
502
+ return json.dumps({"error": str(e)})
503
+ if name == "record_attempt":
504
+ valid = {a["id"] for a in chapter["atoms"]}
505
+ ids = [a for a in args.get("atom_ids", []) if a in valid][:4]
506
+ if not ids:
507
+ return json.dumps({"error": "none of those atom ids are in this chapter"})
508
+ m = self.store.mastery.setdefault(sess["studentId"], {})
509
+ changes = [apply_result(m, a, bool(args["correct"]), int(args["level_tested"]), sess.get("confidence"), f"tutor:{sess['id']}")
510
+ for a in ids]
511
+ cur = current_step(sess)
512
+ if cur and cur.get("chunk"): # live idea status for the part being learnt
513
+ own = set((chunk_of(sess, cur["chunk"]) or {}).get("atom_ids", []))
514
+ tried = sess.setdefault("chunkTried", {}).setdefault(cur["chunk"], [])
515
+ tried += [a for a in ids if a in own and a not in tried]
516
+ if args["correct"]:
517
+ # Only a right answer in the Check step (after all the teaching) counts towards learning
518
+ # the part; right answers while it is being explained show as "following".
519
+ key = "chunkRight" if cur["name"] == "c_check" else "chunkFollowing"
520
+ right = sess.setdefault(key, {}).setdefault(cur["chunk"], [])
521
+ right += [a for a in ids if a in own and a not in right]
522
+ sess["attempts"].append({"t": iso(now()), **args, "confidence": sess.get("confidence"), "changes": changes})
523
+ sess["lastResult"] = bool(args["correct"])
524
+ self.store.queue_write(f"mastery/{sess['studentId']}.json", m)
525
+ out = {"recorded": True, "level_changes": changes}
526
+ if cur and cur["name"] == "c_check":
527
+ out["still_to_check"] = still_to_check(sess, cur["chunk"])
528
+ return json.dumps(out)
529
+ if name == "finish_step":
530
+ cur = current_step(sess)
531
+ if cur is None:
532
+ return json.dumps({"session_complete": True, "instruction": "The session is complete. Say a short goodbye; do not ask a new question."})
533
+ skipped = args.get("outcome") == "skipped"
534
+ if cur["name"] == "c_check" and not skipped and still_to_check(sess, cur["chunk"]):
535
+ left = still_to_check(sess, cur["chunk"])
536
+ return json.dumps({"not_yet": True, "still_to_check": left, "instruction":
537
+ "Not every idea in this part has been answered right yet. Ask ONE question on the next idea "
538
+ "still to check (re-explain it briefly first if they got it wrong), record it, and call finish_step "
539
+ "again once all are right. Use outcome 'skipped' only if the student asks to move on."})
540
+ cur["status"] = "skipped" if skipped else "done"
541
+ cur["note"] = args.get("note", "")
542
+ if cur.get("chunk") and (cur["name"] == "c_check" or skipped):
543
+ # a skipped step skips the rest of its part
544
+ for st in sess["plan"]:
545
+ if st.get("chunk") == cur["chunk"] and st["status"] == "todo":
546
+ st["status"] = "skipped"
547
+ self._chunk_finished(sess, cur["chunk"], "skipped" if skipped else "learned")
548
+ nxt = current_step(sess)
549
+ if nxt is None:
550
+ sess["complete"] = True
551
+ sess["summary"] = self.summary(sess)
552
+ return json.dumps({"session_complete": True, "instruction":
553
+ "That was the last part of this topic. In three short bullet points say what they now understand, "
554
+ "praise one specific thing they did well, and do NOT ask a new question. The app shows the summary and quizzes."})
555
+ return json.dumps({"part_finished": True, "instruction":
556
+ "This part is finished. In two or three short lines tell the student what they now understand from it "
557
+ "and praise one specific thing. Do NOT ask a question and do NOT start the next part: the app now shows "
558
+ "them a card to take this part's short quiz or carry on. The next part starts when they reply."})
559
+ nxt = current_step(sess)
560
+ if nxt is None:
561
+ sess["complete"] = True
562
+ sess["summary"] = self.summary(sess)
563
+ return json.dumps({"session_complete": True, "instruction": "That was the last step. Finish your message warmly in one line; the app shows the summary."})
564
+ if nxt.get("chunk"):
565
+ sess.setdefault("chunkStarted", {}).setdefault(nxt["chunk"], iso(now()))
566
+ return json.dumps({"next_step": nxt["label"], "instruction": step_note(sess, nxt)})
567
+ if name == "flag":
568
+ sess["flags"].append({"t": iso(now()), **args})
569
+ return json.dumps({"flagged": True})
570
+ return json.dumps({"error": f"unknown tool {name}"})
571
+
572
+ def _turn(self, sess: dict, model: str, effort: str, reason: str) -> str:
573
+ import anthropic
574
+
575
+ client = self.client_factory()
576
+ chapter = CHAPTERS[sess["setId"]]
577
+ replies, t0, cost, served = [], time.monotonic(), 0.0, model
578
+ for _ in range(MAX_TOOL_ROUNDS):
579
+ try:
580
+ resp = client.beta.messages.create(
581
+ model=model,
582
+ max_tokens=16000,
583
+ betas=["server-side-fallback-2026-07-01"],
584
+ fallbacks="default",
585
+ output_config={"effort": effort},
586
+ cache_control={"type": "ephemeral"}, # also cache the growing conversation
587
+ system=system_blocks(chapter),
588
+ tools=TOOLS,
589
+ messages=sess["messages"],
590
+ )
591
+ except anthropic.BadRequestError:
592
+ if model == FABLE: # e.g. Fable not enabled for this account: use Opus for this turn
593
+ sess["flags"].append({"t": iso(now()), "kind": "other", "note": "A Fable 5.1 request was rejected; Opus 5.5 answered instead."})
594
+ model, effort, reason = OPUS, "medium", reason + " (Fable unavailable)"
595
+ continue
596
+ raise
597
+ served = getattr(resp, "model", None) or model
598
+ u = resp.usage
599
+ c = turn_cost(served, u)
600
+ cost += c
601
+ bm = sess["usage"].setdefault("byModel", {}).setdefault(
602
+ served, {"turns": 0, "input": 0, "output": 0, "cache_read": 0, "cache_write": 0, "cost": 0.0})
603
+ parts = {"input": u.input_tokens or 0, "output": u.output_tokens or 0,
604
+ "cache_read": getattr(u, "cache_read_input_tokens", 0) or 0,
605
+ "cache_write": getattr(u, "cache_creation_input_tokens", 0) or 0}
606
+ for k, v in parts.items():
607
+ bm[k] += v
608
+ sess["usage"][k] = sess["usage"].get(k, 0) + v
609
+ bm["cost"] = round(bm["cost"] + c, 6)
610
+ sess["messages"].append({"role": "assistant", "content": [blk.to_dict() for blk in resp.content]})
611
+ text = "\n".join(blk.text for blk in resp.content if blk.type == "text").strip()
612
+ if text:
613
+ replies.append(text)
614
+ if resp.stop_reason == "refusal":
615
+ replies.append(f"I can't help with that one. Let's get back to {chapter['chapter']}.")
616
+ sess["flags"].append({"t": iso(now()), "kind": "other", "note": "The model declined a message."})
617
+ break
618
+ if resp.stop_reason != "tool_use":
619
+ break
620
+ results = []
621
+ for blk in resp.content:
622
+ if blk.type == "tool_use":
623
+ out = self._run_tool(sess, blk.name, blk.input or {})
624
+ sess["tools"].append({"t": iso(now()), "name": blk.name, "input": blk.input, "output": out})
625
+ results.append({"type": "tool_result", "tool_use_id": blk.id, "content": out})
626
+ sess["messages"].append({"role": "user", "content": results})
627
+ sess["usage"].setdefault("byModel", {}).setdefault(
628
+ served, {"turns": 0, "input": 0, "output": 0, "cache_read": 0, "cache_write": 0, "cost": 0.0})["turns"] += 1
629
+ sess["usage"]["cost"] = round(sess["usage"].get("cost", 0.0) + cost, 6)
630
+ reply = "\n\n".join(replies) or "Sorry, I lost my train of thought. Could you say that again?"
631
+ sess["transcript"].append({"role": "tutor", "text": reply, "t": iso(now()), "model": served, "effort": effort,
632
+ "why": reason, "seconds": round(time.monotonic() - t0, 1), "cost": round(cost, 5)})
633
+ return reply
634
+
635
+ def _chunk_finished(self, sess: dict, chunk_id: str, status: str) -> None:
636
+ ch = chunk_of(sess, chunk_id) or {}
637
+ p = self.store.progress.setdefault(sess["studentId"], {"chunks": {}})
638
+ key = chunk_key(sess["chapterId"], chunk_id)
639
+ prev = p["chunks"].get(key, {})
640
+ if not (prev.get("status") == "learned" and status == "skipped"): # never downgrade a learned part
641
+ p["chunks"][key] = {"status": status, "at": iso(now()), "session": sess["id"]}
642
+ self.store.queue_write(f"progress/{sess['studentId']}.json", p)
643
+ sess["chunkDone"] = {"id": chunk_id, "title": ch.get("title", ""), "status": status, "quizId": ch.get("quizId"),
644
+ "ideas": [{"atom": a, "got": a in sess.get("chunkRight", {}).get(chunk_id, []),
645
+ "misses": sum(1 for x in sess["attempts"] if a in x.get("atom_ids", []) and not x.get("correct"))}
646
+ for a in ch.get("atom_ids", [])]}
647
+
648
+ def progress_view(self, sess: dict) -> dict | None:
649
+ """What the chat header shows for a Learn session in parts."""
650
+ t = topic_of(sess["chapterId"], sess.get("topicId"))
651
+ if not t or not t.get("chunks") or sess.get("kind") != "learn":
652
+ return None
653
+ prog = self.store.progress.get(sess["studentId"], {})
654
+ cur = current_step(sess)
655
+ cur_chunk = cur["chunk"] if cur and cur.get("chunk") else None
656
+ names = {a["id"]: a["statement"] for a in CHAPTERS[sess["chapterId"]]["atoms"]}
657
+ parts, learnt = [], 0
658
+ for c in t["chunks"]:
659
+ stt = chunk_status(prog, sess["chapterId"], c["id"])
660
+ if stt == "learned":
661
+ learnt += len(c["atom_ids"])
662
+ elif c["id"] == cur_chunk:
663
+ learnt += len(sess.get("chunkRight", {}).get(c["id"], []))
664
+ parts.append({"id": c["id"], "title": c["title"], "question": c.get("question", ""), "quizId": c.get("quizId"),
665
+ "status": "now" if c["id"] == cur_chunk else stt, "ideas": len(c["atom_ids"])})
666
+ ideas = []
667
+ if cur_chunk:
668
+ right = set(sess.get("chunkRight", {}).get(cur_chunk, []))
669
+ following = set(sess.get("chunkFollowing", {}).get(cur_chunk, []))
670
+ tried = set(sess.get("chunkTried", {}).get(cur_chunk, []))
671
+ ideas = [{"atom": a, "idea": names.get(a, ""), "status": "got it" if a in right else "following" if a in following
672
+ else "learning" if a in tried else "not yet"}
673
+ for a in (chunk_of(sess, cur_chunk) or {}).get("atom_ids", [])]
674
+ return {"parts": parts, "current": cur_chunk, "learnt": learnt, "of": len(t["atom_ids"]), "ideas": ideas,
675
+ "chunkDone": sess.get("chunkDone")}
676
+
677
+ def summary(self, sess: dict) -> dict:
678
+ moved: dict[str, list] = {}
679
+ for att in sess["attempts"]:
680
+ for c in att["changes"]:
681
+ moved.setdefault(c["atom"], [c["from"], c["to"]])[1] = c["to"]
682
+ names = {a["id"]: a["statement"] for a in CHAPTERS[sess["chapterId"]]["atoms"]}
683
+ up = [{"atom": a, "idea": names.get(a, ""), "to": v[1]} for a, v in moved.items() if v[1] > v[0]]
684
+ down = [{"atom": a, "idea": names.get(a, ""), "to": v[1]} for a, v in moved.items() if v[1] < v[0]]
685
+ right = sum(1 for x in sess["attempts"] if x.get("correct"))
686
+ nxt = None
687
+ if sess.get("topicId"):
688
+ t = topic_of(sess["chapterId"], sess["topicId"])
689
+ if t and t.get("chunks") and sess.get("kind") == "learn":
690
+ prog = self.store.progress.get(sess["studentId"], {})
691
+ left = [c for c in t["chunks"] if chunk_status(prog, sess["chapterId"], c["id"]) != "learned"]
692
+ if left: # never send a student to a quiz on ideas they haven't been taught
693
+ nxt = {"kind": "learn", "topicId": t["id"], "chunkId": left[0]["id"],
694
+ "label": f"Continue learning: {left[0]['title']}"}
695
+ elif t.get("quizId"):
696
+ nxt = {"kind": "quiz", "id": t["quizId"], "label": f"Take the {t['title']} topic quiz"}
697
+ elif t and t.get("quizId"):
698
+ nxt = {"kind": "quiz", "id": t["quizId"], "label": f"Take the {t['title']} quiz"}
699
+ return {"steps": sum(1 for st in sess["plan"] if st["status"] == "done"), "of": len(sess["plan"]),
700
+ "answered": len(sess["attempts"]), "right": right, "up": up, "down": down, "next": nxt}
701
+
702
+ def _public(self, sess: dict) -> dict:
703
+ cur = current_step(sess)
704
+ plan = sess["plan"]
705
+ if cur is not None and cur.get("chunk"): # show only the current part's steps
706
+ plan = [st for st in plan if st.get("chunk") == cur["chunk"]]
707
+ return {"sessionId": sess["id"], "kind": sess["kind"], "goal": sess["goal"], "complete": bool(sess.get("complete")),
708
+ "plan": [{"label": st["label"], "status": st["status"]} for st in plan],
709
+ "step": plan.index(cur) if cur in plan else len(plan), "summary": sess.get("summary"),
710
+ "parts": self.progress_view(sess)}
711
+
712
+ def _run(self, sess: dict) -> str:
713
+ cur = current_step(sess)
714
+ if cur is not None:
715
+ cur["exchanges"] += 1
716
+ if cur.get("chunk"):
717
+ sess.setdefault("chunkStarted", {}).setdefault(cur["chunk"], iso(now()))
718
+ note = step_note(sess, cur)
719
+ if sess.pop("greet", None) and not any(m["role"] == "tutor" for m in sess["transcript"]):
720
+ note = f"The student is {self.students[sess['studentId']]['name']}. Greet them by name in a few words, then begin.\n" + note
721
+ sess["messages"].append({"role": "system", "content": note})
722
+ effort = STEPS[cur["name"]][1]
723
+ else:
724
+ sess["messages"].append({"role": "system", "content": "The session is complete. Answer any last question briefly and kindly; do not start new questions. Point them to the next thing on their summary card, or ending the session."})
725
+ effort = "low"
726
+ mode = self.store.settings.get("tutorRouting", "opus")
727
+ model = FABLE if mode == "fable" else OPUS
728
+ return self._turn(sess, model, effort, f"step: {cur['label'] if cur else 'after end'}")
729
+
730
+ def start(self, student_id: str, chapter_id: str, kind: str, topic_id: str | None = None,
731
+ attempt_id: str | None = None, fix_items: list | None = None, chunk_id: str | None = None) -> dict:
732
+ if spent_today(self.store, student_id) >= DAILY_CAP_USD:
733
+ raise CapReached()
734
+ name = self.students[student_id]["name"]
735
+ topic = topic_of(chapter_id, topic_id) if topic_id else None
736
+ if kind in ("learn", "ask") and not topic:
737
+ raise ValueError("unknown topic")
738
+ m = self.store.mastery.get(student_id, {})
739
+ goal, steps = build_plan(kind, chapter_id, m, topic, fix_items, self.store.progress.get(student_id, {}), chunk_id)
740
+ if kind == "review" and len(steps) <= 1:
741
+ raise ValueError("nothing to review yet")
742
+ sid = now().strftime("%Y%m%dT%H%M%S") + "-" + uuid.uuid4().hex[:6]
743
+ sess = {"id": sid, "studentId": student_id, "setId": chapter_id, "chapterId": chapter_id, "topicId": topic_id,
744
+ "attemptId": attempt_id, "kind": kind, "mode": kind, "goal": goal, "plan": steps,
745
+ "started": iso(now()), "updated": iso(now()), "messages": [], "transcript": [], "attempts": [],
746
+ "flags": [], "tools": [], "usage": {"input": 0, "output": 0, "cache_read": 0, "cache_write": 0},
747
+ "confidence": None, "studentMessages": 0}
748
+ opener = {"learn": f"I'd like to learn: {topic['title'] if topic else ''}.", "ask": f"I have a question about {topic['title'] if topic else 'this topic'}.",
749
+ "fix": "Help me fix my quiz mistakes.", "review": "Let's do my review."}[kind]
750
+ sess["messages"] = [{"role": "user", "content": opener}]
751
+ sess["greet"] = f"The student is {name}. Greet them by name in a few words, then begin the first step."
752
+ sess["transcript"].append({"role": "student", "text": opener, "t": iso(now())})
753
+ with self._lock(sid):
754
+ self.store.chats[sid] = sess
755
+ reply = self._run(sess)
756
+ sess["updated"] = iso(now())
757
+ self.store.queue_write(f"chats/{sid}.json", sess)
758
+ return {**self._public(sess), "reply": reply, "meta": _meta(sess)}
759
+
760
+ def message(self, sid: str, text: str, confidence: str | None) -> dict:
761
+ sess = self.store.chats[sid]
762
+ if spent_today(self.store, sess["studentId"]) >= DAILY_CAP_USD:
763
+ raise CapReached()
764
+ with self._lock(sid):
765
+ n_before = len(sess["attempts"])
766
+ sess.pop("chunkDone", None) # the student has moved on from the end-of-part card
767
+ sess["confidence"] = confidence
768
+ sess["studentMessages"] = sess.get("studentMessages", 0) + 1
769
+ tagged = text + (f"\n[confidence: {confidence}]" if confidence else "")
770
+ sess["messages"].append({"role": "user", "content": tagged})
771
+ sess["transcript"].append({"role": "student", "text": text, "confidence": confidence, "t": iso(now())})
772
+ reply = self._run(sess)
773
+ sess["updated"] = iso(now())
774
+ self.store.queue_write(f"chats/{sid}.json", sess)
775
+ changes = [c for att in sess["attempts"][n_before:] for c in att["changes"]]
776
+ return {**self._public(sess), "reply": reply, "changes": changes, "meta": _meta(sess)}