The two variables age and day are initialized with the values shown.
age <-- 16
day <-- "Monday"
Choose the compound conditional that evaluates to false.
AP CSP Boolean Logic 5
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Michael Toepper
Used 7+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The two variables age and day are initialized with the values shown.
age <-- 16
day <-- "Monday"
Choose the compound conditional that evaluates to false.
( (age = 16) AND ( NOT (day = "Tuesday") ) ) AND (day = "Monday")
( (age = 16) AND (day = "Tuesday") ) OR (day = "Monday")
( (age > 10) AND ( (age + 5) > 25 ) )
NOT ( (age = 16) AND (day = "Tuesday") )
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following expression is from the data loading logic of a website.
NOT ( state ≠ "loading" AND result = "error" )
Which of these expressions are logically equivalent?
state ≠ "loading" AND result ≠ "error"
state = "loading" AND result = "error"
state = "loading" OR result ≠ "error"
state ≠ "loading" OR result = "error"
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
This program uses a nested conditional to recommend a heat level for cooking eggs.
In which situations will heatLevel be "medium"?
Note that there may be multiple answers to this question. Choose all answers that apply:
When inHurry is false and eggDish is "fried"
When inHurry is true and eggDish is "fried"
When inHurry is false and eggDish is "scrambled"
When inHurry is true and eggDish is "scrambled"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following circuit takes the output of an OR gate and sends it through a NOT gate. This circuit is logically equivalent to the NOR logic gate, a common gate in computers.
Select the output column that correctly completes out the truth table for the circuit:
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
1
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trace the code and plot the movements of the robot for the 3 scenarios.
If the robot is directed to move onto a black square, it “crashes” and the program ends.
Choose the scenario that results in a "crash."
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the program below, the initial value of x is 5 and the initial value of y is 10.
What is displayed as a result of running the program?
Foxtrot
Hotel
November
Yankee
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The diagram shows a circuit composed of two logic gates labeled OR and AND. Each gate takes two inputs and produces a single output.
If the inputs A and C are both false, which of the following best describes the output of the AND gate?
The output will be true no matter what the value of input B is.
The output will be false no matter what the value of input B is.
The output will be true if input B is true; otherwise it will be false.
The output will be false if input B is true; otherwise it will be true.
10 questions
Binary Logic
Quiz
•
8th - 12th Grade
13 questions
Unit 2.4 - Boolean Logic
Quiz
•
10th Grade
15 questions
GCSE Computing: Computational Logic 2.4
Quiz
•
11th - 12th Grade
9 questions
Logic Gates
Quiz
•
6th - 11th Grade
10 questions
Logic Circuits
Quiz
•
10th - 12th Grade
12 questions
2ND QUARTER REVIEW 2
Quiz
•
12th Grade
14 questions
Logic Gates
Quiz
•
9th - 12th Grade
15 questions
Logic Gates
Quiz
•
7th - 11th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University