CS A

CS A · FRQ Trainer

Free-response 1 of 17 · Data Collections

9 pts our rubric
The real CS A Section II is 4 free-response questions in 90 minutes, 45% of your score. Four 9-point questions, one per type: methods and control structures, class design, array/ArrayList, and 2D arrays — 36 raw points. This prompt is ours, written to the same skills — score it against the rubric below, not against that structure.
Prompt

Write a method `findLongestStreak(int[] arr)` that takes an array of integers and returns the length of the longest consecutive sequence of identical numbers. For example, if arr is {1, 2, 2, 2, 3, 3, 1}, the method should return 3.

Keep writing to unlock scoring (0/120)

Write your response first — then grade it with AI or self-score against the rubric.