Hello World
Test por , creado hace más de 1 año

Test sobre sdp14, creado por Hello World el 18/01/2017.

328
0
0
Sin etiquetas
Hello World
Creado por Hello World hace más de 7 años
Cerrar

sdp14

Pregunta 1 de 14

1

201. Which of the following has member elements?

Selecciona una de las siguientes respuestas posibles:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicación

Pregunta 2 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicación

Pregunta 3 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicación

Pregunta 4 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) IOException

  • b) FileNotFoundException

  • c) ReadException

  • d) Exception

Explicación

Pregunta 5 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) remove()

  • b) disappear()

  • c) hide()

  • d) delete()

Explicación

Pregunta 6 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 7 de 14

1

207. What is a Graphics object?

Selecciona una de las siguientes respuestas posibles:

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

Explicación

Pregunta 8 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) BorderLayout

  • b) GridBagLayout

  • c) FlowLayout

  • d) GridLayout

Explicación

Pregunta 9 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) java.awt.event

  • b) javax.swing.event

  • c) javax.event

  • d) java.event

Explicación

Pregunta 10 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) static and non-static

  • b) default and non-default

  • c) abstract and non-abstract

  • d) native and non-native

Explicación

Pregunta 11 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) protected

  • b)final

  • c)private

  • d) default

Explicación

Pregunta 12 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 13 de 14

1

213. Which of these is not a correct statement?

Selecciona una de las siguientes respuestas posibles:

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

Explicación

Pregunta 14 de 14

1

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

Selecciona una de las siguientes respuestas posibles:

  • a) java.lang

  • b) java.util

  • c) java.io

  • d) java.system

Explicación