0% found this document useful (0 votes)
34 views10 pages

Adobe Scan 28 Apr 2025

This document is an examination booklet for the B.C.A. Fourth Semester in Internet and Java Programming, containing instructions for candidates and various multiple-choice questions related to Java programming concepts and internet protocols. The exam is scheduled for a duration of 2 hours with a maximum score of 75 marks. Candidates are instructed on how to handle the question booklet and answer sheets, as well as the importance of reporting any discrepancies immediately.

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)
34 views10 pages

Adobe Scan 28 Apr 2025

This document is an examination booklet for the B.C.A. Fourth Semester in Internet and Java Programming, containing instructions for candidates and various multiple-choice questions related to Java programming concepts and internet protocols. The exam is scheduled for a duration of 2 hours with a maximum score of 75 marks. Candidates are instructed on how to handle the question booklet and answer sheets, as well as the importance of reporting any discrepancies immediately.

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

4097123

Serial No. of Booklet :

Code No.: 1296


B.C. A.(Fourth Semester) Examination,
AFFLX PRESCRIBED 2023-24
RUBBER STAMP Paper Second
INTERNET AND JAVA PROGRAMMING
Course Code BCA-402T (Major)
In Figures 3ci ):
2 4- 4o 283 6
Roll No.

In Words (eri ): t KJJI g Z ft 5T


Date :
Time: 2 Hrs.
Signatuçe 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 the OMR answer sheet at
the end andnowhere 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 gfereat fAG 10
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 3.
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 / a ac srH g. )


1, Which of these methods are
used 5. What is a listener in context to
to register a keyboard
event event handling?
listener ?
(A) A listener is a variable that is
(A) KeyListener( ) notified when an event
(B) addKistener( ) Occurs.
(C) addKeyListener( )
NBY A listener is a object that is
(D) eventKeyboardListener( ) notified when an event
2 Which of these methods are used Occurs.

to register mouse motion (C) A listener is a method that is


listener ? . notified when an event
(A) addMouse( ) 0Ccurs.

(B) addMouseListener( ) (D) None of the mentioned


(e) addMouseMotionListner(
The JdbcTemplate class offers
(D) eventMouseMotionListener )
template method for batch update
3. Which of these events will be operations
generated if we close an Applet's (4) batchUpdat( )
window ? (B) update( )
A) ActionEvent (C) All of the mentioned
(B) ComponentEvent (D) None of the mentioned
(C) AdjustmentEvent 7. The JdbcTemplete class declares a
(D) WindowEvent
number of overloaded query()
4. Event class is defined in which of template methods to control the
these libraries ? overall query process.
(A) [Link] KÁ) True
(B), [Link] (B) False
(C) [Link] (C) Both (A) and (B)
(9) [Link] (D) None of the above
e (3) 1296 / 00
8. The primary interface that allows 12. On applying Left shift operator,
16. Which of the following is not true 20. How constructor can be used for a
you to process the current row of <<, on integer bits are lost one
the result set: about Java beans ? servlet 2
they are shifted past which (A) Implements [Link]. (A) Initialization
(A) PreparedStatementSetter /
position bit ? Serializable interface (B) Constructor function
(B) PreparedStatement Creator
(A) 32 (B) Extends [Link] (C) Initialization and Constructor
(C) RowCallbackHandler class function
(D) A!lof the mentioned (B) 3 (D) Setup( ) method
(C) Provides no argument ava web
(C) 30 21. What is the difference between
9 RowCallbackHandler purpose is to constructor
map a single row of the result set (D) 33 (D) Provides setter and getter Servlets and Applets ?
(i) Servlets execute on Server;
to a customized object. 13. Which of these class is super class methods for its properties
Applets execute on browser
(A) True 17. Which file separator should be
of all the events ? (ii) Servlets have no GUI; Applet
(B) Fals used by MANIFEST file ? has GUI
(C) Both (A) and (B) JA) EventObject (iii) Servlets creates static web
(D) None of the above (B) EventClass (A)
(B) \
pages; Applets creates
(C) ActionEvent dynamic web pages servl
10. Which of these events will (C) -
(D) ItemEvent (iv) Servlets can handle only a
be notified if scroll bar (D) // single request: Applet can
manipulated ? 14. Method to retrieve the JDBC
18. Which of the following is correct handle multiple requests
(A) ActionEvent template :
Codes:
error when loading JAR file with (A) (). (ü), (üi)are correct.
(B) ComponentEvent (A) setJdbcTemplate( ) duplicate name ? (B). (), (i) are correct
(C) AdjustmentEvnt
(D) WindowEvent
(B) getTemplate( ) (A) [Link] (C) (), (iii) are correct.
(C) getJdbc( ) (B) [Link] (D) ((), (i), (iiü), (iv) are correct
11. RowMapper (C) [Link]
implementation D) getJdbcTemplae( 0 22, Which of the following code is pe
which can automaticaily map used to get an attribute in a HTTP
a 15. Which of the following is (D) [Link]. DuplicateClassEror
TN to a new instance of the not an Session object in servlets ?
19. Java Beans are extremely (4) [Link](String
specified class : Enterprise Beans type? name)
secured.
(A) BeanPropertyRow Mapper A) Doubleton (B) [Link](String
B) BeanPropertyRow (A) True name)
(B) Singleton
(C) All of the mentioned (B) False (C) [Link]
(C) Stateful (C) Both (A) and (B) (String name)
(D) None of the mentioned (D} [Link](String
(D) Stateless (D) None of the above name)
(4)
1296 / oo (5) 1296 / o

() 1IE IEICIEnce oI array


(B) equals(0
(C) Hidden Form Field (D) None of these (D) All of the above
(C) concat()
AD) All ofthe above 1296 /@
(D) All of the above (7)

1296 /
(6)
25. What is internet ?
23. When destroy( ) method of a filter 28. ISP exchanges internet traffic 32. Which one of the following is not
is called (A) A single network between their networks by an application layer protocol used
in internet ?
(4Y The destroy( ) method is (B) A collection of unrelated (A) internet exchange point
(4} Remote procedure call
called only once at the end of computers
(B) Subscriber end point (B) Intermet relay chat
(C) Interconnection of local area (C) isp end point (C) Resource reservation pratocol
the life cycle of a filter.
(D) internet end point (D) Local procedure call
(B) The destroy( ) method is networks
33. Which protocol assigns IP address
called after the flter has (D) Interconnection of wide area 29. Which of the following protocols
to the client connected in the
is used in the internet?
executed doFilter method. networks internet?
(A) HTTP
AA) DHCP
(C) The destroy() method is 26. To join the intenet, the computer (B) DHCP (B) IP
called only once at the has to be connected to a (C) DNS (C) RPC
beginning of the life cycle of (D) RSVP
(A) internet architecture board (D) DNS, HTTP and DHCP
a filter. (B) internet society 34. Which one of the following is not
30. The size of an IP address in IPV6
used in media access control ?
(D) The destroyer() method is (C)_ internet service provider (A) Ethemet
called after the filter has (D) different computer (A) 32 bits (B) Digital subscriber line
executed. (B) 64 bits (C) Fiber distributed data
27. Internet access by transmiting interface
(C) 128 bits
24. How is the dynamic interception digital data over the wires of a (D) Packet switching
(D) 265 bits
of requests and responses to local telephone network is 35. A network that links many
31. Internet works on
iransform the information done ? provided by different types of computers all
(A) packet switching over the world:
.(A) servlet container (A) leased line
(B) circuit switching (A) Intranet
(B) servlet config (B) digital subscriber line
(C) both packet switching and (B) Internmet
(C) servlet context (C) digital signal line circuit switching (C) ARPANET
(D) servlet filter (D) digital leased line (D) LAN
(D) data switching
S
(6) S (7) 1296 / o
1296 / o
36. Internet was evolved from the 40. TCP stands for:
44, URIL stands for : 47. Which component is used to
basic ideas of ARPANET. (A) Transmission Control
compile, debug and execute the
Program (A) Uniforn Resource
(A) True Java programs ?
(B) Transmission Control (B) Uniform Research Locator
(B) False (A) JRE
Protocol (C} Uniform Resource Link (B) JIT
37. A service that allows a user to
(C) Transfer Control Program
(D) Uniform Research Link (C), JD/
login into another computer (D) Transfer Control Protocol
(D) JVM
somewhere on the Internet: 45. Who invented Java Programming ?
41. Any system that uses the HTTP
48. Which one of the following is not
(A) Telnet protocol is called ....... (A) Guido van Rossum
a Java feature ?
(B) FTP (A) Web Browser E) James Gosling (A) Object-oriented
() e-Mail (B) Web Server (C) Dennis Ritchie (B) Use of pointers
(D) UseNet (C) wwW
(C) Portable
(D) TCP/IP
(D) Bjarme Stroustrup
38. An internet service that allows the (D) Dynamic and Extensible
42. Any computer that can access the 46, Which statement is true about
user to move a file : 49. Which of these cannot be used for
server is called: Java ?
(A FP a variable name in Java ?
(A} Web Server
(B) Telnet (A) Java is a sequence-dependent (A) identifier and keyword
(B) Web Browser
programming language. (B) identifier
(C) UseNet (C) User
(C) keyword
(D) Time Sharing (D) Web Client (B) Java is a code-dependent
(D) None of the mentioned
89. 43. Allows the user to create and programming language.
Anonymous FTP files are called
50. What is the extension of java code
accessible files. maintain a personal list of favorite (C) Java is a platform-dependent
files ?
URL addresses : programming language.
(A) Privately (A) js
(A) Software platform
(B) Publicly (D) Java is (B) .txt
(B) Web Servers
(C) Batch independent programming (C) .class
.(C) Web Browsers
(D) User language. (D) jaya
(D) wwW
1296/
(8) 1296 /
(9)
6

51. What will be the output of the 54. What is nat the use of "this" 56. Which of the following is a type of 58. What is Truncation in Java ?
following Java code? keyword in Java ? polymorphism in Java (A) Floating-point value assigned
class increment { Programming ?
(A) Referring to the instance to a floating type
public static void main (A) Multiple polymorphism
variable when a local variable (B) Floating-point value assigned
(String args [ ) (B) Compile time polymorphism
has the same name to an integer type
(C) Multilevel polymorphism
(C) Integer value assigned to
int g =3; (B) Passing itself to the method (D) Execution time
floating type
[Link] (++g *8): of the same class polymorphism
(D) Integer value assigned to
(C) Passing itself to another 57. What will be the output of the
integer type
method following Java program ?
(A) 32 class leftshift operator 59. What will be the output of the
(B) 33 (D) Calling another constructor in
following Java program ?
(C) 24 constructor chaining public static void main class output
(D) 25 $5. What will be the error in the (String args [))
public static void main
52. Which environment variable is
following Java code ?
(String args ))
used to set the java path ? byte x = 64;
byte b = 50;
(A) MAVEN Path int i;
b=b*50; int arr[ ] ={1, 2, 3,4, 5}:
(B) JavaPATH byte y;
(A) bcannot contain value 50 for ( int i = 0;
(C) JAVA i=x<<2;
(B) b cannot contain value 100, i<[Link] - 2; ++i)
(D) JAVA HOME y = (byte) (x<<2);
[Link](i + *on + y); [Link](arr [i] + * ");
53. Which of the following is limited by its range
not an
DPs concept in Java ? (C) No error in this code
(A) Polymorphism (D) operator has converted (A) 1234 5
(A) 0 256
(B) Inheritance b* 50 into int, which cannot (B) 123 4
(B) 0 64
(C) Compilation be converted to byte without (C) 12
(C) 256 0
(D) Encapsulation
casting (D) 64 0 (D) 123
(10 ) S (11) 12
1296 / oo
the following is not a
67. Which of
Which exception is thrown when 65. What will be the output of the
62.
What is the extension of compiled
Java Profiler?
60. following Java program ?
java classes ? Java is out of memory ? (A) JProfiler
class output (B) Eclipse Profiler
(A) .txt (A) MemoryError
(Ç) JVM
(B) js (B) OutOfMemoryError
public static void main
(D) JConsole

(C) .class (String args [ |) package contains


(C) MemoryOutOfBounds
68. Which of these
(D) java stack overflow in
the exception
Exception SringBuffer sl = new
61. What will be the output of the Java ?
following Java code snippet ? StringBuffer ("Quiz"); (A) [Link]
(D) MemoryFullException
StringBuffer s2 = sl. (B) [Link]
class abc
are selection reverse(); (C) [Link]
63. Which of these
(D) [Link]
public static void main statements in Java ?
[Link](s2);

these statements is
(String args [ ) 69. Which of
(A) break Thread ?
incorrect about

start() method
is used to
(A) QuizziuQ (A)
if([Link]>0) (B) continue the thread.
begin execution of
[Link] (B) ziuQQuiz tobegin
(C) for() (B) run(O method is used
before
([Link]); (C) Quiz execution of a thread
(D) if) start( )
method in special
(D) ziuQ
keywords is used
cases.

64. Which of these following is a by


of the can be formed
(A) The snippet compiles and 66. Which
(C) A thread
Java ? Java ?
of every class in
Runnable

but does not print to define interfaces in superclass implementing


runs
interface only.
anything (A) intf (A) ArrayList
by a
can be formed
(D) A thread
3) The snippet compiles, runs (B) Abstract class Thread
extends
(B) Intf class that
and prints 0 ( ) Object class
class.
(C) The snippet compiles, runs
(C) interface
1296 / co
(D) String
and prints 1 (D) Interface (13)
(D) The snippet does not compile S
1296 / o
(12)

above
(D) All of the
P.T.
(7)
above 1296 /@
All of the
A

displayed
77. Which of these methods is a part 80. What is the .message is
Which of the following is true the
70. Which of these keywords are used in the Applet made by
about servlets ? of Abstract Window Toolkit
for the block to be examined for following Java program ?
(A) Servlets can use the full (AWT) ?
exceptions ? import [Link]. *;
functionality of the Java class
(A) check (A) display( ) import [Link].
libraries.
(B) throw (B) paint() public class myapplet extends
(B) Servlets execute within the
(C) catch address space of web server, Applet
(C) drawString( )
D) try platform independent and {public void paint
(D) Transient( )
71. Which one of the following is not uses the functionality of Java (Graphics g)
an access modifier ? class libraries. 78. Which of these modificrs can be

(A) Protected (C) Servlets execute within the used for a variable so that it can be
[Link] ("A
address space of web server.
(B) Void accessed from any thread or parts Simple Applet", 20, 20);
(D) Servlets are platform
(C) Public
independent because they are of a program ?
(D) Private written in Java.
(A) transient
72. What is the numerical range of a (A) ASimple Applet
75. Which of these functions is called (B) volatile
char data type in Java ? to display the output of an applet ? (B) A Simple Applet 20 20
(C) global
(A) 0 to 256
(A) display( ) (C) Compilation Eor
(B) - 128 to 127 (D) No modifier is needed.
(B) paint() (D) Runtime Error
(C) 0 to 65535
(C) displayApplet( ) 79. Which of these operators can be
(D) 0to 32767 81. Which component is used to
(D) PrintApplet( ) used to get runtime information
compile. debug and execute java
73. Which class provides system 76. Which of these methods can be about an object ? program ?
independent server side
used to output a string in an
AA) getInfo (A) JVM
implementation ? Applet ?
(A) Server (A) display( ) (B) Info B JDK
(B) ServerReader (B) print() (C) instanceof (C) JIT
(C) Socket
(C) drawString( ) (D) getinfoof (D) JRE
(D) ServerSocket (D) transient( ) 1296/ c0
(15 )
S (14 ) 1296 / o

- - - u u (B)
(B) equais) (C) The reference of array
(C) Hidden Form Field
(D)) None of these
(C) concat() (D) All of the above
AB) AIl of the above
(D) All of the aboveV 1296 /® (7) P. T.O.

1296 /@ (6)
82. Which component is responsible 85. Which statement is true about 8S. Which was the first network ? 91. Which of the following contains
Java ? both date and time ?
for converting bytecode into (A) ANSNET
(A) java. [Link]
machine specific code ? (A) Platform independent (B) NSFNET
(B) [Link]
programming language (C) ARPANET
(A) JVM (C) [Link]

(B) JDK (B) Platform dependent (D) CSNET (D) [Link]

programming language 89, How can we identify whether a 92. Which of the following is
(C) JIT
compilation unit is class or advantage of using JDBC
(C) Code dependent
(D) JRE
interface from a class file ? connection pool ?
programming language
(A) Slow performance
83. Which component is responsible to (A) Java source file header
(D) Sequence dependent (B) Using more memory
(B) Extension of compilation unit
run java program ? programming language (C) Using less memory
(C) We cannot differentiate
(A) JVM (D) Better performance
86. Which of the following is invalid between class and interface
93. Which of the following
B JDK
identifier with the main method ? (D) The class or interface name of using
isadvantage
(C) JIT should be postfixed with unit PreparedStatement in Java ?
(A) public
(D) JRE type (A) Slow performance
B) static
(B) Encourages SQL injection
90. What is use of interpreter ?
84. Which component is responsible to (C) private (Ç) Prevents SQL injection
(A) They convert bytecode to (D) More memory usage
optimize bytecode to machine (D) final
machine language code.
code ? 94. Which one of the following
code
87. WWW stands for ... (B) They read high level contains date information ?
'A) JVM and execute them. (A) [Link]
(A) Web Window Word
(B) JDK intermediated (B) [Link]
(A They are

(B) World Wide Web between JIT and JVM. (C) [Link]
(C) JIT
(D) [Link]. TimeStamp
(C) Working Window Web JIT.
(D) JRE (D) It is a synonym for
1296 / co
(D) None of the abOve (17 )
S
(16 ) 1296 / o

1296 / ( (7) P.T.O.

(6)
1296 /@
95. What does setAutoCommit( false) 98. Which of the following is method
do ?
of JDBC batch process ?
(A) commits transaction after (A) setBatch( )
each query (B) deleteBatch( )
(B) explicitly commits (C) removeBatch( )
transaction
(D) addBatch( )
(C) does not commit transaction
99. Which of the following is used to
automatically after each
rollbackaJDBCtransaction ?
query

(D) never commits transaction (4) rollback()


(B) rollforward( )
96. Which of the following is used to
(C) deleteTransaction( )
call stored procedure ?
(D) RemoveTransaction( )
(A) Statement

(B) PreparedStatement 100. Which of the following is not a


(C) CallableStatment JDBCconnection isolation levels ?
(D) Called Statement (A) TRANSACTION NONE

97. Which of the following is used


(B) TRANSACTION READ

to limit the number of rows COMMITTED

returned ? (C) TRANSACTION


(A) setMaxRows(int i) REPEATABLE READ

(B) setMinRows(int i) (D) TRANSACTION NON

(C) getMaxRows(int i) REPEATABLE READ

(D) getMinRows(int i)

(18 ) 1296/ oo

(6)

You might also like