NEW
Font size
WorksheetsAP CSP Big Idea 3 Practice
Total questions: 10
Worksheet time: 5mins
What value of A would make the output of the logic circuit false?
True
False
The output will be false no matter what the value of A is
There is no value of A such that the output of the logic circuit will be false
The figure below shows a circuit composed of two logic gates.
The output of the circuit is true.
Which of the following is a true statement about input A?
Input A must be true.
Input A must be false.
Input A can be either true or false.
There is no possible value of input A that will cause the circuit to have the output true.
The figure below shows a circuit composed of two logic gates.
The output of the circuit is true.
Which of the following is a true statement about input a and b?
There is no possible value of Input A or Input B that will cause the circuit to have the output true.
Input A can be either true or false if Input B is true.
Input A must be false regardless of Input B's value.
Input A must be true regardless of Input B's value.
To be eligible for a particular ride at an amusement park, a person must be at least 11 years old and must be between 52 and 82 inches tall, inclusive.
Let age represent a person's age, in years, and let height represent the person's height, in inches.
Which of the following expressions evaluates to true if and only if the person is eligible for the ride?
Consider the following program code:
Which of the following best describes the result of running the program code?
The number 10 is displayed.
The number 0 is displayed.
Nothing is displayed. The program results in an infinite loop.
The number 6 is displayed.
Predict the output of the following code block.
0 19 24 8 47 6 53 55
24 8 6
19 24 8 47 6 53 55
0 24 8 6
An algorithm is intended to display the following output:
dog dog cat dog dog cat dog dog cat
Which of the following code segments can be used to display the intended output?
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 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.
The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing toward the top of the grid.
Which of the following code segments will move the robot to the gray square along the path indicated by the arrows?
A flowchart is a way to visually represent an algorithm. The flowchart below is used by an application to set the Boolean variable available to true under certain conditions. The flowchart uses the Boolean variable weekday and the integer variable miles.
