AP Computer Science Principles Flashcards: Simulations

Study Simulations in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

QUESTION

What does 'real-time simulation' mean?

Tap card or press Space to flip

ANSWER

Simulation that runs concurrently with real time. Processes data at same speed as reality.

1 / 38

AP Computer Science Principles: Algorithms and Programming

All flashcards

38 cards

What this deck covers

This deck focuses on Simulations, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

Practice questions

1 of 13Practice questions for this set
Based on the simulation described, an environmental science class builds a climate change model to explore local sea-wall planning. The real-world problem is estimating future flooding risk without waiting decades for measurements. The simulation advances year by year from 2025 to 2100. CarbonEmissionIndex starts at 100 and changes by emissionReduction (0%–5% per year). TemperatureIncrease (in °C) rises when emissions stay high, and SeaLevelRise (in cm) increases as temperature rises. A simple feedback loop is included: as TemperatureIncrease grows, iceMeltFactor (low/medium/high) increases, which further accelerates SeaLevelRise in later years. The algorithm runs multiple scenarios, compares outputs to historical temperature records for calibration, and then repeats with slightly adjusted sensitivity values until the 1990–2020 trend is closely reproduced. Example: setting emissionReduction to 3% per year slows TemperatureIncrease, which later reduces SeaLevelRise compared with 0% reduction. Which factor is most critical to the simulation's accuracy?
Choose an answer

Keep your progress across every deck

Free account · cards you mark are saved to it