Model QP Bcs306a
Model QP Bcs306a
USN 1 B Y
Note: Answer FIVE full questions, choosing ONE full question from each module.
CO,
Q. No Module – 1 Marks
RBT
Explain the two paradigms of Object-Oriented Programming and provide
1a. 6 CO1, K2
examples of each.
Discuss the three main Object-Oriented Programming principles and their
1b. 6 CO1, K2
significance in Java.
Develop a JAVA program to add TWO matrices of suitable order N (The value
1c. 8 CO4, K3
of N should be read from command line arguments).
OR
2a Describe the different types of operators available in Java. 6 CO1, K2
2b. Differentiate between the 'if' statement and the 'switch' statement in Java. 6 CO1, K2
Page 1 of 2
BCS306A
OR
Explain the relationship between the concepts of dynamic method dispatch and
6a. 10 CO3, K3
method overriding in Java.
Develop a JAVA program to create an interface Resizable with methods resize
Width(int width) and resize Height(int height) that allow an object to be resized.
6b. 10 CO4, K3
Create a class Rectangle that implements the Resizable interface and implements
the resize methods.
Module – 4
Discuss the strategies used by the Java compiler to resolve package and class
7a. 10 CO3,K3
references when importing packages
Evaluate the importance of designing modular and well-organized packages in
7b. 10 CO3,K3
large-scale Java applications.
OR
Analyze the structure and purpose of the try-catch-finally blocks in Java
8a. 10 CO3,K3
exception handling.
Investigate and explain the process of creating custom exception subclasses in
8b. 10 CO3,K3
Java.
Module – 5
9a. Analyze the role and significance of the main thread in Java. 10 CO3, K3
9b. Examine the process of creating threads in Java. 10 CO3, K3
OR
10a. Discuss in detail the lifecycle of a thread, including transitions between states. 10 CO3, K2
Explain how threads communicate and coordinate with each other using methods CO3, K2
10b. 10
like wait(), notify(), and notifyAll().
“Satisfaction lies in the effort, not in the attainment, full effort is full victory”