802 Information Technology SQP
802 Information Technology SQP
1 Database Concepts 10 2 1 1 14
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.
vi. An application that can be accessed via a web browser, over a network 1
connection is called a _______________________.
vii. Complete the sentence: 1
The web-based online applications can be broadly categorized into
________________________________________
Q. 3 Answer any 6 out of the given 7 questions (1 x 6 = 6 marks)
i. Name the National Portal of India. 1
ii. What are the two ways of writing comments in a Java program? 1
iii. Consider the table, Vehicle given below: 1
Table: VEHICLE
MID NAME BRAND CAPACITY COLOR
Q.13 Rajni is assigned the task to maintain the SQL database for PowerStock Ltd. 2
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.15 A school is making database of its teachers and students. Table TEACHER 1+1
includes TeaCode, TName, TSubject, TDOJ, TDesig.
Give details of table STUDENT along with its schema.
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 changing 3
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
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 5000.