MEERUT INSTITUTE OF ENGINEERING AND TECHNOLOGY
B. Tech. Even Semester Sessional Test-I
[Session: 2024-25]
__________________________________________________________________________________
Semester: IV Roll No.
Course Name: Object Oriented Programming with Java
Course Code: BCS403 Time: 120 Min
Branch(s): CSE/CS/IT/CSIT/IOT/DS/AI/AIML Max. Marks: 60
COs: CO1 & CO2
Instructions:
1. Attempt all the sections.
2. Assume missing data suitably, if any.
CO: Course Outcomes mapped with the respective question
KL: Bloom's knowledge Level (K1, K2, K3, K4, K5, K6)
K1-Remember, K2-Understand, K3-Apply, K4-Analyze, K5-Evaluate, K6-Create
Section – A
Attempt all the questions from this section. (2 x 10 = 20 Marks)
[Link]. Questions Marks CO KL
1. a Explain the major features of Object Oriented Programming. 2 1 K2
b Explain the use of the ‘final’ keyword. 2 1 K2
c Explain the various access specifies used in java. 2 1 K2
d Why is Java known as platform independent? 2 1 K2
e What is the difference between JDK, JRE, and JVM? 2 1 K1
f List any six built-in exceptions in Java. 2 2 K1
g Differentiate between error and exception. 2 2 K3
h What is thread? Explain life cycle of a thread with proper diagram 2 2 K2
i Differentiate between process and thread. 2 2 K3
j List the byte stream classes. 2 2 K1
Section-B
Attempt all questions of this section. (5 x 4 = 20 Marks)
[Link]. Questions Marks CO KL
What is inheritance? Explain different forms of inheritance with
2+3 K3
suitable program segments and real world example classes.
2. Or 1
Differentiate between Interface and abstract class. Explain Interfaces in
5 K3
Java with suitable examples.
Illustrate polymorphism and its types in Java. Differentiate between
run-time and compile-time polymorphism. Write super class Shape 3+2 K3
3. with method displayArea() and sub class Rectangle. 1
Or
How to define a package? How to access, import a package? Explain
5 K3
with examples.
Write a program for user defined exceptions that check the internal and
external marks. If the internal marks are greater than 40 it raises the
exception” internal marks are exceeded”, if the external marks are 5 K3
greater than 60 exceptions are raised and display the message “the
4. 2
external marks are exceeded”.
Or
Write a program that demonstrate the priority setting in threads 5 K3
Explain Stream with types. Differentiate between Character Streams
5 K3
and Byte Streams
5. Or 2
Describe the ways to create the threads in Java with suitable code.
5 K3
Explain with an example.
Section-C
Attempt all the questions from this section. (10 x 2 = 20 Marks)
[Link]. Questions Mark CO KL
s
Illustrate Constructors and their applications in Java. Describe the types 4+3+3 1 K3
of constructors used in Java. Write a class with the name Student with
attributes roll_number, name, branch and email.
6. Or
Explain abstract method and abstract class. Write a Java program for 10 1 K3
employee class where salary is an abstract method with full
implementation.
Explain inputstream and outputstream [Link] FileInputStream 4+3+3 2 K3
and Fileoutputstream class with example.
7. Or
Differentiate between checked and unchecked exceptions in Java. Write 10 2 K3
a Java program to demonstrate Arithmetic Exception handlings.