A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 17. 1Z0-808
Cuestionario Summary
0 de 8 preguntas completadas
Preguntas:
Información
You have already completed the cuestionario before. Hence you can not start it again.
Cuestionario is loading…
You must sign in or sign up to start the cuestionario.
En primer lugar debes completar esto:
Resultados
Resultados
0 of 8 questions answered correctly
Your time:
El tiempo ha pasado
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categorías
- Sin categorizar 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- Current
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 8
1. Pregunta
Given:
public class MainMethod { void main() { System.out.println("one"); } static void main(String args) { System.out.println("two"); } public static void main(String[] args) { System.out.println("three"); } void mina(Object[] args) { System.out.println("four"); } }
What is printed out when the program is executed?
CorrectoIncorrecto - Pregunta 2 de 8
2. Pregunta
public class ScopeTest { int j; int k; public static void main(String[] args) { new ScopeTest().doStuff(); } void doStuff() { int x = 5; doStuff2(); System.out.println("x"); } void doStuff2() { int y = 7; System.out.println("y"); for (int z = 0; z < 5; z++) { System.out.println("z"); System.out.println("y"); } } }
Which two items are fields?
CorrectoIncorrecto - Pregunta 3 de 8
3. Pregunta
A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the results?
CorrectoIncorrecto - Pregunta 4 de 8
4. Pregunta
Given the code fragment:
public class ForTest { public static void main(String[] args) { int[] array = {1, 2, 3}; for (foo) { } } }
Which three code fragments, when replaced individually for foo, enables the program to compile?
CorrectoIncorrecto - Pregunta 5 de 8
5. Pregunta
Given:
public class SampleClass { public static void main(String[] args) { AnotherSampleClass asc = new AnotherSampleClass(); SampleClass sc = new SampleClass(); sc = asc; System.out.println("sc: " + sc.getClass()); System.out.println("asc: " + asc.getClass()); } } class AnotherSampleClass extends SampleClass { }
What is the result?
CorrectoIncorrecto - Pregunta 6 de 8
6. Pregunta
Given the code fragment:
int b = 3; if (!(b > 3)) { System.out.println("square "); }{ System.out.println("circle "); } System.out.println("...");
What is the result?
CorrectoIncorrecto - Pregunta 7 de 8
7. Pregunta
What is the proper way to defined a method that take two int values and returns their sum as an int value?
CorrectoIncorrecto - Pregunta 8 de 8
8. Pregunta
Which two are Java Exception classes?
CorrectoIncorrecto