
AP Computer Science Principles Practice Exam
Authored by Amber Fowler
Computers
12th Grade
Used 21+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following program. [Diagram: x ← 2; REPEAT 4 TIMES { x ← x * 3 }] Which of the following expressions represents the value stored in the variable x as a result of executing the program?
2 * 3 * 3 * 3
2 * 4 * 4 * 4
2 * 3 * 3 * 3 * 3
2 * 4 * 4 * 4 * 4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A small team of wildlife researchers is working on a project that uses motion-activated field cameras to capture images of animals at study sites. The team is considering using a “citizen science” approach to analyze the images. Which of the following best explains why such an approach is considered useful for this project?
Distributed individuals are likely to be more accurate in wildlife identification than the research team.
The image analysis is likely to be more consistent if completed by an individual citizen.
The image analysis is likely to require complex research methods.
The image analysis is likely to take a longer time for the research team than for a distributed group of individuals.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
An algorithm is intended to display the following output. red red blue red red blue red red blue Which of the following code segments can be used to display the intended output?
REPEAT 2 TIMES [ REPEAT 3 TIMES [ DISPLAY "red" ] DISPLAY "blue" ]
REPEAT 2 TIMES [ REPEAT 3 TIMES [ DISPLAY "blue" ] DISPLAY "red" ]
REPEAT 3 TIMES [ REPEAT 2 TIMES [ DISPLAY "red" ] DISPLAY "blue" ]
REPEAT 3 TIMES [ REPEAT 2 TIMES [ DISPLAY "blue" ] DISPLAY "red" ]
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs?
The program attempted to perform an operation that is considered an undecidable problem.
The precision of the result is limited due to the constraints of using a floating-point representation.
The program can only use a fixed number of bits to represent integers; the computed sum is greater than the maximum representable value.
The program cannot represent integers; the integers are converted into decimal approximations, leading to rounding errors.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The diagram below shows a circuit composed of three logic gates. Each gate takes two inputs and produces a single output. For which of the following input values will the circuit have an output of true?
A = true, B = true, C = true, D = false
A = true, B = false, C = false, D = true
A = false, B = true, C = true, D = true
A = false, B = false, C = true, D = true
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing right. The following programs are each intended to move the robot to the gray square. Program II uses the procedure GoalReached, which returns true if the robot is in the gray square and returns false otherwise. Program I: REPEAT 2 TIMES MOVE_FORWARD ROTATE_LEFT MOVE_FORWARD MOVE_FORWARD ROTATE_RIGHT Program II: REPEAT UNTIL GoalReached IF CAN_MOVE forward MOVE_FORWARD ELSE ROTATE_LEFT Which of the following statements best describes the correctness of the programs?
Program I correctly moves the robot to the gray square, but program II does not.
Program II correctly moves the robot to the gray square, but program I does not.
Both program I and program II correctly move the robot to the gray square.
Neither program I nor program II correctly moves the robot to the gray square.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Flight simulation software, which imitates the experience of flying, is often used to train airline pilots. Which of the following is LEAST likely to be an advantage of using flight simulation software for this purpose?
Flight simulation software allows pilots to practice landing in a variety of different terrains and weather conditions without having to physically travel.
Flight simulation software could save money due to the cost of maintenance and fuel for actual training flights.
Flight simulation software provides a more realistic experience for pilots than actual training flights.
Flight simulation software allows for the testing of emergency air situations without serious consequences.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
35 questions
SCRATCH
Quiz
•
4th Grade - University
30 questions
ADMINISTRASI JARINGAN
Quiz
•
12th Grade
40 questions
ĐỀ CƯƠNG ÔN TẬP CUỐI KÌ 1_TIN HỌC 10_KNTT
Quiz
•
12th Grade
40 questions
Computer Science Pre-Assessment Quiz
Quiz
•
9th - 12th Grade
30 questions
COP NSDA L3= 0005
Quiz
•
12th Grade
30 questions
IT security - 3
Quiz
•
9th Grade - University
34 questions
Examen Lección 1-4 E-thinking
Quiz
•
12th Grade
40 questions
ÔN TẬP NGHỀ THPT HNH
Quiz
•
12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade