(JULY to NOVEMBER 2025)
DEPARTMENT OF INFORMATION TECHNOLOGY
Roll No.____________________________ Reg. No. 9 2 0 4
Internal Assessment: I Semester: Third
IT2202 – Object Oriented Programming
Max. Marks : 50 Marks
Regulation: KCET 2021
Duration : 1 hour 30 minutes
CO Index Course Outcomes
21ITC203.1 Demonstrate the basic concepts of object oriented programming usingJAVA
21ITC203.2 Make use of the OOP concept and non-access modifiers to solve realworld problems
Marks distribution based on Bloom’s Taxonomy Level
Remember Understand Apply Analyze
(K-1) (K-2) (K-3) (K-4)
Total
22 68 90
Answer all the Questions
CO, BTL Q. No. Part A (5 x 2 = 10 Marks) Marks
CO1, K2 1. Differentiate == from equals() in Java. 2
Find the output of the below code:
class Demo {
private int x;
}
class Main {
public static void main(String[] args) {
Demo d = new Demo();
CO1, K3 2. System.out.println(d.x); 2
}
}
a) No error, prints 0 b) Compilation error – x has private access
c) Runtime error d) Prints garbage value
Justify your answer.
CO1, K2 3. Illustrate the use of encapsulation with a real-life example. 2