Explore topic-wise MCQs in BBA in Computer Applications.

This section includes 218 Mcqs, each offering curated multiple-choice questions to sharpen your BBA in Computer Applications knowledge and support exam preparation. Choose a topic below to get started.

151.

In JSP how many ways are there to perform exception handling?

A. 3
B. 2
C. 4
D. 5
Answer» C. 4
152.

Which JSP Action tags is used to include the content of another resource,it May be jsp, html or servlet?

A. jsp:include
B. jsp:forward
C. jsp:plugin
D. jsp:papam
Answer» B. jsp:forward
153.

Which tag is used to execute java source code in JSP?

A. declaration tag
B. scriptlet tag
C. expression tag
D. none of the above
Answer» C. expression tag
154.

Which technology do we mix our business logic with the presentation logic?

A. servlet
B. jsp
C. both a & b
D. none of the above
Answer» B. jsp
155.

Which action tags are used in JSP for developing web application with Java Bean?

A. jsp:usebean
B. jsp:setproperty
C. jsp:getproperty
D. both b & c
Answer» E.
156.

Which cookie it is valid for single session only and it is removed each time when the user closes the browser?

A. persistent cookie
B. non-persistent cookie
C. all the above
D. none of the above
Answer» C. all the above
157.

What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?

A. genereic servlets
B. httpservlets
C. all of the above
D. none of the above
Answer» C. all of the above
158.

Which methods are used to bind the objects on HttpSession instance andget the objects?

A. setattribute
B. getattribute
C. both a & b
D. none of the above
Answer» D. none of the above
159.

Which type of ServletEngine is a server that includes built-in support for servlets?

A. add-on servletengine
B. embedded servletengine
C. standalone servletengine
D. none of the above
Answer» D. none of the above
160.

Which of these ways used to communicate from an applet to servlet?

A. rmi communication
B. http communication
C. socket communication
D. all mentioned above
Answer» E.
161.

Which object of HttpSession can be used to view and manipulate information about a session?

A. session identifier
B. creation time
C. last accessed time
D. all mentioned above
Answer» E.
162.

Which of these class is used to access actual bits or content information of a URL?

A. url
B. urldecoder
C. urlconnection
D. all of the mentioned
Answer» E.
163.

Which of these methods is used to know the full URL of an URL object?

A. fullhost()
B. gethost()
C. externalform()
D. toexternalform()
Answer» E.
164.

Which of these methods is used to know host of an URL?

A. host()
B. gethost()
C. gethost()
D. gethost()
Answer» C. gethost()
165.

Which of these exception is thrown by URL class’s constructors?

A. urlnotfound
B. urlsourcenotfound
C. malformedurlexception
D. urlnotfoundexception
Answer» D. urlnotfoundexception
166.

Which of these is an instance variable of httpd that is a Hashtable?

A. port
B. cache
C. log
D. stopflag
Answer» D. stopflag
167.

Which of these method of httpd class is used to write UrlCacheEntry object into local disk?

A. writediskcache()
B. writetodisk()
C. writecache()
D. writediskentry()
Answer» B. writetodisk()
168.

Which of these variables stores the number of hits that are successfully served out of cache?

A. hits
B. hitstocache
C. hits_to_cache
D. hits.to.cache
Answer» E.
169.

Which of these is an instance variable of class httpd?

A. port
B. cache
C. log
D. all of the mentioned
Answer» E.
170.

Which of these method is used to find a URL from the cache of httpd?

A. findfromcache()
B. findfromcache()
C. servefromcache()
D. getfromcache()
Answer» D. getfromcache()
171.

Which of these methods of httpd class is used to read data from the stream?

A. getdta()
B. getresponse()
C. getstream()
D. getrawrequest()
Answer» E.
172.

Which of these method of httpd class is used to get report on each hit to HTTP server?

A. log()
B. logentry()
C. loghttpd()
D. logresponse()
Answer» C. loghttpd()
173.

Which of these method is called when http daemon is acting like a normal web server?

A. handle()
B. handleget()
C. handleget()
D. handleget()
Answer» D. handleget()
174.

Which of these method is used to start a server thread?

A. run()
B. start()
C. runthread()
D. startthread()
Answer» B. start()
175.

Which of these method of DatagramPacket is used to find the length of byte array?

A. getnumber()
B. length()
C. length()
D. getlength()
Answer» E.
176.

Which of these method of DatagramPacket is used to find the port number?

A. port()
B. getport()
C. findport()
D. recieveport()
Answer» B. getport()
177.

Which of these class is necessary to implement datagrams? DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE - 45 PROF . SUPRIYA MANE www.dacc.edu.in

A. datagrampacket
B. datagramsocket
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
178.

Which of these method of DatagramPacket is used to obtain the byte array of data contained in a datagram?

A. getdata()
B. getbytes()
C. getarray()
D. recievebytes()
Answer» B. getbytes()
179.

Which of these method of DatagramPacket is used to find port number?

A. port()
B. getport()
C. findport()
D. receivedport()
Answer» B. getport()
180.

Which of these is return type of getAddress method of DatagramPacket class?

A. findaddress()
B. getaddress()
C. address()
D. whois()
Answer» C. address()
181.

Which classes are used for connection less socket programming?

A. datagram socket
B. datagram packet
C. both a and b
D. none
Answer» D. none
182.

how many ports TCP/IP are reserved for specific protocol?

A. 10
B. 1024
C. 2048
D. 512
Answer» C. 2048
183.

how many bits are in a single IP address?

A. 8
B. 16
C. 32
D. 64
Answer» D. 64
184.

Show some networking terminology given below?

A. all
B. ip address
C. protocol
D. mac address
Answer» B. ip address
185.

In Inetaddress class which method returns the host name of IP address?

A. public string gethostname()
B. public string gethostaddress()
C. public string inetaddress getlocalhost()
D. none
Answer» B. public string gethostaddress()
186.

What is the disadvantage of Type-4 Native-Protocol Driver?

A. at client side, a separate driver is needed for each database.
B. type-4 driver is entirely written in java
C. the driver converts jdbc calls into vendor-specific database protocol
D. it does not support to read mysql data)
Answer» B. type-4 driver is entirely written in java
187.

TCP,FTP,Telnet,SMTP are example of?

A. socket
B. ip address
C. protocol
D. mac address
Answer» D. mac address
188.

Which method is used to perform DML statements in JDBC?

A. execute()
B. executequery()
C. executeupdate()
D. executeresult()
Answer» D. executeresult()
189.

How many trAnsweraction isolation levels are defined in javA)sql.Connection interface?

A. 4
B. 3
C. 5
D. 2
Answer» D. 2
190.

Which driver is called as thin-driver in JDBC?

A. type-4 driver
B. type-1 driver
C. type-3 driver
D. type-2 driver
Answer» B. type-1 driver
191.

Which of the following methods finds the maximum number of connections that a specific driver can obtain?

A. database.getmaxconnections
B. connection.getmaxconnections
C. databasemetadata)getmaxconnections
D. resultsetmetadata)getmaxconnections
Answer» D. resultsetmetadata)getmaxconnections
192.

When the message “No Suitable Driver” occurs?

A. when the driver is not registered by class.forname() method
B. when the user name, password and the database does not match
C. when the jdbc database url passed is not constructed properly
D. when the type 4 driver is used
Answer» D. when the type 4 driver is used
193.

BLOB, CLOB, ARRAY and REF type columns can be updated in

A. jdbc 1.0
B. jdbc 4.0
C. jdbc 2.0
D. jdbc 3.0
Answer» E.
194.

The class javA)sql.Timestamp has its super class as

A. java)sql.time
B. java)util.date
C. java)util.time
D. none of the above
Answer» C. java)util.time
195.

All raw data types (including binary documents or images) should be read and uploaded to the database as an array of

A. byte
B. int
C. boolean
D. char
Answer» B. int
196.

The JDBC-ODBC bridge is

A. three tiered
B. multithreaded
C. best for any platform
D. all of the above
Answer» C. best for any platform
197.

JDBC facilitates to store the java objects by using which of the methods of PreparedStatement setObject () 2. setBlob() 3. setClob()

A. 1, 2
B. 1,2,3
C. 1,3
D. 2,3
Answer» C. 1,3
198.

Which driver is efficient and always preferable for using JDBC applications?

A. type – 4
B. type – 1
C. type – 3
D. type – 2
Answer» B. type – 1
199.

Which of the following methods are needed for loading a database driver in JDBC?

A. registerdriver() method
B. class.forname()
C. both a and b
D. getconnection()
Answer» D. getconnection()
200.

Which of the following is false as far as type 4 driver is concern?

A. type 4 driver is “native protocol, pure java” driver
B. type 4 drivers are 100% java compatible
C. type 4 drivers uses socket class to connect to the database
D. type 4 drivers can not be used with netscape
Answer» E.