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

c++

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

c++

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Analysed by Lakshay Babbar

✓ All this Questions is based on previous year exam papers


✓ Warning: do not depend on these questions only, prepare
syllabus as well.
UNIT 1
• Explain the following terms: (i) Literals (ii) Implicit
conversion
• Write a program that will find out whether the given
number is even or odd. If it is odd number then find out
whether it is prime or not?
• illustrate the comparison between C and C++.
• Describe the concepts of parameter passing by value,
reference and pointer with the help of an example.
• Structured/procedural programming language vs object
oriented
• C vs C++(special attention to const, I/O, compilers)
• OOPS 4 basic pillars with program, in extreme detail
• new() and delete(), with program
• Macro vs Inline functions
• Dynamic Memory Allocation

UNIT 2
• Explain the concept of constructor overloading and
function overloading.
• What do you understand by access specifiers? What are
these access specifiers?
• All types of constructors with examples
• Call by value vs call by reference
• Class declaration program
• Garbage collection
• Destructors vs delete
• Pointer program(this pointer)
Analysed by Lakshay Babbar

• Function overloading programs


• Friend function(with program)

UNIT 3
• How can a data member and member function present in
public mode in class be accessed through pointer object?
Explain it by taking an example.
• Create class COMPLEX and overload binary + operator to
add objects. Using friend functions.
• Define an inheritance and its advantage? Explain the types
of inheritance.
• Operator overloading and overriding programs
• Resolution of ambiguity of multiple inheritance
• All types of inheritance and access specifiers
• Aggregation, composition vs classification hierarchical
• Virtual functions
• Pointer to constant and constant pointer
• Namespaces

UNIT 4
• What do you mean by generic programming? Write a
program to swap the any two different types of variables
using function template.
• Create a class Stack that throws Overflow and Underflow
exceptions.
• What is the file access mode? Describe the various file
modes.
• Exception Handling
• Overloading of functions and template functions
Analysed by Lakshay Babbar

• Declaration of a template classopen(), get(), getline(),


put(), seekg(), seekp(), tellp(), tellg(), read(), write() (file
handling)
• Generic functions and generic classes
• Persistent object

You might also like