802_INFORMATION_TECHNOLOGY_SQP
802_INFORMATION_TECHNOLOGY_SQP
802_INFORMATION_TECHNOLOGY_SQP
General Instructions:
1. Please read the instructions carefully.
2. This Question Paper consists of 24 questions in two sections – Section A & Section
B.
3. Section A has Objective type questions whereas Section B contains
Subjective type questions.
4. Out of the given (6 + 18 =) 24 questions, a candidate has to answer (6 + 11 =)
17 questions in the allotted (maximum) time of 3 hours.
5. All questions of a particular section must be attempted in the correct order.
6. SECTION A - OBJECTIVE TYPE QUESTIONS (30 MARKS):
i.
This section has 06 questions.
ii.
There is no negative marking.
iii.
Do as per the instructions given.
iv.
Marks allotted are mentioned against each question/part.
7. SECTION B – SUBJECTIVE TYPE QUESTIONS (30 MARKS):
i.
This section contains 18 questions.
ii.
A candidate has to do 11 questions.
iii.
Do as per the instructions given.
iv.
Marks allotted are mentioned against each question/part.
Table: VEHICLE
Q.13 Rajni is assigned the task to maintain the SQL database for 2
PowerStock Ltd. She has created a table named STOCKDATA with the
following structure: Stock_id integer PRIMARY KEY
Symbol char(10)
Value integer(5)
Type char(10)
The table presently contains following data:
Stock_id Symbol Value Type
Q.16 Rewrite the following code after correcting the syntax errors, 1+1
underline each correction made:
int number= = 1;
while (number <= 5);
{
System.out.print("Square of " + number);
System.out.println(" = " , number*number);
Number+=1;
}
Answer any 2 out of the given 3 questions (3 x 2 = 6 marks)
Q.17 Convert the following Java code from for loop to while loop without 3
changing the logic.
int X=4,Y=3;
int Pow=1;
for (int i=1;i<=Y;i++)
Pow*=X;
System.out.println(Pow);
Q.18 a) Define Referential Integrity. 1+2
b) Consider the following table TEACHER and answer the following
questions:
Table: TEACHER
TID TNAME DOA DEPT PAY
501 SUBHAV JAIN 2014-07-09 COMPUTER 450000
203 SHUBH NANGIA 2009-11-23 CHEMISTRY 340000
510 VARUN KAPOOR 2015-02-15 HINDI 320000
307 KAMAL PATRA 2010-12-29 ACCOUNTS 310000
490 SUJAN REDDY 2012-09-11 ENGLISH 270000
370 IKAT GOSWAMY 2011-05-08 COMPUTER 510000
DOA - Date of Appointment, DEPT - Department
Q.21 a) Name any two educational websites that provide online courses 1+1+
for free, in collaboration with various universities across the 2
globe.
b) What is a project?
c) The process of development of web based applications is
broadly categorized in four phases. List down the Phases in a
Web Application Project.
Q.22 a. Consider the following co and answer the following 2+2
questions: static int MyMethod(int N)
{ return (N*N); }
public static void main(String[] args) {
System.out.println(MyMethod(7)); }
i) Name the user defined method.
ii) What will be the output on executing the above code?
b. What is exception handling in Java? Explain the terms try and
catch in exception handling.
Q.23 a) What are Arrays? Give an example. 1+3
b) Write Java code to do the following:
i) Create an array Marks that stores values 78,65,85,91,82
ii) To print all the values of the array Marks using a loop.
iii)Display the average stored in the array Marks.
Q.24 Consider the following tables – TRAIN and PASSENGER: 4
Table: TRAIN
TID TName Boarding Destination Cost
305 VandeBharat New Delhi Katra 2500
206 Shatabdi Mumbai Delhi 3500
307 Superfast Lucknow Chennai 4500
208 HolidayExpress Goa Delhi 2000
Table: PASSENGER
PID TID Name DOT
P108 307 Gagandeep Singh 14-10-2022
P209 206 Rahat Ali 01-01-2023
P110 305 Cristopher 10-12-2022
P677 208 Diksha Luther 11-09-2019
P555 307 Nira Kadam 06-11-2020
P211 208 Ritam Ahuja 17-12-2021
Write SQL queries for the following:
a) To display the count of passengers travelling by each train
b) To add a new record in the table TRAIN:
(12471, “Garib Rath”, “New Delhi”, “Mumbai”, 1105)
c) To display TName, Name and Boarding of all passengers.
d) To display details of all trains whose cost is between 3000 and