0% found this document useful (0 votes)
14 views2 pages

Question Bank C++

The document is a comprehensive question bank for C and C++ programming, divided into three sections: Section A consists of 40 short answer questions, Section B includes 20 longer answer questions, and Section C features 16 detailed questions. Topics covered range from basic definitions and concepts to advanced programming techniques, including object-oriented programming, memory management, and exception handling. This resource serves as a study guide for students to prepare for examinations in C and C++.

Uploaded by

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

Question Bank C++

The document is a comprehensive question bank for C and C++ programming, divided into three sections: Section A consists of 40 short answer questions, Section B includes 20 longer answer questions, and Section C features 16 detailed questions. Topics covered range from basic definitions and concepts to advanced programming techniques, including object-oriented programming, memory management, and exception handling. This resource serves as a study guide for students to prepare for examinations in C and C++.

Uploaded by

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

Question Bank C\C++

🅰 Section A (10 × 2 = 20)

1. Define a keyword with example.


2. List any four unary operators in C.
3. What is a pointer?
4. Differentiate between structure and union.
5. What is a reference variable in C++?
6. Define a class in C++.
7. What is function overloading?
8. Explain default constructor.
9. Define polymorphism.
10. What is a pure virtual function?
11. What is a symbolic constant?
12. Mention two differences between if and switch.
13. Define dynamic memory allocation.
14. What is a macro?
15. Explain inline function.
16. Mention uses of new and delete.
17. Define an object.
18. What is a copy constructor?
19. List two advantages of inheritance.
20. Define aggregation.
21. List different data types in C.
22. Define break and continue.
23. What is conditional compilation?
24. Define a structure with syntax.
25. State the differences between C and C++.
26. What is operator overloading?
27. Define static member function.
28. What is constructor overloading?
29. Mention types of inheritance.
30. What is an abstract class?
31. What is #include directive?
32. Define shorthand assignment operator.
33. What is a nested macro?
34. What is the use of enumeration?
35. Define access specifiers.
36. What is memory allocation for objects?
37. Explain parameterized constructor.
38. What is composition in OOP?
39. What is early binding?
40. Define rethrowing of exceptions.

🅱 Section B (5 × 6 = 30)

1. Explain the various storage classes in C.


2. Write a program in C to reverse an array.
3. Discuss the difference between call by value and call by reference.
4. Write a short note on friend function with example.
5. Explain exception handling with try-catch block in C++.
6. Write a C program to check for prime numbers using loops.
7. Explain recursion with an example.
8. Discuss applications and advantages of OOP.
9. Explain use of this pointer with an example.
10. Describe the concept of virtual base class.
11. Write a program to illustrate use of switch case and break.
12. Explain pointer arithmetic with an example.
13. Discuss various types of constructors in C++.
14. Write short notes on arrays of objects.
15. Explain function overriding with a C++ example.
16. Write a program using nested loops to print a pattern.
17. Explain pointer to function with syntax.
18. What is the significance of friend function?
19. Write a C++ program to demonstrate function with default arguments.
20. Describe the role of destructor in inheritance.

🅲 Section C (4 × 10 = 40)

1. Describe different control structures in C with examples.


2. Explain the object-oriented features of C++ in detail.
3. Write a C++ program demonstrating function overloading and use of constructors.
4. Explain different types of inheritance with examples.
5. Explain pointers and their relationship with arrays in C.
6. Write a program to create a class with overloaded constructors and demonstrate object
creation.
7. Describe types of polymorphism in C++ with examples.
8. Explain different types of exceptions and how to handle them in C++.
9. Explain memory allocation and usage of malloc and calloc in C.
10. Discuss class and object features with a program using friend class and this pointer.
11. Illustrate virtual functions and late binding with example.
12. Write a C++ program to demonstrate exception handling with multiple catch blocks.
13. Compare procedural and object-oriented programming with examples.
14. Develop a program to demonstrate inheritance and ambiguity resolution.
15. Explain the concept of dynamic memory allocation in C++ using new/delete.
16. Describe the exception handling model and its components.

You might also like