O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

OCAJP8 Chapter 1

Muhammad Khoiruddin Harahap 50 perguntas

Fazer o quiz

Este quiz tem tempo limite, por isso abre no player de sempre.

Perguntas do quiz (50)

  1. 1Given the code fragment
    Imagem da pergunta 1
    1. A200.0 : 100.0
    2. B400.0 : 200.0
    3. C400.0 : 100.0
    4. DCompilation fails
  2. 2given FragmentImagem da pergunta 2
    1. A10 Hello World!
    2. BHello Universe!
    3. CHello World!
    4. DCompilation fails.
  3. 3Given the code fragment:
    What is the result?
    Imagem da pergunta 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:Imagem da pergunta 4
    1. AAn exception is thrown at runtime.
    2. B2
    3. C5
    4. D0
  5. 5Given the code fragment:Imagem da pergunta 5
    1. AMatch 1
    2. BMatch 2
    3. CNo Match
    4. DA NullPointerException is thrown at runtime.
  6. 6Given : Imagem da pergunta 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?Imagem da pergunta 7
    1. AOption AImagem da opção A
    2. BOption AImagem da opção B
    3. COption CImagem da opção C
    4. DOption DImagem da opção D
  8. 8Which option can replace xxx to enable the code to print 135?Imagem da pergunta 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?
    Imagem da pergunta 10
    1. AOption AImagem da opção A
    2. BOption BImagem da opção B
    3. COption CImagem da opção C
    4. DOption DImagem da opção D
    5. EOption EImagem da opção E

Informações

Descrição
Quiz sobre OCAJP8 Chapter 1, criado por Muhammad Khoiruddin Harahap em 21-11-2017.
Idioma
English
Visualizações
26
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?