A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 16. 1Z0-808
Resumen del Cuestionario
0 of 7 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 7 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
- 6
- 7
- Actual
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 7
1. Pregunta
int[] array = {1, 2, 3, 4, 5}; for (int i : array) { if (i < 2) { keyword1; } System.out.println(i); if (i == 3) { keyword2; } }
What should keyword1 and keyword2 be respectively, in order to produce output 2345?
CorrectoIncorrecto - Pregunta 2 de 7
2. Pregunta
Given:
int i, j = 0; i = (3 * 2 + 4 + 5); j = (3 * ((2 + 4) + 5)); System.out.println("i:" + i + "\nj:" + j);
What is the result?
CorrectoIncorrecto - Pregunta 3 de 7
3. Pregunta
Given:
boolean log3 = (5.0 != 6.0) && (4 != 5); boolean log4 = (4 != 4) || (4 == 4); System.out.println("log3:" + log3 + "\nlog4" + log4);
What is the result?
CorrectoIncorrecto - Pregunta 4 de 7
4. Pregunta
Which statement will empty the contents of a StringBuilder variable named sb?
CorrectoIncorrecto - Pregunta 5 de 7
5. Pregunta
Given:
class StaticField { static int i = 7; public static void main(String[] args) { StaticField obj = new StaticField(); obj.i++; StaticField.i++; obj.i++; System.out.println(StaticField.i + " " + obj.i); } }
What is the result?
CorrectoIncorrecto - Pregunta 6 de 7
6. Pregunta
Which two are valid array declaration?
CorrectoIncorrecto - Pregunta 7 de 7
7. Pregunta
Given:
class Overloading { int x(double d) { System.out.println("one"); return 0; } String x(double d) { System.out.println("two"); return null; } double x(double d) { System.out.println("three"); return 0.0; } public static void main(String[] args) { new Overloading().x(4.0); } }
What is the result?
CorrectoIncorrecto