Cafeteria Sales Aggregation
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?
Solution A transforms the data by selecting a subset, while Solution B aggregates the data to create a summary value.
Both solutions perform the same operation of filtering the dataset to remove low-cost items.
Solution A aggregates data to find high-cost items, while Solution B filters data to find total revenue.
Both solutions perform the same operation of aggregating data points into a single output.
Question Leaderboard
Not enough data yet to show leaderboard.
