Hello World
Quiz por , criado more than 1 year ago

Quiz sobre sdp14, criado por Hello World em 18-01-2017.

328
0
0
Sem etiquetas
Hello World
Criado por Hello World mais de 7 anos atrás
Fechar

sdp14

Questão 1 de 14

1

201. Which of the following has member elements?

Selecione uma das seguintes:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicação

Questão 2 de 14

1

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

Selecione uma das seguintes:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicação

Questão 3 de 14

1

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

Selecione uma das seguintes:

  • a) Class

  • b) Interface

  • c) Both

  • d) None

Explicação

Questão 4 de 14

1

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

Selecione uma das seguintes:

  • a) IOException

  • b) FileNotFoundException

  • c) ReadException

  • d) Exception

Explicação

Questão 5 de 14

1

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

Selecione uma das seguintes:

  • a) remove()

  • b) disappear()

  • c) hide()

  • d) delete()

Explicação

Questão 6 de 14

1

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

Selecione uma das seguintes:

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

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

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

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

Explicação

Questão 7 de 14

1

207. What is a Graphics object?

Selecione uma das seguintes:

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

Explicação

Questão 8 de 14

1

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

Selecione uma das seguintes:

  • a) BorderLayout

  • b) GridBagLayout

  • c) FlowLayout

  • d) GridLayout

Explicação

Questão 9 de 14

1

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

Selecione uma das seguintes:

  • a) java.awt.event

  • b) javax.swing.event

  • c) javax.event

  • d) java.event

Explicação

Questão 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?

Selecione uma das seguintes:

  • a) static and non-static

  • b) default and non-default

  • c) abstract and non-abstract

  • d) native and non-native

Explicação

Questão 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?

Selecione uma das seguintes:

  • a) protected

  • b)final

  • c)private

  • d) default

Explicação

Questão 12 de 14

1

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

Selecione uma das seguintes:

  • 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

Explicação

Questão 13 de 14

1

213. Which of these is not a correct statement?

Selecione uma das seguintes:

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

Explicação

Questão 14 de 14

1

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

Selecione uma das seguintes:

  • a) java.lang

  • b) java.util

  • c) java.io

  • d) java.system

Explicação