👁️ 210 views

Department of Computer Science and Engineering

1st Mid Exam

Course Title: Object Oriented Programming (CSE-2107)

Semester: 3rd | Session: 21-22

Time: 60 minutes | Marks: 10.00

1.


1)

Distinguish between the following terms:

v) Objects and Classes        vi) Data abstraction and data encapsulation
vii) Inheritance and polymorphism        viii Dynamic binding and message passing 

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks
2)

Write the output of the following code snippet with explanation:

i) class Test{

 public static void main (String arg [])

 {

    for (int i=0;i<10;i++) {

        if (i%2== 0) {

        continue;

        }

        System.out.println(i);

    }

 }

}

ii) class Test{

     public static void main (String arg [])

     {

        int i=0;

        for (i = 0; i < 10; i++) {

        break;

        }

        System.out.println(i);

     }

}

 

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks
3)

What will be the Output of the below code? Write Answer with explanation.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
1 Marks
4)

What is JVM? Explain the internal architecture of JVM with neat sketch.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks
5)

Write java decision making statements (if, if-else, if-else-if, switch) format and provide example.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks

Contributors of this Question:

Role Name Date
Uploaded By: Onebyzero Edu July 28, 2024, 1:43 p.m.
Converted By (Img/PDF to Text): Baishakhi Bir Feb. 25, 2026, 10:48 p.m.
Reviewed By: Obaydul Hasan Nayeem Feb. 26, 2026, 11:20 p.m.