Quiz
sdp14
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (14)
1201. Which of the following has member elements?
- Aa) Class
- Bb) Interface
- Cc) Both
- Dd) None
2202. Which of the following can be used for implementing runtime polymorphism ?
- Aa) Class
- Bb) Interface
- Cc) Both
- Dd) None
3203. Parent of all collection classes is a/an ….?
- Aa) Class
- Bb) Interface
- Cc) Both
- Dd) None
4204. Which exception is thrown by the read() method of InputStream class?
- Aa) IOException
- Bb) FileNotFoundException
- Cc) ReadException
- Dd) Exception
5205. Which of the following methods can be used to remove a java.awt.Component object from the display?
- Aa) remove()
- Bb) disappear()
- Cc) hide()
- Dd) delete()
6206. Which of the following sets the frame to 300 pixels wide by 200 high?
- Aa) frm.setSize( 300, 200 );
- Bb) frm.setSize( 200, 300 );
- Cc) frm.paint( 300, 200 );
- Dd) frm.setVisible( 300, 200 );
7207. What is a Graphics object?
- Aa) The Graphics object represents the part of the Frame that you can draw on.
- Bc) The Graphics object represents the entire monitor.
- Cb) The Graphics object represents the whole Frame
- Dd) The Graphics object represents the graphics board.
8208. In Java, the default layout manager for a JFrame component is
- Aa) BorderLayout
- Bb) GridBagLayout
- Cc) FlowLayout
- Dd) GridLayout
9209. The ListSelectionEvent class and ListSelectionListener interface are available in the _____ package of Java.
- Aa) java.awt.event
- Bb) javax.swing.event
- Cc) javax.event
- Dd) java.event
10210. Which of the following categorizations can be applied to both the data fields and the methods in a Java class?
- Aa) static and non-static
- Bb) default and non-default
- Cc) abstract and non-abstract
- Dd) native and non-native
11211. Which is a Java access modifier used to designate that a particular data field will not be inherited by a subclass?
- Aa) protected
- Bb)final
- Cc)private
- Dd) default
12212. Which of these will happen if recursive method does not have a base case?
- Aa) An infinite loop occurs
- Bc) After a lot of calls it will be automatically stopped.
- Cb) System stops the program after some time.
- Dd) None of the above
13213. Which of these is not a correct statement?
- Aa) A recursive method must have a base case.
- Bb) Recursion always uses stack.
- Cc) Recursive methods are faster that programmers written loop to call the function repeatedly
- Dd) Recursion is managed by Java’s run time environment.
14214. Which of these packages contains the exception Stackoverflow in Java?
- Aa) java.lang
- Bb) java.util
- Cc) java.io
- Dd) java.system
Informationen
- Beschreibung
- Quiz am sdp14, erstellt von Hello World am 18/01/2017.
- Autor
- Hello World
- Sprache
- English
- Aufrufe
- 333
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz