AP Computer Science Principles Quiz
13 questions · no time limit
0:00
ALGORITHMS AND PROGRAMMING
Question 1 of 13
No time limit
Current
Answered
Flagged
Not seen
According to the scenario, a county health office runs an epidemiological simulation to decide whether to open an extra vaccination clinic. The real-world problem is allocating staff before cases surge. The model updates daily: Susceptible people become Infected based on infectionRate (0.08–0.25) and contactLevel (low/medium/high), which is influenced by populationDensity (rural/suburban/urban). Infected people move to Recovered based on recoveryRate (0.15–0.35). The algorithm begins with estimated rates, runs 60 days, then compares simulated daily new cases to recent clinic reports. It adjusts infectionRate slightly and reruns until the error stays below a small threshold for multiple runs. Example: increasing recoveryRate from 0.20 to 0.30 shortens the average infection duration, often lowering peakInfected. What impact does changing recoveryRate have in the simulation?
YOUR PROGRESS
13
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F