A continuación tienes las preguntas relacionadas con el capítulo de este curso.
Cuestionario 2. 1Z0-808
Resumen del Cuestionario
0 of 5 Preguntas completed
Preguntas:
Información
Ya has completado el cuestionario anteriormente. Por lo tanto no puedes iniciarlo de nuevo.
Cargando Cuestionario…
Debes iniciar sesión o registrarte para empezar el cuestionario.
En primer lugar debes completar esto:
Resultados
Resultados
0 de 5 Preguntas respondidas correctamente
Tu tiempo:
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
- Actual
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 5
1. Pregunta
Given the code fragment:
String[] arr = {"A", "B", "C", "D"}; for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); if (arr[i].equals("C")) { continue; } System.out.println("Work down"); break; }
What is the result?
CorrectoIncorrecto - Pregunta 2 de 5
2. Pregunta
Which three are advantages of the Java Exception Mechanism?
CorrectoIncorrecto - Pregunta 3 de 5
3. Pregunta
Given the code from the Greeting.Java file:
Greeting.java public class Greeting { public static void main(String[] args) { System.out.println("Hello " + args[0]); } }
Which set of commands prints Hello Duke in the console?
CorrectoIncorrecto - Pregunta 4 de 5
4. Pregunta
Given:
class Alpha { int ns; static int s; Alpha(int ns) { if (s < ns) { s = ns; this.ns = ns; } } void doPrint() { System.out.println("ns = " + ns + " s = " + s); } } public class TestA { public static void main(String[] args) { Alpha ref1 = new Alpha(50); Alpha ref2 = new Alpha(125); Alpha ref3 = new Alpha(100); ref1.doPrint(); ref2.doPrint(); ref3.doPrint(); } }
What is the result?
CorrectoIncorrecto - Pregunta 5 de 5
5. Pregunta
Given the code fragment:
public static void main(String[] args) { int ii = 0; int jj = 7; for (ii = 0; ii < jj - 1; ii = ii + 2) { System.out.print(ii + " "); } }
What is the result?
CorrectoIncorrecto