Koe064 Object Oriented Programming
Koe064 Object Oriented Programming
BTECH
(SEM VI) THEORY EXAMINATION 2023-24
OBJECT ORIENTED PROGRAMMING
TIME: 3 HRS M.MARKS: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief.
a. Explain the terms Aggregation and Composition. 02
b. Describe the term Encapsulation with suitable example. 02
c. Define generosity. 02
d. Explain the importance of modeling. Also, explain its principles. 02
e. Mention the names of two procedure-oriented programming languages. 02
f. List the features of object-oriented programming language. 02
g. Write a program in C++ to check whether the number is prime or not. 02
h. Define the use of typedef. 02
i. Explain the three access specifiers. 02
j. In C++ by default _________ access modifier is used. 02
SECTION B
2
2. Attempt any three of the following:
13
90
a. Explain the importance of modeling? Also, Explain its principles. 10
2.
_2
b. Differentiate between Activity & Sequence Diagrams with the help of suitable diagrams. 10
24
c. Differentiate between Procedural and Object-Oriented Programming paradigm. 10
P1
5.
d. (i) Write a C++ program to demonstrate the concept of Polymorphism. 10
4E
(ii) Differentiate between macros and Inline functions with suitable examples.
.5
e. Illustrate the use of namespace in C++ with an example. Also, write a Program in C++ to 10
17
P2
Cricket Match.
24
a. Explain the concept of constructors in C++. Discuss different types of constructors. Give 10
example of each.
|1
1|Page
QP24EP1_290 | 13-Jun-2024 9:22:13 AM | 117.55.242.132