0% found this document useful (0 votes)
104 views

19CS0551 Java Programming

This document contains a question bank for the subject Java Programming (19CS0551) for the second year B.Tech students of Civil, Mechanical and Agricultural engineering branches. It covers 10 units related to Java concepts like history of Java, OOPs concepts, exception handling, multithreading, event handling and AWT/Swing. For each unit, it lists 10 questions along with the expected learning level, marks and cognitive level as per the revised Bloom's taxonomy. The questions range from simple knowledge/comprehension based to higher order questions requiring analysis, evaluation and creation skills from the students.

Uploaded by

Karapa Gayathri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views

19CS0551 Java Programming

This document contains a question bank for the subject Java Programming (19CS0551) for the second year B.Tech students of Civil, Mechanical and Agricultural engineering branches. It covers 10 units related to Java concepts like history of Java, OOPs concepts, exception handling, multithreading, event handling and AWT/Swing. For each unit, it lists 10 questions along with the expected learning level, marks and cognitive level as per the revised Bloom's taxonomy. The questions range from simple knowledge/comprehension based to higher order questions requiring analysis, evaluation and creation skills from the students.

Uploaded by

Karapa Gayathri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Question Bank 2021

SIDDHARTH INSTITUTE OF ENGINEERING & TECHNOLOGY


PUTTUR (AUTONOMOUS)
Siddharth Nagar, Narayanavanam Road – 517583
QUESTION BANK (DESCRIPTIVE)

Subject with Code : JAVA PROGRAMMING (19CS0551) Course & Branch: B.Tech –
Year & Sem: II-B.Tech & II-Sem CIVIL,MECH&AGRI
Regulation: R19

UNIT-I
1 a) Explain History and Evolution of Java? [CO1][L2] [6M]

b) Summarize Java Buzz Words? [CO1][L2] [6M]

2 What are Java Selection Statements? Give an example to each one. [CO1][L1] [12M]

3 Illustrate the Iteration Statements with example. [CO1][L2] [12M]

4 Demonstrate what are Jump statements? Give an example for each of [CO1][L2] [12M]
them.
5 a) Define Data Type. Criticize the declaration of variable in Java. [CO1][L5] [6M]
b) What is Byte Code? Interpret the different states of Java Program [CO1][L5] [6M]
execution?
6 a) Write a Java program to interchange the values without using [CO1][L3] [6M]
temporary variable.
b) Write a Java program to use Bit-wise operators. [CO1][L3] [6M]

7 a) Tell about the varargs in java? Write the syntax and develop any [CO1][L2] [6M]
program.
b) Give the Structure of Java? Explain type of programs in Java. [CO1][L2] [6M]

8 a) What is an Array? Explain types of arrays in Java with example. [CO1][L2] [12M]

b) Write a Java program to read and display the array elements in order. [CO1][L2] [6M]

9 List the Java Tokens and discuss in detail. [CO1][L6] [12M]

10 What is an Operator? Explain type of operators in Java with example [CO1][L2] [12M]
programs.

1 Java Programming (19CS0551)


Question Bank 2021

UNIT-II
1 a) What is mean by OOP? Explain OOP Concepts? [CO2][L2] [6M]

b) Explain in detail about Garbage Collector in Java. [CO2][L3] [6M]


2 a) Define Class, Method and Object? Show the syntax to define these [CO2][L2] [6M]
in java.
b) What is a Constructor? Explain types of Constructors in Java? Write a [CO2][L2] [6M]
java program to find the Area of Circle using Constructor.
3 Discuss about the static, final keywords with an example. [CO2][L6] [12M]
4 a) Recall Inheritance? Illustrate the types of inheritances. [CO2][L2] [6M]

b) Write a java program to implement multilevel inheritance concept. [CO2][L3] [6M]

5 a) Discuss about the super keyword in java with example. [CO2][L6] [6M]

b) Compare Method Overriding and Method Overloading. [CO2][L5] [6M]


6 Explain about the Dynamic Method Dispatch in Java with example [CO2][L2] [12M]
program.
7 What is an abstract class? Explain all the cases to implement abstract [CO2][L2] [12M]
class.
8 a) Create a java program to display “Hello! Java” using Class, Object [CO2][L6] [7M]
and Method.
b) Give the differences between Abstract class and Interface [CO2][L4] [5M]

9 a) Discuss in detail about Abstract Classes in Java [CO2][L6] [6M]

b) What is an interface? List the rules to create an interface in java with [CO2][L1] [6M]
example
10 a) Recall what is package? Explain how to create user defined package [CO2][L2] [6M]
in java with example
b) Write a java program to find the factorial value of the given number [CO2][L3] [6M]
using user defined package concept.

2 Java Programming (19CS0551)


Question Bank 2021

UNIT-III
1 a) What is a Java Exception and its Types [CO4][L1] [6M]

b) Explain about try, catch, statements with examples [CO4][L2] [6M]

2 a) Demonstrate Nested try statements with an example [CO4][L2] [6M]

b) List Java’s Built-in Exception? Write the importance of finally block. [CO4][L3] [6M]

3 Write a java program to create own exception for Negative Value [CO4][L6] [12M]
Exception if the user enter negative value.
4 Explain Exception handling fundamentals [CO4][L2] [12M]

5 a) Show what is meant by Uncaught Exception [CO4][L1] [6M]

b) Explain Java exception hierarchy [CO4][L2] [6M]

6 Inspect about multiple clauses with an example of arithmetic [CO4][L4] [12M] exception.

7 a) Explain about creating your own Exception clauses [CO4][L6] [7M]

b) Can we have an empty catch block? Justify [CO4][L5] [5M]

8 a) Summarize in detail about chained Exception? [CO4][L2] [6M]

b) Evaluate what happens when an exception is thrown by main method? [CO4][L5] [6M]

9 Contract in detail about throw and throws statements with examples [CO4][L4] [12M]

10 a) Give the difference between checked and unchecked exceptions? [CO4][L4] [6M]

b) Show the use of finally statements with examples [CO4][L1] [6M]

3 Java Programming (19CS0551)


Question Bank 2021

UNIT-IV
1 a) What is Multithreading? What are the ways to create multiple threads [CO5][L1] [6M]
in java.
b) Explain about Thread Life Cycle. [CO5][L2] [6M]

2 a) Discuss how to set the priority to threads? What are the different [CO5][L4] [6M]
ranges.
b) Write a java program to create two threads and execute simultaneously [CO5][L6] [6M]

3 a) Tell what is synchronization? Give its types and explain. [CO5][L1] [6M]

b) Write a java program to implement inter thread communication. [CO5][L6] [6M]

4 a) Define Daemon Threads? Explain with an example. [CO5][L2] [6M]

b) Write a java program to implement join() method in multithreading. [CO5][L3] [6M]

5 a) Define String? Explain different String declarations with an example [CO5][L4] [6M]

b) Write a java program to check the given string is palindrome or not. [CO5][L4] [6M]

6 a) Write the difference between String and StringBuffer classes. [CO5][L4] [6M]

b) Create a java program to sort the given names into ascending order. [CO5][L6] [6M]

7 List and explain any five string methods. [CO5][L1] [12M]

8 Write a Java program that creates three threads. First thread displays [CO5][L6] [10M]
“Hello!” every one second, the second thread displays “Wear Mask !”
every two seconds and “Use Sanitizer !” every 5 seconds.
9 Write the difference between Extending thread and implementing [CO5][L4] [12M]
runnable?
10 Explain in detail about thread methods? [CO5][L2] [12M]

4 Java Programming (19CS0551)


Question Bank 2021

UNIT-V

1 Explain about Delegation Event Model in Event Handling with [CO6][L2] [12M] example.

2 a) Write a java program to implement Mouse Events. [CO6][L6] [6M]

b) Discuss about Source, Event and Listeners in event handling [CO6][L6] [6M]

3 Write a java program to develop Login Window using AWT [CO6][L6] [12M]

4 a) List out any 10 AWT classes and their syntax. [CO6][L1] [6M]

b) Demonstrate the Layout Managers in java? Explain. [CO6][L2] [6M]

5 a) Write a java program to implement Key events [CO6][L3] [6M]

b) Explain about the AWT Menu design. [CO6][L5] [6M]

6 Write a java program to develop Notepad Application using AWT. [CO6][L6] [12M]

7 a) Difference between AWT and Swings? [CO6][L4] [6M]

b) Create a java swing program implement Border Layout. [CO6][L6] [6M]

8 Write a java swing program to find the sum of two numbers. [CO6][L6] [12M]

9 Write a java swing program to find the factorial of the given number [CO6][L3] [12M]

10 Explain the following layout managers. [CO6][L2] [12M]


(a) Border layout.
(b) Grid layout.
(c) Flow layout.

5 Java Programming (19CS0551)

You might also like