Skip to content

CSE2137 - Object Oriented Programming

Introduction

Term 151

  • Q1(a) [4]: Compare Object Oriented Programming (OOP) with sequential programming.
  • Q1(b) [3]: Briefly explain various features of Java.
  • Q1(c) [3]: What is Java Runtime Environment (JRE)?
  • Q1(d) [4]: What do you understand by JVM? Briefly explain the function of JVM.
  • Q3(a) [3]: Java programming is to be compiled first and then to be interpreted for execution. Choose true or false in respect to the said statement and justify your answer.
  • Q3(b) [4]: What are the data types supported by Java. What is Autoboxing and Unboxing?

Term 161

  • Q1(a) [3]: Compare Object oriented programming with sequential programming.
  • Q1(c) [5]: Discuss the following program line-by-line and understand the unique features that constitute the program.

public class Welcome {
    public static void main(String args[]) {
        System.out.println("Welcome");
    }
}

- Q1(d) [3]: What do you understand by JVM? Explain the function of JVM.
- Q4(a) [4]: Java program is to be compiled first and then to be interpreted for execution. True or false? Justify your answer.
- Q4(b) [4]: Write any four names of Java system packages with their classes/contents.

Term 171

  • Q1(a) [2+3]: What is Object Oriented Programming (OOP)? Explain the following two features of Java: Platform independent and Multithread.
  • Q1(c) [2]: What is Typecasting? What will be the output of the following code segment?
class Simple {
    public static void main(String args[]) {
        float f = 10.5f;
        int a = (int) f;
        System.out.println(f);
        System.out.println(a);
    }
}

Term 181

  • Q1(a) [4]: Compare and contrast object oriented programming with procedural programming.
  • Q2(a) [2+3]: What makes java platform independent is its compilation and execution process. Explain how these processes make java platform independent.

Term 201

  • Q1(a) [2]: What is the difference between Object-Oriented Programming and Structural Programming?
  • Q4(a) [4]: "Java programming is to be compiled first and then to be interpreted for execution." Is this statement true or false? Justify your answer with proper description.

Term 211

  • Q2(a) [4]: What is the difference between JDK, JRE, and JVM?
  • Q4(a) [4]: "Java programming is to be compiled first and then to be interpreted for execution". Is this statement true or false? Justify your answer with proper description.