null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
7392340
sdp14
Description
Quiz on sdp14, created by Hello World on 18/01/2017.
Quiz by
Hello World
, updated more than 1 year ago
More
Less
Created by
Hello World
over 7 years ago
328
0
0
Resource summary
Question 1
Question
201. Which of the following has member elements?
Answer
a) Class
b) Interface
c) Both
d) None
Question 2
Question
202. Which of the following can be used for implementing runtime polymorphism ?
Answer
a) Class
b) Interface
c) Both
d) None
Question 3
Question
203. Parent of all collection classes is a/an ….?
Answer
a) Class
b) Interface
c) Both
d) None
Question 4
Question
204. Which exception is thrown by the read() method of InputStream class?
Answer
a) IOException
b) FileNotFoundException
c) ReadException
d) Exception
Question 5
Question
205. Which of the following methods can be used to remove a java.awt.Component object from the display?
Answer
a) remove()
b) disappear()
c) hide()
d) delete()
Question 6
Question
206. Which of the following sets the frame to 300 pixels wide by 200 high?
Answer
a) frm.setSize( 300, 200 );
b) frm.setSize( 200, 300 );
c) frm.paint( 300, 200 );
d) frm.setVisible( 300, 200 );
Question 7
Question
207. What is a Graphics object?
Answer
a) The Graphics object represents the part of the Frame that you can draw on.
c) The Graphics object represents the entire monitor.
b) The Graphics object represents the whole Frame
d) The Graphics object represents the graphics board.
Question 8
Question
208. In Java, the default layout manager for a JFrame component is
Answer
a) BorderLayout
b) GridBagLayout
c) FlowLayout
d) GridLayout
Question 9
Question
209. The ListSelectionEvent class and ListSelectionListener interface are available in the _____ package of Java.
Answer
a) java.awt.event
b) javax.swing.event
c) javax.event
d) java.event
Question 10
Question
210. Which of the following categorizations can be applied to both the data fields and the methods in a Java class?
Answer
a) static and non-static
b) default and non-default
c) abstract and non-abstract
d) native and non-native
Question 11
Question
211. Which is a Java access modifier used to designate that a particular data field will not be inherited by a subclass?
Answer
a) protected
b)final
c)private
d) default
Question 12
Question
212. Which of these will happen if recursive method does not have a base case?
Answer
a) An infinite loop occurs
c) After a lot of calls it will be automatically stopped.
b) System stops the program after some time.
d) None of the above
Question 13
Question
213. Which of these is not a correct statement?
Answer
a) A recursive method must have a base case.
b) Recursion always uses stack.
c) Recursive methods are faster that programmers written loop to call the function repeatedly
d) Recursion is managed by Java’s run time environment.
Question 14
Question
214. Which of these packages contains the exception Stackoverflow in Java?
Answer
a) java.lang
b) java.util
c) java.io
d) java.system
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
GCSE PE - 1
lydia_ward
Health and Social Care
NicoleCMB
AS biology Exchange and transport flashcards
jenna.ridley
Animal vs. Plant Cells
JimJam5
Edexcel Additional Science Biology Topic 1
hchen8nrd
Modals & semi-modals
Abeer Alqahtani
Jane Eyre
sennahlee
Lung Structure
Elena Cade
Project Scope Management Process
neeshar
CHEMISTRY TEST
kingi kigongo
Tips for Succeeding on the Day of the Exam
Jonathan Moore
Browse Library