VUAssignments.com upload a big collection of unsolved MCQs and Quizsfor the Mid Term Papers try to solved these Quizs and MCQs and try to solved these CS506 Quizs and MCQs yourself.
Question
Which of the following feature provide facility for multiple inheritance:-
- Adapter Classes
- Wrapper Classes
- Interface
- Collection
Question
The relationship between class and interface is called ________
- ‘Is a’ relationship
- ‘Has a’ relationship
- ‘Responds to’ relationship
- None of the given options
Question
Which of the following function will be used to register event handler with events generator (button)?
- addAction()
- addListener()
- addActionListener()
- Register eventhandeler()
Question
The collection API are defined in ______ package?
- Java.io
- Java.util
- Java.sql
- Java.awt
Question
Which of the following is true about abstract class?
- An abstract class must have all methods declared as abstract methods.
- A class must have at least one abstract method to be an abstract class.
- A class without any abstract method can be declared as abstract class.
- An instance of abstract class can be created. Imrangee
Question
Exceptions must be handled while handling files otherwise it may lead to____?
- Logical error
- Syntax error
- No error
- Run time error
Question
Which of the following stream is a filter stream?
- BufferedReader
- FileWriter
- FileReader
- All of given options
Question
CREATE, ALTER, DROP are _________ SQL statements.
- DML
- DDL
- DCL
- None of above
Question
Which of the following statement object is used to execute stored procedures?
- Statement
- PreparedStatement
- CallableStatement
- None of given options
Question
Based on functionality, the streams can be categorized as ________ Byte oriented streams and Node Streams
- Filter stream and Character oriented stream
- Node stream and Filter stream
- Byte oriented stream and Character oriented stream
- Which of the following syntax is used to attach an input stream to console?
Question
The relationship between class and interface is called ________ ‘Is a’ relationship
Question
Which of the following stream read/write data in the form of bytes?
- FileInputStream,
Question
Which of the following stream is a Node stream?
- PrintWriter
- BufferedReader
- FileWriter
If a class needs to handle events generated by button then which of the following interface a class needs to implement?
- ActionListener
- Top of Form
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following is called “pure abstract class”?
Select correct option:
- Concrete class
- Wrapper class
- Interface
- Abstract class with no abstract method
Question
An instance of abstract class cannot be created.
Select correct option:
- True
- False
Question
Which of the following is used for inheritance in java?
Select correct option:
- implements
- extends
- : (colon)
- inherit
Question
Which of the following package needs to import while interacting with relational database?
Select correct option:
- java.io
- java.sql
- javax.swing
- java.awt
Question
Window, frame and dialog use ________ as their default layout.
Select correct option:
- Border layout
- Flow layout
- GridBag layout
- Grid layout
Question
A collection can store _________
Select correct option:
- Homogenous objects
- Heterogeneous objects
- Objects as well as primitive values
- At most 100 objects
Question
Which of the following is a general purpose container?
Select correct option:
- JFrame
- Dialog
- JPanel
- JApplet
Question
Overloading is _______ whereas overriding is _____
Select correct option:
- Run time binding, compile time binding
- Late binding, compile time binding
- Compile time binding, run time binding
- Run time binding, late time binding
Question
The relationship between class and interface is called ________
Select correct option:
- ‘Is a’ relationship
- ‘Has a’ relationship
- ‘Responds to’ relationship
- None of the given options
Question
HahMap takes key as a/an _________
Select correct option:
- Object
- Array
- Primitive value
- Function
Question
Which of the following statement object is used to execute stored procedures?
Select correct option:
- Statement
- PreparedStatement
- CallableStatement
- None of given options
Question
Mouse events can be trapped for ________ GUI component.
Select correct option:
- JPanel
- JFrame
- JButton
- All of given
Question
Which of the following stream read/write data in the form of bytes?
Select correct option:
- FileReader
- FileWriter
- PrintWriter
- FileInputStream
Question
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
Select correct option:
- executeQuery(sql);
- ExecuteQuery(sql);
- executeUpdate(sql);
- ExecuteUpdate(sql);
Question
Which of the following is true about abstract class?
Select correct option:
- An abstract class must have all methods declared as abstract methods.
- A class must have at least one abstract method to be an abstract class.
- A class without any abstract method can be declared as abstract class.
- An instance of abstract class can be created.
Question
DSN stands for _________
Select correct option:
- Data System Name
- Domain system Name
- Data Source Name
- Database System Name
Question
CREATE, ALTER, DROP are _________ SQL statements.
Select correct option:
- DML
- DDL
- DCL
- None of given
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following function is declared in MouseMotionListener interface?
Select correct option:
- public void mousePressed (MouseEvent me);
- public void mouseDragged (MouseEvent me);
- public void mouseClicked (MouseEvent me);
- public void mouseEntered (MouseEvent me);
Question
Which of the following is true about abstract class?
Select correct option:
- An abstract class must have all methods declared as abstract methods.
- A class must have at least one abstract method to be an abstract class.
- A class without any abstract method can be declared as abstract class.
- An instance of abstract class can be created.
Question
Mouse events can be trapped for ________ GUI component.
- JPanel
- JFrame
- JButton
- All of given
Question
Which of the following is true about AWT and SWING components?
- AWT components creates a process whereas SWING component creates a thread.
- AWT components creates a thread whereas SWING component creates a process.
- Both AWT and SWING component creates a process.
- Both AWT and SWING component creates a thread.
Question
WindowListener interface contains _______ methods.
- Four
- Six
- Seven
- Eight
Question
If a class needs to handle events generated by button then which of the following interface a class needs to implement?
- ComponentListener
- KeyListener
- MouseListener
- ActionListener
Question
Window, frame and dialog use ________ as their default layout.
- Border layout
- Flow layout
- GridBag layout
- Grid layout
Question
Which of the following method is used to execute SELECT SQL statements?
- executeUpdate(sql);
- ExecuteUpdate(sql);
- executeQuery(sql);
- ExecuteQuery(sql);
Question
Which of the following stream is a filter stream?
- FileWriter
- FileReader
- BufferedReader
- All of given options
Question
Which of the following stream read/write data in the form of bytes?
- FileReader
- FileWriter
- PrintWriter
- FileInputStream
Question
If a super class method is protected then overriding method _________
- must be protected
- must be public
- must be private
- may be either protected or public
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following is called “pure abstract class”?
Select correct option:
- Concrete class
- Wrapper class
- Interf ace
- Abstract class w ith no abstract method
Question
An instance of abstract class cannot be created.
Select correct option:
- True
- False
Question
Which of the following is used for inheritance in java?
Select correct option:
- implements
- extends
- : (colon)
- inherit
Question
Which of the following package needs to import while interacting with relational database?
Select correct option:
- java.io
- java.sql
- javax.sw ing
- java.aw t
Question
Window, frame and dialog use ________ as their default layout.
Select correct option:
- Border layout
- Flow layout
- GridBag layout
- Grid layout
Question
A collection can store _________
Select correct option:
- Homogenous objects
- Heterogeneous objects
- Objects as w ell as primitive values
- At most 100 objects
Question
Which of the following is a general purpose container?
Select correct option:
- JFrame
- Dialog
- JPanel
- JApplet
Question
Overloading is _______ whereas overriding is _____
Select correct option:
- Run time binding, compile time binding
- Late binding, compile time binding
- Compile time binding, run time binding
- Run time binding, late time binding
Question
The relationship between class and interface is called ________
Select correct option:
- ‘Is a’ relationship
- ‘Has a’ relationship
- ‘Responds to’ relationship
- None of the given options
Question
HahMap takes key as a/an _________
Select correct option:
- Object
- Array
- Primitive value
- Function
Question
Which of the following statement object is used to execute stored procedures?
Select correct option:
- Statement
- PreparedStatement
- CallableStatement
- None of given options
Click here to Save Answ er & Move to Next Question
Question
Mouse events can be trapped for ________ GUI component.
Select correct option:
- JPanel
- JFrame
- JButton
- All of given
Question
Which of the following stream read/write data in the form of bytes?
Select correct option:
- FileReader
- FileWriter
- PrintWriter
- FileInputStream
Question
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
Select correct option:
- executeQuery(sql);
- ExecuteQuery(sql);
- executeUpdate(sql);
- ExecuteUpdate(sql);
Question
Which of the following is true about abstract class?
Select correct option:
- An abstract class must have all methods declared as abstract methods.
- A class must have at least one abstract method to be an abstract class.
- A class w ithout any abstract method can be declare abstract class.
- An instance of abstract class can be created.
Question
DSN stands for _________
Select correct option:
- Data System Name
- Domain system Name
- Data Source Name
- Database System Name
Question
CREATE, ALTER, DROP are _________ SQL statements.
Select correct option:
- DML
- DDL
- DCL
- None of given
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following belongs to a category of checked exception?
Select correct option:
- Null Pointer exception
- IOException
- Array index out of bounds
- NumberFormatException
Question
Which of the following function is declared in MouseMotionListener interface?
Select correct option:
- public void mousePressed (MouseEvent me);
- public void mouseDragged (MouseEvent me);
- public void mouseClicked (MouseEvent me);
- public void mouseEntered (MouseEvent me);
Question
Which of the following is true about AWT and SWING components?
Select correct option:
- AWT components creates a process w hereas SWIN component creates a thread.
- AWT components creates a thread w hereas SWING component creates a process.
- Both AWT and SWING component creates a process
- Both AWT and SWING component creates a thread.
Question
WindowListener interface contains _______ methods.
Select correct option:
- Four
- Six
- Seven
- Eight
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
Window, frame and dialog use ________ as their default layout.
Select correct option:
- Border layout
- Flow layout
- GridBag layout
- Grid layout
Question
Which of the following stream is a filter stream?
Select correct option:
- FileWriter
- FileReader
- Buf feredReader
- All of given options
Question
Which of the following stream read/write data in the form of bytes?
Select correct option:
- FileReader
- FileWriter
- PrintWriter
- FileInputStream
Question
If a super class method is protected then overriding method _________
Select correct option:
- must be protected
- must be public
- must be private
- may be either protected or public
Click here to Save Answ er & Move to Next Question