This Advanced Java Programming prelim exam assesses knowledge in Java event handling. It includes questions on packages, methods for registering listeners, and identifying event types, crucial for developing interactive Java applications.
Ip.getHostAddress()
Ip.getHostName()
Ip.getHostName(), ip.getHostAddress()
Ip.getHostAddress(),ip.getHostName()
Rate this question:
ALT_MASK
CTRL_MASK
SHIFT_MASK
All of the mentioned
Rate this question:
True
False
Rate this question:
Getnumber()
Length()
Length()
GetLength()
Rate this question:
Sun.jdbc.odbc.JdbcOdbcDriver, setIntcon.prepareStatement
ForName,JdbcOdbcDriver, con.prepareStatement,setInt, executeUpdate();
Sun.jdbc.odbc, setInt,executeUpdate
ExecuteUpdate,sun.jdbc.odbc, setInt
Rate this question:
Java.applet
java.awt
Java.event
java.awt.event
Rate this question:
TYPE_FORWORD_ONLY
TYPE_SCROLL_INSENSITIVE
TYPE_SCROLL_SENSITIVE
All of the above
Rate this question:
addMouse()
addMouseListener()
AddMouseMotionListner()
EventMouseMotionListener()
Rate this question:
True
False
Rate this question:
Socket
IP Address
Protocol
MAC Address
Rate this question:
The Internet address of the server
The Internet address of the client
The Internet address of the host
The Internet address of any other PC
Rate this question:
True
False
Rate this question:
GetConnection(),Connection,forName
Class.forName,getConnection() ,mydsn1,Connection
Class.forName,Connection, stmt.executeUpdate , con.close();
Con.close();
Rate this question:
JDBC-ODBC bridge driver
Native-API driver (partially java driver)
Network Protocol driver (fully java driver)
Native protocol (Thin driver)
All of the above
Rate this question:
ContentType()
ContentType()
GetContentType()
GetContentType()
Rate this question:
JTable object displays rows and columns of data.
JTable object displays rows of data with header.
JTable object displays columns of data
JTable object displays data in Table form with header detail.
Rate this question:
httpServer
ServerSocket
Socket
HttpResponse
Rate this question:
RollOverIcon(ImageIcon i)
SetIcon(ImageIcon i)
DisplayIcon(ImageIcon i)
RemoveIcon (ImageIcon i )
Rate this question:
To empty the log
Creates statement object and returns it as the return value.
To prepare the statement
Creating url
Rate this question:
ExecuteUpdate()
ExecuteQuery()
Execute()
Noexecute()
Rate this question:
Applet, Label TextField
Label, TextField, Button
Applet, Button TextField
Grid Layout, Label, Button
Rate this question:
Connection.sql
Db.sql
Javax.sql
Java.sql
Rate this question:
URLNotFound
MalformedURLException
URLSourceNotFound
URLNotFoundException
Rate this question:
AdjustmentPerformed(AdjustmentEvent ae);
ItemStateChanged(ItemEvent ie);
ItemStateChanged(ActionEvent ie);
ActionPerformed(ActionEvent ae);
Rate this question:
CallableStatement
Statement
PreparedStatement
ExcuteStatement
Rate this question:
DatagramPacket
URL
InetAddress
ContentHandler
Rate this question:
Code1
Code2
Code3
Code4
Class.forName (sun.jdbc.odbc.JdbcOdbcDriver)
Class.forName (“sun.jdbc.odbc.JdbcOdbcDriver”)
Class.loadClass (“sun.jdbc.odbc.JdbcOdbcDriver”)
Class.loadClass (sun.jdbc.odbc.JdbcOdbcDriver)
Rate this question:
C.createStatement( )
S.executeUpdate()
S.close()
C.close()
Rate this question:
BLOCK_DECREMENT
BLOCK_INCREMENT
UNIT_DECREMENT
UNIT_INCREMENT
Rate this question:
A listener is a variable that is notified when an event occurs.
A listener is a object that is notified when an event occurs.
A listener is a method that is notified when an event occurs.
None of the mentioned
Rate this question:
getType()
GetEventType()
GetAdjustmentType()
GetEventObjectType()
Rate this question:
List
Choice
MenuBar
Scrollbar
Rate this question:
Checkbox
Scrollbar
Label
Button
Rate this question:
1
0
-1
Garbage value
Rate this question:
ResultSet
Parametrized
PreparedStatement
CalableStatement
Rate this question:
Http://www.google.com
Www.google.com
Google.com
Rate this question:
It return all data records from emp table
It return all data,and print FName,LName from emp table
Print only row 3 value and print FName,LName from emp table
None of the above
Rate this question:
GetID()
GetSource()
GetEvent()
GetEventObject()
Rate this question:
DatagramPacket
DatagramSocket
Only DatagramSocket
Both A & B
Rate this question:
Public OutputStream getOutputStream()
Public synchronized void close()
Public Socket accept()
None of the above
Rate this question:
Applet
Component
Event
InputEvent
Rate this question:
Java compiler
Java interpreter
Java API
Both A and B
Rate this question:
String b = ""delete from emp where ID=1""; PreparedStatement ps=con.prepareStatement(b);ps.executeUpdate();
String b = ""delete from emp where ID=1""; PreparedStatement ps=con.prepareStatement(b);ps.Update();
String b = ""delete from emp where ID=1""; PreparedStatement ps=con.prepareStatement(b) ;s.executeQuery();
String b = ""drop table from emp where ID=1""; PreparedStatement ps=con.prepareStatement(b); s.executeUpdate();
Rate this question:
URL Class
URLConnection Class URLConnection Class URLConnection Class
Connection Class
ConnectionUrl Class
50
25
30
40
Rate this question:
Error in statement in which JScrollPane is created
Error in statement in which applet tag is declared
Error in statement in which JTable is created
None of the above
Rate this question:
5
7
6
8
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.