Computer Science (Class-XII) MS - 1
Computer Science (Class-XII) MS - 1
1. True (1)
2. (a) ab12ef12 (1)
3. (a) True (1)
4. (a) zxxy (1)
5. TO@AG (1)
6. (d)True (1)
7. (a) True (1)
8. (b) list1.insert(2, 5) (1)
9. (b) 4 (1)
10. (d) dump() (1)
11. True (1)
12. (a) 100#52 (1)
13. drop database (1)
14. (d) SELE T*FROM emp WHERE en me L KE “%e%” ORDER BY SAL DES ; (1)
15. (c)Decimal (1)
16. (b) Count(*) (1)
17. (d)HTTP (1)
18. (c)Ethernet Card (1)
19. Circuit switching (1)
20. (c)A is True but R is False (1)
21. (a)Both A and R are true and R is the correct explanation for A (1)
Q. No. Section-B (7 x 2 = 14 Marks) Marks
22. Mutable types are variables that can change their value after creation.
Examples - lists, dictionaries .
Immutable types are variables that cannot change their value after creation. (1+1
If you try to change an immutable variable, Python will give an error. =2)
Examples - string, tuple .
23. (i) Keywords - True, False, None
(ii) Membership operators - in, not in (1+1
=2)
25.
Possible outputs : a), c) and d) (½ x 2 = 1 Mark)
(2)
Least value : 10
Highest value : 15 (½ x 2 = 1 Mark)
26.
(2)
fout.write(text)
fin.close( )
fout.close( )
filter(“source.txt” , “target.txt”)
30 a) (3)
b) OR
31. (3)
OR
25@
48@
83
(1 mark for each correct line of output) (deduct ½ mark for not printing @/#)
Q. No. Section-D (4 x 4 = 16 Marks)
Marks
32 (a ) (i) SELE CT NAME from GRADUATE where D IV = ‘ ’ order by NAME; (4)
(ii) SELECT NAME,STIPEND,SUBJECT, STIPEND*12 from GRADUATE;
(iii) SELECT SUBJECT,COUNT(*) from GRADUATE group by SUBJECT
having SUBJECT=’PHYSICS’ or SUBJECT=’ COMPUTER SC ’;
(iv)INSERT INTO GRADUATE value (11,’KAJOL’,3 ,’ COMPUTER SC ’,75 ,1);
(4 x 1 mark for each correct query) OR
(b) (i) 63
(ii) 800
(iii) 475
(iv) 4
33.
Let the file "furdata.csv" include following data: (2+2
=4)
34 (i) SELECT GCODE, DESCRIPTION FROM GARMENT ORDER BY GCODE (4)
DESC;
(iii) SELECT * FROM GARMENT WHERE READY DATE BETWEEN
’08- DEC07’ AND ’16-JUN-08’;
(iii) SELECT AVG (PRICE) FROM GARMENT WHERE FCODE = ‘F03’;
(iv) (a) SELECT FCODE, MAX (PRICE), MIN (PRICE) FROM GARMENT
GROUP BY FCODE;
(4 x 1 mark for each correct query) OR
pickle.dump(candidate, file)
print("Candidates updated to Senior Manager where applicable.")
update_senior_manager( )
37 (a) Most suitable place to install the server is HR center, as this center has (5)
maximum number of computers.
(1 mark for correct answer)
(b)
(d) Repeater may be placed when the distance between 2 buildings is more than
70 meter. (1 mark for correct answer)
(e) (i) WAN, as the given distance is more than the range of LAN and MAN.
OR