java 22-23
java 22-23
Date :
Time: 2 Hrs. Signature of Invigilator
Max. Marks : 75
Important Instructions :
1. The candidate will write his/her Roll Number
1
only at the places provided for, i. e., on the
cover page and on th» OMR answer sheet at
the end and nowhere else.
1296 / (3)
Riyht
a ^wing 17. Which of the following is not an 20. Which of the following package
13 Which of the following is not
9 What is used to run an Applet ? Enterprise Beans type ? contains servlet classes ?
container ?
(A) An HTML file (A) Stateless (A) javax.servlet. http
(A) JFrame
(B) An Applet Viewer tool B) Doubleton (B) javax.servlet
(B) JDialog
(C) An Applet Screen tool (C) JTabbedPane (C) Singleton (C) Both (A) and (B)
(D} Both (A) and (B) (D) JButton (D) Stateful (D) None of these
10. Which of the following is not used as 14. Which are not looping
structures in
18. The difference between servlets and
21. Which of these packages contains all
loop in Java ? Java ?
the classes and methods required for
applets is..
even handling in Java ?
(A} do--while loop (A) for (A) Servlets execute on Server
(B) for loop (B) while (A) java.applet
whereas Applets execute on
(C) while loop C) if-else browser
(B) java.awt
(D) None of these
(C) java.event
(D) None of these (B) Servlets have no GUI whereas
(DY java.awt.event
events is fired Applet has GUI
embedded 15. Which of the following
11. Applets are designed to be
when a button is clicked ? (C) Both (A) and (B) 22. Which of these class is super class of
within an
all the events ?
(A) actionPerformed
(D) Servlets creates static webpages
(A) JavaScript
(B) mousePressed whereas Applets creates
A) EventClass
(B) HIML (CY mouseReleased (B) EventObject
dynamic webpages
(C) SQL (C) ItemEvent
(D) None of these
(D) Css 19. Which of the following functions will (D) ActionEvent
methods is
16. Which of the following return the total number of characters
12. What is Swing in Java ? used to add a component to a 23. Which of these events is generated
in a string ?
(A) A graphical user interface (GUI) container ? when a button is pressed ?
(A) javaString. lengthØ
toolkit (A) addComponent)
-(B) javaString.len)
(A KeyEvent
(B) A programming language (B) addContainer) (B) ActionEvent
(C) javaString.count)
(C) A type of dance () addComponentTo Container) (C) AdjustmentEvent
(D) None of these (D)) WindowEvent
DY None of these (D) add()
1296 /@ (5)
(4) P.T.O.
1296 /@
32. Which is least visibility scope for 36. Which of following are java web
code sends a
28. Which of the following Java bean in JSP ?
24. Which of these events is generated by applications packaged ?
cookie in servlet ?
scroll bar ? (A) Request (A) jar
( A ) r e s p o n s e . a d d C o o k i e ( c o o k i ê ) :
a
(A) The inheriting class is called (C) abstract (A) Operator overloading (C) the JDBC-ODBC bridge
subclass. (D) volatile (B) Operator instance (D) All of the above
(C) Operator overriding
(B) Protected members of a class 45. What is video conferencing ?
(D) Operator oyer-assignment 52. JDBC stands for
can be inherited.
(A) In-person interactive session
49. What is an ISP ? (AY Java database cóncept
(C) Inheritance is one of the features B Communicating using video and
audio with special equipment (A) Intermal Service Provider (B) Java database communications
of OOP.
(C) Sending text messages B) Intermet Service Provider
(D) Private members of a class can (C) Java database connectivity
(D) Pre-recorded meetings to bring (C) Internet Service Protocol
be inherited and accessed. (D) Noné of these (D) Java database connection
businesses together
1296 /@ (9)
1296 /@ (8) P.T.O.
IP Addresses, which class is
is not used by
internet ? 61. What is e-mail ?
57. Which term
transmit information reserved for multicasting ?
53. Which is used to (A) Musical messaging service
(A) UPs
Wide Web ? (B) Speed message transfer (A) Class A
on the World to
BX HTTP
(A HTPp b P (B) Class B
location
(C) TCP
(B) HTTP (C) Class C
(C) Method of exchanging messages
(C) HPPT HeP7 (D) P
via etectronic devices (D) Class D
above also. known
D) All of the 58. Web address is
DY None of these 66. Which term is used for creating of
Programming as
54. Who developed Java web pages ?
62. E-mail stands for
Language ? (A) ULR
(A) HTTP
(B) LRU (AY Electronic mail
A) Gilad Bracha
(BY HTMLA
(C) LUR (B) Electrical mail
(B) Bill Joy
(C) FTP
(CY James Gosling (D) URLA (C) Electronic mailing service
(D) URL
(D) Guido van Rossum ptotocol of the (D) Both (A) and (B)
59. Select the standard
Which medium is not suitable for e Internet:
67. Junk e-mail is also known
55. 63. WwW stands for
as
mail? (A) HTML
(A) Web Window Word
(A) Paper (B) Java (B) World Wide Web
A) Spam
(B) Intranet (C) TCP/P (B) Sniffer
(C) Working Window Web
(C) Internet (D) Flash (C) Spoof
(D) Extranet
(D) None of these
(D) None of these
60 What is the intenet ?
All keywords in Python are 64 FTP stands for
56. transfer 68 Which was the first network ?
Java (A) Computer program to
in.. (A) File Transmission Protocol
data (A) ANSNET
(4 Capitalized (B) Form Transmission Protocol
(B) Network of networks (B) NSFNET
B) lower case
(C) Programming language (C) Form Transfer Protocol
(C) UPPER CASE (© ARPANET
(D) None of these (D) File Transfer Protocol
(D) None of these (D) CSNET
1296 /@ (11)
1296 /@ (10 ) P.T. O.
11
has
process, a local variable 93. In java, jar stands
85. Which of the following for loop 89. In which
instance
for.. 97. What is the, variable declared in a
as one of the
declarations is not valid 2 the samne name (AY Java Archive Runner class for the use of all methods of the
variables ? class called ?
(A) for (int i=7;is77; i+= 7) (A) Variable Shadowing
(B) Java Archive
(A) instance variable
(B) for (int i = 99; i=0; i9) (B) Serialization (C) Java Application Resource (B) reference variable
(C) for (int i = 20; i >= 2;--i) (C) Multi-threading (D) Java Application Runner (C) dereference variable
(D) Abstraction (D) None of these
(D) for (int i = 2; i<- 20; i= 2* i
94. How many threads can be executed
is an at 98. Which are the comnmon security
of the following
90. Which a time ?
86. Which of these is not a relational of the Panel restrictions in applets ?
immediate subclass
operator ? (A) Only one thread (A) Applets can't load libraries or
class ?
define native methods.
(A) Frame class (B) Two threads
(B) An applet .can't read every
(B) <= (B) Dialog class C) Multiple.threads system property.
(C) Applet class KC) Both (A) and (B)
(C) (D) None of these
(D) Window class (D) None of these
(D)
95. Ifthree threads trying to share a single
91. Which keyword is used for accessing 99. Which of these methods can be used
87. The global variables are .....oassn object at the same time, which
the features of a package ? condition will arise in this scenario?
to output a string in an applet ?
(A) Internal
(A) import (A) Race condition (A) drawString0)
B) External (B) export (B) transient)
(B) Recursion
(C) Both External and Internal (C) package (C) display()
(C) Time-Lapse
(D) None of these (D) extends (D) print)
(D) Critical situation
88. What is the extension of java code 92. Which of the following is a reserved 100. Which of these functions is cal<ed to
96. Identify the return type of a method
files ? keyword in Java ?
that does not return any value: display the output of an applet?
(A) main (A) display Applet)
(A) js (A) double
(B) system B) PrintApplet)
(B) .txt (B) int
(C) object (ej void (© display)
(CY java (D) paint0
(D) jv (D) stritfp, (D) None of these
1296 / @
1296 /@ (14 ) (15 ) P.T. O.