0% found this document useful (0 votes)
11 views

CMP503c++[1][1]

This is the old question paper Next week start my exam

Uploaded by

rayyans028
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

CMP503c++[1][1]

This is the old question paper Next week start my exam

Uploaded by

rayyans028
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CMP503/20240117 c) Explain If-else and for loop in C++

1. a) Explain any five data types in with its syntax.


C++. d) Explain the terms stream, Input
b) Explain different types/forms of stream and Output stream.
Inheritance in C++. e) Explain the different types of file
c) What is an abstract class? Explain modes.
with suitable example. 4. a) What is class template? Explain
d) Write a short note on storage with example.
classes. b) Write a note on Exception
e) Define following: i) Constants ii) Handling and keywords used in
Identifier iii) Keyword iv) Tokens v) exception Handling in C++.
Operators c) Differentiate between procedural
2. a) Explain different forms of and object oriented approach.
inheritance. d) Define STL. Write a note on
b) Explain advantages and components of STL.
applications of Object Oriented e) Write the use of the following
Programming. functions.
c) Define constructor. Explain i) get( ) ii) Put( ) iii) read( ) iv) Write(
parameterized constructor with ) v) Getline( )
example.
CMP503/20230115
d) What is a Destructor? Explain
1. a) Write a short note on
with suitable example.
identifiers and constants.
e) Define operator overloading.
b) Explain unformatted I/O
Explain overloading unary
operations.
operators.
c) Write a short note on inheritance.
3. a) Define unformatted I/O
operations. Explain any three d) Short note on operator
operations. overloading.
b) Explain the concept of e) Short note on Rethrowing an
polymorphism and data exception.
encapsulation. 2. a) Explain function objects.
b) Write a short note on exception d) What do you understand by
handling mechanism. function returning a pointer
variable?
c) Explain with example pointers to
object. e) What are benefits of OOPs?
d) List benefits and applications of 2. a) What is a class? How objects of
OOPS. a class are created?
e) Short note on nesting of classes. b) Write the syntax to access the
member function outside class
3. a) Short note on local classes.
definition using scope
b) Explain class template with
resolution operator.
multiple parameters.
c) Explain static data member in
c) Short note on virtual base class.
C++.
d) Short note on opening and
d) What is recursion function?
closing of file.
While writing any recursive function
e) Explain parameterized what thing(s) must
constructor.
be taken care of ?
4. a) Explain inline functions.
e) What is the use of constructor
b) Write a short note on function in a class?
polymorphism.
3. a) Write Do’s and Don’ts about
c) Explain virtual functions. references in C++.
d) Write a short note on friendly b) Explain dynamic memory
functions. allocation in detail.
e) Explain STL iterators. c) What do you mean by variables?
CMP503/20220628 Explain with suitable examples.

1. a) What do you mean by d) Explain malloc () with suitable


constructor? What are advantages example.
of constructor? e) Differentiate arrays vs structures
b) Explain hierarchy of ios class. in C++.

c) What is polymorphism? Explain 4. a) What is virtual base class?


with suitable example. When do we make it?
b) Write a programme in C++ which b) Explain polymorphism with an
demonstrates the use of single example.
inheritance?
c) Write a short note on memory
c) Explain encapsulation in detail. allocation for objects.
d) Explain overloaded operators >> d) Short note on STL.
and << with suitable example.
e) Explain Hierarchical inheritance.
e) Explain for loop with suitable
4. a) Explain exceptions in
example.
constructors and destructors.
CMP503 (2019-06)
b) Explain friendly functions.
1. a) Write short note on
c) Write a short note on exception
Comments.
handling.
b) What are abstract classes?
d) Write short note on inheritance
c) Write a short note on and explain with example.
manipulators with example
e) Write a short note on Templates.
d) What are constant objects?
CMP503/20180101
e) Write a short note on virtual
1. a) Explain the Benefits and
functions.
Applications of OPPs or C++?
2. a) Explain function prototyping.
b) What is class explain the
b) Explain different file modes with structure of class?
its syntax.
c) Introduce in brief: i) Call By Value
c) List the rules of operator ii) Call By Reference
overloading.
d) Explain the Public and Private
d) Write characteristics of members in class?
Constructor Function.
e) What is Constructor and
e) Explain pointers to derived Destructors explain with example?
classes.
2. a) What is an Operator
3. a) List the different types of Overloading explain binary operator
constructors. Explain any two in overloading?
details.
b) Explain the Types of Inheritance?
c) What is Hybrid Inheritance?
d) Explain the Virtual Base Classes? d) Explain scope resolution
operator.
e) What is Nesting of the Classes?
e) Explain Logical Operator.
3. a) What is virtual function in
Polymorphism? 2. a) Write a difference between C
and C++.
b) Explain the polymorphism in
C++? b) Write short note on Comments.
c) What is stream classes? c) Write a short note on
Manipulator with example.
d) Explain an opening and closing of
the file in C++? d) Explain the Implicit typecasting
with example.
e) What do you mean by Command
line Arguments? e) Write a short note on Default
Value in Parameter with example.
4. a) Explain the Exception Handling
Mechanism? 3. a) Write a short note on Data
abstraction and encapsulation.
b) What is the Exception
Constructors and Destructors in b) Explain Inline Function with
Exception Handling? syntax.
c) What is templates explain the c) How to Initialize Array with
class Templates? example?
d) Explain the Member Function d) Explain the syntax of for loop.
Templates?
e) WAP Enter any five subject from
e) What is the Standard Template user and display Total and
Library explain the components of percentage.
STL?
4. a) What is Object Oriented
CMP503/20170104 Programming?
1. a) Write any five rule of Operator b) Explain the keyword break. With
Overloading. example.
b) Write characteristics of c) Write a program by applying
Constructor Function. concept of Pointer to function.
c) Write Basic Structure of C++ d) Explain the Condition Operator.
Programme.
e) Why do we use virtual functions?

You might also like