
Python Quiz - 1
Authored by Karunya Hacks
Computers
University
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the data type of the following
aTuple = "Hello World"
print(type(aTuple))
string
list
tuple
complex
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Select the right way to create a string literal python's
Str = ’python’s’
str1 = ‘python\\’s’
str1 = “””python’s”””
str1 = ‘python\’s’
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
what is the data type of print(type(“70.90”))
string
float
int
integer
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
whats the result of print(Bool(0))
Syntax error
true
False
false
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
whats the output of the following code
print(bool(0), bool(3.14159), bool(-6), bool(2.0+1k))
False True False True
False True True True
True True False True
True True False True
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is used as comment in python
??
#
//
/*
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In Python 3, what is the type of type(range(10002))
Int
range
string
List
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?