Wa0005

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Module 5

2 marks?

1. Define this pointer?


2. List out the two applications of this pointer?
3. Define virtual function?
4. Define pure virtual function?
5. Define file?
6. What is file stream?
7. What are file pointers?
8. write the various file modes?
9. What is eof()?
10. Differentiate between early binding and late binding.

5 marks

11. Explain the purpose of this pointer with eg?


12. Explain file stream operations
13. What are the functions used for the manipulation of file pointers and explain?
14. Define file modes and write the various file modes. Explain?
15. Explain various methods to open a file in c++ and explain with eg?
16. What is a stream? Explain the different file stream classes?
17. What are different input output functions used in files and explain?
18. Write a note on unformatted I/O operation
19. What is sequential input and output operations?
20. write a program to print address of an object using this pointer?

Module 4

2 marks

1. Define abstract class?


2. Explain virtual base class?
3. What is the syntax for defining a derived class in inheritance?
4. Explain multiple inheritance.
5. In what order are the class constructors called when a derived class object is created.
6. Define Inheritance. List the different types of inheritance.
7. What is nesting of classes?
8. What are visibility labels or access specifiers?

5 marks

9. Give an example for multi-level inheritance.


10. Explain constructors in derived class.
11. What are the purposes of class access specifier private, public and protected?
12. Discuss abstract classes with example.
13. Discuss the effect of inheritance on the visibility of class members.
14. Describe virtual base class with an example.
15. Differentiate between multiple inheritance and hierarchical inheritance.
16. Explain nested classes with example.
15 marks

17. Explain different types of inheritance with example?


18. (a) What is inheritance, explain different types of inheritance?
(b) How can you pass parameters to the constructors of base classes in multiple inheritance?
19. What is inheritance? What are the different variations of inheritance?
20. Differentiate between multiple inheritance and multilevel inheritance.

Module 3

2 marks

1. Write the general form of defining a constructor in a derived class?


2. What is constructor overloading?
3. What is the purpose of copy constructor?
4. What is a friend class?
5. Define operator overloading. Name any two operators that cannot be overloaded in C++.
6. What is Operator overloading?
7. Name any four rules for overloading operators
8. What is a parameterized constructor?
9. What are constructor and destructor? What are the uses of constructor and destructor?

5 marks

10. Explain Constructor Overloading.


11. Write a program to overload ++ operator (both prefix and postfix).
12. Explain destructors.
13. Write a program to overload binary operator using friend function
14. Explain Constructor Overloading.
15. Write an overloading function for binary operator +.
16. Explain Constructor Overloading.

15 marks

17. Write a program to illustrate dynamic constructors.


18. With the help of example, explain the difference between overloading an operator using
member function and friend function.
19. What is difference in overloading binary operators using friend functions and member
functions? Explain
20. a) Explain dynamic constructors with example? b) Write a program to implement matrix
addition using operator overloading?

Module 2

2 marks

1. What is the difference between ordinary functions & member functions?


2. Explain the memory allocation of class data member and member function.
3. Define private member functions.
4. Explain array of objects.
5. How are friend functions different from member functions?
6. How can we define a member function outside the class?
7. Explain the memory allocation of class data member and member function.
8. How to return objects from a function?
9. Explain two uses of scope resolution operator?
10. Define private member functions.
11. What are static data members and static member function?
5 Marks
12. What is inline function? Explain with an example.
13. Write a program to perform addition of time in hours and minutes format using objects as
function arguments.
14. Explain inline function.
15. 15. What are static data members and static member function? Explain.
16. What is function overloading? Explain with an example.
17. 15. Explain static member function with example.
18. Explain Nesting of member functions.
19. What are the purposes of class access specifier private, public and protected?

15 marks

20. (a) What is array of objects?

(b) Write a program to find the difference of two complex numbers using friend function?

21. . Define static data member. Explain the characteristics of static class members with suitable
examples.
22. Explain friend functions. Write a program to swap the private data of two classes usingfriend
functions.
23. (a) What is array of objects? (b) Write a program to find the difference of two complex
24. numbers using friend function?

Module 1

2 marks

1. Define structured programming.


2. If a=5; b=++a; What will be the value of a and b?
3. What is the purpose of function prototype declaration?
4. What is the function overloading?
5. What are enumerated data types?
6. What are jump statements?
7. What is purpose of new operator?
8. What do you mean by cascading of I/O operator?

5 marks

9. What are characteristics of OOPS?


10. What is the advantage of reference variable?
11. Explain the different OOPs concepts.
12. Explain call by reference and return by reference with suitable examples.
13. What are the benefits of using OOP?

15 marks

14. a. Explain difference between call by reference and call by value method of function call
with example
b. What is function overloading explain with example and valid syntax?
15. What are control structures used in C++?
16. Explain different type conversions.
17. Explain the following: (a) Function Prototyping (b) Return by Reference
18. What are the different data types available in C++ with suitable example?
19.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy