¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

OCAJP8 Chapter 1

Muhammad Khoiruddin Harahap 50 preguntas

Hacer el test

Este test tiene tiempo límite, así que se abre en el reproductor de siempre.

Preguntas del test (50)

  1. 1Given the code fragment
    Imagen de la pregunta 1
    1. A200.0 : 100.0
    2. B400.0 : 200.0
    3. C400.0 : 100.0
    4. DCompilation fails
  2. 2given FragmentImagen de la pregunta 2
    1. A10 Hello World!
    2. BHello Universe!
    3. CHello World!
    4. DCompilation fails.
  3. 3Given the code fragment:
    What is the result?
    Imagen de la pregunta 3
    1. ASum is 600
    2. BCompilation fails at line n1.
    3. CCompilation fails at line n2.
    4. DA ClassCastException is thrown at line n1.
    5. EA ClassCastException is thrown at line n2.
  4. 4Given the code fragment:Imagen de la pregunta 4
    1. AAn exception is thrown at runtime.
    2. B2
    3. C5
    4. D0
  5. 5Given the code fragment:Imagen de la pregunta 5
    1. AMatch 1
    2. BMatch 2
    3. CNo Match
    4. DA NullPointerException is thrown at runtime.
  6. 6Given : Imagen de la pregunta 6
    1. AA B C D
    2. BA C D
    3. CA B C C
    4. DA B D
    5. EA B D C
  7. 7Which code fragment should you use at line n1 to instantiate the dvd object successfully?Imagen de la pregunta 7
    1. AOption AImagen de la opción A
    2. BOption AImagen de la opción B
    3. COption CImagen de la opción C
    4. DOption DImagen de la opción D
  8. 8Which option can replace xxx to enable the code to print 135?Imagen de la pregunta 8
    1. Aint e = 0; e < = 4; e++
    2. Bint e = 0; e < 5; e + = 2
    3. Cint e = 1; e < = 5; e + = 1
    4. Dint e = 1; e < 5; e+ =2
  9. 9Which statement best describes encapsulation?
    1. AEncapsulation ensures that classes can be designed so that only certain fields and methods of an
      object are accessible from other objects.
    2. BEncapsulation ensures that classes can be designed so that their methods are inheritable.
    3. CEncapsulation ensures that classes can be designed with some fields and methods declared as
      abstract.
    4. DEncapsulation ensures that classes can be designed so that if a method has an argument MyType
      x, any subclass of MyType can be passed to that method.
  10. 10Which code fragment, when inserted at line 2, enables the code to compile?
    Imagen de la pregunta 10
    1. AOption AImagen de la opción A
    2. BOption BImagen de la opción B
    3. COption CImagen de la opción C
    4. DOption DImagen de la opción D
    5. EOption EImagen de la opción E

Información

Descripción
Test sobre OCAJP8 Chapter 1, creado por Muhammad Khoiruddin Harahap el 21/11/2017.
Idioma
English
Visitas
26
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?