Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python quiz - 2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is not a numeric datatype?

a)

Float

b)

Integer

c)

Complex Numbers

d)

Strings

2.

Which if the following datatype is denoted by the round brackets ()?

a)

List

b)

Boolean

c)

String

d)

Tuple

3.

Which datatype does "hello" belong to ?

a)

String

b)

Numeric

c)

Tuple

d)

None of the above

4.

What is a string datatype?

a)

A set of integers

b)

A combination of integers and characters

c)

A set of characters

d)

None of the above

5.

What is a list?

a)

A set of integers

b)

A set of strings

c)

A mixed bag of datatypes

d)

None of the above

6.

Which of the following is the correct option for list creation?

a)

List = [""1,""1,""3]

b)

List = (1,2,3,4)

c)

List = [ 1,2,3,4]

d)

List = [1 2 3 4]

7.

Which of the following is true for a tuple?

a)

Tup = 1,2,3

b)

Tup = (""1,"2)

c)

Tup = (1,2,3,4)

d)

None of the above

8.

Which of the following is not true for strings?

a)

String = [1,2,3,4]

b)

String = "hello"

c)

String = 'hello'

d)

String = ''' Hello '''

9.

How are the comment lines written in the python language?

a)

#

b)

@

c)

&

d)

*

10.

Float comes under which datatype?

a)

Strings

b)

Tuples

c)

Dictionaries

d)

Numeric