/  Python-Datatypes-Quiz

This Quiz contains totally 10 Questions each carry 1 point for you.

1.Which of the following is not a core data type?
Lists
Dictionary
Tuples
Class

Correct!

Wrong!

2.The result of the below code is print(type({})?
Dict
Set
List
None

Correct!

Wrong!

3.In Python 3, what is the type of type(range(5))
int
list
range
dict

Correct!

Wrong!

4.What is the output of the following code?  print (bool(1), bool(0))
0,1
1,0
False, true
True, false

Correct!

Wrong!

5.What is the data type of print(type(10))
Float
int
boolean
complex

Correct!

Wrong!

6.Which Data Type represents a whole number?
Float
Integer
String
Boolean

Correct!

Wrong!

7.Select the valid String creation in Python

A.str1 = “str1”

B.str1 = ‘str1’

C.str1 = "'str1'"

D.str1 = str(“str1”)
all of the above
None of the above
Both A and C
Both B and D

Correct!

Wrong!

8.What data type is the object below?
L = [1, 23, 'hello', 1]
list
dictionary
array
tuple

Correct!

Wrong!

9.What data type would you use for a variable called: isCorrect = True?
String
Boolean
Int
Float

Correct!

Wrong!

10.If a function is given that does not return any value, What value is thrown by default when executed in shell.
Int
Boolean
Void
None

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

Python-Datatypes-quiz

You got %%score%% of %%total%% right

%%description%%

%%description%%

Where to go ?

Quizzes

Loading...