0% found this document useful (0 votes)
22 views4 pages

Xii Ip Ut 2 Marking Scheme

Lps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

Xii Ip Ut 2 Marking Scheme

Lps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

UNIT TEST-2 (2024-25)

CLASS-XII
SUBJECT: INFORMATICS PRACTICES (065)
MARKING SCHEME
Time allowed: 2 Hrs. M.M::50
General Instructions:
 Programming language: Python 3 and above.
 ALL questions are compulsory [internal choice is given]

1 Answer: c)Histogram chart 1

2 Answer: c) ALTER 1

3 Answer: b) DF.to_csv(‘abc.csv’,sep=’\t’) 1

4 Answer: b) PERSONS.sort_values(by=’salary’, ascending=False) 1

5 Answer: a) pandas.dropna() 1

6 Answer: a)16
1
7 Answer:a) marker 1

8 Answer :a) COUNT(columnname) 1


9 Answer: c) I)-D,II-C,III-A,IV-B 1

10 Answer: b)it can contain any value 1

11 Answer : d) ITEMS.count(axis=0) 1

12 Answer: c)Line plot 1


13 Answer: b)DISTINCT 1
14 Answer: d)line 1

15 Answer: Yes 1
16 Answer: True 1
17 Answer: a) Both A and R are true and R is the correct explanation for A 1

18 Answer: b)Both A and R are true and R is not the correct explanation for A 1

Informatics Practices(065) XII Page 1 of 4


19 Answer: 2
Char is used for storing fixed length strings whereas varchar is used for variable length
strings 1 mark for any correct difference
‘Randhir’ will occupy 10 charcaters in char(10) where as in varchar(10) 7 characters will
be used.
½ mark for each part
OR
UPDATE ALTER
 it is a DML (data manipulation  it is a DDL (data definition language)
language) command command
 it is used to modify records in a  it is used to modify structure of
table table like adding columns.
1mark for each correct difference
20 Answer a): PRICE column must be containing some NULL values. 2
1 mark for correct reason
Answer b): INSERT,DELETE ½ mark for each correct command
21 Answer: 2
a) COUNT(DISTINCT COMPANY)
3
b) NAME DISCOUNT
DOLL 12.0
LUDO 20.0
c) AVG(PRICE) COMPANY
125 BARBIE
180 HOUSE_BARBIE
375 SEEDO_WHEELS
d) MOD(PRICE,QTY) NAME
5 DOLL
½ marks for each correct output[ignore heading except for (b)]
22 Answer: 2
>SELECT MAX(SAL),DEPTNO FROM EMP WHERE LENGTH(ENAME)>4 GROUP BY
DEPTNO HAVING AVG(SAL)>1000;
½ marks for each correction

23 .Answer: 2
a) matplotlib.pyplot
b) cumulative=True
c) plt.title(“marks analysis”)
d) plt.savfig(‘abc.pdf’)
1 mark for each correction answer

24 Answer: 1
a) csv file is a small text file that can be opened in application like editor,spreadsheet 2
etc. 1 mark for any valid advantage
b) p=PLAYERS[[‘Name’,Game’,’Age’]]
p.to_csv(‘play.csv’,index=False,header=False)
OR part
import pandas as pd ½ mark
D=[ ‘ID’,’Tname’,’Cost’,’No_items’,’Vendor’]
ITEMS=pd.read_csv(‘items.csv’,skiprows=1,nrows=3,header=None,names=D)
Or
r=pd.read_csv('aaa.csv',skiprows=[0],nrows=3,names=['a','b','c','d'])
1 ½ marks

Informatics Practices(065) XII Page 2 of 4


25 Answer: 1
a) SELECT AVG(FEES) FROM GYM GROUP BY FEE_TYPE; 1
b) SELECT MIN(AGE),MAX(AGE) FROM GYM GROUP BY GENDER HAVING COUNT(*)>2;
c) SELECT MNAME,AGE,YEAR(DtAdmit) FROM GYM ORDER BY DTADMIT DESC; 1
1 mark for each correct answer
½ mark deducted (without group by,without condition,desc)

26 Answer: 3
a) print(CODES[CODES.Frequency>10][[‘CodeName’,’categories’]]
b) CODES.rename(columns={‘Category’:’Types’},inplace=True)
c) CODES.drop(4,inplace=True)
1 mark for each correct answer
27 Answer: 4
a) Primary key: Book_Id in Books, foreign key: Book_Id in Issued
½ mark for each correct part
b) 4-rows and 5-columns ½ mark for each correct part
c) ALTER TABLE BOOKS ADD PRICE DOUBLE; 1 mark for correct query
d) SELECT BOOK_NAME,QUANTITY_ISSED FROM BOOK,ISSUED WHERE
BOOKS.BOOK_ID=ISSUED.BOOK_ID and Quantity in(5,10,20);
1 mark for correct statement
½ mark deduction for not using condition
28 Answer: 4
import matplotlib.pyplot as plt ½ mark
dnames=['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
mtemp=[25,30,25,35,37,28,32]
mintemp=[18,25,20,30,32,20,25]
plt.plot(dnames,mtemp,color='red',ls='--',marker='D') ½ mark
plt.plot(dnames,mintemp,color='blue',ls='solid',marker='D') ½ mark
plt.grid() ½ mark
plt.legend(('max_temp','min_temp')) ½ mark
plt.xlabel('days of week') ½ mark
plt.ylabel('temp') ½ mark
plt.show() ½ mark
OR
import matplotlib.pyplot as plt ½ mark
snames=['amit','madan','reena','Ajay']
sales=[25,30,40,20]
plt.bar(snames,sales,color='green',label='June') 1 mark
plt.grid() ½ mark
plt.legend(loc='upper left') ½ mark
plt.xlabel('names') ½ mark
plt.ylabel('amount') ½ mark
plt.show() ½ mark

Informatics Practices(065) XII Page 3 of 4


29 Answer: 5
a) SELECT INSTR(ENAME, ‘Kumar’) FROM EMP WHERE DOJ IS NULL;
b) SELECT ENAME,SALARY FROM EMP WHERE MONTHNAME(DOJ)=’JULY’;
c) Select left(ENAME,5) FROM EMP WHERE LENGTH(DEPT)>2;
d) SELECT CONCAT(‘Ms’,ENAME) ROUND(SALARY,1) FROM EMP WHERE GENDER=’F’;
e) UPDATE EMP SET SALARY=SALARY+0.10*SALARY WHERE YEAR(DOJ) BETWEEN
2005 AND 2009;
1 mark for each correct query
½ mark to be deducted for not using correct condition
OR
Answer:
a) 20009.11
b) DIA IS GR
c) XIHUMxiscICO
d) LUC
e) 2
1 mark for each correct answer

**********

Informatics Practices(065) XII Page 4 of 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy