
Quiz - 2
Authored by Phitron Team
Professional Development
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a conditional statement in Python?
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")
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?
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 ?
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?
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 ?
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?