WorksheetsPython Quiz - 1
Total questions: 10
Worksheet time: 4mins
What is the data type of the following
aTuple = "Hello World"
print(type(aTuple))
string
list
tuple
complex
Select the right way to create a string literal python's
Str = ’python’s’
str1 = ‘python\\’s’
str1 = “””python’s”””
str1 = ‘python\’s’
what is the data type of print(type(“70.90”))
string
float
int
integer
whats the result of print(Bool(0))
Syntax error
true
False
false
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
What is used as comment in python
??
#
//
/*
In Python 3, what is the type of type(range(10002))
Int
range
string
List
If we change one data type to another, then it is called
Type conversion
Type casting
Both of the above
None of the above
In which of the following data type, duplicate items are not allowed ?
list
set
dictionary
None of the above
What is list data type in Python ?
collection of integer number
collection of string
collection of same data type
collection of different data type
