0% found this document useful (0 votes)
4 views3 pages

Xii Practical

Uploaded by

erseema26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Xii Practical

Uploaded by

erseema26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SESSION 2023-24 CLASS - XII PRACTICAL EXAMINATION

INFORMATION TECHNOLOGY (802)

S.no Practical (JAVA & SQL) Marks


1 Implement a Java program that demonstrates practical 5
aspects of exception handling. Your program should
cover the following:
1. Try-Catch Block: Use a try-catch block to handle a specific
exception. For example, read input (two numbers) from the user
and attempt to Divide first number by second number. Handle
the Division by Zero Exception (Arithmetic Exception) in the
catch block and inform the user about the error.
2. Finally Block: Implement a finally block that executes
regardless of whether an exception occurs or not. Include
relevant code, such as closing resources or printing a
concluding message.
OR
Write a program to print days of week using “switch statement”.
2 Write a program to print the following pattern 5

*
**
***
****

3 Consider the following tables and write 5


Mysql Commands STORE
StoreId StoreName Location NoOfEmployee
OpeningYear OwnerId
S101 Libas Delhi 45 2007
A145
S102 Life Style Mumbai 68 2000
B178 S103 Vogue Mumbai
50 1999 B178
OWNER
Owner Id Owner Name
A145 Divyam Prakash
B178 Neha Sultan
D112 Gargi Chhabra

a. To display the number of employees present in each


location.
b. To display Stores names, Location and Date of
Opening of stores that were opened before 2015.
c. To add a new column SALE of integer type.
d. To display Store Name and Owner Name of all stores in
Mumbai.
4 (a)Write SQL query to create a table ‘EMPLOYEE’ with the 4
following structure:

You might also like