AP Computer Science A Quiz
10 questions · no time limit
0:00
DATA COLLECTIONS
Question 1 of 10
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
A program needs to read student grades from a text file called "grades.txt" where each line contains a student name followed by three test scores separated by spaces. Example line: "John Smith 85 92 78"
Which code segment will correctly read all data from the file and calculate each student's average, assuming the file exists and is properly formatted?
YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F