Вы находитесь на странице: 1из 1

PROGRAMMING IN C++

BCA
1) Explain the basic characteristics of object oriented languages. How is object oriented
programming language better than structured programming language ?
2) What do you mean by copy constructor ? Explain it with a suitable C++ program.
3) What is looping in C++ ? What are the advantages of using loops in C++ ? Also list the various
looping options available in C++.
4) What is exception handling ? What are the keywords used to handle the exception in C++ ? Write
a C++ program to handle divide by zero exception.
5) Write a program in C++ that prints numbers and its cubes from 1 to 10 by using if-then-else and
for loop.
6) Write a C++ program to create vehicle class and derive Car, Truck and Bike classes from the
Vehicle class. Also define proper constructors for each of these classes.
7) Write short note on the following : (a) Encapsulation (b) Message Passing (c) Function
Overloading (d) File pointers and operations.
8) What is an abstract class ? How do you create an abstract class ? What is the purpose of creating
an abstract class in object oriented programming paradigm ? Explain with the help of an example.
9) What do you understand by friend function ? Write a C++ program to find out the sum of n given
numbers using friend function.
10) Explain the difference between private, protected and public access specifier with respect to class
and its object. Write a program in this support.
11) Explain the concept of virtual function with its important characteristics. Write a C++ program to
illustrate the importance of pure virtual function.
12) What is containership ? Write the important containers available in C++ with their importance.
13) What are access control specifiers ? Explain difference between private and public access control
specifiers.
14) What is need of memory management in C++ programming ? Explain in brief about memory
management process in C++.
15) What is operator overloading ? Briefly explain general rules of operator overloading.
16) Differentiate between C and C++.
17) Write a C++ program to implement simple calculator to perform '+, , *, /' on two integer
operands. Your program should have methods for reading data and for performing arithmetical
operations.
18) What is reusability of code ? Write a C++ program to create a class student, with basic data
members such as name, address, age. Create a class PG_student by inheriting from student class.
PG_student class should have a function to display, name, address, subject of the student.
19) What is template class ? Explain advantages of template class. Create a template class for Linked List data structure.
20) What is function overloading ? How it is different from operator overriding ? Explain with an
example of each.

Вам также может понравиться