MCQ _ Coding and Data Visualization
MCQ _ Coding and Data Visualization
2023_2024
Question 1
2
Question 2
3
Question 3
4
Question 4
5
Question 5
6
Question 6
7
Question 7
8
Question 8
9
Question 9
10
Question 10
11
Question 11
12
Question 12
13
Question 13
14
Question 14
15
Question 15
16
Question 16
17
Question 17
18
Question 18
19
Question 19
20
Question 20
21
Question 21
22
Question 22
23
Question 23
24
Question 24
25
Question 25
26
Question 26
27
Question 27
28
Question 28
29
Question 29
30
Question 30
31
Question 31
32
Question 32
33
Question 33
34
Question 34
35
Question 35
36
Question 36
37
Question 37
38
Question 38
39
Question 39
40
Question 40
41
Question 41
42
Question 42
43
Question 43
44
Question 44
45
Question 45
46
Question 46
47
Question 47
48
Question 48
49
Question 49
50
Question 50
51
Question 51
52
Question 52
53
Question 53
54
Question 54
55
Question 55
56
Question 56
57
Question 57
58
Question 58
59
Question 59
60
Question 60
61
Question 61
What is Python?
A. code
B. Interpreter
C. A type of snake
D. None of the above
62
Question 62
63
Question 63
How do you convert a string
to an integer in Python?
A. int("42")
B. str(42)
C. float("42")
D. chr(42)
64
What is the output of print(2 + 3 * 4)?
A. 20
B. 14
Question 64 C. 32
D. 18
65
Question 65
What does the plt.plot()
function do in Matplotlib?
A. Create a scatter plot
B. Create a line plot
C. Create a bar plot
D. Create a pie chart
66
How can you add a title to a
Matplotlib plot?
A. plt.title()
Question 66
B. plt.add_title()
C. plt.set_title()
D. plt.plot_title()
67
Which library is built on top of
Question 67 Matplotlib and provides a high-level
interface for drawing attractive and
informative statistical graphics?
A. NumPy
B. Pandas
C. Seaborn
D. SciPy
68
Question 68
A. To print a value
70
Question 70
71
Question 71
How can you add grid lines to a Matplotlib plot?
A. plt.grid(True)
B. plt.add_grid()
C. plt.set_grid()
72
Question 72
Which method is used to save a
Matplotlib figure to a file?
A. plt.save()
B. plt.savefig()
C. plt.save_figure()
D. plt.export()
73
What is the primary advantage of
Question 73 using Seaborn over Matplotlib for
statistical data visualization?
A. Seaborn has more color options
B. Seaborn provides a high-level
interface for drawing attractive and
informative statistical graphics
C. Seaborn is faster in rendering plots
D. Seaborn is better suited for 3D
plotting
74
Question
74
Question 75
76
Question 76
77
Question 77
Question 78
79
Question 79
Using matplotlib, the parameter “c” is used to change the color of the …… in
scatterplot
A- line
B- bars
C- points
81
Question 81
83
Question 83
A- inside B- outside
84
Question 84
A- marker
B- alpha
C- line color
85
Question 85
A. savefigure()
B. barplot()
C. subplot()
86
Question 86
88
Question 88
a- code reuse
B- exception
89
Question 89
A- boolean
Question 90
B- comparaison
C- augmented
91
Question 91
93