Class Xii CSC Paper Ii Half Yearly-Ak
Class Xii CSC Paper Ii Half Yearly-Ak
CHENNAI
HALF YEARLY EXAMINATION (2024-25)
Class : XII Total Marks : 70
Subject : Computer Science (Paper II) Code : 083
SECTION A (21x1=21)
1. (d)Distinct
2. False
3. (b)Alter
4. (c)3
5. (c)commit
6. (b) Drop database <database name>;
7. (c) To filter out the row and column values before creating groups
8. (b) count(*)
9. (b) Acts like a WHERE clause but is used for columns rather than groups
10. True
11. d) Cartesian product
12. use SCHOOL;
show tables;
13. (b)UNIQUE
14. (c) fetchmany()
15. (d) connect()
16. (b)result set
17. (b)fetchmany() (c) fetchall()
18. (a)connection
19. (a)rowcount
20. (a)Both A and R are true and R is the correct explanation of A.
21. (d) A is false but R is true.
SECTION B
22. Equi join and natural join- any valid difference with example 1+1
23. i)primary key ii)foreign key- any valid points 1+1
24. alter table pharmacy add expiry date; 2
OR
Alter table pharmacy modify m_date date;
Dolphin
Donald
OR
28. is_connected() returns True for successful connection to the database otherwise
returns False. 2
OR
Connection is the session between the application program and the database., to
do anything with the database, one must have a connection object.
SECTION C 3
29.(i)
deptid count(*) min(salary)
D1 3 12000
(ii)
empname
Debraj
Aron
(iii)
Sum(salary)
33000
OR
statement 1 - con1.cursor()
statement 2 – mycursor.execute(“select * from student where marks>90”)
statement 3 – data=mycursor.fetchall()
31. 3
i) create table stock (stockid varchar(30) primary key, dopurchase date not null,
name varchar(25), make varchar(25), price decimal(8,2));
ii) alter table stock drop make;
iii) alter table stock drop primary key:
SECTION D
32. (i) 4
count(*)
3
ii)
specialization count(*)
iii)
dname pname
PARESH Lal singh
MANISH Arjun
AKASH Narender
KUMAR Mehul
PARESH Naveen
MANISH Amit
iv)
dname
MANISH
OR
i) select a.dname, specialization,b.pname from doctor a, patient b where
a.docid=b.did;
ii) delete from patient where Date_visit between ‘2022-05-01’ and ‘2022-05-31’;
iii) alter table patient add primary key(Pid);
iv) alter table patient change Date_visit Visit_date date;
33. any valid program 4
34. 4
mycon.close()
SECTION E
36.
5
(i)
(ii)