wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Study Comrade | Data Analytics

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

Data Analysis is a process of?

a)

inspecting data

b)

cleaning data

c)

transforming data

d)

All of these

2.

Which of the following is not a major data analysis approaches?

a)

Data Mining

b)

Predictive Intelligence

c)

Business Intelligence

d)

Text Analytics

3.

Data Analysis is defined by the statistician?

a)

William S

b)

Hans Peter Luhn

c)

Gregory Piatetsky-Shapiro

d)

John Tukey

4.

Who developed the Python language?

a)

Guido van Rossum

b)

Niene Stom

c)

Wick van Rossum

d)

None of these

5.

Which type of Programming does Python support?

a)

object-oriented programming

b)

structured programming

c)

functional programming

d)

all of these

6.

Which of the following is the correct extension of the Python file?

a)

.python

b)

.pI

c)

.py

d)

.p

7.

What will be the value of the following Python expression: 4+3%5

a)

7

b)

2

c)

4

d)

1

8.

Which of the following functions can help us to find the version of python that we are currently working on?

a)

sys.version(1)

b)

sys.version(0)

c)

sys.version()

d)

sys.version

9.

Python supports the creation of anonymous functions at runtime, using a construct called __________

a)

pi

b)

anonymous

c)

lambda

d)

none of these

10.

Which of the following is the use of id() function in python?

a)

Every object doesn’t have a unique id

b)

Id returns the identity of the object

c)

Both of these

d)

None of these

11.

What will be the output of the following Python function:

min(max(False,-3,-4), 2,7)

a)

-4

b)

2

c)

None

d)

False

12.

Which of the following is not a core data type in Python programming?

a)

Tuple

b)

List

c)

Class

d)

Dictionary

13.

Which of these is the definition for packages in Python?

a)

A set of main modules

b)

A folder of python modules

c)

A number of files containing Python definitions and statements

d)

A set of programs making use of Python modules

14.

What will be the output of the following Python code snippet?

For i in [1, 2, 3, 4][::-1]:

Print (i)

a)

4 3 2 1

b)

error

c)

1 2 3 4

d)

None of these

15.

Which module in the python standard library parses options received from the command line?

a)

getarg

b)

getopt

c)

main

d)

os

16.

Which of the following statements is used to create an empty set in Python?

a)

( )

b)

[ ]

c)

{ }

d)

set( )

17.

What will be the output of the following Python code snippet?

D = {“john”:40, “peter”:45}

a)

“john”, 40, 45, and “peter”

b)

“john” and “peter”

c)

40 and 45

d)

= (40:”john”, 45:”peter”)

18.

Suppose d = {“john”:40, “peter”:45}

To obtain the number of entries in dictionary which command do we use?

a)

d.size()

b)

len(d)

c)

size(d)

d)

d.len()

19.

Which of the following is invalid?

a)

_a = 1

b)

__a = 1

c)

__str__ = 1

d)

None of these

20.

Which of the following is an invalid statement?

a)

abc = 1,000,000

b)

a b c = 1000 2000 3000

c)

a,b,c = 1000, 2000, 3000

d)

a_b_c = 1,000,000