Board PAper 2021 Term1
Board PAper 2021 Term1
Series:SSJ/2)
Question paper Code No. ()90
Roll No.
Candidates must write / fill the Question Paper
OMR Sheet.
Code in the space allotted on
NOTE
20 minutes additional time has been allotted read this question paper
to prior
Civ)
to actual time of commencement of examination.
INFORMATICS PRACTICES
Term-I
Maximum Marks: 35
|Time allowed: 90 minutes
www.mycstutorial.in
questions.
(iii) Section B, consists of Question number 26 to 49 and student need to
attempt 20 questions.
attempt 5 questions.
www.mycstutorial.in
090 Page 2
SECTION - A
20 questions.
Section A consists of 25 questions, attempt any
statement?
returned by the following
2 What type of error is
import pandas as pa
pa.Series ( [1,2,3,41,
index =
['a','b' ,'c'1)
b) Syntax Error
(a Value Error
(a) Logical error
(c) Name Error
4. The data of any CSV file can be shown in which ofthe following software?
s(a) MS Word (b) Notepad
Spreadsheet (d) All of the above
5.
5. Which python library is not used for data science?
(a) Panda (b) Numpy
Matplotlib (d) Tkinterey
Page 3 P.T.O.
090
7. Consider the following
code:
import numpY as np
import pandas a s pd
L=np.array ([10,201)
xpd.Series ( #statement 1
print(x)
output of the above code is:
0
1 8000
1000
www.mycstutorial.in
dtype: int64
What is the correct
statement for the above output in the following
statement-1?
(a) d=L*3 (b) data=L**3
(c) L*3
(d) [10,20]**3
8. Which library is imported to draw charts in Python?
(a) cSv (b) matplotlib
(c) numpy (d) pandas
(a) DF.div(DFI)
(b) DFl.divDF
c) Divide(DF,DFI)
(d) Div(DF,DF)
090 Page 4
12. With the
www.mycstutorial.in
outset of Covid-19 schools started
online classes but due
to
started. Health
health issues also
continuous online classes students Which of the
to follow a few health tips.
practitioner advised the parents
?
following health tip should not be suggested
correct
(a) The sitting posture should be
between the online classes.
(b) Breaks should be taken in above eye level.
To protect the eyesthe gadgets should be placed
(c)
(d) Wash the eyes regularly.
creator or owner of any
to the
The following is automatically granted
13.
invention
b) Copyright
(a) Patent
(c) Trademark
(d) License
range of
clothes on
to sell her own
Himanshi sets up her
own company
14. can she use to show that the
intellectual property
instagram. What type of
clothes are made by his company?
(6) Copyright
(a) Patents (d) Trademark
(c) Design
Page 5 P.T.O.
090
18. To change the width of bars in a bar chart, which of the following arguments
with a float value is used ?
(a) hwidth
b) width
(c) breath
d) barwidth
19. Identify the correct option to select first four rows and second to fourth
columns from a DataFrame 'Data'
(a) display(Data.iloc[l: 4, 2: 4])
(b) display(Data.iloc[l:5,2:5])
)print(Data.iloc[0 :4, 1:4])
(d) print(Data.iloc[l: 4, 2:4])
20. Which of the following command is used to import matplotlib for coding?
(a) import matplotlib.pyplot as plt
(b)
import plt.matplotlib as plt
(import py.matplotlib as plt
(d) import pyplot.matplotlib as plt
SECTION- B
20 questions
Section B consists of 24 question (26-49). Attempt any
26. What will be the output of the following code?
import pandas as pd
import numpy
s=pd.Series (data=[31,54,34,89,12,23],dtype=numpy.int)
print (s>50)
(a) (b) (c) (d
0 False |1 54 0 31 True
1 True 3 89 1 54 3 True
2 False dtype: int64. |2 34 dtype:bool
3 True 3 89
4 False 4 12
5 False 5 23
dtype: bool dtype: int64
27. The primary law in India dealing with cybercrime and electronic commerce is
(a) India's Technology (IT) Act, 2008
2000
(b) India's Digital Information Technology (DIT) Act,
(c) India's Information Technology (IT) Act, 2000
(d) The Technology Act, 2008
350000
300000
250000
200000
month number 12
ilalalals
Which statement is used to mark the line
given in the above fig.:
as
(a) plt.plot(x,y, marker=#,markersize=10,color='red',linestyle='dashdot)
(b) plt.plot(x,y,marker='star,markersize=10,color=red')
(c)
plt.plotx,y,marker=@,markersize=10,color='red',linestyle='dashdot)
(d) plt.plot(x,y,marker=*", markersize=10,color="red)
90
Page 10
Mr. Raman created a DataFrame from a Numpy array
41,
64]])
arr np.array([2, 4, 8], [3, 9, 271,[4,16,
,three'l
df-pd.DataFrame (arr,index=[ 'one','two'
print (df)
DataFrame
him to add a customized column labels to the above
Help
(a) columns='no', 'sq', 'cube'
b) column=[no', 'sq', 'cube'
()columns=[no','sqg, 'cube] www.mycstutorial.in
(d) columns=[['no', 'sq', 'cube']
67 18 1 Anmol 67 18
102 Anmol
76 19 3 Sameep 76 19
104 Sameep
(d) Name Age
(c) Name
0 Sapna 16
0 Sapna
1 Anmol1 1 Anmol 18
2 Rishul 2 Rishul 16
3 Sameep 19
3 Sameep
(c) O (d)
b 50 a NaN
y 36 ab NaNN
C 49 b NaN
ab 71 C NaN
d NaN
y NaN
44. Sudhanshu has written the following code to create. a DataFrame with
boolean index:
import numpy as np
import pandas as pd
df-pd.DataFrame(data=[[5,6,711,index=[true,false, true])
print (df)
While executing the code, she is getting an error, help her to rectify the code:
(a) df-pd.DataFrame((True,False,True),data=[5,6,7])
(b) df-pd.DataFrame(data=[5,6,7],index=[True,False,True])
cdf-pd.DataFrame([true,false, true],data=[6,6,7)
(d) df=pd.DataFrame(index=[true,false,true].data=[5,6,7]1)
45. The rights of the owner of information to decide how much information is to
be shared/exchanged/distributed, are collectively known as
(a) Intelligent Portable Rights (b) Intellectual Property Rights
(c) Interactive Property Rights (d) Instance Portability Rights
090 Page 12
46. Abhilasha forgot to sign out fnrom her gmail id and Aditi used Abhilasha's
gmail id to send mail. This act of Aditi is considered as
(a) Plagiarism (b) Identity Theft
(c) Phishing (d) Piracy
47. The trail that is automatically created when a person uses the internet on
any digital devices like Laptops, smart phones, tablets etc is called
(a) Cyberbullying (b) Phishing
(c) Digital Footprint (d) Digital Activity
49. Sushila has created a DataFrame with the help ofthe following code;
import pandas
EMP=[EMPID': ['E01',E02, E03, E04',E05),
EMPNAME KISHORI,PRIYA', DAMODAR,REEMA', MANOJ],
EMP_SALARY: [67000,34000,68000,90000,43000]
df-pandas. DataFrame(EMP,index=[001',002,003,004',0057)
print(df.loc[0:3,:1)
and she wants to get the following output
EMPID EMPNAME EMP_SALARY
001 E01 KISHORI 67000
002 E02 PRIYA 34000
003 E03 DAMODAR 68000
Help her to correct the code
(a) print(df.iloc['001003',:]) (b) print(a£.locf001:003:1)
(c) print(EMP[loc[0:3,:11) (d) print(df.loe[001' 004',:)
Codeimport pandas as pd
t(Rollno':
[101,102,103,104,1005,106,107],
Gurpreet','Arpit',
Name' [Shubrato' 'Krishna','Pranshu','
Sanidhya', 'Aurobindo' ],
Age' [15,14,14,15,16,15,16],
Marks': [77.9,70.4,60.9, 80.3,86.5,67.7,85.01,
Grade' ['11B','11A','11B','11c','11E', '11a',
'11C'1}
70])
df= pd.DataFrame (t, index=[10,20,30,40,50,60,
print(df)
Output of the above code:
Rollno Name Age Marks Grade
10 101 Shubrato 15 77.9 | 11B
20 102 Krishna 14 70.4 11A
30 103 Pranshu 14 60.9 11B
40 104 Gurpreet 15 80.3 |11C
50 105 Arpit 16 86.5 11E
60 106 Sanidhya 15 67.7 11A
090 Page 14
51. The teacher wants to know the marks secured by the second last student
only. Which statement would help her to get the correct answer ?
(a) print(df.loc[60:70,Marks']) ) print(df.loe[60:60, Marks])
(c) print(df.iloc-2:-2],[Marks]) (d) print(df-2:-2||Marks])
52. Which of the following statement(s) will add a new column fee' at second
position with values [3200,3400,4500,3100,3200,4000,3700] in DataFrame df?
(a) df.insert(loc=2,colurnn=fee', value=[3200,3400,4500,3100,3200,4000,
3700))
(b) df.add(2,column='fee, [3200,3400,4500,3100,3200,4000,3700])
df.appendloc=2,fee'=[3200,3400,4500,3100,3200,4000,3700])
(d) dfinsertloc=2,fee,[3200,3400,4500,3100,3200,4000,37001)
53. Which of the following commands is used to delete the column 'Grade' in the
DataFrame df?
(a) df.drop(Grade',axis=l,inplace=True)
b) df.drop(Grade,axis=0,inplace=True)
(c)df.drop[Grade,axis=l,inplace=True]
(d) df.delete(Grade',axis=l,inplace=True)
54. Which of the following commands would rename the column Marks' to
Halfyearly' in the DataFrame df?
(a) df.rename((Marks,Halfyearly],inplace=True)
df.rename(Marks',Halfyearly},inplace=True)
(b)
(c)dfrename(columns=(Marks':Halfyearly'},inplace=True)
(d) df.rename((Marks' Halfyearly),inplace=True)
55. Which of the following commands will display the Names and Marks of all
students getting more than 80 marks?
(a) print(df.loc[Marks'>80,[Name,Marks])
(b) print(d£locjdf
Marks]<80, Name, Marks)
()print(df.loc(df|Marks]<80,[Name',Marks"]))
(d) print(d£loc[df[Marks']>80,[Name',Marks])
090 Page 15