0
1.6kviews
Object Oriented Programming with C++ : Question Paper Jun 2012 - Computer Science Engg. (Semester 3) | Visveswaraya Technological University (VTU)
1 Answer
0
0views

Object Oriented Programming with C++ - Jun 2012

Computer Science Engg. (Semester 3)

TOTAL MARKS: 100
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Describe the following characteristics of object oriented programming:
(i) Encapsulation (ii) Polymorphism (iii) Inheritance
(8 marks)
1 (b) Write the general form of function. Explain the different types of argument passing techniques, with example.(8 marks) 1 (c) What are pointers? Explain with example.(4 marks) 2 (a) What is class? How it is created? Write a C++ programme to create a class called employee with data members: name, age and salary . Display at least '5' employee information.(10 marks) 2 (b) What are constructors? How is a constructor different from member function? Illustrate with example.(6 marks) 2 (c) What is data hiding? How it is achieved in C++? Explain with example.(4 marks) 3 (a) What are friend functions? Why they are required? Illustrate with example.(10 marks) 3 (b) What is the use of operator overloading? Write a programme to overload the following operators:
(i) Pre-increment (ii) Post-decrement operators.
(10 marks)
4 (a) What is inheritance? How to inherit a base class a protected? Explain the inheriting multiple base classes.(6 marks) 4 (b) With an example, explain the inheriting multiple base classes.(6 marks) 4 (c) Explain with example base class access control.(8 marks) 5 (a) Explain the different order of invocation of constructors and destructors in inheritance, with simple example.(12 marks) 5 (b) Explain with example, "granting access" with respect to inheritance.(8 marks) 6 (a) What are virtual functions> What is the need of virtual function? How is early binding is different from late binding?(6 marks) 6 (b) What is pure virtual function? Explain with an example.(8 marks) 6 (c) How to inherit a virtual attributes? Explain with example.(6 marks) 7 (a) What is exception handling? Write a C++ programme to demonstrate the "try", "throw" and "catch" keywords for implementing exception handling.(10 marks) 7 (b) What is standard template library (STL)? List and explain any five member functions from "list" and "vector" classes.(10 marks)


Write short notes on:

8 (a) C++ stream classes(5 marks) 8 (b) File operation(5 marks) 8 (c) Function overloading(5 marks) 8 (d) Inline function(5 marks)

Please log in to add an answer.