2073 Chaitra Regular engineering note
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.
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.
0 Comments:
Post a Comment
Please don't enter any spam link in the comment box