Which of the following is a conditional statement in Python?
Quiz - 2

Quiz
•
Professional Development
•
Professional Development
•
Hard
Phitron Team
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print
if
while
return
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code ? ( Ignore the indentation )
if 0:
print("Zero is True")
else:
print("Zero is False")
Zero is True
Zero is False
Error
Nothing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct about if-else blocks?
else can exist without if
Both if and else are mandatory
if can exist without else
if must come after else
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the following code, what will be printed ?
A
B
C
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is invalid?
if True: pass
if True: print("Yes")
if False: print("No") else: print("Yes")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code print ?
1
-1
0
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is typecasting in Python?
Defining new data types
Checking the type of a variable
Casting a variable to a function
Converting one data type into another
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code output?
Error
None
True
False
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will throw an error?
int("5.5")
float("5.5")
str(5.5)
bool(5.5)
Similar Resources on Quizizz
10 questions
Python Functions

Quiz
•
Professional Development
12 questions
Quiz Python

Quiz
•
Professional Development
10 questions
pyhthon condition statement

Quiz
•
Professional Development
10 questions
Python LIST

Quiz
•
Professional Development
10 questions
Flutter_Q5

Quiz
•
Professional Development
6 questions
Flutter_Q4

Quiz
•
Professional Development
13 questions
Python Quiz : Loop

Quiz
•
Professional Development
10 questions
Quiz for Module2

Quiz
•
Professional Development
Popular Resources on Quizizz
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