Part - | [OOT] IT 204 OBJECT ORIENTED TECHNIQUES I KTU B TECH QUESTIONS FOR SECOND YEAR [S4] STUDENTS | QUESTION BANK


APJ ABDUL KALAM TECHNOLOGICAL
UNIVERSITY

OBJECT ORIENTED TECHNIQUES I S4 KTU
 QUESTION PAPERS

Part - | [OOT] IT 204 OBJECT ORIENTED TECHNIQUES I KTU B TECH QUESTIONS FOR SECOND YEAR [S4] STUDENTS | QUESTION BANK



PART A (Answer All Questions, 4 x 1 = 4 Marks)

1. List any four operators that cannot be overloaded.

2. Differentiate between class and object.

3. Point out the need for using constructors in a class.

4. Mention the properties of static member functions.


PART B (Answer All Questions, 3 x 2 = 6 Marks)

5. Write the syntax for defining a function outside the class.

6. Give an example program to illustrate the concept of function overloading.

7. Identify the difference between a static data member and a normal data member in a class.


PART C (Answer Any Two Questions, 2 x 5 = 10 Marks)

8. Create a class "employee" with data members name and salary. Use array of objects concept to get and display the details of 5 employees. Create member functions as needed.

9. Create a class "student" with data members register number and marks of 5 subjects (use arrays in the class). Create member functions to get the data of any student and display the total marks.

10. Explain the concept of constructors and destructors with the help of an example program.

11. Write a program to overload the unary operator "++" to increment the values of data members in a class.

RELATED

No comments:

Powered by Blogger.