1.5 Multiple Choice Questions

5 min readmarch 13, 2023


AP Computer Science Principles ⌨️

80 resources
See Units

Multiple Choice Practice for Creative Development

Welcome to Big Idea 1 AP Computer Science Principles Multiple Choice Questions! Grab some paper and a pencil 📄 to record your answers as you go. You can see how you did on the Big Idea 1 Practice Questions Answers and Review sheet once you're done. Don't worry, we have tons of resources available if you get stumped 😕 on a question. And if solo study is not your thing, join a group in Hours!
Not ready to take a quiz yet? Take a look at the Intro to Big Idea 1.
https://cdn.pixabay.com/photo/2019/06/17/19/48/source-4280758_1280.jpg

Image courtesy of Pixabay

Facts about the test: The AP CS: Principles exam has 70 multiple choice questions and you will be given 2 hours (120 minutes) to complete the section. That means it should take you around 10 minutes to complete 6 questions.
*The following questions were not written by College Board and, although they cover information outlined in the AP Computer Science Principles Course and Exam Description, the formatting on the exam may be different.

1. How does documentation help with maintaining programs?
A. If code is modified, the documentation can guide the programmer in testing to ensure the functionality is still correct.
B. It journals the history of program changes showing how the program first worked before changes
C. It documents how to run the program in multiple languages for a global audience.
D. It is useful for training new employees on how to learn the programming language.

2. What can help with identifying & correcting program errors?
A. revisiting requirements
B. collaboration
C. clustering requirements & tests
D. consolidating testing

3. How is collaboration useful in analyzing datasets?
A. multiple viewpoints can give several outcomes for the data
B. analysis can be divided among several people to speed up the analysis
C. applying different experiences & skills gives better analysis & insight
D. having multiple leaders helps the group for alliances based on interests

4. Given the importance of sharing insight & knowledge gained from processing data, how can this be effectively communicated?
A. using summaries of the insights
B. providing detailed examples of the data to prove accuracy
C. using tables & diagrams of the findings
D. All of the above

5. Why do we need more than one programming language?
A. some cannot implement needed algorithms
B. some cannot be compiled & don't run efficiently
C. Some languages are designed for specific uses & only used well in those situations
D. there is no reason, just the preference of those who create new languages

6. How are algorithms & programs related?
A. they have a hierarchical relationship
B. programs implement algorithms
C. algorithms implement programs
D. they can both be run on a computer

7. What is a benefit of collaboration when writing code?
A. collaboration allows the work to be divided among independent programmers to create 
B. collaboration makes it easier to find errors
C. collaboration makes it easier to document another person's code
D. collaboration produces an increase in user requirements that can be met with more team members

8. Which line of code can be placed inside the bracec { } to fix the following loop so it will not be an infinite loop?
A. name <-- INPUT ()
B. IF name < > "done")
C. count = count + 1
D. name <-- studentRoster
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-U0YolYegKCut.png?alt=media&token=b6bb91c8-2fea-45d4-a02e-cfdf2485230f

9. Below is a flowchart of an alarm clock snooze process. What value does the variable "count" have after tracing through the flowchart?
A. 4
B. 0
C. 5
D. count = count + 1
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-ovHab9oY5uyq.png?alt=media&token=f2db9c0a-3ee5-49a7-9c8f-703ce69f987d

10. A programmer tests an app she wrote using one set of test cases. Since the app was developed for her personal use, does it need to undergo further testing?
A. yes all software should be tested with a variety of test cases to ensure the code works as expected
B. additional testing is required only when there are more than 25 lines of code
C. additional testing is needed when procedures are used
D. no, since the app is for personal use, less testing is acceptable

11. What is displayed after the following code runs?
A. Good luck on the AP exam!
B. Error message, cannot add text fields
C. good luck on the ap exam!
D. 24, which is the number of characters in the text fields
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-XlWVl8Ne2oER.png?alt=media&token=59f27b06-8406-4efc-93d8-ef76563f9b4a

12. Which algorithm should be used to find a phone number on a contact list?
A. I
B. II
C. I and II are equally effective
D. A combination of I and II should be used
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-4YYpEuyt6eBw.png?alt=media&token=30dafbb9-11d1-4dc9-838d-99827a372fc8

13. The principal hired the programming class to write a program to reserve parking spots in the student parking lot. She wants seniors to have the best spots. What is the best way the programming class can verify a student is a senior?
A. Grade can be an input field that is then passed to the procedure to select an available spot
B. the program can loop through the school district rosters for every student name
C. Use an API to integrate with the school's information system hosted off-site to check grade level
D. Have students upload a photo from the school registrar showing their grade with their parking spot request

14. You have to change a program written a year ago by someone else. A sample section of code is given below. How could the original program author have helped someone making changes at a later date?
A. provided the original program requirements
B. added a video describing the program design & functionality
C. used procedure and variable names that described their purpose/context
D. provided written documentation of the application development process
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-qQFZVIUn4cOe.png?alt=media&token=5d0cba61-e916-4c49-b525-0d4eb1973e6c

15. Consider the following program. Which of the following describes the result of executing the program?
A. The program displays the sum of the odd integers from 1 to 19.
B. The program displays the sum of the odd integers from 1 to 9.
C. The program displays the sum of the even integers from 2 to 10.
D. The program displays the sum of the even integers from 2 to 20.
https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2Fcsp1-Zv14NGUTPjfB.png?alt=media&token=4cfca992-eb60-4718-b0aa-89090739ae06

  • 🤝Connect with other students studying AP CS: Principles with Hours

Browse Study Guides By Unit
⚙️Unit 2 – Data
📱Unit 3 – Algorithms & Programming
🖥Unit 4 – Computer Systems & Networks
⌨️Unit 5 – Impact of Computing
✏️Frequently Asked Questions
📝Exam Prep