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.
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
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
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
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
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
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.
- ๐คConnect with other students studying AP CS: Principles with Hours