UNIT -I
PART-A (2 MARKS)
1.
Define
Object Oriented Programming.
- 0Write the
difference between oop and pop
- Define
class.
- Define
Objects.
- What are
the features of Object oriented programming.
- Define
Encapsulation and Data hiding.
- Define Data
Abstraction.
- Define Data
members.
- Define
Member functions.
- Define
Inheritance.
- Define
Polymorphism.
- List and
define the two types of Polymorphism.
- Define
Dynamic Binding.
- Define
Message Passing.
- List some
benefits of OOPS.
- List out
the applications of OOP.
- How are
data and functions organised in an object oriented programming?
- Write any
four features of OOPS.
- What are
the Basic concepts of OOS?
- Give any
four advantages of OOPS.
- Give any
four applications of c++.
- What is
keyword?
- What is a
scope resolution operator and what is use of that?
- What do you
mean by enumerated data type?
- What are
symbolic constants?
- What do you
mean by dynamic initialization of variables?
- What are
reference variable?
- What is
member-dereferencing operator?
- List out
the memory referencing operators.
- What is the
return type of main ()?
- List out
the four basic sections in a typical C++ program.
- What is a
Datatype?
- Define
pointer.
- What do you
meant by reference variable?
- Define
typecast operator
- Define
Token. What are the tokens used in C++?
- Define
identifier. What are the rules to be followed for identifiers?
- State the
use of void in C++.
- Define
reference variable. Give its syntax.
- List out
the new operators introduced in c++.
- What is
function prototype?
- What is an
inline function?
- Write some
situations where inline expansion may not work.
- Compare
private and public access specifiers in a class.
- What is a
default argument?
- State the
advantages of Default Arguments.
- What are
the constant arguments?
- What is
call- by- reference?
- What is the
difference between return by reference and call by reference?
- What is an
encapsulation?
- What is
static data member?
- What is
static member function?
- How the
objects are used as function argument?
- Define
const member.
- Define
pointers to member.
- Difference
between structure and union.
- Define Bit
Fields
- What is
polymorphism? What are its types?
- What is
function overloading? Give an example.
- Compare
function overloading and default arguments.
- What are
the uses of references in functions?
- What
are Friend functions? Write the syntax
- Define
friend function.
- Write a
simple c++ pgm to swap two nos without using temp variables
- Write
some properties of friend functions.
PART-B (16 MARKS)
- Illustrate
the function overloading concept with a C++ program to find the volume of
cube and cylinder
- Explain the
basic concepts of oops with suitable Examples(16)
- Write a C++
program to construct student mark list for three subjects.
- Write the
pgm to display name,rollno,marks,avg and total.Use clss and objects.
- Explain the
control structures in C++
- (a) Explain the merits and demerits of
object oriented methodology. (8)
(b) Write notes on Standard Template
Library. (8)
- Define Call
by reference and Return by reference.
- Explain
about call-by-reference and pointer types with program.(8)
- Describe
the advantages of OOP. (8)
- What are
the difference between pointers to constants and constant to pointers? (8)
- Describe
the applications of OOP technology. (8)
- What is
function invocation? Explain briefly with program. (8)
- Explain
about structure pointer operator and unions with program.(8)
- Explain in
detail the following principles of object oriented programming
(i) Data encapsulation and data hiding
(ii) Inheritance and polymorphism
(iii) Generic programming.
- (i)Explain
the idea of Classes, Data abstraction and encapsulation. (8)
(ii) Write a C++ program that inputs two numbers and outputs the
largest number using class.(8)
- Explain
about static member and this pointer with suitable code.(8)
- (i)What
are the rules to be followed in function overloading, (4)
(ii) Write a C++ program that takes either two integers or two
floating point numbers and outputs the smallest using class friend
function and function overloading (12)
- Explain the use of constant pointers and
pointers to constant with an example.(16)
- a) State
the differences between class and struct and also illustrate with an
example.(8)
b)
What are the difference between pointers to constants and constant to pointers?
(8)
- a). Write a C++ program using inline
function. (8)
b).
Write a C++ program to illustrate the static function (8)
- Discuss
constant and volatile functions. (8)
- Explain
Nested classes and local classes with an example (16)
UNIT -II
PART-A (2 MARKS)
- Define
constructor.
- Define
default constructor.
- Define
parameterized constructor.
- Define
default argument constructor.
- What
is the ambiguity between default constructor and default argument
constructor?
- Define
copy constructor.
7.
Define
dynamic constructor.
- Define
destructor.
- Define
multiple constructors.
- Can
the parameter of a copy constructor be passed by value? Justify your
answer.
- Compare
constructor conversion and operator conversion.
- Write
some special characteristics of constructor.
- How
the objects are initialized dynamically?
- What
are the ways in which a constructor can be called?
- What
is meant by dynamic initialization of objects.
- What
is operator overloading?
- List
out the operators that cannot be overloaded.
- What
is the purpose of using operator function? Write its syntax.
- Write
at least four rules for Operator overloading.
- How
will you overload Unary & Binary operator using member functions?
- How
will you overload Unary and Binary operator using Friend functions?
- How
an overloaded operator can be invoked using member functions?
- How
an overloaded operator can be invoked using Friend functions?
- List
out the operators that cannot be overloaded using Friend function.
PART-B (16 MARKS)
- Explain
about Data Handling and member function. Explain copy constructor and
destructor with suitable C++ coding
- Explain
about Unary Operator and Binary Operator Overloading with program.
- Define
the polymorphism. Explain the different types of polymorphism.
- List
out the rules for overloading operators with example.
- Explain
about new and delete Operators Overloading with program.
- Explain
about member Operator Overloading with program.
- a).
Explain the copy constructors with an example? (8)
b).
Explain explicit Constructors, Parametrized Constructors, and multiple
Constructors with suitable example. (8)
- a).
How to achieve operator overloading through friend Function? (8)
b).
Write a program using friend functions for overloading
<<and>>operators? (8)
- Explain the
wrapper classes with examples? (16)
- Create a
class complex to represent complex number with overloaded addition and
multiplication operators. Use them in a main program.(16)
- Define a
class string with appropriate constructors, destructor and overloaded +,
=, and = = operators use them in a main driver program.
UNIT
–III
PART-A (2 MARKS)
- What
is an Exception?
- Define
try and catch.
- Define
Exception handling.
- Give
the general syntax for throw.
- What
are the components of Exception Handling?
- What
is Uncaught Exception?
- What
is Function Template?
- What
is the terminate () functions?
- What are the disadvantages of the
exception handling?
- What
is the need for template function in C++? What are their advantages?
11.
What
are the drawbacks of using macros?
12.
Distinguish
between overloaded functions and function templates.
13.
What
is this pointer? How is it available to member functions of a class?
PART-B (16 MARKS)
- Explain
about Template and its types with example.
- Explain
the Function template (16)
- Explain
the class template (16)
- Explain
about Exceptions Handlers and Standard Exceptions.
- Details
for Exception Handling with Program.
- What
is the need for exception handling (16)
- Explain
the following function
- What
are specifications? In which case are they needed? (8)
- What
are the disadvantages of the exception handling mechanism? (8)
- When do we
need multiple catch blocks for a single try block? Give an example? (16)
- Write a C++
program containing a possible exception. Use a try block to throw it and a
catch block to handle it properly.(16)
UNIT -1V
PART-A (2 MARKS)
- What
are types of inheritance?
- Give
the syntax for inheritance.
- What
is meant by inheritance?
- What
is meant by single inheritance?
- What
is multiple inheritances?
- What
is hierarchical inheritance?
- What
is multilevel inheritance?
- What
is hybrid inheritance?
- What
is meant by Abstract base class?
- What
are the types of polymorphism?
- Define
‘this’ pointer.
- Write
short notes on virtual base class.
- What
are the virtual functions?
- Write
some of the basic rules for virtual functions
- What
are pure virtual functions? Write the syntax.
- Give
any rules for Virtual Functions.
- What
is Visibility mode?
- Give
two types of template.
- Define
RTTI.
- Why do we
need RTTI?
- Write about
typeid.
- What is the
use of typeid in RTTI?
- List the
different type of casting operator.
- What is
dynamic casting?
- What is cross casting?
- What is down casting?
PART-B (16 MARKS)
- Explain
the different types of polymorphism (16)
- Explain
various types of Inheritance. (16)
- What
are the virtual functions? Explain their needs using a suitable example.
What are the rules associated with virtual functions? (16)
- What
are the different forms of inheritance supported in c++? Discuss on the
visibility of base class members in privately and publicly inherited
classes.
- What
are the different forms of inheritance? Give example for them.(16)
- Create
an abstract base class shape with two members base and height, a member
function for initialization and a pure virtual function to compute area (
). Derive two specific classes Triangle and Rectangle which override the
function area (). Use these classes
in a main function and display the area of a triangle and a rectangle. (16)
-
i.
What
are abstract classes? Give an example (with the program) to illustrate the use
of abstract classes.(10)
ii.
Write
about composite object.(6)
- Briefly
explain about real time type information (RTTI). (16)
- Write
notes on Typing conversions and derived class with program.
- Explain
in detail about cross casting and down casting. (16)
UNIT –V
PART-A (2 MARKS)
1.
Define
Streams.
2.
What
are the input and output streams?
3.
Classify
the streams.
4.
Define
manipulators and also mention the manipulators that are used in C++.
5.
What
is the need for streams?
6.
List
some predefined streams.
7.
What
are the possible types that a file can be defined?
8.
What
are the two methods available for opening the files?
9.
Difference
between get (), put ().
10.
How
to open and close a file?
11.
Write
some file opening modes.
12.
Define
File modes.
13.
What
is a file pointer?
14.
What
is command-line argument?
15.
What
is an error and error handling functions?
16.
How
will you create manipulators?
17.
Write
the syntax and use of getline () and write () functions.
18.
Write
any four operations possible on string objects.
19.
What
are the advantages of using generic algorithm?
20.
What
is STL?
21.
What
is find( )?
22.
What
are the ways that a string object can be created?
PART-B (16 MARKS)
- Discuss
about Streams and stream classes (16)
- Write
notes on Formatted and Unformatted Console I/O Operations.(16)
- Explain
about File Pointers and Manipulations with example.
- Discuss
about manipulators and file streams with Program. (16)
- Write
on Details about File modes and File I/O.
- Explain
the process of open,read,write and close files? (16)
- Explain
the role of seekg(),seekp(),tellg(),tellp(),function in the process of
- Random
access in a binary file (16)
- Write
a program to demonstrate random access to file.(8)
- Write
a program to extend a namespace.(8)
- Explain
about the STD Namespace (16)
- Explain
the Standard Template Library and how it is working? (16)