Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
AP Computer Science Principles/Big Idea 2: Data
Start Practice TestPractice Test
About Exam
easy

Cafeteria Sales Aggregation

Mark
< Prev
Next >

A school cafeteria uses a program to process daily sales records. The system tracks item names and their associated prices.

Solution A uses a filter to identify all items sold with a price greater than 5.00 USD and displays their names.

Solution B uses an aggregation function to calculate the total revenue earned from all items sold throughout the day.

Item Price (USD)
Apple 1.00
Salad 6.00
Pizza 4.00
Burger 7.00

Which statement correctly describes the outcome of the programs?

A

Solution A transforms the data by selecting a subset, while Solution B aggregates the data to create a summary value.

B

Both solutions perform the same operation of filtering the dataset to remove low-cost items.

C

Solution A aggregates data to find high-cost items, while Solution B filters data to find total revenue.

D

Both solutions perform the same operation of aggregating data points into a single output.

Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|