Model Oop-III 24
Model Oop-III 24
4 What is javax.servlet.Servlet?
A. interface B. abstractclass C. concreate class D.None
5 Which of the following code is used to get cookies in servlet ?
A. response.getCookies() B. request.getCookies()
C. Cookies.getCookies() D. None of these.
6 Which is not a directive?
A. Include B. Page C. Export D. Taglib
7 TLD Stands For
A. Tag Library Data B. Tag Library Domain
C. Tag Library Descriptor D. Tag Library Description
8 Min and Max priority of thread in java multithreading are_____________
A. 1, 10; B. 0,255; C.0,10; D. 1, 256;
9 Which will contain the body of the thread?
A. run(); B. wait(); C. start(); D. terminate();
10 Which is the name of the method used to start a thread execution?
A. wait(); B. start(); C. terminate(); D. notify();
Q. 2 Short Question (Any TEN) [20]
1 Write a syntax or example for open a connection.
2 List out the operation can be performed on List.
3 Differentiate autoboxing and unboxing.
4 Explain servlet init() method in brief.
5 Explain servlet getServletInfo() method in brief.
6 Draw the Web Based Architecture.
7 List out the advantages of JSP and explain any one.
8 How to Declare variables and methods in JSP? Explain with Syntax and Example.
9 List the JSP Components.
10 What is Java Thread?
11 List Thread implementation in java. Explain any one.
12 Define the following.
a. void start()
b. void run()
Q. 3
[A] Explain JDBC architecture in detail. [06]
[B] Write a step of JDBC Program for executing any query. [04]
OR
[A] What is Iterator interface? Explain way to iterate the elements of the collection in java. [06]
[B] Explain Vector in detail with example. [04]
Q. 4
[A] Explain Servlet Life Cycle in detail with diagram. [06]
[B] Explain Cookies with Servlet with example. [04]
OR
[A] Write a note on the HTTPServletClass with doGet() and doPost() method with example. [06]
[B] Explain Session API in detail. (HttpSession Interface) [04]
Q. 5
[A] Explain the execution process of JSP in detail. [06]
[B] Write a difference between Servlet and JSP. [04]
OR
[A] Explain the Life cycle of JSP with one example. [06]
[B] Write a note on attributes JSP Page directive in detail. [04]
Q. 6
[A] Explain Thread Synchronization and how to Implement synchronization with example. [06]
[B] Draw Life Cycle of a Thread and explain in detail. [04]
OR
[A] List Thread methods and explain any five. [06]
[B] Explain Thread creation in Java. [04]
**** Best of Luck****