Python for Data Science (3150713) MCQs

MCQs of Data Visulization

Showing 1 to 10 out of 11 Questions
1.

which library is the most used visulization library in python?

(a)

visual

(b)

matlibplot

(c)

matplotlib

(d)

matlab

Answer:

Option (c)

2.

recommanded way to load matplotlib library is

(a)

import matplotlib.pyplot as plt

(b)

import matplotlib.pyplot

(c)

import matplotlib as plt

(d)

import matplotlib

Answer:

Option (a)

3.

which function of matplotlib can be used to create a line chart?

(a)

line

(b)

plot

(c)

graph

(d)

bar

Answer:

Option (b)

4.

which function can be used to export generated graph in matplotlib to png 

(a)

savefigure

(b)

savefig

(c)

save

(d)

export

Answer:

Option (b)

5.

which one of these is not a valid line style in matplotlib

(a)

'-'

(b)

'--'

(c)

'-.'

(d)

'<'

Answer:

Option (d)

6.

In respect to graph, highlighted part using a red circle in the above image is called?

 

(a)

legend

(b)

Annotation

(c)

XY Label

(d)

Title

Answer:

Option (a)

7.

which graph should be used if we want to show distribution of elements?

(a)

pie

(b)

basemap

(c)

bar

(d)

histogram

Answer:

Option (d)

8.

which graph should be used If we want to find patterns in data?

(a)

bar

(b)

histogram

(c)

scatterplots

(d)

basemap

Answer:

Option (c)

9.

which method can be used to get the shortest path in networkx library

(a)

shortest_path

(b)

short_path

(c)

shortestPath

(d)

sortPath

Answer:

Option (a)

10.

which one of these is not a type of network graph

(a)

weighted graph

(b)

directed graph

(c)

undirected graph

(d)

circular graph

Answer:

Option (d)

Showing 1 to 10 out of 11 Questions