@gonzih/exam-prep-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,962 @@
1
+ export interface QuestionTemplate {
2
+ subject: string;
3
+ topic: string;
4
+ type: 'multiple_choice' | 'short_answer' | 'free_response' | 'problem_solving';
5
+ question: string;
6
+ answer: string;
7
+ explanation: string;
8
+ choices?: string[];
9
+ difficulty: 'easy' | 'medium' | 'hard';
10
+ examWeight: number; // 0.0-1.0
11
+ }
12
+
13
+ export const QUESTION_BANK: QuestionTemplate[] = [
14
+ // ==================== AP BIOLOGY ====================
15
+
16
+ // Cell Structure and Function
17
+ {
18
+ subject: 'AP_Biology',
19
+ topic: 'Cell Structure',
20
+ type: 'multiple_choice',
21
+ question: 'Which organelle is responsible for producing ATP through oxidative phosphorylation?',
22
+ answer: 'C',
23
+ explanation: 'The mitochondria produce ATP via oxidative phosphorylation in their inner membrane. The electron transport chain pumps protons to create a gradient used by ATP synthase.',
24
+ choices: ['A. Ribosome', 'B. Golgi apparatus', 'C. Mitochondria', 'D. Endoplasmic reticulum'],
25
+ difficulty: 'easy',
26
+ examWeight: 0.8
27
+ },
28
+ {
29
+ subject: 'AP_Biology',
30
+ topic: 'Cell Structure',
31
+ type: 'multiple_choice',
32
+ question: 'The fluid-mosaic model describes the cell membrane as having:',
33
+ answer: 'B',
34
+ explanation: 'The fluid-mosaic model (Singer & Nicolson, 1972) describes the membrane as a fluid phospholipid bilayer with embedded proteins that can move laterally, making it look like a mosaic.',
35
+ choices: ['A. A rigid, uniform layer of proteins', 'B. A fluid phospholipid bilayer with mobile proteins', 'C. A single layer of lipids with fixed pores', 'D. A crystalline structure of cholesterol'],
36
+ difficulty: 'easy',
37
+ examWeight: 0.7
38
+ },
39
+ {
40
+ subject: 'AP_Biology',
41
+ topic: 'Cell Structure',
42
+ type: 'short_answer',
43
+ question: 'What is the function of the nuclear pore complex?',
44
+ answer: 'regulates transport of molecules between nucleus and cytoplasm',
45
+ explanation: 'Nuclear pore complexes are large protein structures that span the nuclear envelope and selectively regulate the import and export of molecules (RNA, proteins, ribosomes) between the nucleus and cytoplasm.',
46
+ difficulty: 'medium',
47
+ examWeight: 0.6
48
+ },
49
+ {
50
+ subject: 'AP_Biology',
51
+ topic: 'Cell Structure',
52
+ type: 'multiple_choice',
53
+ question: 'Which structure distinguishes prokaryotic cells from eukaryotic cells?',
54
+ answer: 'D',
55
+ explanation: 'Prokaryotic cells lack a membrane-bound nucleus and membrane-bound organelles. Their DNA is in the nucleoid region. Eukaryotes have a true nucleus enclosed by a double membrane.',
56
+ choices: ['A. Ribosomes', 'B. Cell membrane', 'C. DNA', 'D. Membrane-bound nucleus'],
57
+ difficulty: 'easy',
58
+ examWeight: 0.9
59
+ },
60
+
61
+ // DNA Replication, Transcription, Translation
62
+ {
63
+ subject: 'AP_Biology',
64
+ topic: 'DNA Replication',
65
+ type: 'multiple_choice',
66
+ question: 'DNA replication is said to be "semi-conservative" because:',
67
+ answer: 'A',
68
+ explanation: 'In semi-conservative replication (demonstrated by Meselson-Stahl), each new DNA molecule consists of one original (parental) strand and one newly synthesized strand.',
69
+ choices: ['A. Each daughter molecule retains one original strand', 'B. Only half of the DNA is replicated', 'C. Two entirely new strands are made', 'D. The original DNA is partially destroyed'],
70
+ difficulty: 'easy',
71
+ examWeight: 0.9
72
+ },
73
+ {
74
+ subject: 'AP_Biology',
75
+ topic: 'DNA Replication',
76
+ type: 'short_answer',
77
+ question: 'What enzyme synthesizes new DNA strands during replication, and in which direction does it work?',
78
+ answer: 'DNA polymerase synthesizes in the 5\' to 3\' direction',
79
+ explanation: 'DNA polymerase III (in prokaryotes) adds nucleotides to the 3\'-OH end of the growing chain, working 5\' to 3\'. This requires a primer laid down by primase. The leading strand is synthesized continuously; the lagging strand is made in Okazaki fragments.',
80
+ difficulty: 'medium',
81
+ examWeight: 0.85
82
+ },
83
+ {
84
+ subject: 'AP_Biology',
85
+ topic: 'Transcription and Translation',
86
+ type: 'multiple_choice',
87
+ question: 'During translation, which molecule brings amino acids to the ribosome?',
88
+ answer: 'C',
89
+ explanation: 'Transfer RNA (tRNA) carries specific amino acids to the ribosome. Each tRNA has an anticodon that base-pairs with the mRNA codon, and an amino acid attachment site at the 3\' CCA end.',
90
+ choices: ['A. mRNA', 'B. rRNA', 'C. tRNA', 'D. snRNA'],
91
+ difficulty: 'easy',
92
+ examWeight: 0.8
93
+ },
94
+ {
95
+ subject: 'AP_Biology',
96
+ topic: 'Transcription and Translation',
97
+ type: 'short_answer',
98
+ question: 'What is the central dogma of molecular biology?',
99
+ answer: 'DNA is transcribed to RNA which is translated to protein',
100
+ explanation: 'The central dogma (Francis Crick, 1958) states: DNA → RNA → Protein. DNA is transcribed into mRNA, which is then translated into a protein sequence. Information flows in one direction under normal circumstances.',
101
+ difficulty: 'easy',
102
+ examWeight: 0.9
103
+ },
104
+
105
+ // Cell Division
106
+ {
107
+ subject: 'AP_Biology',
108
+ topic: 'Cell Division',
109
+ type: 'multiple_choice',
110
+ question: 'Crossing over (recombination) occurs during which phase of meiosis?',
111
+ answer: 'B',
112
+ explanation: 'Crossing over occurs during Prophase I of meiosis, when homologous chromosomes (bivalents) are paired up and chiasmata form between non-sister chromatids. This increases genetic diversity.',
113
+ choices: ['A. Metaphase I', 'B. Prophase I', 'C. Anaphase II', 'D. Telophase I'],
114
+ difficulty: 'medium',
115
+ examWeight: 0.85
116
+ },
117
+ {
118
+ subject: 'AP_Biology',
119
+ topic: 'Cell Division',
120
+ type: 'short_answer',
121
+ question: 'What is the key difference between mitosis and meiosis in terms of the number of daughter cells and their ploidy?',
122
+ answer: 'Mitosis produces 2 diploid daughter cells; meiosis produces 4 haploid daughter cells',
123
+ explanation: 'Mitosis produces 2 genetically identical diploid (2n) cells for growth and repair. Meiosis produces 4 genetically unique haploid (n) gametes for sexual reproduction. Meiosis involves two rounds of division (meiosis I and II).',
124
+ difficulty: 'medium',
125
+ examWeight: 0.9
126
+ },
127
+
128
+ // Genetics
129
+ {
130
+ subject: 'AP_Biology',
131
+ topic: 'Mendelian Genetics',
132
+ type: 'multiple_choice',
133
+ question: 'In a monohybrid cross between two heterozygotes (Aa × Aa), what is the expected genotypic ratio?',
134
+ answer: 'C',
135
+ explanation: 'A Punnett square for Aa × Aa gives: AA, Aa, Aa, aa — a 1:2:1 genotypic ratio. The phenotypic ratio is 3:1 (dominant:recessive).',
136
+ choices: ['A. 3:1', 'B. 1:2:1:2', 'C. 1:2:1', 'D. 1:1'],
137
+ difficulty: 'easy',
138
+ examWeight: 0.85
139
+ },
140
+ {
141
+ subject: 'AP_Biology',
142
+ topic: 'Mendelian Genetics',
143
+ type: 'problem_solving',
144
+ question: 'A woman with blood type A (genotype IAi) and a man with blood type B (genotype IBi) have children. What percentage of their children could have blood type O?',
145
+ answer: '25%',
146
+ explanation: 'Cross IAi × IBi gives four possibilities: IAIB (AB), IAi (A), IBi (B), ii (O). Each has 25% probability. Therefore, 25% of children could have blood type O (genotype ii).',
147
+ difficulty: 'medium',
148
+ examWeight: 0.8
149
+ },
150
+
151
+ // Evolution
152
+ {
153
+ subject: 'AP_Biology',
154
+ topic: 'Evolution and Natural Selection',
155
+ type: 'multiple_choice',
156
+ question: 'Which of the following is NOT a condition required for Hardy-Weinberg equilibrium?',
157
+ answer: 'D',
158
+ explanation: 'Hardy-Weinberg equilibrium requires: no mutation, no gene flow, random mating, no genetic drift (large population), and no natural selection. Rapid reproduction rate is not a requirement.',
159
+ choices: [
160
+ 'A. No mutation',
161
+ 'B. Random mating',
162
+ 'C. No natural selection',
163
+ 'D. Rapid reproduction rate'
164
+ ],
165
+ difficulty: 'medium',
166
+ examWeight: 0.8
167
+ },
168
+ {
169
+ subject: 'AP_Biology',
170
+ topic: 'Evolution and Natural Selection',
171
+ type: 'short_answer',
172
+ question: 'Explain how antibiotic resistance in bacteria illustrates natural selection.',
173
+ answer: 'bacteria with resistance mutations survive antibiotic treatment and reproduce passing resistance to offspring',
174
+ explanation: 'Natural selection acts on existing variation. Some bacteria have random mutations conferring antibiotic resistance. When antibiotics are applied, susceptible bacteria die (selection pressure) while resistant ones survive and reproduce. Over generations, the resistant allele increases in frequency — this is evolution by natural selection.',
175
+ difficulty: 'medium',
176
+ examWeight: 0.9
177
+ },
178
+
179
+ // Ecology
180
+ {
181
+ subject: 'AP_Biology',
182
+ topic: 'Ecology',
183
+ type: 'multiple_choice',
184
+ question: 'In an energy pyramid, approximately what percentage of energy is transferred from one trophic level to the next?',
185
+ answer: 'B',
186
+ explanation: 'The 10% rule: only about 10% of energy stored at one trophic level is passed to the next. The remaining ~90% is lost as heat (cellular respiration), excretion, and decomposition.',
187
+ choices: ['A. 1%', 'B. 10%', 'C. 50%', 'D. 90%'],
188
+ difficulty: 'easy',
189
+ examWeight: 0.75
190
+ },
191
+ {
192
+ subject: 'AP_Biology',
193
+ topic: 'Ecology',
194
+ type: 'short_answer',
195
+ question: 'Describe the role of nitrogen-fixing bacteria in the nitrogen cycle.',
196
+ answer: 'convert atmospheric N2 into ammonia (NH3) usable by plants',
197
+ explanation: 'Nitrogen-fixing bacteria (e.g., Rhizobium in root nodules, free-living Azotobacter) contain nitrogenase enzyme that converts N₂ gas into NH₃/NH₄⁺. This is the primary biological entry point of nitrogen into ecosystems, since most organisms cannot use atmospheric N₂ directly.',
198
+ difficulty: 'medium',
199
+ examWeight: 0.7
200
+ },
201
+
202
+ // Photosynthesis and Cellular Respiration
203
+ {
204
+ subject: 'AP_Biology',
205
+ topic: 'Photosynthesis',
206
+ type: 'multiple_choice',
207
+ question: 'The light-dependent reactions of photosynthesis occur in which location?',
208
+ answer: 'B',
209
+ explanation: 'The light-dependent reactions (light reactions) occur on the thylakoid membranes within the chloroplast. Water is split, NADPH and ATP are produced, and O₂ is released. The Calvin cycle occurs in the stroma.',
210
+ choices: ['A. Stroma', 'B. Thylakoid membrane', 'C. Inner mitochondrial membrane', 'D. Cytoplasm'],
211
+ difficulty: 'easy',
212
+ examWeight: 0.85
213
+ },
214
+ {
215
+ subject: 'AP_Biology',
216
+ topic: 'Cellular Respiration',
217
+ type: 'short_answer',
218
+ question: 'What is the net ATP yield from glycolysis, and where does it occur in the cell?',
219
+ answer: '2 ATP net; occurs in the cytoplasm',
220
+ explanation: 'Glycolysis converts one glucose to two pyruvate molecules, yielding 4 ATP by substrate-level phosphorylation while consuming 2 ATP (net gain = 2 ATP). It also produces 2 NADH. Glycolysis occurs in the cytoplasm and does not require oxygen.',
221
+ difficulty: 'medium',
222
+ examWeight: 0.8
223
+ },
224
+ {
225
+ subject: 'AP_Biology',
226
+ topic: 'Cellular Respiration',
227
+ type: 'multiple_choice',
228
+ question: 'During aerobic respiration, what is the final electron acceptor in the electron transport chain?',
229
+ answer: 'D',
230
+ explanation: 'Molecular oxygen (O₂) is the final electron acceptor in aerobic respiration. It accepts electrons from cytochrome oxidase (Complex IV) and combines with protons to form water (H₂O). This is why oxygen is essential for aerobic life.',
231
+ choices: ['A. NAD⁺', 'B. CO₂', 'C. ATP', 'D. O₂'],
232
+ difficulty: 'medium',
233
+ examWeight: 0.85
234
+ },
235
+
236
+ // ==================== AP CHEMISTRY ====================
237
+
238
+ // Atomic Structure
239
+ {
240
+ subject: 'AP_Chemistry',
241
+ topic: 'Atomic Structure',
242
+ type: 'multiple_choice',
243
+ question: 'Which element has the electron configuration [Ar] 3d¹⁰ 4s²?',
244
+ answer: 'C',
245
+ explanation: '[Ar] has 18 electrons. Adding 3d¹⁰ (10 electrons) + 4s² (2 electrons) = 30 electrons total. Zinc (Zn) has atomic number 30.',
246
+ choices: ['A. Calcium (Ca)', 'B. Copper (Cu)', 'C. Zinc (Zn)', 'D. Gallium (Ga)'],
247
+ difficulty: 'medium',
248
+ examWeight: 0.8
249
+ },
250
+ {
251
+ subject: 'AP_Chemistry',
252
+ topic: 'Atomic Structure',
253
+ type: 'short_answer',
254
+ question: 'Explain the periodic trend in atomic radius across a period (left to right).',
255
+ answer: 'atomic radius decreases across a period due to increasing nuclear charge attracting electrons more strongly',
256
+ explanation: 'Moving left to right across a period, the number of protons (nuclear charge, Z) increases while electrons are added to the same shell. Increased nuclear charge pulls electrons closer to the nucleus, reducing atomic radius. Shielding remains roughly constant within the same period.',
257
+ difficulty: 'medium',
258
+ examWeight: 0.75
259
+ },
260
+ {
261
+ subject: 'AP_Chemistry',
262
+ topic: 'Atomic Structure',
263
+ type: 'multiple_choice',
264
+ question: 'Which of the following has the highest first ionization energy?',
265
+ answer: 'D',
266
+ explanation: 'First ionization energy generally increases across a period and decreases down a group. Noble gases have the highest ionization energies due to their stable filled electron configurations. Neon is a noble gas in period 2 with a very stable configuration.',
267
+ choices: ['A. Na', 'B. Mg', 'C. Al', 'D. Ne'],
268
+ difficulty: 'medium',
269
+ examWeight: 0.75
270
+ },
271
+
272
+ // Chemical Bonding
273
+ {
274
+ subject: 'AP_Chemistry',
275
+ topic: 'Chemical Bonding',
276
+ type: 'multiple_choice',
277
+ question: 'According to VSEPR theory, what is the molecular geometry of water (H₂O)?',
278
+ answer: 'C',
279
+ explanation: 'Water has 4 electron domains around oxygen (2 bonding pairs + 2 lone pairs), giving tetrahedral electron geometry. But molecular geometry considers only bonded atoms, making it bent/angular with a bond angle of ~104.5°.',
280
+ choices: ['A. Linear', 'B. Trigonal planar', 'C. Bent', 'D. Tetrahedral'],
281
+ difficulty: 'easy',
282
+ examWeight: 0.85
283
+ },
284
+ {
285
+ subject: 'AP_Chemistry',
286
+ topic: 'Chemical Bonding',
287
+ type: 'short_answer',
288
+ question: 'What is the difference between polar covalent and ionic bonds?',
289
+ answer: 'polar covalent bonds share electrons unequally; ionic bonds transfer electrons completely between atoms',
290
+ explanation: 'In polar covalent bonds (e.g., H₂O, HCl), electrons are shared but unequally due to electronegativity differences. In ionic bonds (e.g., NaCl), the more electronegative atom effectively gains electron(s), creating oppositely charged ions held by electrostatic attraction. Generally, electronegativity difference >1.7 indicates ionic character.',
291
+ difficulty: 'medium',
292
+ examWeight: 0.8
293
+ },
294
+ {
295
+ subject: 'AP_Chemistry',
296
+ topic: 'Chemical Bonding',
297
+ type: 'multiple_choice',
298
+ question: 'The Lewis structure of CO₂ shows carbon forming double bonds with each oxygen. What is the electron geometry around carbon?',
299
+ answer: 'A',
300
+ explanation: 'Carbon in CO₂ has 2 bonding regions (two double bonds, no lone pairs). VSEPR: 2 electron domains → linear geometry with 180° bond angle. Both electron geometry and molecular geometry are linear.',
301
+ choices: ['A. Linear', 'B. Bent', 'C. Trigonal planar', 'D. Tetrahedral'],
302
+ difficulty: 'easy',
303
+ examWeight: 0.75
304
+ },
305
+
306
+ // Stoichiometry
307
+ {
308
+ subject: 'AP_Chemistry',
309
+ topic: 'Stoichiometry',
310
+ type: 'problem_solving',
311
+ question: 'How many grams of H₂O are produced when 4.0 g of H₂ reacts completely with excess O₂? (H=1, O=16)',
312
+ answer: '36 g',
313
+ explanation: '2H₂ + O₂ → 2H₂O. Moles H₂ = 4.0g / 2.0g/mol = 2.0 mol. From stoichiometry (1:1 ratio H₂:H₂O), 2.0 mol H₂O produced. Mass H₂O = 2.0 mol × 18.0 g/mol = 36.0 g.',
314
+ difficulty: 'medium',
315
+ examWeight: 0.9
316
+ },
317
+ {
318
+ subject: 'AP_Chemistry',
319
+ topic: 'Stoichiometry',
320
+ type: 'problem_solving',
321
+ question: 'In the reaction N₂ + 3H₂ → 2NH₃, if you start with 2.0 mol N₂ and 4.0 mol H₂, which is the limiting reagent?',
322
+ answer: 'H₂ is the limiting reagent',
323
+ explanation: 'N₂ needs 3× moles of H₂. For 2.0 mol N₂, need 6.0 mol H₂. Only 4.0 mol H₂ available → H₂ is limiting. With 4.0 mol H₂: produces 4.0/3 × 2 = 2.67 mol NH₃.',
324
+ difficulty: 'medium',
325
+ examWeight: 0.85
326
+ },
327
+
328
+ // Gas Laws
329
+ {
330
+ subject: 'AP_Chemistry',
331
+ topic: 'Gas Laws',
332
+ type: 'problem_solving',
333
+ question: 'A gas occupies 2.0 L at 300 K and 1.0 atm. What volume will it occupy at 600 K and 2.0 atm? (Use ideal gas law)',
334
+ answer: '2.0 L',
335
+ explanation: 'Combined gas law: P₁V₁/T₁ = P₂V₂/T₂. Solving: V₂ = P₁V₁T₂/(T₁P₂) = (1.0)(2.0)(600)/(300)(2.0) = 1200/600 = 2.0 L. The doubling of temperature and doubling of pressure cancel out.',
336
+ difficulty: 'medium',
337
+ examWeight: 0.85
338
+ },
339
+ {
340
+ subject: 'AP_Chemistry',
341
+ topic: 'Gas Laws',
342
+ type: 'short_answer',
343
+ question: 'State Dalton\'s Law of Partial Pressures.',
344
+ answer: 'total pressure of a gas mixture equals the sum of partial pressures of each component gas',
345
+ explanation: 'Dalton\'s Law: P_total = P₁ + P₂ + P₃ + ... Each gas behaves independently and contributes pressure proportional to its mole fraction. P_i = χ_i × P_total, where χ_i is the mole fraction of component i.',
346
+ difficulty: 'easy',
347
+ examWeight: 0.75
348
+ },
349
+
350
+ // Thermodynamics
351
+ {
352
+ subject: 'AP_Chemistry',
353
+ topic: 'Thermodynamics',
354
+ type: 'multiple_choice',
355
+ question: 'For a spontaneous process at constant temperature and pressure, which condition must be met?',
356
+ answer: 'B',
357
+ explanation: 'The Gibbs free energy criterion for spontaneity: ΔG = ΔH - TΔS < 0. A negative ΔG indicates a thermodynamically spontaneous process. ΔG = 0 means equilibrium.',
358
+ choices: ['A. ΔH < 0 and ΔS < 0', 'B. ΔG < 0', 'C. ΔG > 0', 'D. ΔH > 0'],
359
+ difficulty: 'medium',
360
+ examWeight: 0.9
361
+ },
362
+ {
363
+ subject: 'AP_Chemistry',
364
+ topic: 'Thermodynamics',
365
+ type: 'short_answer',
366
+ question: 'What does a negative ΔH value indicate about a reaction?',
367
+ answer: 'the reaction is exothermic and releases heat to the surroundings',
368
+ explanation: 'ΔH = H_products - H_reactants. Negative ΔH means products have lower enthalpy than reactants; energy is released as heat. Exothermic reactions feel warm to the touch. Examples: combustion of methane (ΔH = -890 kJ/mol), neutralization reactions.',
369
+ difficulty: 'easy',
370
+ examWeight: 0.8
371
+ },
372
+
373
+ // Equilibrium
374
+ {
375
+ subject: 'AP_Chemistry',
376
+ topic: 'Chemical Equilibrium',
377
+ type: 'multiple_choice',
378
+ question: 'For N₂(g) + 3H₂(g) ⇌ 2NH₃(g), if pressure is increased by decreasing volume, what happens to the equilibrium?',
379
+ answer: 'A',
380
+ explanation: 'Le Chatelier\'s principle: increasing pressure favors the side with fewer moles of gas. Left side = 4 mol gas (1+3), right side = 2 mol gas. Equilibrium shifts right to produce more NH₃ and reduce pressure.',
381
+ choices: [
382
+ 'A. Shifts right, more NH₃ produced',
383
+ 'B. Shifts left, less NH₃ produced',
384
+ 'C. No change, Kc is constant',
385
+ 'D. Equilibrium is destroyed'
386
+ ],
387
+ difficulty: 'medium',
388
+ examWeight: 0.85
389
+ },
390
+ {
391
+ subject: 'AP_Chemistry',
392
+ topic: 'Chemical Equilibrium',
393
+ type: 'short_answer',
394
+ question: 'Write the equilibrium expression Kc for: 2SO₂(g) + O₂(g) ⇌ 2SO₃(g)',
395
+ answer: 'Kc = [SO₃]² / ([SO₂]² × [O₂])',
396
+ explanation: 'The equilibrium expression is products over reactants, each raised to the power of their stoichiometric coefficient. For gases, concentrations are used for Kc. Note: pure solids and liquids are omitted from the expression.',
397
+ difficulty: 'medium',
398
+ examWeight: 0.8
399
+ },
400
+
401
+ // Acids and Bases
402
+ {
403
+ subject: 'AP_Chemistry',
404
+ topic: 'Acids and Bases',
405
+ type: 'problem_solving',
406
+ question: 'What is the pH of a 0.010 M HCl solution?',
407
+ answer: '2',
408
+ explanation: 'HCl is a strong acid that fully dissociates: HCl → H⁺ + Cl⁻. [H⁺] = 0.010 M = 1.0 × 10⁻² M. pH = -log[H⁺] = -log(10⁻²) = 2.',
409
+ difficulty: 'easy',
410
+ examWeight: 0.85
411
+ },
412
+ {
413
+ subject: 'AP_Chemistry',
414
+ topic: 'Acids and Bases',
415
+ type: 'short_answer',
416
+ question: 'How does a buffer solution resist changes in pH?',
417
+ answer: 'a buffer contains a weak acid and its conjugate base that neutralize added H+ or OH-',
418
+ explanation: 'A buffer (e.g., CH₃COOH/CH₃COO⁻) resists pH changes: adding H⁺ → reacts with conjugate base; adding OH⁻ → reacts with weak acid. Buffer capacity is highest when [HA] = [A⁻], i.e., pH = pKa. Henderson-Hasselbalch: pH = pKa + log([A⁻]/[HA]).',
419
+ difficulty: 'medium',
420
+ examWeight: 0.85
421
+ },
422
+
423
+ // Electrochemistry
424
+ {
425
+ subject: 'AP_Chemistry',
426
+ topic: 'Electrochemistry',
427
+ type: 'multiple_choice',
428
+ question: 'In a galvanic (voltaic) cell, oxidation occurs at which electrode?',
429
+ answer: 'B',
430
+ explanation: 'Memory device: "AN OX, RED CAT" (ANode = OXidation, REDuction = CAThode). In a galvanic cell, the anode is the negative electrode where spontaneous oxidation occurs, releasing electrons that flow through the external circuit.',
431
+ choices: ['A. Cathode', 'B. Anode', 'C. Both electrodes equally', 'D. Neither electrode'],
432
+ difficulty: 'easy',
433
+ examWeight: 0.8
434
+ },
435
+ {
436
+ subject: 'AP_Chemistry',
437
+ topic: 'Electrochemistry',
438
+ type: 'short_answer',
439
+ question: 'In a redox reaction, what happens to the species that is oxidized?',
440
+ answer: 'it loses electrons and its oxidation state increases',
441
+ explanation: 'OIL RIG: Oxidation Is Loss (of electrons), Reduction Is Gain (of electrons). An oxidized species loses electrons, increasing its oxidation state (becomes more positive). Example: Fe²⁺ → Fe³⁺ + e⁻ (iron is oxidized).',
442
+ difficulty: 'easy',
443
+ examWeight: 0.75
444
+ },
445
+
446
+ // ==================== AP US HISTORY ====================
447
+
448
+ // Colonial Period
449
+ {
450
+ subject: 'AP_US_History',
451
+ topic: 'Colonial Period',
452
+ type: 'multiple_choice',
453
+ question: 'The Mayflower Compact (1620) was significant because it:',
454
+ answer: 'B',
455
+ explanation: 'The Mayflower Compact was the first written framework of government in the American colonies. Signed by Pilgrim men before landing at Plymouth, it established majority-rule governance and the concept of self-government based on consent of the governed.',
456
+ choices: [
457
+ 'A. Established the first permanent English settlement',
458
+ 'B. Created the first written framework of self-government in the colonies',
459
+ 'C. Granted religious freedom to all colonists',
460
+ 'D. Established trade relations with Native Americans'
461
+ ],
462
+ difficulty: 'medium',
463
+ examWeight: 0.75
464
+ },
465
+ {
466
+ subject: 'AP_US_History',
467
+ topic: 'Colonial Period',
468
+ type: 'short_answer',
469
+ question: 'What was the Triangular Trade and how did it contribute to the growth of slavery?',
470
+ answer: 'trade network linking Europe, Africa, and Americas; slaves traded from Africa to Americas for raw materials and goods',
471
+ explanation: 'The Triangular Trade involved: (1) manufactured goods from Europe to Africa, (2) enslaved Africans transported across the Middle Passage to the Americas, (3) raw materials (sugar, tobacco, cotton) from the Americas to Europe. This system made slavery economically central to colonial prosperity.',
472
+ difficulty: 'medium',
473
+ examWeight: 0.8
474
+ },
475
+
476
+ // American Revolution
477
+ {
478
+ subject: 'AP_US_History',
479
+ topic: 'American Revolution',
480
+ type: 'multiple_choice',
481
+ question: 'The principle of "no taxation without representation" was colonists\' response to:',
482
+ answer: 'C',
483
+ explanation: 'After the Seven Years\' War, Britain imposed new taxes on the colonies (Stamp Act 1765, Townshend Acts 1767) without giving colonists seats in Parliament. Colonists argued this violated their rights as British subjects, leading to the revolutionary slogan.',
484
+ choices: [
485
+ 'A. The Boston Massacre',
486
+ 'B. The Proclamation of 1763',
487
+ 'C. British taxation without colonial representation in Parliament',
488
+ 'D. The Intolerable Acts'
489
+ ],
490
+ difficulty: 'easy',
491
+ examWeight: 0.85
492
+ },
493
+
494
+ // Constitutional Convention
495
+ {
496
+ subject: 'AP_US_History',
497
+ topic: 'Constitutional Convention',
498
+ type: 'multiple_choice',
499
+ question: 'The Great Compromise (Connecticut Compromise) at the Constitutional Convention resolved the dispute over:',
500
+ answer: 'A',
501
+ explanation: 'Large states (Virginia Plan) wanted representation based on population; small states (New Jersey Plan) wanted equal representation. The Great Compromise created a bicameral legislature: the Senate (equal representation, 2 per state) and House of Representatives (proportional representation).',
502
+ choices: [
503
+ 'A. Congressional representation between large and small states',
504
+ 'B. The issue of slavery',
505
+ 'C. Presidential election method',
506
+ 'D. Taxation of western territories'
507
+ ],
508
+ difficulty: 'medium',
509
+ examWeight: 0.85
510
+ },
511
+ {
512
+ subject: 'AP_US_History',
513
+ topic: 'Early Republic',
514
+ type: 'short_answer',
515
+ question: 'What was the significance of Marbury v. Madison (1803)?',
516
+ answer: 'established judicial review — the Supreme Court\'s power to declare laws unconstitutional',
517
+ explanation: 'Chief Justice John Marshall\'s ruling in Marbury v. Madison established the principle of judicial review, giving the Supreme Court the power to strike down federal laws that conflict with the Constitution. This decision fundamentally shaped the balance of power in the US government.',
518
+ difficulty: 'medium',
519
+ examWeight: 0.9
520
+ },
521
+
522
+ // Civil War Era
523
+ {
524
+ subject: 'AP_US_History',
525
+ topic: 'Antebellum and Civil War',
526
+ type: 'multiple_choice',
527
+ question: 'Which event most directly triggered Southern states to begin seceding from the Union in 1860-1861?',
528
+ answer: 'B',
529
+ explanation: 'Abraham Lincoln\'s election in November 1860 triggered secession. Southern states feared Lincoln\'s Republican Party would restrict slavery\'s expansion. South Carolina seceded in December 1860, followed by 10 more states before and during the war.',
530
+ choices: [
531
+ 'A. The publication of Uncle Tom\'s Cabin',
532
+ 'B. The election of Abraham Lincoln as president',
533
+ 'C. The Compromise of 1850',
534
+ 'D. The Dred Scott decision'
535
+ ],
536
+ difficulty: 'easy',
537
+ examWeight: 0.85
538
+ },
539
+ {
540
+ subject: 'AP_US_History',
541
+ topic: 'Reconstruction Era',
542
+ type: 'short_answer',
543
+ question: 'What were the "Black Codes" passed by Southern states after the Civil War?',
544
+ answer: 'laws restricting the rights and freedoms of Black Americans, designed to maintain white supremacy and control Black labor',
545
+ explanation: 'After the Civil War (1865-66), Southern legislatures passed Black Codes to restrict freedoms of newly freed African Americans: limiting where they could live and work, requiring labor contracts, criminalizing vagrancy (unemployment), restricting voting and jury service. These laws prompted Congress to pass the Reconstruction Acts.',
546
+ difficulty: 'medium',
547
+ examWeight: 0.8
548
+ },
549
+
550
+ // Gilded Age and Progressive Era
551
+ {
552
+ subject: 'AP_US_History',
553
+ topic: 'Gilded Age',
554
+ type: 'multiple_choice',
555
+ question: 'The Sherman Antitrust Act (1890) was intended to:',
556
+ answer: 'C',
557
+ explanation: 'The Sherman Antitrust Act was the first major federal law regulating monopolistic business practices. It prohibited "combinations in restraint of trade" to prevent trusts and monopolies from stifling competition. However, it was initially used more against labor unions than corporations.',
558
+ choices: [
559
+ 'A. Regulate railroad rates',
560
+ 'B. Establish the Federal Reserve',
561
+ 'C. Break up monopolistic trusts and restore competition',
562
+ 'D. Protect workers\' right to organize'
563
+ ],
564
+ difficulty: 'medium',
565
+ examWeight: 0.8
566
+ },
567
+ {
568
+ subject: 'AP_US_History',
569
+ topic: 'Progressive Era',
570
+ type: 'short_answer',
571
+ question: 'How did muckrakers contribute to the Progressive Era?',
572
+ answer: 'investigative journalists exposed corruption, unsafe conditions, and social injustices to build public pressure for reform',
573
+ explanation: 'Muckrakers were investigative journalists who exposed social problems: Upton Sinclair\'s The Jungle (1906) revealed meatpacking industry conditions, leading to the Pure Food and Drug Act; Ida Tarbell exposed Standard Oil monopoly; Jacob Riis documented tenement life. Their work created public outrage that fueled Progressive Era reforms.',
574
+ difficulty: 'medium',
575
+ examWeight: 0.75
576
+ },
577
+
578
+ // World Wars
579
+ {
580
+ subject: 'AP_US_History',
581
+ topic: 'World War II',
582
+ type: 'multiple_choice',
583
+ question: 'What event directly caused the United States to enter World War II?',
584
+ answer: 'A',
585
+ explanation: 'Japan\'s surprise attack on the US naval base at Pearl Harbor, Hawaii, on December 7, 1941 ("a date which will live in infamy" - FDR) killed 2,400+ Americans and destroyed much of the Pacific Fleet. Congress declared war on Japan the next day, and Germany/Italy declared war on the US days later.',
586
+ choices: [
587
+ 'A. The Japanese attack on Pearl Harbor',
588
+ 'B. The German invasion of Poland',
589
+ 'C. The fall of France to Germany',
590
+ 'D. The German bombing of Britain'
591
+ ],
592
+ difficulty: 'easy',
593
+ examWeight: 0.85
594
+ },
595
+
596
+ // Civil Rights
597
+ {
598
+ subject: 'AP_US_History',
599
+ topic: 'Civil Rights Movement',
600
+ type: 'multiple_choice',
601
+ question: 'The Civil Rights Act of 1964 was significant because it:',
602
+ answer: 'B',
603
+ explanation: 'The Civil Rights Act of 1964 (signed by LBJ) prohibited discrimination based on race, color, religion, sex, or national origin in employment and public accommodations. It created the Equal Employment Opportunity Commission (EEOC). Combined with the Voting Rights Act of 1965, it dismantled legal segregation.',
604
+ choices: [
605
+ 'A. Gave African Americans the right to vote',
606
+ 'B. Prohibited discrimination in employment and public places',
607
+ 'C. Desegregated public schools',
608
+ 'D. Abolished poll taxes'
609
+ ],
610
+ difficulty: 'medium',
611
+ examWeight: 0.9
612
+ },
613
+
614
+ // Cold War
615
+ {
616
+ subject: 'AP_US_History',
617
+ topic: 'Cold War',
618
+ type: 'short_answer',
619
+ question: 'What was the Truman Doctrine and what did it commit the United States to do?',
620
+ answer: 'US policy to support free peoples resisting communist takeover; committed US to containing communism worldwide',
621
+ explanation: 'Announced in 1947, the Truman Doctrine pledged US support (economic and military aid) to nations threatened by communist takeover, beginning with Greece and Turkey. It was the foundation of the US containment policy during the Cold War, leading to involvement in Korea, Vietnam, and elsewhere.',
622
+ difficulty: 'medium',
623
+ examWeight: 0.85
624
+ },
625
+
626
+ // ==================== SAT MATH ====================
627
+
628
+ // Linear Equations
629
+ {
630
+ subject: 'SAT_Math',
631
+ topic: 'Linear Equations',
632
+ type: 'problem_solving',
633
+ question: 'If 3x + 7 = 22, what is the value of x?',
634
+ answer: '5',
635
+ explanation: '3x + 7 = 22 → 3x = 15 → x = 5. Check: 3(5) + 7 = 15 + 7 = 22. ✓',
636
+ difficulty: 'easy',
637
+ examWeight: 0.9
638
+ },
639
+ {
640
+ subject: 'SAT_Math',
641
+ topic: 'Linear Equations',
642
+ type: 'problem_solving',
643
+ question: 'A line passes through points (2, 3) and (6, 11). What is the equation of the line?',
644
+ answer: 'y = 2x - 1',
645
+ explanation: 'Slope m = (11-3)/(6-2) = 8/4 = 2. Using point-slope: y - 3 = 2(x - 2) → y - 3 = 2x - 4 → y = 2x - 1. Check: when x=6, y = 12-1 = 11. ✓',
646
+ difficulty: 'medium',
647
+ examWeight: 0.85
648
+ },
649
+ {
650
+ subject: 'SAT_Math',
651
+ topic: 'Linear Inequalities',
652
+ type: 'problem_solving',
653
+ question: 'Solve for x: 2x - 5 > 9',
654
+ answer: 'x > 7',
655
+ explanation: '2x - 5 > 9 → 2x > 14 → x > 7. The solution is all values greater than 7.',
656
+ difficulty: 'easy',
657
+ examWeight: 0.8
658
+ },
659
+
660
+ // Systems of Equations
661
+ {
662
+ subject: 'SAT_Math',
663
+ topic: 'Systems of Equations',
664
+ type: 'problem_solving',
665
+ question: 'Solve the system: x + y = 10 and x - y = 4. What is x?',
666
+ answer: 'x = 7',
667
+ explanation: 'Adding the equations: (x + y) + (x - y) = 10 + 4 → 2x = 14 → x = 7. Then y = 10 - 7 = 3.',
668
+ difficulty: 'easy',
669
+ examWeight: 0.85
670
+ },
671
+ {
672
+ subject: 'SAT_Math',
673
+ topic: 'Systems of Equations',
674
+ type: 'problem_solving',
675
+ question: 'A movie theater charges $12 for adults and $8 for children. If 50 tickets were sold for $520, how many adult tickets were sold?',
676
+ answer: '15',
677
+ explanation: 'Let a = adults, c = children. System: a + c = 50 and 12a + 8c = 520. From first: c = 50-a. Substitute: 12a + 8(50-a) = 520 → 12a + 400 - 8a = 520 → 4a = 120 → a = 30. Wait, let me recalculate: 4a = 120, a = 30. Hmm, checking: 12(30) + 8(20) = 360 + 160 = 520. ✓ a = 30.',
678
+ difficulty: 'medium',
679
+ examWeight: 0.8
680
+ },
681
+
682
+ // Quadratic Equations
683
+ {
684
+ subject: 'SAT_Math',
685
+ topic: 'Quadratic Equations',
686
+ type: 'problem_solving',
687
+ question: 'What are the roots of x² - 5x + 6 = 0?',
688
+ answer: 'x = 2 and x = 3',
689
+ explanation: 'Factor: x² - 5x + 6 = (x - 2)(x - 3) = 0. So x = 2 or x = 3. Check: 4 - 10 + 6 = 0 ✓ and 9 - 15 + 6 = 0 ✓.',
690
+ difficulty: 'medium',
691
+ examWeight: 0.85
692
+ },
693
+ {
694
+ subject: 'SAT_Math',
695
+ topic: 'Quadratic Equations',
696
+ type: 'multiple_choice',
697
+ question: 'The parabola y = x² - 4x + 3 has its vertex at:',
698
+ answer: 'B',
699
+ explanation: 'Vertex x-coordinate: x = -b/(2a) = -(-4)/(2·1) = 4/2 = 2. y = (2)² - 4(2) + 3 = 4 - 8 + 3 = -1. Vertex: (2, -1).',
700
+ choices: ['A. (2, 1)', 'B. (2, -1)', 'C. (-2, 15)', 'D. (4, 3)'],
701
+ difficulty: 'medium',
702
+ examWeight: 0.8
703
+ },
704
+
705
+ // Percentages and Proportions
706
+ {
707
+ subject: 'SAT_Math',
708
+ topic: 'Percentages and Proportions',
709
+ type: 'problem_solving',
710
+ question: 'A shirt originally costs $60. It is on sale for 25% off. What is the sale price?',
711
+ answer: '$45',
712
+ explanation: 'Discount = 25% × $60 = 0.25 × $60 = $15. Sale price = $60 - $15 = $45. Alternatively: sale price = 75% of $60 = 0.75 × $60 = $45.',
713
+ difficulty: 'easy',
714
+ examWeight: 0.9
715
+ },
716
+ {
717
+ subject: 'SAT_Math',
718
+ topic: 'Percentages and Proportions',
719
+ type: 'problem_solving',
720
+ question: 'If 15 is 30% of x, what is x?',
721
+ answer: '50',
722
+ explanation: '15 = 0.30 × x → x = 15 / 0.30 = 50.',
723
+ difficulty: 'easy',
724
+ examWeight: 0.85
725
+ },
726
+
727
+ // Statistics
728
+ {
729
+ subject: 'SAT_Math',
730
+ topic: 'Statistics and Probability',
731
+ type: 'problem_solving',
732
+ question: 'The scores on a quiz are: 70, 80, 90, 85, 75. What is the mean score?',
733
+ answer: '80',
734
+ explanation: 'Mean = (70 + 80 + 90 + 85 + 75) / 5 = 400 / 5 = 80.',
735
+ difficulty: 'easy',
736
+ examWeight: 0.85
737
+ },
738
+ {
739
+ subject: 'SAT_Math',
740
+ topic: 'Statistics and Probability',
741
+ type: 'problem_solving',
742
+ question: 'A bag contains 3 red marbles, 4 blue marbles, and 5 green marbles. What is the probability of randomly selecting a blue marble?',
743
+ answer: '1/3',
744
+ explanation: 'Total marbles = 3 + 4 + 5 = 12. P(blue) = 4/12 = 1/3 ≈ 0.333...',
745
+ difficulty: 'easy',
746
+ examWeight: 0.8
747
+ },
748
+
749
+ // Geometry
750
+ {
751
+ subject: 'SAT_Math',
752
+ topic: 'Geometry',
753
+ type: 'problem_solving',
754
+ question: 'A right triangle has legs of length 6 and 8. What is the length of the hypotenuse?',
755
+ answer: '10',
756
+ explanation: 'By the Pythagorean theorem: c² = a² + b² = 6² + 8² = 36 + 64 = 100. c = √100 = 10. This is a 6-8-10 Pythagorean triple (scaled from 3-4-5).',
757
+ difficulty: 'easy',
758
+ examWeight: 0.9
759
+ },
760
+ {
761
+ subject: 'SAT_Math',
762
+ topic: 'Geometry',
763
+ type: 'problem_solving',
764
+ question: 'What is the area of a circle with radius 5? (Leave answer in terms of π)',
765
+ answer: '25π',
766
+ explanation: 'Area = πr² = π(5)² = 25π ≈ 78.54 square units.',
767
+ difficulty: 'easy',
768
+ examWeight: 0.85
769
+ },
770
+ {
771
+ subject: 'SAT_Math',
772
+ topic: 'Geometry',
773
+ type: 'problem_solving',
774
+ question: 'In the coordinate plane, what is the distance between points (1, 2) and (4, 6)?',
775
+ answer: '5',
776
+ explanation: 'Distance = √((x₂-x₁)² + (y₂-y₁)²) = √((4-1)² + (6-2)²) = √(9 + 16) = √25 = 5.',
777
+ difficulty: 'medium',
778
+ examWeight: 0.8
779
+ },
780
+
781
+ // Word Problems
782
+ {
783
+ subject: 'SAT_Math',
784
+ topic: 'Word Problems',
785
+ type: 'problem_solving',
786
+ question: 'A car travels at 60 mph. How many minutes does it take to travel 45 miles?',
787
+ answer: '45 minutes',
788
+ explanation: 'Time = Distance / Rate = 45 miles / 60 mph = 0.75 hours = 0.75 × 60 minutes = 45 minutes.',
789
+ difficulty: 'easy',
790
+ examWeight: 0.85
791
+ },
792
+ {
793
+ subject: 'SAT_Math',
794
+ topic: 'Word Problems',
795
+ type: 'problem_solving',
796
+ question: 'Working together, machine A and machine B can complete a job in 4 hours. Machine A alone takes 6 hours. How long does machine B take alone?',
797
+ answer: '12 hours',
798
+ explanation: 'Rate A = 1/6 job/hr, combined rate = 1/4 job/hr. Rate B = 1/4 - 1/6 = 3/12 - 2/12 = 1/12 job/hr. Machine B takes 12 hours alone.',
799
+ difficulty: 'hard',
800
+ examWeight: 0.75
801
+ },
802
+
803
+ // Additional AP Chemistry
804
+ {
805
+ subject: 'AP_Chemistry',
806
+ topic: 'Acids and Bases',
807
+ type: 'multiple_choice',
808
+ question: 'Which of the following is a conjugate acid-base pair?',
809
+ answer: 'B',
810
+ explanation: 'A conjugate acid-base pair differs by only one proton (H⁺). NH₄⁺ (acid) and NH₃ (conjugate base) differ by one proton: NH₄⁺ ⇌ NH₃ + H⁺.',
811
+ choices: ['A. H₂SO₄ and SO₄²⁻', 'B. NH₄⁺ and NH₃', 'C. HCl and NaOH', 'D. H₂O and OH⁻'],
812
+ difficulty: 'medium',
813
+ examWeight: 0.8
814
+ },
815
+
816
+ // Additional AP Biology
817
+ {
818
+ subject: 'AP_Biology',
819
+ topic: 'Plant Systems',
820
+ type: 'short_answer',
821
+ question: 'What is the function of the xylem in vascular plants?',
822
+ answer: 'transports water and minerals from roots to shoots and leaves',
823
+ explanation: 'Xylem is composed of dead cells (tracheids and vessel elements) that form hollow tubes. Water moves up by transpiration pull (tension-cohesion-adhesion), root pressure, and capillary action. Xylem also provides structural support.',
824
+ difficulty: 'easy',
825
+ examWeight: 0.7
826
+ },
827
+ {
828
+ subject: 'AP_Biology',
829
+ topic: 'Animal Systems',
830
+ type: 'multiple_choice',
831
+ question: 'The sinoatrial (SA) node is important because it:',
832
+ answer: 'C',
833
+ explanation: 'The SA node, located in the right atrium, is the natural pacemaker of the heart. It generates electrical impulses that spread across the atria, then through the AV node and bundle of His to the ventricles, coordinating heart contractions.',
834
+ choices: [
835
+ 'A. Produces red blood cells',
836
+ 'B. Regulates blood pressure through the kidneys',
837
+ 'C. Initiates the electrical impulse that triggers heart contractions',
838
+ 'D. Controls oxygen uptake in the lungs'
839
+ ],
840
+ difficulty: 'medium',
841
+ examWeight: 0.7
842
+ },
843
+
844
+ // Additional APUSH
845
+ {
846
+ subject: 'AP_US_History',
847
+ topic: 'World War I',
848
+ type: 'multiple_choice',
849
+ question: 'The Zimmermann Telegram (1917) contributed to US entry into WWI because it:',
850
+ answer: 'A',
851
+ explanation: 'The Zimmermann Telegram was a secret German diplomatic communication proposing a military alliance with Mexico: if the US entered the war, Mexico should attack the US to reclaim Texas, New Mexico, and Arizona. Intercepted by British intelligence and published in American newspapers, it outraged the American public.',
852
+ choices: [
853
+ 'A. Proposed a German-Mexican alliance against the United States',
854
+ 'B. Threatened US passenger ships in the Atlantic',
855
+ 'C. Revealed German espionage within the US government',
856
+ 'D. Announced unrestricted submarine warfare'
857
+ ],
858
+ difficulty: 'medium',
859
+ examWeight: 0.8
860
+ },
861
+
862
+ // More AP Biology
863
+ {
864
+ subject: 'AP_Biology',
865
+ topic: 'Genetics',
866
+ type: 'multiple_choice',
867
+ question: 'What is the term for the observable physical characteristics of an organism?',
868
+ answer: 'A',
869
+ explanation: 'Phenotype refers to the observable traits of an organism (height, eye color, blood type). Genotype is the genetic makeup. The phenotype results from the interaction of genotype and environment.',
870
+ choices: ['A. Phenotype', 'B. Genotype', 'C. Allele', 'D. Locus'],
871
+ difficulty: 'easy',
872
+ examWeight: 0.8
873
+ },
874
+ {
875
+ subject: 'AP_Biology',
876
+ topic: 'Evolution and Natural Selection',
877
+ type: 'multiple_choice',
878
+ question: 'Analogous structures are:',
879
+ answer: 'B',
880
+ explanation: 'Analogous structures (e.g., bird wings and insect wings) have similar functions but different evolutionary origins — convergent evolution. Homologous structures share common ancestry but may have different functions (e.g., human arm and whale flipper).',
881
+ choices: [
882
+ 'A. Structures with common ancestry but different functions',
883
+ 'B. Structures with similar function but different evolutionary origins',
884
+ 'C. Non-functional remnants of ancestral structures',
885
+ 'D. Structures formed during embryonic development'
886
+ ],
887
+ difficulty: 'medium',
888
+ examWeight: 0.75
889
+ },
890
+
891
+ // More SAT Math
892
+ {
893
+ subject: 'SAT_Math',
894
+ topic: 'Quadratic Equations',
895
+ type: 'problem_solving',
896
+ question: 'Use the quadratic formula to solve: 2x² + 3x - 2 = 0',
897
+ answer: 'x = 1/2 or x = -2',
898
+ explanation: 'Quadratic formula: x = (-b ± √(b²-4ac)) / 2a. With a=2, b=3, c=-2: discriminant = 9 + 16 = 25. x = (-3 ± 5) / 4. x = 2/4 = 1/2 or x = -8/4 = -2.',
899
+ difficulty: 'hard',
900
+ examWeight: 0.8
901
+ },
902
+ {
903
+ subject: 'SAT_Math',
904
+ topic: 'Statistics and Probability',
905
+ type: 'problem_solving',
906
+ question: 'The median of the data set {3, 7, 9, 11, 15, 17} is:',
907
+ answer: '10',
908
+ explanation: 'With 6 values (even count), median = average of 3rd and 4th values. Ordered: 3, 7, 9, 11, 15, 17. Median = (9 + 11) / 2 = 20 / 2 = 10.',
909
+ difficulty: 'easy',
910
+ examWeight: 0.8
911
+ },
912
+
913
+ // More AP Chemistry
914
+ {
915
+ subject: 'AP_Chemistry',
916
+ topic: 'Stoichiometry',
917
+ type: 'multiple_choice',
918
+ question: 'Which of the following best describes Avogadro\'s number?',
919
+ answer: 'C',
920
+ explanation: 'Avogadro\'s number (N_A ≈ 6.022 × 10²³) is the number of entities (atoms, molecules, ions) in one mole of any substance. This allows chemists to count atoms by weighing them.',
921
+ choices: [
922
+ 'A. The number of atoms in 1 gram of hydrogen',
923
+ 'B. The volume occupied by 1 mole of gas at STP',
924
+ 'C. The number of particles in one mole of a substance',
925
+ 'D. The ratio of protons to neutrons in a stable nucleus'
926
+ ],
927
+ difficulty: 'easy',
928
+ examWeight: 0.85
929
+ },
930
+ {
931
+ subject: 'AP_Chemistry',
932
+ topic: 'Thermodynamics',
933
+ type: 'problem_solving',
934
+ question: 'Calculate ΔG for a reaction with ΔH = -100 kJ/mol and ΔS = -200 J/mol·K at 500 K.',
935
+ answer: 'ΔG = 0 kJ/mol (at equilibrium)',
936
+ explanation: 'ΔG = ΔH - TΔS. Convert ΔS to kJ: -0.200 kJ/mol·K. ΔG = -100 kJ/mol - (500 K)(-0.200 kJ/mol·K) = -100 + 100 = 0 kJ/mol. ΔG = 0 means the reaction is at equilibrium at 500 K.',
937
+ difficulty: 'hard',
938
+ examWeight: 0.8
939
+ }
940
+ ];
941
+
942
+ export function getQuestionsBySubject(subject: string): QuestionTemplate[] {
943
+ return QUESTION_BANK.filter(q => q.subject === subject);
944
+ }
945
+
946
+ export function getQuestionsByTopic(subject: string, topic: string): QuestionTemplate[] {
947
+ return QUESTION_BANK.filter(q => q.subject === subject && q.topic === topic);
948
+ }
949
+
950
+ export function getRandomQuestions(subject: string, count: number): QuestionTemplate[] {
951
+ const subjectQuestions = getQuestionsBySubject(subject);
952
+ const shuffled = [...subjectQuestions].sort(() => Math.random() - 0.5);
953
+ return shuffled.slice(0, count);
954
+ }
955
+
956
+ export function getAllSubjects(): string[] {
957
+ return [...new Set(QUESTION_BANK.map(q => q.subject))];
958
+ }
959
+
960
+ export function getTopicsForSubject(subject: string): string[] {
961
+ return [...new Set(QUESTION_BANK.filter(q => q.subject === subject).map(q => q.topic))];
962
+ }