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

Adv - Java QB

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

Adv - Java QB

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

QUESTION BANK

OBJECT ORIENTED PROGRAMMING


MODULE-1
CO/BLOOMS SL. QUESTIONS MARKS
LEVEL No
CO2/L3 1 Demonstrate the use the isAlive() and join() with the help of syntax. 12
2 Determine with a suitable program how thread priorities are used by 12
the thread scheduler to decide when each thread should be allowed
to run.
3 Write a JAVA program to create and run a new thread using start() 12
and run() methods.
4 What is a thread? Explain different ways of creating a thread. 12
5 Write a Java program to find square and cube of a number using 12
multithreading.
6 Develop a thread by the name “T1” and set its priority to high. 12
7 Demonstrate creation and usage of thread using runnable interface. 12
8 i. Identify the rules that determines context switching in thread’s 12
priority.
9 Demonstrate creation and usage of thread using thread class. 12
10 Identify the methods to prioritize threads. 12
CO3/L4 1 Analyze the given code and complete the code to control main 8
thread, display thread name and to set new thread name.
class CurrentThreadDemo {
public static void main(String args[]) {
Thread t = Thread.currentThread();
………..
}
}
2 Analyze the concept to create thread by implementing runnable 8
interface.
3 Compare and contrast thread creation using runnable interface and 8
thread class.
4 Write a program which creates two threads, one thread displaying 8
“Vidyavardhaka College of Engineering” once every ten seconds and
another displaying “CSE” once every two seconds.
5 Explain the different methods that helps in managing threads. 8
6 List and explain the various states of thread. 8
7 Write a program which creates two threads, one thread displaying 8
“VVCE” and another displaying “ISE” concurrently.
8 List and explain the methods that helps in managing threads. 8
9 Write a program which creates three threads using runnable 8
interface, one thread displaying “VVCE” another displaying “ISE” and
third thread displaying “3 Sem” alternatively.
10 Examine the need of synchronization and messaging in Java thread 8
model.
MODULE-2
CO1/L2 1 Explain any 5 methods of collection interface with syntax and 8
description.
2 Outline any 5 methods of List interface with syntax and description. 8
3 Sumarize any 5 methods of SortedSet interface with syntax and 8
description.
4 Explain any 5 methods of NavigableSet interface with syntax and 8
description.
5 Outline any 5 methods of Queue interface with syntax and 8
description.
6 Sumarize any 5 methods of Deque interface with syntax and 8
description.
7 Explain any 5 methods of Map interface with syntax and description. 8
8 Outline any 5 methods of SortedMap interface with syntax and 8
description.
9 Sumarize any 5 methods of NavigableMap interface with syntax and 8
description.
10 Sumarize any 5 legacy methods with syntax and description. 8
CO2/L3 1 Develop a program to demonstrate ArrayList.toArray() method. 12
2 Demonstrate getting an array from ArrayList with a suitable program. 12
3 Demonstrate the collection interface and list interface with their 12
corresponding methods defined.
4 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on Integers in ArrayList.
5 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on String in HashMap.
6 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on Integers in HashSet.
7 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on String in Queues.
8 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on Integers in LinkedList.
9 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on Integers in Vector.
10 Develop a Java program that exhibits insertion, deletion and retrieval 12
operations on Integers in HashTable.
MODULE-3
CO2/L3 1 Identify Special String operations in Java. 12
2 Make Use of Java to visualize character extraction. 12
3 Model Java program that exhibits various types of String comparisons. 12
4 Identify String searching operations in Java. 12
5 Make Use of Java to visualize String modification. 12
6 Model Java program that exhibits various types of case conversions in 12
String.
7 Identify String joining operations in Java. 12
8 Make Use of Java to visualize conversions using valueOf. 12
9 Model Java program that exhibits various types of methods in 12
StringBuffer.
10 Model Java program that exhibits various types of methods in 12
StringBuilder.
CO3/L4 1 Compare the methods nof StringBuilder with StringBuffer. 8
2 Analyze the differences in character extraction methods. 8
3 Distinguish various types of String comparisons. 8
4 Examine String searching operations in Java. 8
5 Analyze the differences in String modification methods. 8
6 Distinguish various types of case conversions in String. 8
7 Examine String joining operations in Java. 8
8 Compare == with equals(). 8
9 Distinguish exhibits various types of methods in StringBuffer. 8
10 Examine differences between various character extraction methods in 8
Java.
MODULE-4
CO1/L2 1 Explain any 5 methods of Servlet interface with syntax and 10
description.
2 Outline any 5 methods of ServletContext interface with syntax and 10
description.
3 Sumarize any 5 methods of ServletRequest interface with syntax and 10
description.
4 Explain any 5 methods of ServletResponse interface with syntax and 10
description.
5 Outline any 5 methods of ServletConfig interface with syntax and 10
description.
6 Sumarize any 5 methods of HttpServletRequest interface with syntax 10
and description.
7 Explain any 5 methods of HttpServletResponse interface with syntax 10
and description.
8 Outline any 5 methods of HttpSession interface with syntax and 10
description.
9 Explain the life cycle of servlet 10
10 Describe the steps in creating and executing simple servlet. 10
CO2/L3 1 Write a program for each of the following: 10
 Declaring and using a variable.
 Declaring multiple variables within a single JSP tag
Declaring objects and arrays with in a single JSP tag
2 Illustrate with a program how to assign information to and read 10
information from session attributes.
3 Illustrate with an example program the deployment descriptor. 10
4 Develop a java servlet program to accept two parameters from 10
webpage, find the sum of them and display the result in webpage.
Also give necessary html script to create web page.
5 Develop and develop a java program to read the http header 10
information.
6 Department has set the grade for the subject Java as follows: Above 10
90: A, 80 - 89: B , 70 -79 : C Below 70 = fail. Sham enters his marks for
the subject Java in the interface provided. Develop a html program to
accept the mark and display the grade with servlets.
7 Illustrate the Anatomy of java servlet 10
8 Demonstrate steps to configure tomcat. 10
9 Demonstrate the steps to download and install Tomcat. 10
10 Illustrate how to read data from client in servlet. 10
MODULE-5

CO1/L2 1 Consider the parameters of callable statement object, IN, OUT and 12
INOUT write a suitable code to call a stored procedure and retrieve a
value returned by the stored procedure.
2 Demonstrate the different steps involved in JDBC Process by providing 12
code snippet.
3 Write a code snippet with explanation for following: 12
i. connecting to database
creating and executing a statement
4 By considering a transaction on customer table, give a code that 12
updates any of the rows to demonstrate updatable ResultSet.
5 Illustrate the following: 12
a) Different types of statement objects with example
b) SQL Exception methods
6 Obtain the steps to create the association between database and 12
JDBC/ODBC bridge.
7 Illustrate four types of JDBC drivers. 12
8 Illustrate the different steps involved in JDBC process with an example 12
for each.
9 Demonstrate the following concepts with an example program: 12
I. Scrollable ResultSet
Callable statement
10 Illustrate the following concepts with an example program: 12
a. Transaction Processing
Updatable ResultSet
CO3/L4 1 Design and develop a Java program that uses scrollable virtual cursor 8
to show the working of the ResultSet object methods.
2 Design a code to explain how J2EE component can access Metadata 8
by using DatabaseMetaData interface.
3 Design a java program to connect to database using URL and to 8
connect database using user id and password.
4 Design and develop a Java program that executes insert and delete 8
queries using the prepared statement object.
5 Design a program to execute database transaction. 8
6 Design a code to explain how J2EE component can access Metadata 8
by using ResultSetMetaData interface.
7 Design and develop a program to retrieve the data from database. 8
8 Design a program to insert rows in ResultSet. 8
9 Design a program to delete rows from a ResultSet. 8
10 Design a program to connect to database with following information: 8
Driver :JDBC/ODBC bridge
URL :”jdbc.odbc:Ex”
Username :”xyz”
Password :”123”

You might also like