Saturday , 18 January 2025

CS506 today solved Quizs by Arslan Ali 28 December 2012

Question

If a class needs to handle events generated by button then which of the following interface a class needs to implement?
Select correct option:

ComponentListener
KeyListener
MouseListener
ActionListener 

Question

WindowListener interface contains _______ methods.
Select correct option:

Four
Six
Seven 
Eight

Question

What will happen if static modifier is removed from the signature of main method?
Select correct option:

The program does not compile
The program compiles and runs successfully
The program compiles but does not run
None of given options  (not sure)

Question

A variable declared as static in a class is a/an _________
Select correct option:


Instance variable
Class variable
Const variable
Global variable

Question

Which of the following syntax is used to get DataBaseMetaData object?
Select correct option:

DataBaseMetaData md = rs.getMetaData();
// where rs is ResultSet object
DataBaseMetaData md = st.getMetaData();
// where st is Statement object
DataBaseMetaData md = con.getMetaData(); 
// where con is Connection object
DataBaseMetaData md = rsmd.getMetaData();
// where rsmd is ResultSetMetaData object

Question

FTP (File Transmission Protocol)works on _________ port.
Select correct option:

21 
23
80
84

Question

The classes which contain the word _____ are byte oriented streams.
Select correct option:

Reader
Writer
Stream 
Byte

Question

Which of the following command is used to run java program?
Select correct option:


java filename.java
java filename 
javac filename.java
javac filename

Question

Which of the following method is used to move the cursor to given row number?
Select correct option:

absolute(int);
absolute();
moveToInsertRow(int);
insertRow();

Check Also

CS506 Unsolved Paper for Final Term Try to solve

Question No: 1 ( Marks: 1 ) – Please choose one Which of the following …

Leave a Reply

Your email address will not be published. Required fields are marked *

*