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

adv java bsc

This document is a question bank for the B.Sc. Part III Semester VI examination in Advanced Java at Shivaji University, Kolhapur, for March 2022. It includes multiple-choice questions covering topics such as JDBC, servlet life cycle, JSP, and Swing components, as well as descriptive questions for deeper understanding. The document serves as a study guide for students preparing for their examination in Computer Science.

Uploaded by

sankettippe9766
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)
10 views

adv java bsc

This document is a question bank for the B.Sc. Part III Semester VI examination in Advanced Java at Shivaji University, Kolhapur, for March 2022. It includes multiple-choice questions covering topics such as JDBC, servlet life cycle, JSP, and Swing components, as well as descriptive questions for deeper understanding. The document serves as a study guide for students preparing for their examination in Computer Science.

Uploaded by

sankettippe9766
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/ 7

Shivaji University, Kolhapur

Question Bank for March 2022 (Summer) Examination


B.Sc. Part – III Semester – VI (CBCS)
Computer Science Paper – XIII
Advanced Java
Subject Code: 81716

1) Which of the following option leads to the portability and security of Java?
i) The applet makes the Java code secure and portable
ii) Bytecode is executed by JVM
iii) Use of exception handling
iv) Dynamic binding between objects

2) What are the major components of the JDBC?


i) DriverManager, Statement, and ResultSet
ii) DriverManager, Driver, Connection, and Statement
iii) DriverManager, Connection, Statement, and ResultSet
iv) DriverManager, Driver, Connection, Statement, and ResultSet

3) Which is responsible for getting a connection to the database?


i) Driver ii) Connection
iii) Statement iv) ResultSet

4) Which package is used for importing swing components?


i) javax.swing ii) java.swing
iii) java.awt iv) All of these

5) Which of the following is/are steps for the servlet life cycle?
i) Servlet class is loaded ii) Servlet instance is created
iii) init,Service,destroy method is invoked iv) All of these

6) Identify the method which is used to start a server thread.


i) start thread() ii) run()
iii) runthread() iv) start()

7) JDBC is __________
i) Java Database Communications ii) Java Database Concepts
iii) Java Database Connectivity iv) Java Database Connections
8) Which of the following displays components row-by-row in the order in which
they were added to the JFrame?
i) CardLayout ii) FlowLayout
iii) BorderLayout iv)GridLayout

9) The __________ class is used to display the tree structured data


i) JTable ii) JMenu
iii) JTree iv) JSlider

10) Method __________ class object is get called when button is clicked.
i) MouseEvent ii) KeyEvent
iii) ItemEvent iv) ActionEvent

11) Syntax of jsp declaration tag is______


i) <% %> ii) <%= %>
iii) <%! %> iv) <# #>

12) Change in the state of an object is known as___________ .


i) Event ii) listener
iii) Layout iv) application

13) Which of the following interface is used to execute parameterized queries?


i) Statement interface ii) PreparedStatement
iii) ResultSet interface iv) CallableStatement

14) JSP stands for?


i) Java server Pages ii)Java sequence pages
iii) Java standard Pages iv) None of these

15) Which http method sends by browser that asks the server to get the page
only?
i)get ii) put
iii)post iv) option

16) Which of the following package is used in JDBC programming?


i) java.io ii) javax.swing
iii) java.net iv) java.sql

17) Which of the following is not an implicit object of JSP?


i) Out ii) Request
iii) Page iv) Cookie
18) Swing classes are present in _______.
i) javax.swing ii) java.awt
iii) java.swing iv) java.net

19) ____________ method of Statement interface is used to execute specified


query, it may be create, drop, insert, update, delete etc.
i) execute()
ii) executeUpdate()
iii) executeQuery()
iv) executeBatch()

20) ________ resides on server side.


i) Cookies
ii) web page
iii) Servlet
iv) session

21) Which interface provides object to store data fetched by queries from
database?
i) Statement
ii) ResultSet
iii) Connection
iv) None of these

22) Cookies are resides on __________ .


i) web container
ii) server side
iii) client side
iv) none of these

23) In Swing , ___________ class allows the editing of multiple line text.
i) JList
ii) JTextArea
iii) JCheckBox
iv) JTree

24) A ___________is a small piece of information that is persisted between the


multiple client requests.
i) Servlet ii)Table
ii) Cookie iv) URL
25)MVC stands for _________________________
i) Mode View Controller ii) Model View Control
iii) Model View Controller iv) Machine View Controller

26) What is the name of the Swing class that is used for frames?
i) Window ii) Frame
iii) JFrame iv) SwingFrame

27) To create swing components, which of the following is imported?


i) javax.awt.*; ii) java.awt.*;
iii) javax.swing.*; iv) java.swing.*;

28) Swing elements are preceded by the letter __________.


i) S ii) M
iii) J iv) P

29) The life cycle of a servlet is managed by ________________.


i) servlet context ii) servlet container
iii) servlet protocol iv) None of these

30) Which of the following are the life cycle method of jsp?
i) jspInit() ii) _jspService()
iii) jspDestroy() iv) All of these

31) Request processing of JSP is done by calling which method?


i) jspInit() ii) _jspService()
iii) jspDestroy() iv) _jspRequest()

32) Which of the following method helps in jsp page initialization?


i) jspInit() ii) _jspService()
iii) jspDestroy() iv) _jspRequest()

33) “Request” is instance of which one of the following classes?


i) Request ii) HttpRequest
iii) HttpServletRequest iv) ServletRequest

34) Which is not a directive?


i) include ii) page
iii) export iv) taglib
35) Which object of HttpSession can be used to view and manipulate
information about a session?
i) session identifier ii)creation time
iii) last accessed time iv) All of these

36) SWING components are_____.


i) Platform dependent ii) heavy weight
iii)Platform independent iv)both (i) & (ii)

37) Cookies are stored on __________ side.


i) server ii)client
iii)both (i) & (ii) iv)none of these

38) In Swing, ____________ class is used to display data in tabular form.


i)JList ii) JMenu
iii) JTable iv)JTextArea

39) ____________ are session tracking techniques.


i)URL rewriting ii) Hidden Form Field
iii) Cookies iv)All of these

40) Which is passive swing control that does not support any interaction with the
user?
i)JChoice ii)JLabel
iii) JList iv)JButton

Q.2) Attempt any two of the following. [16]


1) Explain Connection, Statement and ResultSet interfaces of JDBC API.
2) Explain different session management techniques in servlet.
3) Explain different components of swing with example.
4) What is JDBC? Explain in detail the process of JDBC.
5) Explain servlet communication in detail.
6) Explain in detail Life cycle of servlet.
7) What is JDBC? Explain JDBC connection steps with simple example.
8) Explain any four components of swing.
9) What is JSP? Explain different scripting elements of JSP.
10) Explain Session tracking technique in servlet.
11) Explain different JDBC drivers in detail.
12) Explain Connection, Statement and ResultSet interfaces of JDBC API.
13) What is JDBC? Explain JDBC connection steps with simple example.
14) Explain Java Database Connectivity with MySQL.
15) Explain any four components of swing.

Q.3) Attempt any four of the following. [16]


1) Write short note on JSP.
2) What is cookie? Explain two types of cookies.
3) Explain any JCheckbox and JRadioButton components in swing.
4) Explain life cycle servlet.
5) Write short note on LayoutManager class.
6) Explain JDBC connection steps.
7) What is JSP? Explain JSP life cycle
8) Differentiate between Servlet and JSP.
9) Explain in detail MVC architecture.
10) Write a note on ServletConfig.
11) Write a note on Servlet API.
12) Differentiate between AWT and Swing
13) Write short note on LayoutManager class.
14) Explain two swing components: JList and JComboBox
15) Explain life cycle of JSP.
16) Explain Statement interface of JDBC API.
17) Differentiate between Servlet and JSP.
18) Write short note on servlet. Write short note on JSP.
19) Write short note on servlet.
20) Explain session management using HttpSession.
21) Explain session management usingURLRewritting.
22) What is cookie? Explain two types of cookies.
23) Differentiate between doGet() and dopost()

24) Explain life cycle of Servlet.


25) Differentiate between Servlet and JSP.
26) Write short note on LayoutManager class.

27) Write short note on FlowLayout class.

28) Explain two swing components:

i) JList
ii) JComboBox.

29) Explain JCheckBox and JRadioButton in brief.

30) Write short note on cookies.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy