TechSmart Python Unit 2; Part 1
UPDATED ACTUAL Exam
Questions and CORRECT Answers
Save
Get a feel for practice questions
Learn
Studied 7 terms
Nice work, you're crushing it
Continue studying in Learn
,Terms in this set (50)
In the following if y == 2:
code, identify print("y is 2")
the conditional elif x == w:
that includes print("X is w")
the elif-clause. elif x == 5:
print("X is 5")
if x == 1:
print("X is 1") Remember that a conditional starts
if y == 2: with an if-clause.
print("y is 2")
elif x == w:
print("X is w")
elif x == 5:
print("X is 5")
if x < 53:
print("x is less
than 53")
, Which of the then
following is not
a type of
conditional
clause?
if, elif, then, or
else
What data type boolean
can only be
represented as
Yes or No and
True or False?
Example of a a == b;
boolean
expression
The three basic AND, OR, and NOT.
boolean
operators are:
UPDATED ACTUAL Exam
Questions and CORRECT Answers
Save
Get a feel for practice questions
Learn
Studied 7 terms
Nice work, you're crushing it
Continue studying in Learn
,Terms in this set (50)
In the following if y == 2:
code, identify print("y is 2")
the conditional elif x == w:
that includes print("X is w")
the elif-clause. elif x == 5:
print("X is 5")
if x == 1:
print("X is 1") Remember that a conditional starts
if y == 2: with an if-clause.
print("y is 2")
elif x == w:
print("X is w")
elif x == 5:
print("X is 5")
if x < 53:
print("x is less
than 53")
, Which of the then
following is not
a type of
conditional
clause?
if, elif, then, or
else
What data type boolean
can only be
represented as
Yes or No and
True or False?
Example of a a == b;
boolean
expression
The three basic AND, OR, and NOT.
boolean
operators are: