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
Which of the following is a conditional statement in Python?
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 Wayground
11 questions
Cycle 1 - Session 8 Quiz - Conditional Algorithms

Quiz
•
Professional Development
10 questions
Testing of Hypothesis

Quiz
•
University - Professi...
6 questions
Quizizz Survey

Quiz
•
Professional Development
9 questions
Python training series quiz

Quiz
•
Professional Development
13 questions
Frameworks for Safety & Effective Communication

Quiz
•
Professional Development
10 questions
pyhthon condition statement

Quiz
•
Professional Development
10 questions
Python LIST

Quiz
•
Professional Development
10 questions
Recursia

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade