wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ML/AI internship Intermediate assessment

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

From the given choices point out the wrong statement.

a)

Series is 1D labeled homogeneously-typed array

b)

DataFrame is general 2D labeled, size-mutable tabular structure with potentially heterogeneously-typed columns

c)

None of the mentioned

d)

Panel is generally 2D labeled, also size-mutable array

2.

How do we install numpy in the system ?

a)

install numpy

b)

pip install python numpy

c)

pip install numpy python

d)

pip install numpy

3.

How to find the last element of list in Python? Assume `bikes` is the name of list.

a)

bikes[0]

b)

bikes[:-1]

c)

bikes[lpos]

d)

bikes[-1]

4.

Operators with the same precedence are evaluated in which manner?

a)

None of the mentioned

b)

Right to Left

c)

Can’t say

d)

Left to Right

5.

Select the reserved keyword in Python

a)

else

b)

import

c)

raise

d)

All the mentioned

6.

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3]. What is list1 after listExample.pop(1)?

a)

[3, 4, 5, 20, 5, 25, 1, 3]

b)

[1, 3, 3, 4, 5, 5, 20, 25]

c)

[1, 3, 4, 5, 20, 5, 25]

d)

[3, 5, 20, 5, 25, 1, 3]

7.

Suppose listExample is [‘h’,’e’,’l’,’l’,’o’].What is len(listExample)?

a)

error

b)

4

c)

1

d)

5

8.

The ________ project builds on top of pandas and matplotlib to provide easy plotting of data.

a)

yhat

b)

None of the mentioned

c)

Vincent

d)

Seaborn

9.

To add a new element to a list which of the following command to be used.

a)

list1.add(5)

b)

list1.addEnd(5)

c)

list1.addLast(5)

d)

list1.append(5)

10.

To insert 5 to the third position in list1, which of the following command to be used.

a)

list1.append(3, 5)

b)

list1.insert(5, 3)

c)

list1.add(3, 5)

d)

list1.insert(3, 5)

11.

What data type is the object below?L = [1, 23, 'hello', 1]

a)

tuple

b)

dictionary

c)

array

d)

list

12.

What is the use of the size attribute in Numpy array in Python ?

a)

It finds the direction

b)

All the mentioned

c)

It finds the shape

d)

It finds the number of items

13.

What will be the output of the following Python code?t=(1,2,4,3)t[1:3]

a)

(1,2)

b)

(1,2,4)

c)

(2,4,3)

d)

(2,4)

14.

What will be the output of the following Python expression?round(4.576)

a)

4.5

b)

4.6

c)

4

d)

5

15.

What would be the best value for “random_state(Seed value)”?

a)

np.random.seed(1)

b)

np.random.seed(42)

c)

np.random.seed(32)

d)

Can't say

16.

Which is the correct operator for power(xy)?

a)

x^y

b)

None of the mentioned

c)

x^^y

d)

x**y

17.

Which of the following cannot be a variable?

a)

__init__

b)

on

c)

it

d)

in

18.

Which of the following data type is not supported in Python?

a)

Numbers

b)

String

c)

List

d)

Slice

19.

Which of the following function gives information about top level data?

a)

None of the mentioned

b)

tail

c)

summary

d)

head

20.

Which of the following graph can be used for simple summarization of data?

a)

Scatterplot

b)

Overlaying

c)

All of the mentioned

d)

Barplot

21.

Which of the following input can be accepted by DataFrame?

a)

Structured array

b)

Series

c)

DataFrame

d)

All of the mentioned

22.

Which of the following is a Python tuple?

a)

[1, 2, 3]

b)

None of the mentioned

c)

{1, 2, 3}

d)

(1, 2, 3)

23.

Which of the following is not a step in the Data Analysis process?

a)

Data gathering

b)

Modeling

c)

Pre-processing

d)

None of the mentioned

24.

Which of the following is used for Machine Learning in Python?

a)

None of the mentioned

b)

seaborn-learn

c)

stats-learn

d)

scikit-learn

25.

Which of the following keyword is used to access the numpy module in Python?

a)

access

b)

from

c)

fetch

d)

import

26.

Which of the following library is similar to Pandas?

a)

Seaborn

b)

RPy

c)

OutPy

d)

NumPy

27.

Which of the following object has a method cov to compute covariance between series?

a)

None of the mentioned

b)

DataFrame

c)

Panel

d)

Series

28.

Which of the following object you get after reading CSV file?

a)

All of the mentioned

b)

Character Vector

c)

Panel

d)

DataFrame

29.

Which of the following statements create a dictionary?

a)

d={}

b)

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

c)

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

d)

All of the mentioned

30.

Which of the following value is provided by kind keyword for barplot?

a)

None of the mentioned

b)

kde

c)

hexbin

d)

bar