Using Programs with Data

Help Questions

AP Computer Science Principles › Using Programs with Data

Questions 1 - 5
1

A wearable device collects numerical heart rate readings and step counts throughout the day and stores them in a user history. A health app computes hourly averages, flags unusually high heart rates during rest, and summarizes activity trends. It then sends feedback like “take a break” or “increase activity” based on those summaries. In the described system, which part of the program's process directly influences the outcome?

Computing averages and flagging unusual readings before generating feedback.

Replacing heart rate numbers with random values to reduce storage size.

Changing the device color theme to match the user’s clothing preferences.

Uploading every reading to public forums for community discussion.

Explanation

This question tests AP Computer Science Principles skills: using programs to process data. Using programs to process data involves collecting, manipulating, and analyzing data to achieve specific outcomes through systematic transformations. In the passage, the program processes health data by computing hourly averages from raw readings, flagging unusual patterns (high heart rates during rest), and summarizing activity trends to generate personalized feedback. Choice A is correct because it identifies the key processing steps (computing averages and flagging unusual readings) that directly lead to the outcome of generating appropriate health feedback. Choice C is incorrect because uploading to public forums doesn't relate to the described data processing for personalized feedback, representing a common misunderstanding of data privacy versus processing. To help students, focus on identifying cause-and-effect relationships in data processing pipelines. Practice tracing how each processing step contributes to the final outcome, and watch for students confusing data sharing with data analysis.

2

A city collects numerical speed and car-count data from cameras at intersections and stores it in time-stamped logs. A program detects congestion by comparing current speeds to typical speeds for that time of day. It then adjusts traffic light durations to improve flow during rush hour. Based on the scenario above, what is a potential limitation of the data processing method described?

It requires sentiment labels like “positive” and “negative” for each car.

It guarantees perfect traffic flow because averages always match every situation.

It may miss sudden events if typical-speed comparisons lag behind real-time changes.

It prevents any data collection because logs cannot store time stamps.

Explanation

This question tests AP Computer Science Principles skills: using programs to process data. Using programs to process data involves collecting, manipulating, and analyzing data to achieve specific outcomes, but all methods have limitations based on their design. In the passage, the program processes traffic data by comparing current speeds to typical speeds for specific times, which relies on historical patterns to detect congestion. Choice A is correct because it identifies a real limitation: the system may not respond quickly to sudden, unexpected events since it relies on comparisons to typical patterns, creating a potential lag in detection and response. Choice B is incorrect because it makes an unrealistic claim about guaranteeing perfect traffic flow, which no data processing system can achieve due to the complexity and variability of real-world traffic. To help students, discuss how data processing methods have inherent trade-offs between accuracy, speed, and adaptability. Encourage critical thinking about what scenarios might challenge a system's assumptions.

3

A school weather station collects numerical temperature and humidity readings each hour for a month and stores them in a spreadsheet-like table. A program cleans missing entries, calculates daily highs and lows, and looks for repeating patterns across weeks. It uses those patterns to estimate likely conditions for the next few days. Based on the scenario above, what is the main purpose of the program in the described scenario?

To translate the spreadsheet into another language for international visitors.

To recommend new clothing brands to students based on their purchases.

To predict upcoming weather conditions from temperature and humidity trends.

To create social media posts that advertise the weather station.

Explanation

This question tests AP Computer Science Principles skills: using programs to process data. Using programs to process data involves collecting, manipulating, and analyzing data to achieve specific outcomes, often requiring pattern recognition and predictive analysis. In the passage, the program processes weather data by cleaning missing entries, calculating statistical measures (daily highs/lows), and identifying patterns across weeks to make predictions. Choice B is correct because it accurately identifies the program's purpose: using temperature and humidity trends to predict future weather conditions, which aligns with the described pattern analysis and estimation. Choice A is incorrect because it introduces unrelated concepts (clothing recommendations) that aren't mentioned in the weather station context, a common error when students don't carefully read the scenario. To help students, emphasize matching the program's purpose to its described actions and outputs. Encourage careful reading to avoid introducing unrelated concepts, and practice identifying the main goal versus intermediate steps.

4

A store app collects transaction records with categorical product IDs and numerical quantities, saved in a customer history. A program finds frequently repeated purchases, ranks related items, and displays suggestions during checkout. The goal is to improve shopping efficiency for returning customers. Based on the scenario above, what is the main purpose of the program in the described scenario?

To convert customer histories into unrelated random numbers for entertainment.

To recommend products by analyzing patterns in past transaction records.

To predict tomorrow’s weather using product IDs and quantities.

To block all purchases until the database is completely empty.

Explanation

This question tests AP Computer Science Principles skills: using programs to process data. Using programs to process data involves collecting, manipulating, and analyzing data to achieve specific outcomes, often focusing on pattern recognition for practical applications. In the passage, the program processes transaction data by finding frequently repeated purchases, ranking related items, and displaying suggestions to improve shopping efficiency for returning customers. Choice A is correct because it accurately identifies the program's purpose: analyzing patterns in past transaction records to recommend products, which matches the described functionality. Choice B is incorrect because it absurdly suggests using product IDs and quantities to predict weather, demonstrating confusion between completely unrelated data domains and processing goals. To help students, emphasize matching the program's stated goal with its processing methods. Practice identifying logical connections between data types, processing steps, and intended outcomes.

5

A wearable collects numerical step counts and heart rate readings and stores them in a weekly summary. A program compares the user’s activity to personal goals, calculates progress percentages, and sends reminders when progress falls behind. The reminders help users adjust habits over time. Based on the scenario above, what is a potential limitation of the data processing method described?

It always improves health outcomes because reminders guarantee behavior change.

It depends on sentiment analysis of posts to compute step-count progress.

If sensor readings are inaccurate, progress percentages and reminders may be misleading.

It cannot store numerical data, so weekly summaries must be text-only.

Explanation

This question tests AP Computer Science Principles skills: using programs to process data. Using programs to process data involves collecting, manipulating, and analyzing data to achieve specific outcomes, but accuracy depends on data quality. In the passage, the program processes fitness data by comparing activity to goals, calculating progress percentages, and sending reminders based on these calculations. Choice A is correct because it identifies a fundamental limitation: if the sensor readings are inaccurate, all subsequent calculations (progress percentages) and outputs (reminders) will be misleading, potentially harming rather than helping users. Choice B is incorrect because it makes an unrealistic claim that reminders guarantee behavior change, ignoring both data accuracy issues and human psychology. To help students, discuss how data quality affects all downstream processing and outcomes. Emphasize the principle of 'garbage in, garbage out' and encourage critical thinking about data collection reliability.