100% found this document useful (1 vote)
1K views6 pages

CPP Model Papers

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views6 pages

CPP Model Papers

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

Model Question Paper 1

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)

1. Define an algorithm. List its main features.


2. Draw symbols for Start, End, and Decision in a flowchart.
3. What is a keyword? Give an example.
4. What are actual and formal arguments?
5. What is a pointer?
6. Define a union. Give an example.
7. What is object-oriented programming? Name two of its features.
8. What are static member functions? Why are they used?
9. Define constructor overloading.
10. What is a virtual function?
11. What is a multi-level inheritance?
12. What are unformatted I/O operations?

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)

1. What is an expression? Give an example.


2. What is the purpose of the scope resolution operator (`::`) in C++?
3. What is a constant? Give an example.
4. What is recursion? Give an example.
5. Mention advantages functions in C++.
6. What are reference variables? Provide an example.
7. What is a parameterized constructor?
8. What is the role of static member data?
9. What are member functions? Why are they used?
10. What are access specifiers in C++?
11. What is an abstract class?
12. What is hybrid inheritance?

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)

1. Mention the steps in C++ program execution?


2. What is a variable? Give an example.
3. What is character set? Give an example.
4. What are strings? Give an example.
5. What are library functions? Give an example.
6. What is the purpose of a default argument in functions?
7. What is a copy constructor?
8. What is the difference between public and private members in a class?
9. Write the syntax of operator overloading function.
10. What is multi-level inheritance?
11. What are text and binary files?
12. What are formatted I/O operations?

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)

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