Question Bank
Subject: Object Oriented Programming through Java (23BTCS04T) Regulation: R 23
Course: II B.Tech. Sem. I Academic Year: 2024-25
Short answer Questions (2 marks)
1 What are escape characters?
2 Write short notes on Java Character Set?
3 Write about Jump Statements in Java?
4 Describe about ternary operators in Java?
5 Write short notes on Java Variables and its types?
6 Explain about Data Types in Java?
7 Write short notes on Java Operators and its precedence?
8 Write about History of Java?
9 Illustrate Command line arguments in Java?
10 Illustrate for-each loop in Java?
Unit – I
Long answer Questions (10 marks)
1 Elaborate Basic Concepts of OOPs?
2 Explain about Java Tokens?
3 Discuss about
a. Input through keyboard?
b. Printing output in Java
4 Write a Java program for Multiplication of two Matrices?
5 Elaborate about Java Statement and its types?
6 List the Java Control statements?
7 Explain about decision making with ‘switch’ statement with an example program?
8 Explain about loop statements and jumps in loop? With suitable example program?
9 What is “casting” and “automatic type conversion” explain with suitable example?
10 The Scope of Variables in Java with example?
Unit - II
Question Bank
Subject: Object Oriented Programming through Java (23BTCS04T) Regulation: R 23
Course: II B.Tech. Sem. I Academic Year: 2024-25
Short answer Questions (2 marks)
1 Define class and object?
2 Write syntax and example of a class?
3 Distinguish class and object?
4 Define constructor and types of constructors?
5 What is call by value and call by reference?
6 Define method and its components?
7 Describe overloaded methods?
8 What is method overriding?
9 What is “final class” and “final method”?
10 What is nested classes?
Long answer Questions (10 marks)
1 What is constructor? Demonstrate the use of parameterized constructor with suitable
example.
2 Elaborate Constructor and its types with a suitable Example?
3 Define Constructor? Explain in detail about overloaded constructor with
an example?
4 Elaborate method, declaring, defining and calling a function with an example?
5 Illustrate method overloading with suitable examples?
6 Describe Objects as parameters in methods? With an example?
7 Explain a. Nested Methods
b. Recursive Methods
8 Write a program to define a class with employee data set and methods for input, process
and display Employee Pay-bill using classes and objects
9 Write a program to define a class with Student marks data set and methods for input,
process and display Student marks statement using classes and objects
10 Write a program to calculate area of Rectangle, Square and Triangle using constructor
overloading?
Question Bank
Subject: Object Oriented Programming through Java (23BTCS04T) Regulation: R 23
Course: II B.Tech. Sem. I Academic Year: 2024-25
Unit-III
Short answer Questions (2 marks)
1 Describe Array and types of array types?
2 What is inheritance? list the types of inheritance?
3 Variables in interface?
4 What is extending interfaces?
5 What is Static method in interface?
6 Define abstract class?
7 Define “super” key word?
8 What is nested interfaces?
9 How to access an array element?
10 Assigning array to another array
Long answer Questions (10 marks)
1 Describe Array, Declaration, Initialization of Arrays and accessing elements of an
array?
2 Describe array and types of arrays in detail with suitable example?
3 Write a Java Program to input n numbers into an array and then sort the array in ascending
order?
4 Write a Java Program to store n numbers into an array and then search for a number in the
array?
5 Illustrate inheritance in java with suitable diagrams and give an example?
6 Explain about Dynamic Dispatch with suitable example?
7 Illustrate Inheritance using “final” with example?
8 What is interface and how to implement interface in java?
9 Elaborate:
a. Functional interfaces b. Annotations
10 Elaborate Inhibiting inheritance of Class Using Final?
Question Bank
Subject: Object Oriented Programming through Java (23BTCS04T) Regulation: R 23
Course: II B.Tech. Sem. I Academic Year: 2024-25
Unit IV
Short answer Questions (2 marks)
1 What is package?
2 Define Temporal Adjusters class?
3 What is exception?
4 What is try and catch?
5 Define finally Block?
6 Define “throw” and “throws?
7 What is stream classes?
8 Define character Streams?
9 Define byte streams?
10 Define “Enumeration”?
Long answer Questions (10 marks)
1 Describe “package” and importing packages into classes with an example?
2 Explain in detail about Path and Class path?
3 What is exception and how to handle exception?
4 Elaborate Hierarchy of Standard Exception Classes?
5 Explain about
a. Unchecked exception b. Checked Exception?
6 Explain about
a. class math b. wrapper classes?
7 What is Stream classes in Java? Briefly explain about various types of Streams?
8 Describe Standard I/O Streams and its types in Java?
9 Illustrate Files in Java?
10 Explain stream classes and their methods in Java?
Short answer Questions (2 marks)
1 What is stream of characters?
2 What is String buffer?
3 How to Clear String buffer in Java with Syntax?
4 Write a Programme to check String Palindrome?
5 What is multithreading?
6 What are the various states of threads?
7 What is deadlock?
8 Define priority threads in java?
9 Write a Java Programme to print all ASCII Characters?
10 What is event handling
Long answer Questions (10 marks)
1 What is a string and what are the operations on strings?
Question Bank
Subject: Object Oriented Programming through Java (23BTCS04T) Regulation: R 23
Course: II B.Tech. Sem. I Academic Year: 2024-25
2 Write a Java program to count the occurrence of a character in a string?
3 Write a program to input N strings and sort it in ascending order?
4 Elaborate threads in Java?
5 Explain the Deadlock and Race Situations?
6 Illustrate Inter-thread Communication in Java?
7 Explain the thread life cycle in java?
8 Explain about Thread priory and Synchronization?
9 Elaborate Displaying Text and Image?
10 Explain about Java FX App Window Structure?
Unit V