Object Oriented Programming - B.Tech Examination, 2013
Object Oriented Programming
Instructions:
- All questions carry equal marks.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
-
Which of the following statements is correct?
-
How many parameters does a Default Constructor accept?
-
Destructor has the same name as the constructor and it is preceded by
-
Which of the following types of class allows only one object of it to be created?
-
Which of the following statements is correct?
-
Which of the following statements is incorrect?
-
Which of the following is not a type of constructor?
-
Which of the following access specifies is used in a class definition by default?
-
Which of the following statements is correct with respect to the use of friend keyword inside a class?
-
How many types of polymorphisms are supported by C++?
-
Define string. How does a string type differ from C type string?
-
WAP in C++ that reads a particular string and displays the frequency of each character in the string.
-
What is ST? Describe with example.
-
WAP in C++ using the function count() to how many elements in a container have a specified value.
-
Explain exception handling and their types.
-
WAP in C++ to demonstrate the use of multiple Catch statements.
-
Describe streams.
-
Write about the following functions: put(); get(); width(); getline(); fill().
-
Describe polymorphism with suitable examples.
-
WAP in C++ using array of pointers to accept desired number of integers and display their sum.
-
What is inheritance? Describe its types with examples.
-
Explain 'this' pointer. Differentiate between overloaded functions and function templates.
-
What is a virtual function? WAP to demonstrate use of virtual functions.
-
Explain friend function along with example.
-
Describe type conversion with examples.