WorksheetsPython quiz - 2
Total questions: 10
Worksheet time: 5mins
Which of the following is not a numeric datatype?
Float
Integer
Complex Numbers
Strings
Which if the following datatype is denoted by the round brackets ()?
List
Boolean
String
Tuple
Which datatype does "hello" belong to ?
String
Numeric
Tuple
None of the above
What is a string datatype?
A set of integers
A combination of integers and characters
A set of characters
None of the above
What is a list?
A set of integers
A set of strings
A mixed bag of datatypes
None of the above
Which of the following is the correct option for list creation?
List = [""1,""1,""3]
List = (1,2,3,4)
List = [ 1,2,3,4]
List = [1 2 3 4]
Which of the following is true for a tuple?
Tup = 1,2,3
Tup = (""1,"2)
Tup = (1,2,3,4)
None of the above
Which of the following is not true for strings?
String = [1,2,3,4]
String = "hello"
String = 'hello'
String = ''' Hello '''
How are the comment lines written in the python language?
#
@
&
*
Float comes under which datatype?
Strings
Tuples
Dictionaries
Numeric
