Register Number
KNOWLEDGE INSTITUTE OF TECHNOLOGY (AUTONOMOUS)
yond Know
B.E. /[Link]. DEGREE EXAMINATIONS - NOVEMBER / DECEMBER 2025.
Question Paper Code:251223
Fourth Semester
Civil Engineering
BE23CS31| - OBJECT ORIENTED PROGRAMMING USING C++ and JAVA
(Common to : B.E. Mechanical Engineering, Electronics and Communication Engineering.
Electrical and Electronis Engineering)
(Regulations 2023)
Duration: 3 Hours Maximum Marks: 100
Answer ALL Questions
PART A-(10X 2=20 Marks)
1. State any two limitations of Structure Oriented Programming. CO1 LI
2. What is mean by array? CO1 LI
3 List out the types of access specifiers in C+t. CO2 LI
4 Writethe purpose of using "this pointer in C++. C02 L2
5 Give the syntax for declaring apure virtual function. CO3 L1
6 Compare: Compile time and Run time Polymorphism in C++t. CO3 L2
7. List out the steps for compile and execute a Java Program using the Command Line. CO4 LI
8 Define the term constructor in Java. CO4 L2
9 What is mean by Super Keyword? COS L2
10. How you will import the package in Java? COS L2
PART B - (5 X 16 = 80 Marks)
11. (a) Illustrate the structure of a C++ program with a neat example. COI L2
Or
(b) Summarize the various Control Flow Statements in C+t with example. COI L2
12, (a) Describe constructors in C++ and apply the different types of constructors with CO2 L3
examples.
Or
(b) Demonstrate the use of friend function and friend class with suitable examples. CO2 L3
13. (a) Discuss in detail about the types of inheritance with suitable diagrams. CO3 L2
Or
(b) llustrate Function Overloading and Function Overriding withneat sketch. CO3 L2
14. (a) Discuss in detail about the control flow statements in Java. CO4 L2
Or
(b) Describe the creation and use of classes and objects in Java with examples. CO4 L2
15. (a) Implement two-dimensional array using Java program to demonstrate the use of COS L3
an abstract class.
Or
(b) Solve a program to create a custom package and access it from another class. COS L3
*********
2
251223