Вы находитесь на странице: 1из 10

SET – 1

1.Write a C++ program to implement stack using linked list contain


employee number and name.

2.Write the SQL commands for the following :

Table: GAMES
GCode GameName No_Players PrizeMoney ScheduleDate
101 Carom Board 2 5000 23-Jan-2011
102 Badminton 2 12000 12-Apr-2011
103 Table Tennis 4 8000 14-Feb-2011
105 Chess 2 9000 11-Jan-2011
108 Lawn Tennis 4 25000 19-May-2011

Table: PLAYER
PCode PlayerName GCode
11 Nabi Ahmad 101
12 Ravi Sahai 108
13 Jatin 101
14 Nazneen 103
i) To display name of those games whose PrizeMoney is in the
range 10000 to 30000 and No_Players above 2.
ii) To display the details of games in ascending order based upon
ScheduleDate.
iii) To display minimum and maximum prizemoney.
(iv) Display each PCode, PlayerName and the GameName for
which they have enrolled.
iv) Display total price value.
SET – 8

Write a C++ program to implement the following.

(a)Write n student information to the file STUDENT.DAT.

(b)Search any student information and display that student information on


the output screen.

(student record consist of student number , name ,class, section)

2.Write the SQL commands for the following :


TABLE : PRODUCT
P_ID ProductName Manufacture Price
TP01 Talcom LAK 40
Powder
FW05 Face Wash ABC 45
BS01 Bath Soap ABC 55
SH06 Shampoo XYZ 120
FW12 Face Wash XYZ 95

TABLE : CLIENT
C_ID ClientName City P_ID
01 Cosmetic Soap Delhi FW05
06 Total Health Mumbai BS01
12 Live Life Delhi SH06
15 Pretty Delhi FW12
16 Dreams Banglore TP01

(i) Display PRODUCT table information in descending order


using price.
(ii) Decrement price value by 100.
(iii) To count the number of client in each city.
(iv) Display name of the product distributed in Delhi.
(v) Display average price value.
SET – 2

1.Write a program to implement QUEUE using linked list with student roll number
and name information.

2. Write the SQL commands for the following :


BOOKS
Book_Id Book_Name Author_Name Publishers Price Type Quantity
C01 Fast Cook Lata Kapoor EPB 355 Cookery 5
F01 The Tears William Hopkins First 650 Fiction 20
T01 My C++ Brain & Brooke FPB 350 Text 10
T02 C++ Brain A.W.Rossaine TDH 350 Text 15
F02 Thuderbolt Anna Roberts First 750 Fiction 50

ISSUED
Book_Id Quantity_Issued
T01 4
C01 5
F01 2
C01 6
T02 3
i)To list the names from books of Text type.
ii) To display the names and price from books in ascending order of their
price.
iii) To increase the price of all books of EPB publishers by 50.
vi) To display the Book Name, Quantity_Issued and Price for all books of
EPB publishers.
v) To display number of books in each type.
SET – 6

1.Write a C++ program to implement the following.

(a)Write n employee information to the file EMPLOYEE.DAT.

(b)Search any employee information and display that employee


information on the output screen.

(employee record consist of employee number , name ,department name


and salary)

2. Write the SQL commands for the following :

TABLE : GRADUATE

S.NO NAME STIPEND SUBJECT AVERAGE DIV.


1 KARAN 400 PHYSICS 68 I
2 DIWAKAR 450 COMP. Sc. 68 I
3 DIVYA 300 CHEMISTRY 62 I
4 REKHA 350 PHYSICS 63 I
5 ARJUN 500 MATHS 70 I
6 SABINA 400 CEHMISTRY 55 II
7 JOHN 250 PHYSICS 64 I
8 ROBERT 450 MATHS 68 I
9 RUBINA 500 COMP. Sc. 62 I
10 VIKAS 400 MATHS 57 II
Table: GUIDE
MAINAREA ADVISOR
PHYSICS VINOD
COMPUTER SC ALOK
CHEMISTRY RAJAN
MATHEMATICS MAHESH

i)List the names of those students who have obtained DIV 1 sorted by NAME.
ii)Display a report, listing NAME, STIPEND, SUBJECT and amount of stipend
received in a year assuming that the STIPEND is paid every month
iii)To count the number of students who are either PHYSICS or COMPUTER SC.
iv)Display name subject and advisor from both the table.
v)Increase stipend by 100.
SET – 3

1. Write a program to input n numbers and to input any number and to


implement searching using (i) Linear search (ii) Binary search.
2. Write the SQL commands for the following :

TABLE : PRODUCCT
P_ID ProductName Manufacture Price
TP01 Talcom LAK 40
Powder
FW05 Face Wash ABC 45
BS01 Bath Soap ABC 55
SH06 Shampoo XYZ 120
FW12 Face Wash XYZ 95

TABLE : CLIENT
C_ID ClientName City P_ID
01 Cosmetic Soap Delhi FW05
06 Total Health Mumbai BS01
12 Live Life Delhi SH06
15 Pretty Delhi FW12
16 Dreams Banglore TP01

(i) Display PRODUCT table information in ascending order


using price.
(ii) Increment price value by 100.
(iii) To count the number of client in each city.
(iv) Display name of the product distributed in Delhi.
(v) Display total price value.
SET – 4

1. Write a program to input n numbers and to display all numbers in


ascending order using (i) Bubble sort (ii) Selection sort (iii) Insertion
sort.
2. Write the SQL commands for the following :

TABLE: PRODUCT
PN PNAME PCITY
P1 BREAD DELHI
P2 CAKE DELHI
P3 COFFEE KOLKATA
P4 SAUCE JAIPUR
TABLE: SUPPLIER
SN PNAME SNAME QTY PRICE CITY
S1 BREAD BRITANIA 150 8 DELHI
S2 CAKE BRITANIA 250 20 MUMBAI
S3 COFFEE NESACAFE 170 45 MUMBAI
S4 CHOCOLATE AMUL 380 10 DELHI
S5 SAUCE KISSAN 470 36 JAIPUR

(i)Display supplier table information in descending order using


qty.

(ii)Increment qty value by 100.

(iii)To count the number of supplier in each city.

(iv)Display name of the product produced in Delhi.

(v)Display PN,PNAME,SNAME and qty from the tables.


SET – 9

1. 1.Write a C++ program to implement the following.


(a)Write n member information to the file MEMBER.DAT.
(b)Read all information from the file and to display all information on the
output screen.(member record consist of member number , name
,gender,fees)

2. TABLE: PRODUCT
PN PNAME PCITY
P1 BREAD DELHI
P2 CAKE DELHI
P3 COFFEE KOLKATA
P4 SAUCE JAIPUR
TABLE: SUPPLIER
SN PNAME SNAME QTY PRICE CITY
S1 BREAD BRITANIA 150 8 DELHI
S2 CAKE BRITANIA 250 20 MUMBAI
S3 COFFEE NESACAFE 170 45 MUMBAI
S4 CHOCOLATE AMUL 380 10 DELHI
S5 SAUCE KISSAN 470 36 JAIPUR

(i) Display supplier table information in descending order


using price.
(ii) Decrement qty value by 100.
(iii) To count the number of supplier in each city.
(iv) Display name of the product produced in Delhi.
(v) Display PN,PNAME,SNAME and qty from the tables.
SET – 5

1.Write a program to implement stack using array contain different


integer number.
2. Write the SQL commands for the following :
Table: GAMES
GCode GameName No_Player PrizeMoney ScheduleDate
s
101 Carom Board 2 5000 23-Jan-2011
102 Badminton 2 12000 12-Apr-2011
103 Table Tennis 4 8000 14-Feb-2011
105 Chess 2 9000 11-Jan-2011
108 Lawn Tennis 4 25000 19-May-2011

Table: PLAYER
PCode PlayerName GCode
11 Nabi Ahmad 101
12 Ravi Sahai 108
13 Jatin 101
14 Nazneen 103
i) To display name of those games whose PrizeMoney below
10000 and No_Players above 2.
ii) To display the details of games whose GameName end with ‘s’
in ascending order of ScheduleDate.
iii) To count no of players.
v) Display each PCode, PlayerName and the GameName for
which they have enrolled.
v) Display total price value.
SET – 7

1.Write a program to implement Queue using array contain different


integer.
2. Write the SQL commands for the following :
BOOKS
Book_Id Book_Name Author_Name Publishers Price Type Quantity
C01 Fast Cook Lata Kapoor EPB 355 Cookery 5
F01 The Tears William Hopkins First 650 Fiction 20
T01 My C++ Brain & Brooke FPB 350 Text 10
T02 C++ Brain A.W.Rossaine TDH 350 Text 15
F02 Thuderbolt Anna Roberts First 750 Fiction 50

ISSUED
Book_Id Quantity_Issued
T01 4
C01 5
F01 2
C01 6
T02 3

i)To list the names from books of Fiction type.


ii) To display the names and price from books in descending order of their
price.
iii) To increase the price of all books of EPB publishers by 50.
vi) To display the Book Name, Quantity_Issued and Price for all books of
First publishers.
v) To display number of books in each type.
SET – 10

1.Write a C++ program to implement the following.


(a)Write n employee information to the file EMPLOYEE.DAT.
(b)Read all information from the file and to display all information on the
output screen.(employee record consist of employee number , name
,department name and salary)
2. Write the SQL commands for the following :

TABLE : GRADUATE

S.NO NAME STIPEND SUBJECT AVERAGE DIV.


1 KARAN 400 PHYSICS 68 I
2 DIWAKAR 450 COMP. Sc. 68 I
3 DIVYA 300 CHEMISTRY 62 I
4 REKHA 350 PHYSICS 63 I
5 ARJUN 500 MATHS 70 I
6 SABINA 400 CEHMISTRY 55 II
7 JOHN 250 PHYSICS 64 I
8 ROBERT 450 MATHS 68 I
9 RUBINA 500 COMP. Sc. 62 I
10 VIKAS 400 MATHS 57 II
Table: GUIDE
MAINAREA ADVISOR
PHYSICS VINOD
COMPUTER SC ALOK
CHEMISTRY RAJAN
MATHEMATICS MAHESH

i) List the names of those students who have obtained DIV 1 sorted
by NAME.
ii)Display a report, listing NAME, STIPEND, SUBJECT and amount of
stipend received in a year assuming that the STIPEND is paid every
month.
iii)To count the number of students who are either PHYSICS or
COMPUTER SC.
iv)Display name subject and advisor from both the table.
v)Increase stipend by 100.

Вам также может понравиться