Xii Infomatics Practices
Xii Infomatics Practices
Xii Infomatics Practices
of pages - 10 (E)
MARKING SCHEME
MID-TERM EXAMINATION (2023-24)
CLASS : XII
SUBJECT : INFORMATICS PRACTICES (065)
Time Allowed : 3 hours Maximum Marks : 70
SECTION-A
6. (b) 3 (1)
17. (a) Both the assertion and reason are correct, and the reason is the correct explanation
for the assertion. (1)
1 XII-INFORMATICS PRACTICES-E
18. (a) Both the assertion and reason are correct, and the reason is the correct explanation
for the assertion. (1)
SECTION-B
0 False
1 False
2 True
3 True
dtype: bool
OR
import pandas as pd
X=[4, 6, 8, 10]
S=pd.Series(X)
print(S)
½ mark for import statement, 1 mark for assign list and Create list statement and ½ mark
for print Series object.
20. (2)
Series is Value Mutable and Size DataFrame is Value Mutable as well a Size
Immutable Mutable
02 Marks for any two valid differences (01 mark for any valid difference)
2 XII-INFORMATICS PRACTICES-E
21. (i) The index of the DataFrame df is the list of subjects: (2)
0 IP 70
1 CS 82
2 Maths 73
23. count(column_name) is used to count the number of non-null values in the specified
column.
count(*) is used to count the total number of rows in a result set, regardless of whether
there are null values.
02 Marks for any valid difference. 01 Mark for each count(column_name) and count(*)
SUM()
COUNT()
MAX()
MIN()
AVG()
½ Mark for any valid Aggregate function. Total 02 Marks for 04 valid aggregate
functions.
3 XII-INFORMATICS PRACTICES-E
25. (2)
A table can have only one primary key A table can have one or more Candidate
Keys
A primary key is a specific candidate key Candidate key are those attributes of the
that is chosen to uniquely identify each row relation which are eligible to become the
in a table. primary key.
OR
01 mark for define Primary Key and 01 mark for define candidate key
SECTION-C
(b) df.to_csv('filename.csv')
(c) skiprows=5
OR
import pandas as pd
students=pd.DataFrame(data)
print(students)
½ marks for import statement, 1 Marks for create dataframe object and attribute and ½
mark for display dataframe, Also consider any other valid code
4 XII-INFORMATICS PRACTICES-E
27. (a) SELECT * FROM EMPLOYEE WHERE commission is null; (3)
or
or
(b) plt.savefig("Line.png")
(c) plt.show()
(b) 3
(c) 11
OR
(a) 25
5 XII-INFORMATICS PRACTICES-E
(b) 5
(c) 8
or
print(DF.head(n=3))
(b) print(DF.tail(2))
or
print(DF.tail(n=2))
SECTION-D
6 XII-INFORMATICS PRACTICES-E
(d) select upper(P_NAME) from PRODUCT;
or
(c) plt.ylabel("Rating")
(d) plt.show()
OR
A=[10,20,30,40]
B=[15,18,28,45]
X1=[1,5,10,15]
X2=[3,7,12,17]
plt.bar(X1,A,color='r', label='Section-A')
plt.xlabel('X-Axis')
plt.ylabel('Y-Axis)
plt.title('Bar Chart')
7 XII-INFORMATICS PRACTICES-E
plt.legend()
plt.show()
½ mark for import library, 1 mark for assign values, 1 mark for write bar() statements, ½
mark for label statement, ½ mark for title statement, ½ mark for legend()
SECTION-E
c 30
d 40
dtype: int64
(b) b 20
c 30
d 40
dtype: int64
(c) c 30
dtype: int64
(d) 30
(e) c 30
dtype: int64
8 XII-INFORMATICS PRACTICES-E
1 mark for write correct output
OR
(a) (9,)
(b) 9
(c) 1
(d) 72
(e) Index(['a', 'b', 'c, 'd', 'e', 'f, 'g', 'h', 'T'], dtype='object')
34. (a) 01 Mark for option (D) i.e. (i), (ii) and (iv)
OR
9 XII-INFORMATICS PRACTICES-E
(a) 01 Mark for option (A)
10 XII-INFORMATICS PRACTICES-E