2073 Chaitra OOP pulchowk campus engineering note

2073 Chaitra Regular engineering note
https://notepulchowkcampus.blogspot.com/

2073 Chaitra Regular Object-Oriented Programming IOE Pulchowk engineering note

1. What are the advantages and disadvantages of object-oriented programming over procedural programming? Briefly describe the features of C++.

2. Define dynamic memory allocation. How do you exit in C++? Explain the reference variable with a suitable example. Write a program to swap two numbers using pass by reference concept.

3. Define 'this' pointer with its applications. Explain the order in which constructors and destructors are invoked with a suitable example.

4. Define operator overloading. What are the rules of operator overloading? How do you overload the unary operator? Explain in detail with an example.

5. What is function over-riding? How scope resolution is used with an overridden function? Explain the need for a virtual base class with a suitable example.

6. Write short notes on the access pointer and their manipulators. Write a program to make a simple library management system a college. Your program should store and retrieve the information (Book Name, Book ID, Number of books and purchase date).

7. Explain the need of virtual function with a suitable example. Define runtime type information (RTTI), How dynamic cast and typeid operators are used to achieve RTTI?

8. Explain how default arguments are used with a class template with an example. How do you throw only a specified exception from a function? Exemplify.

Share:

0 Comments:

Post a Comment

Please don't enter any spam link in the comment box

subscribe

IOE ALL SUB NOTES

Delivered by FeedBurner

Wikipedia

Search results

The quality of being the only one of its kind.

If you are fresher or preparing to attempt the Back Exam then you are going to be happy to know that here you will find all the shortlisted targeted question for your subject. Here you will find perfect answers to your questions