Hello World
Quiz von , erstellt am more than 1 year ago

Quiz am sdp14, erstellt von Hello World am 18/01/2017.

328
0
0
Keine Merkmale angegeben
Hello World
Erstellt von Hello World vor mehr als 7 Jahre
Schließen

sdp14

Frage 1 von 14

1

201. Which of the following has member elements?

Wähle eine der folgenden:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Erklärung

Frage 2 von 14

1

202. Which of the following can be used for implementing runtime polymorphism ?

Wähle eine der folgenden:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Erklärung

Frage 3 von 14

1

203. Parent of all collection classes is a/an ….?

Wähle eine der folgenden:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Erklärung

Frage 4 von 14

1

204. Which exception is thrown by the read() method of InputStream class?

Wähle eine der folgenden:

  • a) IOException

  • b) FileNotFoundException

  • c) ReadException

  • d) Exception

Erklärung

Frage 5 von 14

1

205. Which of the following methods can be used to remove a java.awt.Component object from the display?

Wähle eine der folgenden:

  • a) remove()

  • b) disappear()

  • c) hide()

  • d) delete()

Erklärung

Frage 6 von 14

1

206. Which of the following sets the frame to 300 pixels wide by 200 high?

Wähle eine der folgenden:

  • a) frm.setSize( 300, 200 );

  • b) frm.setSize( 200, 300 );

  • c) frm.paint( 300, 200 );

  • d) frm.setVisible( 300, 200 );

Erklärung

Frage 7 von 14

1

207. What is a Graphics object?

Wähle eine der folgenden:

  • 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.

Erklärung

Frage 8 von 14

1

208. In Java, the default layout manager for a JFrame component is

Wähle eine der folgenden:

  • a) BorderLayout

  • b) GridBagLayout

  • c) FlowLayout

  • d) GridLayout

Erklärung

Frage 9 von 14

1

209. The ListSelectionEvent class and ListSelectionListener interface are available in the _____ package of Java.

Wähle eine der folgenden:

  • a) java.awt.event

  • b) javax.swing.event

  • c) javax.event

  • d) java.event

Erklärung

Frage 10 von 14

1

210. Which of the following categorizations can be applied to both the data fields and the methods in a Java class?

Wähle eine der folgenden:

  • a) static and non-static

  • b) default and non-default

  • c) abstract and non-abstract

  • d) native and non-native

Erklärung

Frage 11 von 14

1

211. Which is a Java access modifier used to designate that a particular data field will not be inherited by a subclass?

Wähle eine der folgenden:

  • a) protected

  • b)final

  • c)private

  • d) default

Erklärung

Frage 12 von 14

1

212. Which of these will happen if recursive method does not have a base case?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 13 von 14

1

213. Which of these is not a correct statement?

Wähle eine der folgenden:

  • 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.

Erklärung

Frage 14 von 14

1

214. Which of these packages contains the exception Stackoverflow in Java?

Wähle eine der folgenden:

  • a) java.lang

  • b) java.util

  • c) java.io

  • d) java.system

Erklärung