802 Information Technology Ms
802 Information Technology Ms
General Instructions:
}
Answer any 2 out of the given 3 questions (3 x 2 = 6 marks)
Q.17 int X=4,Y=3; CBSE Study Unit 1 Pg 29 3
int Pow=1; Material
int i=1;
while(i<=Y)
802-Information Technology- Class XII Page 7 of 9
{
Pow*=X;
i++;
}
System.out.println(Pow);
Q.18 a) Referential integrity is a term used in CBSE Study Unit 1 Pg 9 1+2
database design to describe the Material
relationship between two tables.
Referential integrity is the logical
dependency of a foreign key on a primary
key.
b) Consider the table TEACHER and answer
the questions:
i) SELECT count(TNAME), DEPT Unit 1 Pg 31
FROM TEACHER GROUP BY
DEPT;
ii) SELECT min(PAY) FROM
TEACHER
WHERE DOA IS BETWEEN
“2010-01-01” AND “2010-12-
31”;
DROP is a DDL command and DELETE is a DML CBSE Study Unit 1 Pg 28 3
Q.19 command. Material
DROP TABLE is used to remove a table from the
database.
DELETE is used to delete a row(s) from a table
of database.
Example:
DROP TABLE temp;
The above commands deletes all rows and even
the structure of the table from the database