You are on page 1of 5

Central Board of Secondary Education

All India Senior Secondary Certificate Examination – 2016


Subject: Computer Science (083) Date-03-02-2016
S.No. Description Marks
1 Problem Solving using C++ 12
2 SQL Queries 5
3 K-MAP Simplification (circuit design) 2
4 Practical Record 4
5 Project Work 5
6 Viva Voce 2

Evaluation of Practical Examination:


SECTION – A
Attempt any one C++ Programming assignment given below
(Note : Question is randomly selected based on chit drawn)
Q1. Define a class Flight in C++ with following specifications

Private Members : FlightNumber (integer), Destination (String), Distance (float), Fuel (float)

A Member Function calfuel() to calculate the value of fuel as per the following criteria:

Distance Fuel
<=1000 500
More than 1000 and <=2000 1100
More than 2000 2200
Public Members: 1. A function Feed_Info() to allow user to enter values for data members and invokes
calfuel() to calculate the quantity of fuel. 2. A function show_fuel() to show the contents of the data members.

Q2. Write an OOP to perform implementation of polymorphism with function overloading.

Q3. Write a OOP program to create and count number of objects of a class that are created in the memory.

Q4. Write a program to perform following the following operations in a TEXT FILE:

(a)Count no. Of vowels (b) Count no. Of consonants (c) Count total no. Of alphabets

Q5. Write a program to concatenate the content of 2 different files entered by user and store into third file.

Q6. Write a program that increments the contents of the array with pointer and print the contents of an array
in reverse order using a pointer variable.

Q7. Write a program to perform Bubble sort

Q8. Write a program to perform Selection sort

Q9. Write a program to perform Binary-Search.

Q10. Write a program to implement Queue using array.


Q11. Write a program to implement stack using array.

Q12. Write a program to Implement Dynamic Stack using linked list.

Q13. Write a program to implement Queue using the concept of dynamic allocation.

Q14. Given a binary file “BUS.DAT” containing the records of the following class bus type.

class BUS

Int bus_no;

Char desc[40];

int distance; // in km

public:

void read() { Cin>>bus_no; gets(desc); cin>>distance; }

void display(){ cout<< bus_no<<cout<< desc<<cout<< distance; }

int retdistance() { return distance; }

};

Write a function in c++ that would read the contents of the file “BUS.DAT” and display the details of those
buses which travels the distance more than 100 km.

SECTION – B
Attempt any one K-MAP assignment given below
(Note: Question is randomly selected based on chit drawn)
Draw a digital circuit diagram for the following Boolean expression (after reduction using K-map):

(I) F(U,V,W,Z)= π


(II) F(A,B,C,D)= ∑(0,1,2,3, 4,5,6,8,9, 10, 11, 15)
(III) F (A,B,C,D) = ∑(0,2,3,4,6,7,8,10,12)

SECTION – C
Attempt any one question: The command along with the result must be written in the answer sheet
(Note: Question is randomly selected based on chit drawn)

1. Given the following tables for a database library

TABLE NAME : WORKERS


W_ID FIRSTNAME LASTNAME ADDRESS CITY

102 Sam Tones 33 Elm St. Paris

105 Sarah Ackerman 440 U.S. 110 New York

144 Manila Sengupta 24 Friends Street New Delhi

210 George Smith 83 First Street Howard

TABLE NAME : DESIG

W_ID SALARY BENEFITS DESIGNATION

102 75000 15000 Manager

105 85000 25000 Director

144 70000 15000 Manager

210 75000 12500 Manager

(i) To display W_ID, FIRSTNAME, DESIGNATION and CITY of all employees living either in New
York or in New Delhi or in Boston
(ii) To display first name of the workers in descending order of BENEFITS.
(iii) To display the FIRSTNAME, LASTNAME and total salary of all clerks from the tables WORKERS
and DESIG, where total salary is calculated as SALARY + BENEFITS.
(iv) To display the maximum Benefits as per their designation.
(v) Display the total no. of employees whose salary is between 71000 and 90000 and neither lives
in New York nor in Paris.

2. Given the following tables for a database library

Table : Books

BookId BookName AuthorName Publisher Price Type Qty

C0001 Fast Cook Lata Kapoor EPB 355 Cookery 5

F0001 The Tears William First Publ. 650 Fiction 20


Hopkins

T0001 My First Brian & EPB 350 Text 10


C++ Brooke

T0002 C++ A.W.Rossiane TDH 350 Text 15


Brainworks

F0002 Thunderbolts Anna Roberts First Publ. 750 Fiction 50


Table : Issued

BookId Quantity_Issued

T0001 4

C0001 5

F0001 2

Write Sql queries for


(a) To show BookName, AuthorName and Price of books for First Publ. publishers
(b) To list the names from books of text type.
(c) To display the names and price from books in ascending order of their price.
(d) To increase the price of all books of EPB publishers by 50
(e) To display the BookId, BookName and Quantity_Issued for all books which have been
issued.
(f) To insert a new row in the table Issued having the following dat : “F0003”,1.
(g) Give the output of the following queries based on the above tables:
(i) select count(*) form books;
(ii) select max(price) from books where quantity>=15;
(iii) select BookName, AuthorName from books where publisher=”EPB”;
(iv) select count (Distinct publisher) from books where price>=400;

3. Consider the following tables Consumer and Stationary.

Table: Stationary
S_ID StationaryName Company Price
BP01 Ball Pen Reynolds 10
PL02 Pencil Natraj 5
ER05 Eraser Natraj 3
PL01 Pencil Apsara 6
GP02 Gel Pen Reynolds 15

Table: Consumer
C_ID ConsumerName City S_ID
01 Pen House Delhi PL01
06 Write Well Mumbai GP02
12 Topper Delhi BP01
15 Good Learner Delhi PL02
16 Motivation Bangalore PL01
Write SQL statements for (i) to (iv)
(i) To display the consumer detail in descending order of their name.
(ii) To display the Name and Price of Stationaries whose Price is in the range 10 to 15.
(iii) To display the ConsumerName, City and StationaryName for stationaries of
"Reynolds" Company
(iv) To increase the Price of all stationary by 2 Rupees.

Write the output of SQL queries for (v) to (viii)


(v) SELECT * FROM CITY WHERE StationaryName Like 'B%'
(vi) SELECT DISTINCT City FROM Consumer;
(vii) SELECT Company, MAX(Price), MIN(Price), COUNT(*) from Stationary GROUP
BY Company;
(viii) SELECT C.ConsumerName, S.StationaryName, S.Price
FROM Stationary S, Consumer C WHERE C.S_ID=S.S_ID;

You might also like