0% found this document useful (0 votes)
35 views4 pages

Q Bank

Uploaded by

john11maverick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

Q Bank

Uploaded by

john11maverick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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]
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]
5 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

NIT-1
PART-A
1. Mention some of the separators used in java programming?
2. How dynamic initialization of variables is achieved in java?
3. What is the output of the main method in the
given code?
4. What is java virtual machine?
5. What are the features of java?
6. Define object and classes ?(nov/dec2018)
7. Why are classes important in OO technology?
8. Difference between objects and classes?(apr/may2013),(nov/dec2018)
9. Difference between static and non static variables?
10. Define encapsulation?(nov/dec2015)
11. What is an abstract class?
12. Define class with example?
13. Difference between structure and class?
14. What is the default access to a member in a class?
15. What is meant by private accesss specifier?
16. What do you mean by instance variable?
2
17. Define constructor?
18. What is static in java?
19. Define API package?
20. Define the term CLASS PATH?(apr/may2017)
21. What are the components in file structure?
22. Define polymorphism?(apr/may2018)
23. What is an abstract type?(apr/may2018)
PART-B
Object Oriented Programming - Abstraction – objects and classes -
Encapsulation- Inheritance – Polymorphism:
1.Explain the features of oops concept with example? (nov/dec2018)
OOP in Java :
2.Explain the oop in java with example program?(13)(apr/may2017)
Characteristics of Java
3.Decsribe the Characteristics of Java?(13) (nov/dec2018)
The Java Environment
4.Explain the java environment with suitable example?(13)
Java Source File -Structure – Compilation
5.Explain the Java Source File Structure and Compilation with example program(13)
Fundamental Programming Structures in Java
6.Explain the Fundamental Programming Structures in Java with example
program?(07)
Classes In Java
7.Explain the classes in Java with example program?(07)
Constructors, Methods
8..Explain the constructors and methods with example program? (13)
Access Specifiers
9.Explain the different types of access specifiers with example program ?(7)
3
Static Members
10.Describe the static members functions with example program?(13)(nov/dec2016)
Comments:
11..Explain the java comments types with example?
Data Types:
12.Explain the different types of data types with example?(13)(nov/dec2015)
Variables
1.Explain the variables with example program?(7)
Operators:
1.Explain the types of operator with example program?(13)
Control Flow
1.Explain the types of control flow with example program?(13)
Arrays :
1.Explain the arrays concept with example program?(13)
Packages :
1.Describe the packages in java with example program?(13)
JavaDoc comments
1.Explain the javadoc comments.(7)
PART-C
1. .Explain the oops concept with example?(15)
2. Explain the Fundamental Programming Structures in Java ?(15)
3. Explain the types of operator with example program?(15)
4.Explain the characteristic of oop with example? (nov/dec2018) ?(apr/may2018)(15)
5.Compare c++ and java? ?(apr/may2018)
UNIT-2
PART-A
1.What is inheritance mention its uses?
2.Write the syntax of interfaces?
4
3.What modifier may be used with an interfaces
declaration?
4.What is copying?
5.What is cloning?
6.What is object cloning? (nov/dec2018)
7.What is an anonymous inner class?
8.How does the inner class differ from the declaration of an anonymous inner class?
9.What is inner class?
10. Define anonymous class?
11..Why the variables in interfaces static and final?(apr/may2017)
12.What is the purpose of nested interfaces?
13.What are the properties of nested interfaces?
14.What is extending interface?
15.What is multiple inheritances?
16.What are the types of inner classes?
17.Define static member classes?(nov/dec2017)
18.What is member classes?
19.Define local classes?
20.Define array list?
21.What is class hierarchy with example? (nov/dec2018)
PART-B
Inheritance
1. 1.What is inheritance? Explain types of inheritance with example program?
(nov/dec2018) ?(apr/may2018)(13)
5
2. .Explain multiple inheritances with example program?(apr/may2015)(13)
Super classes
3.Explain the super classes in inheritances with example program?(13)
sub classes
4.Explain the sub classes in inheritances with example program?(10)
Protected members
5.Explain the protected members in inheritances with example program?(10)
Constructors in sub classes
6.Explain the constructor in super classes in inheritances with example program?(10)
The Object class
7. Explain the object classes with example program?(7)
Abstract classes and methods
8. Explain the abstract classes and methods in heritances with example program?(nov/dec2017)(13)
Final methods and classes
9.Explain the final keywords and its types with example program?
Defining an interface
10.Define an interfaces with example?(5)
Implementing interface
11.Explain the various way of interface implementation?(13) (nov/dec2018)
What is Multithreading? Explain Thread Life Cycle in detail. (10)
b) Explain use of Static variables and methods in Java. (10)
Q.3) a) Explain the features of java Language. (10)
b) Write a java program to demonstrate use of final keyword. (10)
Q.4) a) Explain any Five swing components in Java with suitable program. (10)
b) What is Exception? Explain in detail Checked Exception and Unchecked Exception. (10)
Q.5) a) What is Package in Java? Explain Package with access modifier.

You might also like