12 - Ip - MCQ Term-I-1
12 - Ip - MCQ Term-I-1
Brendan Eich
Q1. Which of the following is/ are libraries in
Q10. A is a one-dimensional array.
Python?
a. Data Frame
a. NumPy
b. Series
b. Pandas
c. Both of the above
c. Matplotlib
d. None of the above
d. All of the above
Q11. Which of the following statement is wrong?
Q2. Which of the following libraries allow to
a. We can create Series from Dictionary in Python.
manipulate, transform and visualize data easily
b. Keys of dictionary become index of the series.
and efficiently?
c. Order of indexes created from Keys may not be
a. Pandas
in the same order as typed in dictionary.
b. NumPy
d. All are correct
c. Matplotlib
Q12. A Series by default have numeric data labels
d. All of the above
starting from .
Q3. Minimum number of arguments, we require to
a. 3
pass in pandas series?
b. 2
a. 0
c. 1
b. 1
d. 0
c. 2
Q13. Result of an operation between unaligned
d. 3
Series will have of indexes involved.
Q4. PANDAS stands for
a. intersection
a. Panel Data Analysis
b. union
b. Panel Data analyst
c. total
c. Panel Data
d. all of the mentioned
d. Panel Dashboard
Q14. The data label associated with a particular
Q5. is an important library used for
value of Series is called its
analysing data.
a. Data value
a. Math
b. Index
b. Random
c. Value
c. Pandas
d. None of the above
d. None of the above
Q15. Which of the following module is to be
Q6. We can analyze the data in pandas with:
imported to create Series?
a. Series
a. NumPy
b. DataFrame
b. Pandas
c. Both of the above
c. Matplotlib
d. None of the above
d. None of the above
Q7. Important data structure of pandas is/are
Q16. Which of the following function help to create
a. Series Series?
b. Data Frame a. series( )
c. Both of the above b. Series( )
d. None of the above c. createSeries( )
Q8. Which of the following command is used to d. None of the above
install pandas? Q17. Write the output of the following :
a. pip install pandas import pandas as pd
b. install pandas series1 = pd.Series([40,50,60])
c. pip pandas print(series1)
d. None of the above a.
Q9. Python pandas was developed by? 0 40
a. Guido van Rossum 1 50
b. Travis Oliphant 2 60
c. Wes McKinney dtype: int64
b.
Hindi English IP
Aditya 34 23 67
Rajesh 60 80 91
c.
Hindi English IP
Aditya 34 23 67
Mohit 45 21 32
d.
Hindi English IP
Aman 34 85 56
Rajesh 60 80 91
Output of the command print(df1[‘IP’]==91)
a.
Aditya False
Aman False
Rajesh True
Mohit False
b. Aditya False
Aman False
Rajesh True
Mohit False
Name : IP, dtype:
int64
14 Informatics Practices (065) S e s s i o n 2 0 2 1 - 2 2
Aditya False d. none of the above
Aman False
Rajesh True 3. The command to install the matplotlib is:
Mohit False a. install pip matplotlib
Name : IP, dtype: bool b. install matplotlib
d. c. pip matplotlib
Rajesh True d. pip install matplotlib
Name : IP, dtype: bool
To select rows where 50 and above marks are 4. Which graph should be used where each
stored in English subject is column represents a range of values, and
Hindi English IP the height of a column corresponds to how
Aman 34 85 56 many values are in that range?
Rajesh 60 80 91 a. plot
b. line
a. df[df[‘English’]>50] c. bar
b. df[df[‘English’]>=50] d. histogram
c. df[df[‘English’]=>50]
d. df[df[‘English’]==50] 5. Data visualisation means
a. Analysis of data
To print marks of English which is 50 and b. Recovery of data
above, the correct command is c. Graphical representation of data
Aman 85 d. None of the above
Rajesh 80
Name : English, dtype: int64 6. Module used for plotting using matplotlib is:
a. plot
a. df[df[‘English’]>=50][‘English’]
b. df[‘English’][df[‘English’]>=50] b. pyplot
c. Both a and b are correct c. draw
d. None of all d. all the above
Answer Key:-
41 42 43 44 45 46 47 48 49 50 7. Which of the following is not a component
a c b d d c c c b c of plot?
a. legend
b. x axis
Data Visualization: - c. title
1. The command used to give a heading to a d. index
graph is .
a. plt.show() 8. Function of pyplot module used to create
figure is:
b. plt.plot() a. draw()
c. plt.xlabel() b. plot()
d. plt.title() c. show()
2. Using Python Matplotlib can be d. All the above
used to count how many values fall into each 9. Function of pyplot module used to display
interval. the figure created using plot() function is/
are:
a. line plot
a. draw()
b. bar graph b. plot()
c. show()
c. histogram
d. All the above
11. Which of the following is a valid kind 18. Valid code to import pyplot module of
argument of plot() function matplotlib is
a. line a. import matplotlib as plt
b. hist b. import pyplot as plt
c. bar c. import matplotlib.pyplot as plt
d. color d. none of the above
19. Argument used to set the line style of line
12. Function used to set x label of the plot chart is:
a. label() a. linetype
b. xticks() b. linestyle
c. xlabel() c. line
d. none of the above d. all the above
13. Which argument is used to change the 20. Which of the following is not a valid chart
colour of plotted data? type in Python?
a. datacolor a. lineplot
b. color b. bargraph
c. plotcolour c. histogram
d. none of the above d. statistical
a) Backache
b) Neck Pain
c) Shoulder pain
d) All of the above
Q19. What we have to ensures to maintain good
health of a computer system?
a) Wipe monitor’s screen often using the regular
microfiber soft cloth.
b) Keep it away from direct heat, sunlight and put
it in a room with enough ventilation for air
circulation.
c) Do not eat food or drink over the keyboard
d) All of the above
Q20. is a person who deliberately sows
discord on the Internet by starting quarrels or
upsetting people, by posting inflammatory or off
topic messages in an online community.
a) Netizen
b) Digital Citizen
c) Internet troll
d) None of the above
Q21.Which is bout internet effects on eye
a) Blurred vision
b) Dry Eyes
c) Tears
d) All of the above
Q22 Which of the following is not a type of cyber-
crime?
a) Data theft
b) Forgery
c) Damage to data and systems
d) Installing antivirus for protection
Q23. In which of the following, a person is
constantly followed/chased by another person or
group of several peoples?
a) Phishing
b) Bulling
c) Stalking
d) Identity theft
Q24. is an application of information and
communication technology (ICT) for delivering
Government Service.
a) Governance
b) Electronic Governance
c) Governance and Ethics
d) Risk and Governance.
Q25. Use of electronic messaging systems to send
unsolicited bulk messages are called
a) email bombing
b) Spamming