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
Day-2 IOAC - ML Python Assessment_5th-Feb-2023

Quiz
•
Professional Development
8 questions
Quizziz Pelatihan Coding & AI - SD SMP - Hari 2

Quiz
•
Professional Development
12 questions
ML-1

Quiz
•
Professional Development
9 questions
Code vs. Meaning Emphasis in Reading LETRS U3 S1

Quiz
•
Professional Development
9 questions
Python Looping

Quiz
•
Professional Development
14 questions
ABREDES - Devasc Python

Quiz
•
Professional Development
10 questions
SvensQA -ISTQB- QUIZ1

Quiz
•
Professional Development
10 questions
Nodejs: Error Handling

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade