0% found this document useful (0 votes)
72 views5 pages

Class Xii CSC Paper Ii Half Yearly-Ak

Csc question paper

Uploaded by

thanush200712
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)
72 views5 pages

Class Xii CSC Paper Ii Half Yearly-Ak

Csc question paper

Uploaded by

thanush200712
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/ 5

VELAMMAL NEXUS SCHOOLS (CBSE)

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;

Class – XII 1 Subject : Computer Science


25. i) ii) 1+1
Itemname Dateofstock

Pink feather 22/02/2002

Dolphin
Donald

26. i)one primary key and many candidate keys 1+1


ii)pk-No candidate key-Itemname
27. 2

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

Class – XII 2 Subject : Computer Science


OR
i)
deptid
D1
D2
D3
ii)
min(salary sum(salary) max(salary)
10000 69000 18000
iii)
deptid count(*)
D1 3
D2 1
D3 1
30. statement 1 - con1.cursor() 3
statement 2 – mycursor.execute(querry)
statement 3 – con1.commit()

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(*)

Class – XII 3 Subject : Computer Science


ENT 2
EYE 1
PHYSICIAN 1

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

Class – XII 4 Subject : Computer Science


35.

mycon.close()

SECTION E
36.
5
(i)

(ii)

iii) select * from flights, booking where passenger = ‘Arun’ and


flights.flightid=booking.flightid;
iv) delete from flights where model=747;
v) update booking set price=price+price*0.12 where flightid=10;
37. 5
i)select eid,name,e.jobid,jobtitle from employee e, job j where e.jobid=j.jobid;
ii)select name,sales,jobtitile from employee e, job j where e.jobid=j.jobid and
sales>130000;
iii)select name,jobtitle from employee e,job j where e.jobid=j.jobid and name
like ‘%SINGH’%’;
iv)jobid
v)update employee set jobid=104 where eid=’E4’;

Class – XII 5 Subject : Computer Science

You might also like