Python for Data Science (3150713) MCQs

MCQs of Getting Your Hands Dirty With Data

Showing 11 to 17 out of 17 Questions
11.

what is the use of "std" function of a numpy array?

(a)

will provide standard avarage value

(b)

will provide standard deviation 

(c)

will provide 50th percentile

(d)

will provide standard percentile

Answer:

Option (b)

12.

what will be the outout of the below script?

(a)

['a' 'f']

(b)

['b' 'c' 'd' 'e']

(c)

['c' 'd' 'e']

(d)

['b' 'c' 'd']

Answer:

Option (c)

13.

if numpy array named a contains values as below

what would be the output of the given script

print( a[ 1:3 , 1:3 ] )

(a)
array([[ 7,  8],
       [12, 13],
       [17, 18]])
(b)
array([[7, 8]])
(c)
array([[ 7,  8],
       [12, 13]])
(d)
array([[ 1,  2],
       [ 6,  7]])
Answer:

Option (c)

14.

which function can be used to read the csv file using pandas

(a)

read_file

(b)

csv_read

(c)

read_csv

(d)

file_read

Answer:

Option (c)

15.

which library can be used to parse HTML & XML

(a)

parserHTML

(b)

bs4

(c)

beautiful html

(d)

htmlread

Answer:

Option (b)

16.

DataFrame in pandas is generally

(a)

1 dimensional

(b)

2 dimensional

(c)

3 dimensional

(d)

does not have dimension

Answer:

Option (b)

17.

to set the index of the data frame, we can use _______ function

(a)

setindex

(b)

index

(c)

set_index

(d)

setIndex

Answer:

Option (c)

Showing 11 to 17 out of 17 Questions