You are on page 1of 3

SAMPLE INFORMATICS

QUESTION
PAPER
neral I n s t r u c t i o n s :

3.
This Question Paper contains 3 sections.
on A has 25 questions. Attempt any 20 questions.
Secti

caction B has 24 questions. Attempt any 20 questions.


Cartion C has 6 questions. Attempt any 5 questions.
PRACTICES
(Unsolved)
Class XlI

Time 90 Min
Max. Marks 35
8
All questions carry equal marks (0.77).
There is no negative marking.
6.

SECTION-A
tions (Q. Nos. 1- 25): Section A consists of 25 questions.: Q9. Which of the following statement is wrong?
Direction
wHomat any 20 questions from this section. In case more than
a. We can create series from dictionary in python.
sirgble number of questions are attempted, only first 203
b. Keys of dictionary become index of the series.
il be considered for evaluation.
c. Order of indexes created from keys may not be in
L Tospecifydatatype for a series object,..e*************e****. the same order as typed in
argument is used.
dictionary
d. All are correct
a. ctype b. atype
:Q10. Which argument of boxplot( ) is used to create a
C. ntype d. dtype
filled boxplot?
2. If a dataframe is created using a 2D dictionary, then a.fill b. box
the column labels are formed
from. C. patch _artish d. patch
a. dictionary's values b. inner dictionary's keys
C. outer dictionary's keys d. None of these Q11. What are computer ethics?
a. An honest, moral code that should be followed
02. To change the 5th column's value at 3rd row as 35 in when on the computer.
dataframe DE, you can write.... b. A computer program about
a. DF{4, 6] = 35 b. DF3, 5] = 35 honesty.
C. A computer that fits on or under a desk.
c. DFiat[4, 6) = 35 d. DF.iat[3, 5) = 35
d. A list of commandments in the Bible.
4. *ssssosauasanonnann. function on series object
returns only the count of non-NaN values in it.
Q12. E-commerce not only covers buying or
selling,
rather a wide variety of commerce
a. acount() b. allcount) including
electronic funds transfer, supply chain management,
C.count() d. dcount)
.
5. PANDAS stands for ********e*******e***********9

.
à. Panel Data Analysis
****************

b. Panel Data Analyst


a. Internet marketing
b. online transaction processing
C. Panel Data d. Panel Dashboard c. Electronic Data
l o access
Interchange (EDI)
individualvalue, you can use D.. ***e d. All of the above
uSing row/column integer position. Q 13. When you use the Wora
....... It means
. lot
. doc you are protecting your data from getting disclosed.
C.ttoc d. iat a. confidentiality b. integrity
hich of the following is not a valid plotting function C. authentication d. availability
of pyplot?
a. plot() Q14. Following two statements will
provide the same
b. bar() output:
8. .line() d. pie() »L12 #L1 is a list
Which unction letsyyou set the title of the plot? »S12#s1 is a Series
a. title()
b. plottitle() a. True b. False
Cgraphtitle() d. All of these
C. On d. Off
*********************** *** *-*--- ******************
* * * * *

Stock.Index_Price
3

51

- -
-

- o o-o
o
of INFORMATICS
PRACTICES Cass of class-XI, has
been assigne4
74| Samodhaan Neha, a
student

panda series S1, as sh ol.bar(l+0.50,14,width=0.50,


s0,label="australia") Sample Question Paper 8 | 75
Q 37. Consider the following dataframe name df
Score
Q43.
code to
create a
shown belg * Line 2 CEO needs to know
the salary of the
employee with
Degree a 100 * Line 3 empno 4. Help him to
Name
90
identify the correct set of
Aparna MBA b 200 pLylabel(goals")
statement/s from the given options:
40 a. empl=emplempl'empno)==4)
BCA c 300 oLtitle("chart of score in game")
Pankaj
Sudhir M.Tech 80 1400 # Line 4 print(empl)
6. empl=emplemp)
98
Geeku MBA e 500 * Line 5 print(empl)
Write the output of the given command: dtype: int64
What
will be the line to be
written in #Line 3 to set
C. empl=emplemp.empno=4

reference to
the above answer givenn question on x axis? rint(empi)
print(df.shape) With
wil
label
b. pllabelx(Time")
d. empl=emplemp.empno==4)
43) b .(3.4) Which of the
following command a. p l x l a b e l s ( " T i m e "

(5.4) dd(4.5) following output? give C. pLxlabe("Time) d. plxaxislabel(Time) print(empl)


49. Read the statements given below.
38. . . is a set of moral principles that aR Consider the following DataFrame emp: Identify the right
ana b 200 option:
governs the behaviour of a group or individual Statement A: The rename function of Dataframe
regulates the use of computers. d 400 Name
Empno Dept SalaryXperiece does not rename the columns of
a. Copyright b.Computer ethics dtype: int64 (in Years) the original
d. Privacy law b. print(S1.iloc[2:4)) dataframe, but instead returns a dataframe with
C.Propertyrights a. print(S1.iloc[1:4])

d. print(S1.iloc[1:4:2)
Ram Singh 15000 2.5
39. To display first three elements of a Series object S C. print(S1.iloc(1:4)) updated column names.
you may write: Q44. Which command will be used for the given Shyam Singh HR 18000 Statement B: Default value of inplace
parameter
in
a. S{3] . S[3) import pandas as pd output Nidhi Gupta IT 9000 rename function is false.
C. S3rd) d. Atl of these a. Both the statements
are correct.
Q40. import pandas as pd
data = { 4 Pooja Sharma EXE24000 8 b. Both the statements are incorrect.
calories:1420, 380, 390], 5 Rohan Malik HR 20000 C. Statement A is
correct, but Statement B is incorrect.
list1-[1,2,3,4,5,6,7,8] 6 d. Statement A is incorrect, but
"duration": [50, 40, 45] Statement B is correct.
list2=[swimming:t skating:kho kho, 'bb, chess,
'football, cricket"] SECTION-C
school=pd.Series(list1,index=list2) df pd.DataFrame(data, index=
[day1, "day: Directions (Q. Nos. 50-55): Section C consists
of one case c. T3 False Ti 60.00
schooLname=("little") day3 ]) followed by 6 questions linked to that case. Attempt any 5 d. Column 1 Column 2 Column 3
print (school 2) #statement 1 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

questions in this section. The jirst attempted 5 questions 62.893165 100.0 60.00
print (schooLtail(3)) # statement2 calories 380 would be evaluted. 12 94.734486 100.0 59.22
print (school['tt"]) # statement 3 duration 40 T3 49.090140 100.0 46.04
Case
b.
print (school[2:4]) # statement 4 a.
print(dfloc('day2) print(dfiloc('day2) Consider the following dataframe ndf as show32. Which command will delete the rows T2 and T3?
Choose the correct output for the statement. c.
print(fdlocf'day2) d. print(fd.ilocf'day2) below: a. ndf.drop(T2. T3)
45. In.. s g data is transferred in coded fom. . ndf.drop([T2. T3))
print (schooLtail(3)) * statement 2
a. swimming 1 a. encryption b. decryption ColumniColumn2Column3 Res C. ndf.drop([T2. T3). axis 1)
=

C. firewall d. digital certification d. ndf.drop(T2. T3, axis 1)


tt 2
skating 3
62.893165 100.0 60.00 True
=

0 46. Suppose a dataframe contains information abot T2 94.734486| 100.0 59.22 True Q53. Which command will yield the maximum value from
b. chess 6 student having columns: the column Column3?
football 7 T3 49.090140 100.0 46.04 False a. Pandas.max(ndffColumn3])
cricket8
4
No. Name Class Section T4 38.487265 85.4 58.62 False b. max(ndffColumn3]))
Atul 50. Which of the below given commands will yield the
d. kho kho 4 A following output?
Cc.ndffndffColumn3]max0)
d. ndf[Column3].max()
b5
hess 6 Write the code to
Nilesh Q54. Which command will delete columns 'Column2' and
football 7 transpose dataframe. ColumniColumn2 Column3 Res
cricket 8
a.
Dfl=Df1.Transpose
C. Df1-DF1.T
b. Dfl-Df1.T) T2 94.734486 100.0 5922 True Res?
d. Dfl-Dfl.Tran a. ndf.del (tColumn2. Res])
Q41 Legal recognition for transactions are carried out by: 947. T3 49.090140 100.0 46.04 False
a. electronic data interchange
Consider the following program: T4 38.487265 False
b. ndf.del (Column2. Res), axis 1)
b. electronic data import matplotlib.pyplot as pl 854 S8.62 C. ndf.drop ([Column2 Res))
exchange a.print(ndf.iloc(T2'. ]) b. print(ndf.at|T2. d. ndf.drop (CColurnn2, Res), axis = 1)
C. electronic data transfer import numpy as np C.printndf.loc(T2. }) d. print{ndf.iat[12. )
d.
electrical data interchange Q55. Which ofthe following indexing capabilitiesi used
Q42. When numeric indexes can
1-2,4,6,71 Predict the output produced by the following as a concise means of selecting data from a pandas
in the
depict positions of data
objects (e.g., when indexes go
12=[5,7,9,2] statement object?
they are called ..
ansa
as 0,1, 2,., 13-[2,5,9,12] Print(ndf.atT3; Res], ndf.at[T1, Column3)) a. In D. X

a. Labelled indexes b. Positional indexes snp.array(3) a. False 60


D. T3
C. ipy d.
c. Both a. and b.
d. None of these 4-5,8,9,12] n
49.090140 100.0 46.04 False
62.893165 100.0 60.00
#Line 1

You might also like