How To Exam?

a knowledge trading engine...


Jaypee Institute of Information Technology (JIIT) 2007 B.Tech Computer Science and Engineering object oriented programming - Question Paper

Tuesday, 02 April 2013 12:50Web

TEST-2
JUIT

1. Employees have a number, date of birth (dd-mm-yyyy), rank, and salary. When an employee is 1st recruited then all these are provided values of 0. Upon confirmation, the true values of these are entered for the employee. Employees can be provided a salary raise of 10% of their previous salary. Their rank can be incremented by one and when this happens an employee gets an increment of 25%.

Write a C++ class for Employee.

2. Students are registered in a University. When students are created then they are provided default values (zeroes or blanks) for roll_number, department, year, and semester of study. At registration time, the values of these attributes of learner are updated with the proper values. Students can be promoted and their departments can be changed.

Write a C++ class for learner.

3. Users of the computer have profile which consists of Name, Password, and Access Rights. Access rights take on values X, R, W, and ALL. It is possible to have default values for Password and Access rights which are the 1st 3 letters of the Name and ALL respectively. Users can change their password and access rights.

Write a class User in C++ and create a user named Rajesh.

4. There are 3 ways in which Users of ques. three above can be created
i) by supplying Name only and using default values for the others
ii) by supplying Name and password and using default value for Access rights
iii) by supplying all info

Write the user class. Create
a) Rajesh using (i) above
b) Rajesh with password = crol87pp under (ii) above and
c) Rajesh with password = crol87pp and access right = W under (iii) above.





( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jaypee Institute of Information Technology (JIIT) 2007 B.Tech Computer Science and Engineering object oriented programming - Question Paper