Xii-Informatics Practices-Qp-Set B-18-11-2021
Xii-Informatics Practices-Qp-Set B-18-11-2021
Xii-Informatics Practices-Qp-Set B-18-11-2021
&
AISSE/AISSCE
COMMON MOCK EXAMINATION
ACADEMIC YEAR 2021-22- TERM I
SET – B
065
ROLL NUMBER : SUBJECT CODE :
GRADE : XII SUBJECT : INFORMATICS PRACTICES
DATE : 18-11-2021 DAY : Thursday
MAX MARKS: 35 TIME : 90 minutes
GENERAL INSTRUCTIONS
Q3. Series is a _____ dimensional array like structure with__________ data, which can be
used to handle and manipulate data.
a. two, heterogeneous b. one, heterogeneous
c. one, homogeneous d. two, homogeneous
Q4. We can transpose a DataFrame by swapping its indexes and columns by using
____________ attribute.
a. Trans b. T c. swap d. index
Q6. Which method is used to change the labels of rows and columns in DataFrame?
a. change( ) b. replace( ) c. rename( ) d. None of the above
Q7. An upward trend means positive correlation and downward trend means a negative
correlation are denoted by ________ chart.
a. Pie chart b. line Chart c. scatter chart d. none of the above
Q8. ________returns True if there are any NaN values; otherwise returns False.
a. obj.nbytes b. obj.dtype c. obj.ndim d. obj.hasans
Q10. The ______ argument of legend () provides the location for legend, which by default is 1
or upper right.
a.loc b. X label() c. Y label() d. Title()
Q12. Which functions used to transfer data from dataframe to CSV files?
a. to_data() b. df_csv() c. to_csv() d. from_dataframe()
Q13. Which is the correct Pandas syntax to read in a csv file and assign it to a DataFrame df?
a. df = pd.read_csv('file.csv') b. df = read('file.csv', type = 'csv')
c. df = read_csv('file.csv') d. df = with open('file.csv') as pd.DataFrame
Q14. Which of the following object you get after reading CSV file?
a. Panel b. Character Vector
c. DataFrame d. All of the mentioned
Q15. Digital footprints are stored _______
a. Temporarily (for few days) b. for 7 days only
c. Permanently d. for 3 days
Q16. Online posting of rumors, giving threats online, posting the victim’s personal
information, comments aimed to publicly ridicule a victim is termed as __________
a. Cyber act b. Cyber bullying c. Cyber insult d. All of the above
Q17. The ____________ include right to copy (reproduce) a work, right to distribute copies of
the work to the public, and right to publicly display or perform the work.
a. Patent b. Copyright c. Createright d. None of the
above
Q19. ___________ means using other’s work and not giving adequate citation for use.
a. Copyright b. Licensing c. Plagiarism d. None of the
above
Q22. A ___________ is some lines of malicious code that can copy itself and can have
detrimental effect on the computers, by destroying data or corrupting the system.
a. Computer virus b. Cyber crime c. Program d. Software
10 0 10 0
20 1 20 1
30 2 30 2
Q30. In given code dataframe ‘D1’ has _____ rows and _____ columns.
import pandas as pd
S1 = pd.Series([1, 2, 3, 4], index = ['a', 'b','c','d'])
S2 = pd.Series([11, 22, 33, 44], index = ['a', 'bb','c','dd'])
D1 = pd.DataFrame([S1,S2])
a. 2, 6 b. 4, 6 c. 4, 4 d. 2, 4
Q31. Read the statements given below and identify the right option to draw a chart.
Statement A: A line plot is a graph that shows the frequency of data along a number line.
Statement B: The legend is displayed by default associating the colors with the plotted
data.
a. Statement B is correct b. Statement A is correct
c. Both Statements A and B are correct d. None of the statement is correct
Q32. Graph and charts are very effective tools for _________.
a. data frames b. data collection c. data visualization d. data dictionary
Q35. Identify the right type of chart using the following hints.
Hint 1: This chart is often used to visualize a trend in data over intervals of time.
Hint 2: The line in this type of chart is often drawn chronologically.
a. Bar Chart b. Line Chart c. Pie Chart d. Histogram
Q36. A class teacher of XII , want to plot a bar graph for the name of days on x-axis and total
students present on those days on y-axis to get the average weekly attendance. Complete
the code to perform the following
I. To plot the bar chart in statement 1
II. To show the chart in statement 2
import matplotlib.pyplot as pl
Days=['Mon','Tue','Wed','Thurs','Fri','Sat']
Present=[36,37,32,31,35,39]
____________________________statement 1
____________________________statement 2
a. pl.bar(No.,Days) Statement 1 b. pl.bar(Present,Present) Statement 1
pl.show() Statement 2 pl.show() Statement 2
c. pl.bar(Days,Present) Statement 1 d. pl.bar(Days,Days) Statement 1
pl.show() Statement 2 pl.show() Statement 2
Q37. The following code creates a dataframe named ‘D1’ with ______ rows.
import pandas as pd
Dt = [{'a':10, 'b':20}, {'a':5, 'b':10, 'c':20}]
D1 = pd.DataFrame(Dt)
a. 0 b. 1 c. 3 d. 2
Q40. Histogram represents quantitative data and Bar charts represent categorical data.
a. True, False b. False, True c. True, True d. False, False
a. b.
c. d.
Q43. Write the correct output on execution of the following Pandas code:
import pandas as pd
df=pd.DataFrame([("Soham", 93),("Sidhant", 91),("Diya", 96)], columns=['Name',
'Mark'])
print(df.values)
a. Marks b. Name Marks c. Name d. [['Soham' 93]
96 Soham 93 Diya ['Sidhant' 91]
91 Siddhant 91 Siddhant ['Diya' 96]]
93 Diya 96 Soham
Q46. Write the correct output on execution of the following Pandas code:
x=np.array( [[98.5,98.3,93], [40, 50.8, 80, 76],[21.3, 30.5, 42.8]])
df=pd.DataFrame(x)
print(df)
a. no output b. 0 [98.5, 98.3, 93] c. 2 [21.3, 30.5, 42.8] d. 0 [98.5, 98.3, 93]
1 [40, 50.8, 80,76]
2 [21.3, 30.5, 42.8]
Q47. Assertion (A): Hacking is the act of unauthorized access to a computer, computer
network or any digital system.
Reason (R): Cyber crime refers to the use of a computer to commit a crime.
a. Both Assertion (A) and reason (R) are true and reason (R) is not the correct
explanation Assertion (A).
b. Both Assertion (A) and reason (R) are true but reason (R) is the correct explanation of
Assertion (A).
c. Assertion (A) is true but reason (R) is false.
d. Assertion (A) is false but reason (R) is true.
Q48. Manoj downloaded software from internet (free of cost) and moreover the source code of
the software is also available which can be modified. What category of software is this?
a. Shareware b. Freeware c. Malware d. FOSS
Q49. Anupam found a crumpled paper under her desk. She picked it up and opened it. It
contained some text which was struck off thrice. But she could still figure out easily that
the struck off text was the email ID and password of Garvit , her classmate. What is
ethically correct for Rishika to do?
a. Use Garvit’s password to access his account
b. Inform Garvit so that he may change his password
c. Give the password of Garvit’s email ID to all other classmates
d. None of the above
Section - C
Section C, consists of 6 Question (50 to 55). Attempt any 5 questions.
Case Study
Consider the following DataFrame df:
Q53. Which of the following statement/s will give the exact number of values in each column
of the dataframe?
a. print(df.count()) b. print(df.count(-1)) c. print(df.count) d. print(df.count(axis=’index’))
Q54. Which of the following command will display the column labels of the DataFrame?
a. print(columns()) b. print(df.column()) c. print(df.column) d. print(df.columns)
Q55. To add a new column, the sales quarters for Oracle with the values 2200,
33000,45000,2300 to the DataFrame. Help her choose the command to do so:
a. df.column=[2200, 33000,45000,2300]
b. df [‘Oracle’]=[ 2200, 33000,45000,2300]
c. df.loc[‘Oracle’]= [2200, 33000,45000,2300]
d. Both (b) and (c) are correct