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/ 2
KENDRIYA VIDYALAYA SANGATHAN,JABALPUR REGION
MARKING SCHEME PERIODIC TEST-2 (2024-25)
CLASS XII SUBJECT- INFORMATICES PRACTICES(065) Time:90Min Max.Mark:40
Section – A ( 1 mark questions Total marks – 10)
1 a)s = pd.Series(range(3,31,3)) 1 2 c) 3, 5 1 3 a) s[:3] 1 4 a) Dataframe index can have only numbers 1 5 a) DESC 1 6 c)ALTER 1 7 b)SELECT * FROM weather WHERE humidity BETWEEN 60 AND 75; 1 8 d) dictionary 1 9 b) nrows=3 1 10 b) Statement A and B are correct and Statement B is not correct Explanation 1 of statement A. Section B (2 marks Question) Total Marks –8 11 Y NaN 2 a NaN v 1.0 w NaN x NaN y 2.0 z 9.0 dtype: float64) 12 calories 420 2 duration 50 Name: 0, dtype: int64 13 (1) SELECT * FROM Employee where Salary IS NULL; 1 (2) SELECT * FROM Employee where Salary IS NOT NULL; 1 14 use contacts; 2 Section C (3 Marks Question) Total Marks– 9 15 import pandas as pd 3 Name=['Sakshi','Ayush','Manu','Kriti'] Eco=[70,60,76,89] Eng=[30,70,50,65] df=pd.DataFrame({"Name":Name, "Economics":Eco, "English":Eng}) print(df) 16 (i) UPDATE HOSPITAL SET CHARGE = CHARGE – 200 WHERE 3 (DEPARTMENT = ‘CARDIOLOGY’ AND SEX = ‘F’; (ii) INSERT INTO HOSPITAL VALUES (11,‘Rakesh’,45,‘ENT’,{08/08/08}, 1200, ‘M’); (iii) DELETE FROM HOSPITAL WHERE AGE > 60; (1 mark for each correct query) 17 1) Employee[‘city’]= [‘DELHI’, ‘BHOPAL’, ‘NAGPUR’, ‘JABALPUR’] 3 2) Employee=employee.drop([E101’ , ‘E104’]) 3) Employee.rename(columns={“BONUS: “INCENTIVE”}, inplace=True) (1 mark for each correct statememt)
Section D ( 4 Marks Question) Total Marks–8
18 1) print(data.loc[‘Pencil’]) 4 2) print(data[data[‘Count’]>25]) 3) print(data[[‘Company’,’Price’]]) 4) print(data.iloc[1:4]) (1 mark for each correct statememt) 19 4 import matplotlib.pyplot as plt m = ['Jan', 'Feb', 'Mar', 'Apr','May', 'Jun'] ca = [1000,1100,1000,900,1200,1500] cb = [1500,1300,900,1100,1000,1400] plt.plot(m,ca, label = "Company A") plt.plot(m,cb, label = "Company B") plt.title("Monthly Sales") plt.xlabel("Month") plt.ylabel("Sales") plt.legend() plt.savefig("sales.pdf") plt.show() ( correct plot function 2 marks , title, label, legend and save 2 marks) Section E ( 5 marks Question) Total marks–5 20 1) SELECT INSTR(“WELCOME WORLD”,”COME”); 5 2)SELECT SUBSTR(“Informatics Practices”,3,4); 3)SELECT MOD(49,5); 4)SELECT TRIM(BOTH “#” FROM “###KVS###”); 5)SELECT RIGHT(“JAI HIND”,5); (1 mark for each correct query) ******************************************************************