How To Exam?

a knowledge trading engine...


Jaypee Institute of Information Technology (JIIT) 2008 B.E Electronics & Tele-Communication Engineering Test 1: Object Oriented Systems & Programming - Question Paper

Tuesday, 02 April 2013 06:15Web



JAYPEE UNIVERSITY OF INFORMATION TECHNOLOGY,

WAKNAGHAT

Test-1 (Feb. 2008)

B.Tech (VI Semcler) ECE

Course Name: Object-Oriented Systems & Programming Course Code: 07B61CI24I Course Credits: 4    Max. Marks: 20

Max. Time: 1 hour

JAYPEE UNIVERSITY OF INFORMATION TECHNOLOGY,

WAKNAGHAT

Note: Attempt all the questions. Closed book examination.

1.    Write a program in C++ to create an Address Book with the following features:

a)    An address book must contain first name, last name, complete address, email address and telephone number.

b)    You must be able to search an address by person's last name.

c)    You must be able to display complete Address Book.    (5 Marks)

2.    Create a class Time that has separate int data member of hours, minutes, and seconds. One constructor should initialize this data to 0 and another should initialize it to fixed values.

a)    Write a member function to display the time in the format 11:40:30 (hh:mm:ss).

b)    The second member function should add two objects of type Time, passed as arguments.    [4 Marks)

3.    Define two classcs Circle and Rectangle. The Circle class has the data member radius, and member functions enterR() and displayAreaQ The class Rectangle has the data members length, breadth and member functions: enterLB() and displayArea(). Now define a class Cylinder that inherits the classes Circle and Rectangle. The Cylinder class has a member function displayVolume() to compute and dislptay the volume of cylinder. Make use of default and parameterized constructors in all the classes.    (5 Marks)

4.    F.xplain the following terms, briefly.

a)    Friend Functions

b)    Inline Functions.

c)    Static Functions

d)    Constant Functions    (1.5*4 6 Marks)










Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jaypee Institute of Information Technology (JIIT) 2008 B.E Electronics & Tele-Communication Engineering Test 1: Object Oriented Systems & Programming - Question Paper