Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DS- Introduction to Python - Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is Data Science?

a)

A. Study of hardware

b)

B. Extracting useful insights from data

c)

C. Writing programs only

d)

D. Data storage technique

2.

Which of the following is a facet of data?

a)

A. Structured

b)

B. Unstructured

c)

C. Semi-structured

d)

D. All of the above

3.

Which step comes first in the Data Science process?

a)

A. Model building

b)

B. Data visualization

c)

C. Data collection

d)

D. Deployment

4.

Which function is used to take user input in Python?

a)

A. input()

b)

B. print()

c)

C. read()

d)

D. scan()

5.

Which of the following is an immutable data type?

a)

A. List

b)

B. Set

c)

C. Dictionary

d)

D. Tuple

6.

Which control flow statement is used for decision making?

a)

A. for

b)

B. while

c)

C. if

d)

D. break

7.

What will be the output of range(5)?

a)

A. 1 to 5

b)

B. 0 to 5

c)

C. 0 to 4

d)

D. 1 to 4

8.

Which keyword is used to define a function in Python?

a)

A. function

b)

B. def

c)

C. define

d)

D. fun

9.

Which data structure allows duplicate elements?

a)

A. Set

b)

B. Dictionary

c)

C. List

d)

D. None

10.

What symbol is used to create a dictionary in Python?

a)

A. ( )

b)

B. [ ]

c)

C. { }

d)

D. < >

11.

Which data structure does NOT allow duplicate values?

a)

A. List

b)

B. Tuple

c)

C. Set

d)

D. String

12.

Which of the following is a list in Python?

a)

A. (1, 2, 3)

b)

B. {1, 2, 3}

c)

C. [1, 2, 3]

d)

D. <1, 2, 3>

13.

How are elements accessed in a list?

a)

A. Using keys

b)

B. Using index

c)

C. Using values

d)

D. Using functions

14.

Which of the following correctly accesses value 85 from a dictionary d = {"marks":85}?

a)

A. d[0]

b)

B. d["marks"]

c)

C. d(marks)

d)

D. d{marks}

15.

Which data structure stores elements as key–value pairs?

a)

A. List


b)

B. Tuple

c)

C. Set

d)

D. Dictionary