stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Conditional & Logical Operators Flashcards | StudBud
Explore
/
Conditional & Logical Operators
Conditional & Logical Operators
17 terms
·
StudBud Administration
·
94 plays
Imported from external platform
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
Determine the output of the statement
print( 5 <= -1 or 23 > 24 )
.
Error/Cannot be determined
True
False
2
If
A = True
and
B = False
, the
not B
is ...
False
I'm confused
True
3
If
A = False
and
B = False
, the
A and B
is ...
False
True
I'm confused
4
Determine the output of the statement
print( 4 == 3 or 6 == 6 )
.
True
False
Error/Cannot be determined
5
Determine the output of the statement
print( 7 < 8 or 1 != 0 )
.
Error/Cannot be determined
True
False
6
The Boolean data type (bool) is used to...
Perform mathematical operations
Store lists of strings
Randomize the outcome of a program
Evaluate if something is true or false
7
Determine the output of the statement
print(-12 != -12)
.
Error/Cannot be determined
False
True
8
Determine the output of the statement
print(-12 <= -3)
.
Error/Cannot be determined
False
True
9
Determine the output of the statement
print(3 == 3)
.
True
False
Error/Cannot be determined
10
Determine the output of the statement
print( 1 <= 3 and 6 <= 6 )
.
Error/Cannot be determined
True
False
11
If
A = True
and
B = False
, the
A and B
is ...
False
I'm confused
True
12
Determine the output of the statement
print(3 == 3 and 4 == 4)
.
Error/Cannot be determined
False
True
13
If
A = True
and
B = False
, the
A or B
is ...
False
True
I'm confused
14
Determine the output of the statement
print(not 10 > 5)
.
Error/Cannot be determined
False
True
15
Determine the output of the statement
print( 1 != 3 and 6 != 6 )
.
Error/Cannot be determined
False
True
16
Determine the output of the statement
print(not 4 <= 6)
.
True
False
Error/Cannot be determined
17
Determine the output of the statement
print(not 3==3)
.
Error/Cannot be determined
True
False