Aurora's Engineering College

B.Tech 2 CSE II Sem - Mid-II Test - 2019-20

Java Programming

Please read the below instructions before taking the test:
  1. This test contains 20 multiple choice questions
  2. Each question carries one mark
  3. Maximum marks : 20
  4. Duration : 30 minutes
  5. This test can be attempted only once. If there are multiple attempts by creating different logins, all your tests stand cancelled, and no marks will be awarded.
Please read the below instructions before taking the test:
  1. This test contains 20 multiple choice questions
  2. Each question carries one mark
  3. Maximum marks : 20
  4. Duration : 30 minutes
  5. This test can be attempted only once. If there are multiple attempts by creating different logins, all your tests stand cancelled, and no marks will be awarded.
Full Name:
Roll No
Email:
Which of these clause will be executed even if no exceptions are found
Throws
Finally
Throw
Catch
_____ method of ArrayList class is used to obtain present size of an object
Size()
Length()
Index()
Capacity()
Which class contains the methods print() & println()
System
System.out
BufferedOutputStream
PrintStream
Which of these methods will respond when you click any button by mouse?
MouseClicked()
MouseEntered()
MousePressed()
All of the mentioned
________ functions is called to display the output of an applet
Display()
Paint()
DisplayApplet()
PrintApplet()
What is Collection in Java?
A group of objects
A group of classes
A group of interfaces
None of the mentioned
How to sort elements of ArrayList?
Collection.sort(listObj);
Collections.sort(listObj);
ListObj.sort();
Sorter.sortAsc(listObj);
Which of these methods can be used to change location of an event?
ChangePoint()
TranslatePoint()
ChangeCordinates()
TranslateCordinates()
Which of these class can generate pseudorandom numbers
Locale
Rand
Random
None of the mentioned
Which method of ObjectOutput interface used to write the object to input or output stream as required?
Write()
Write()
StreamWrite()
WriteObject()
What is the worst case complexity of accessing an element in ArrayList?
O(n)
O(1)
O(nlogn)
O(2)
Which of these methods is used to obtain the object that generated a WindowEvent?
GetMethod()
GetWindow()
GetWindowEvent()
GetWindowObject()
______ is superclass of WindowEvent class
WindowEvent
ComponentEvent
ItemEvent
InputEvent
Which interfaces define a method actionPerformed()?
ComponentListener
ContainerListener
ActionListener
InputListener
Which of these packages contains all the event handling interfaces?
Java.lang
Java.awt
Java.awt.event
Java.event
How many bits are used for generating random numbers?
32
64
48
8
Which of these is a superclass of all Adapter classes?
Applet
ComponentEvent
Event
InputEvent
Which of these method is used to add an element to the start of a LinkedList object?
Add()
First()
AddFirst()
AddFirst()
_____ values is returned by read() method is end of file (EOF) is encountered?
0
1
-1
Null
MouseEvent is subclass of which of these classes?
ComponentEvent
ContainerEvent
ItemEvent
InputEvent
{"name":"Aurora's Engineering College B.Tech 2 CSE II Sem - Mid-II Test - 2019-20 Java Programming", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Please read the below instructions before taking the test: This test contains 20 multiple choice questions Each question carries one mark Maximum marks : 20 Duration : 30 minutes This test can be attempted only once. If there are multiple attempts by creating different logins, all your tests stand cancelled, and no marks will be awarded., Full Name:, Roll No","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.