Data abstraction: AP CSP practice
Using lists to manage complexity. 4 questions in the style of the AP CSP exam.
Sample questions
A program stores the names of 30 students. Why is it better to use one list than 30 separate variables?
- Separate variables cannot hold names
- Lists make the program impossible to change
- A list uses no memory
- A list lets the program process all the names with one loop, and it is easy to add or remove students