AP Computer Science a · Question of the Day

AP Computer Science a Question of the Day

A fresh daily question to build accuracy, reinforce recall, and turn practice into a steady habit.
Thursday, October 8, 2026

A program is needed to process a data set of exam scores and find the number of students who scored 90 or above. Which combination of algorithmic components is most appropriate for this task?

Keep practicing AP Computer Science a

Question of the Day

Answer today's AP Computer Science a question, reveal the full explanation, then keep the streak going with a new question every day.

A program is needed to process a data set of exam scores and find the number of students who scored 90 or above. Which combination of algorithmic components is most appropriate for this task?

  1. A single conditional statement to check if the first score in the data set is 90 or above.
  2. A loop to iterate through each score and a counter variable initialized to zero. (correct answer)
  3. Two separate loops: one to find the maximum score and one to find the minimum score.
  4. A method call to a sorting algorithm to arrange all of the scores in ascending order.

Explanation: The standard algorithm for this task requires iterating through all scores (using a loop) and keeping a count of how many meet the criterion (using a counter variable). Checking only the first score is incomplete. Finding the min/max or sorting the data are unnecessary operations for solving this specific problem.