CPP Model Papers
CPP Model Papers
Part - A
Answer any Ten Questions (10 x 2 = 20 Marks)
Part - B
Answer the following Questions (4 x 15 = 60 Marks)
13. (a1) Explain the program development life cycle with a diagram. (8 Marks)
(a2) Describe the general structure of a C++ program with an example. (7 Marks)
OR
(b1) What are the different types of operators in C++? Explain any four with examples.
(8 Marks)
(b2) Explain type conversion and type casting in C++. Give examples. (7 Marks)
14. (a1) Explain inline functions with suitable example. (8 Marks)
(a2) Describe the different storage classes in C++. (7 Marks)
OR
(b1) Describe the process of initializing and accessing elements in a one-dimensional
array with an example. (8 Marks)
(b2) Explain string handling functions with examples. (7 Marks)
15. (a1) Explain different types of constructors in C++ with examples. (8 Marks)
(a2) Describe how binary operator overloading is implemented in C++. (7 Marks)
OR
(b1) What is a destructor? Explain its role in a C++ program with an example. (8 Marks)
(b2) Describe the process of defining and accessing class objects in C++. (7 Marks)
16. (a1) Discuss single and multi-level inheritance with examples. (8 Marks)
(a2) Describe the concept of abstract classes with suitable example (7 Marks)
OR
(b1) Explain the concept of formatted I/O with examples. (8 Marks)
(b2) Explain standard class functions for File I/O with suitable example. (7 Marks)
Model Question Paper 2
Subject: Problem Solving and Programming using C++
Time: 3 Hours Max. Marks: 80
Instructions:
Answer both Part-A and Part-B.
Part - A
Answer any Ten Questions (10 x 2 = 20 Marks)
Part - B
Answer the following Questions (4 x 15 = 60 Marks)
13. (a1) Explain different data types in C++ with examples. (8 Marks)
(a2) Describe the rules for naming identifiers in C++. (7 Marks)
OR
(b1) Explain looping statements in C++ with suitable examples. (8 Marks)
(b2) Write a program that uses a switch statement to print the day of the week based
on user input. (7 Marks)
14. (a1) Explain function overloading with examples. (8 Marks)
(a2) Discuss the role of friend functions in C++ with an example. (7 Marks)
OR
(b1) Describe the process of initializing and accessing elements in a two-dimensional
array with an example. (8 Marks)
(b2) Explain arrays of structures with an example program. (7 Marks)
15. (a1) What are the features of object-oriented programming? Explain each feature
briefly. (8 Marks)
(a2) Describe the concept of dynamic constructor with an example. (7 Marks)
OR
(b1) Describe how unary operator overloading is implemented in C++. (8 Marks)
(b2) Explain array of objects with suitable program. (7 Marks)
16. (a1) Explain multiple and hierarchical inheritance with examples. (8 Marks)
(a2) Discuss the role of virtual functions in achieving polymorphism. (7 Marks)
OR
(b1) Explain the concept of unformatted I/O with examples. (8 Marks)
(b2) Explain ios class functions and flags with suitable example. (7 Marks)
Model Question Paper 3
Subject: Problem Solving and Programming using C++
Time: 3 Hours Max. Marks: 80
Instructions:
Answer both Part-A and Part-B.
Part - A
Answer any Ten Questions (10 x 2 = 20 Marks)
Part - B
Answer the following Questions (4 x 15 = 60 Marks)
13. (a1) Explain arithmetic, relational and logical expressions with suitable examples. (8
Marks)
(a2) Explain control structures in C++ with suitable examples. (7 Marks)
OR
(b1) Explain the break and continue statements with suitable examples. (8 Marks)
(b2) Describe the rules for precedence and associativity of operators in C++. (7 Marks)
14. (a1) Describe the general structure of a function with an example. (8 Marks)
(a2) What is a pointer? Explain its declaration and initialization. (7 Marks)
OR
(b1) Describe the process of declaring and accessing elements of structure with suitable
example. (8 Marks)
(b2) Discuss the concept of recursion in C++ with an example. (7 Marks)
15. (a1) Define class and object. Write a C++ program to illustrate the use of classes
and objects. (8 Marks)
(a2) Explain the concept of parameterized constructors with an example. (7 Marks)
OR
(b1) Describe the different ways to define member functions in C++ and provide a
suitable example. (8 Marks)
(b2) Explain the concept of static member data and functions with suitable example. (7
Marks)
16. (a1) Explain hybrid and multi-path inheritance with an example. (8 Marks)
(a2) Describe the purpose of virtual base classes in C++ with an example. (7 Marks)
OR
(b1) Explain built in classes for I/O with an example. (8 Marks)
(b2) What are file stream classes in C++? Explain their role with examples. (7 Marks)