0% found this document useful (0 votes)
10 views8 pages

java 22-23

This document is an examination paper for the B.C.A. Fourth Semester in Internet and Java Programming, detailing important instructions for candidates regarding the examination process. It includes a series of multiple-choice questions covering various topics related to Java programming, applets, servlets, and web technologies. The paper is structured to assess the candidates' understanding of Java concepts and their application in programming.

Uploaded by

xyz010010001
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 views8 pages

java 22-23

This document is an examination paper for the B.C.A. Fourth Semester in Internet and Java Programming, detailing important instructions for candidates regarding the examination process. It includes a series of multiple-choice questions covering various topics related to Java programming, applets, servlets, and web technologies. The paper is structured to assess the candidates' understanding of Java concepts and their application in programming.

Uploaded by

xyz010010001
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/ 8

4299829

Serial No. of Booklet :

Code No. :1296


B. C. A. (Fourth Semester) Examination, 2022-23
AFFIX PRESCRIBED
RUBBER STAMP Paper Second
INTERNET AND JAVA PROGRAMMING
Course CodeBCA-402T (Major)
In Figures (3cat ):
Roll No.
In Words (eret ):

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.

2. Immediately on receipt of the question 2


booklet, the candidate should check up the
booklet and ensure that it contains all the
pages and that no question is missing. If the
candidate finds any discrepancy in the
question booklet, he/she should report the
invigilator within 10 minutes of the issue of
this booklet and a fresh question booklet
without any discrepancy is obtained.
3 No second question booklet shall be given to a
candidate under any circumstances after 10
minutes. The candidate should be careful in
handling the question booklet and in filling the
OMR answer sheet given separately with this
booklet.

(Contd. on the last page /3a farA stt y.


1. Which of these methods is a part of 5. Applet works at client side so less
Abstract Window Toolkit (AWT) ? response time.

) display0 (A) False


(B) print(0 (B) True.
(C) paint) (C) Not clear

D) drawString) (D) None of these

6 Applets cannot make network


2 Which of these package is used for
connection exception to the server
text formatting in Java programming
host from which it originated.
language ?
A False
(A) 'java.io
B True
(B) java.awt (C) Not clear
(C java.awt.text (D) None of these
(D) java.text
7. Applet runs inside the browser and
3. -Which of this class can be used to does not work at client side.
format dates and times ? (A) False
(A DateFormat B) True
(C) Not clear
(B) SimpleDate
(D) None of these
(C) textFormat
D) None of these 8. Which is a special type of program
that is embedded in. the webpage to
4. Which method is called only once
generate the dynamic content ?
during the runtime of your applet ?
(A) Browser
(A) destroy)
(B) Package
(B) stop)
(C) paint(0 C) Applet
(D) None of these
(D) init)

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) KeyEvent (B) response. sendCookie(cookie);


(B) Page (B) war
(B) ActionEvent (C) response.createCookie(cookie); (C) Session (C) zip
(C) AdjustmentEvent (D) None of these (D) Both (A) artd (B)
(D) None of these
(P) WindowEvent
Which of these ways used to 33. JSP stands for 37. How does applet and servlet
29. e****p.e*****

25 Which of these methods can be used from an applet to


communicate (A) Java Server Phase communicate ?
to determine the type of adjustment servlet ?
event ? (B) Java Server Pages (A) HTTP Tunneling
(A) HTTP Communication

(Y Java Side Pages (B) HTTP


(A) getAdjustmentType) (B) Socket Communication
(B) getEventObjectType0 (C) RMI Commnunication
(D) All of the above (C) HTTPS

() getType) (D) FTP


D) All of the above 34. Which of the following is a server
D) getEventType)
address
30. Which of the following IP side technology ? 38. Number of primitive data types in
26.. What. are the types of functions in classes is a multicast address
?
(A css Java are..
Java Language ? (A) Class A
(B) javaScript A 8
(A) Pre-Defined Functions (B) Class B
(C) html (B) 6
(B) User Defined Functions (C) Class C
(D) jsp (C) 4
(C) Both (A) and (B) (D) Class D
(D) None of these
D) None of these
Which of the following is an approach 35. What is a recursive function ?
31.
string
following in Web 39. When an array is passed to a method,
27. Which of the for state maintenance
(A) A method which calls itself.
functions is a built-in function in
what does the method receive ?
applications ? (B) A method that calls other
Java ?
(A) Cookies
(A} The length of array
function.
(A) compareTo) (B) The copy of array
(B) URL Rewriting (C) Both (A) and (B)
(B) equals) (C) The reference of array
(C) Hidden Form Field (D) None of these
(C) concat) (D) All of the above
D) All of the above
D) All of theabove 1296 /@
(7)
P.T.O.
1296 /@ (6)
definition of a
40. Arrays in java are 43. Identify the corrected 46. Identify the modifier which cannot be 50. Which interfaces provide methods
used for constructor :
package : for batch processing in
(A) class collection of
(A) A package is a (A) static
JDBC ?
(B) editing tools. (B) dynamic
collection of (C) abstract
() object reference (B) A package is a (A) java.sql.ReadyStatement
classes and interfaces. (DY volatile
D) None of these B) java.sql.Statement
collection of
(C) A package is a 47. What is the implicit return type of
(C) java.sql.PreparedStatement
41. Output of Math.floor(5.6) : classes. constructor ?
collection of
(A) S (D) A package is a (A) static (D) Both (B) and (C)
interfaces. (B) void
(B) 6 51. Which class has traditionally been
the (C) no return type
(C) 5.0N
44. Identify the keyword among
(D) a class object in which it is the backbone of the JDBC
following that makes a variable
(D) 6.0 belong to a class, rather than
being defined architecture ?
class.
is defined for cach instance of the 48. The assignment of more than
42. Which of'the following statements one (A) the JDBC driver manager
(A) static function/method to a particular
wrong about inheritance ? operator is.
(B) the JDBC driver test suite
(B) dynamic ********e**.

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

example of web 77. What do we call the people we send


73. Which is not the 81. s..is used to find and fix bugs
69. What is a web browser ? an e-mail to ?
browser? in the Java programs.
to view HIML
(A) A program used (A) Microsoft Edge (A) SPAM (A) JRE
documents

a (B) Safarix (B) Contacts (B) JDB


(B) A program that can display
(C) Brave Browser (C) JDK
webpage (Y Recipients
the (D) JVM
(C) It enables user to access (D) Avast
(D) Inbox
resources of internet
website to another What does the expression
74. Moving from one 78. In MS-Office, ........is the software
82. float
(Dy AIl of the above website is called. a=35/0 return ?
for managing e-mails.
70. STP stands for (A) Downloading (A) Run-time exception
Pair
(A) MS-Publisher
(A) Shielded Transport à Surfing (B) 0
onnectors
B MS-Outlook
(C) Browsing ( Infinity
(C) MS-Acce[s
(B) Shielded Twisted Pair cable (D) Both (B) and (C) (D) None of these
(C) Shielded Twisted Pair (D) None of these
address 83. Java is a
connectors
75. The second part of e-mail programming
(D) None of these identifies
79. What is the main folder in Gmail 2 language.
sharing name of company (A} Inbox (A) code-dependent
71. A computer network permits
name of the e-mail server (B) Trash (B) sequence-dependent
of .....
(C) name of individual user (C) platform-independent
(A) Information (C) SPAM
(D) name of the mobile phone ) AIll of the above
(B) Resources (D) Outbox
ey Both (A) and (B) operator 84. Evaluate the following Java
(D) Noné of these 80. Which of the following is not a Java
76. What sends a copy of an e-mail to a expression, if x= 8, y= 5, and
feature ? z= 10:
h2. Wi-Fi is a type of new recipient ?
KA) Use of pointers ++z+y-y+z+x++
4 Wireless LAN (A) Forward

(B) Dynamic (A) 24


B) Wireless MAN B) BCC
(C) Architecture Neutral B) 25
(C) Wireless WAN (C) Reply
(C) 28
(D) All of the above (D) Reply All (D) Object-oriented (D) 30
(12 ) 1296 /@
1296 /@ (13 )
P. T. O.
ght

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.

You might also like