Professional Documents
Culture Documents
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
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
****************
Stock.Index_Price
3
51
- -
-
- o o-o
o
of INFORMATICS
PRACTICES Cass of class-XI, has
been assigne4
74| Samodhaan Neha, a
student
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 "
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)
=
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