A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 22. 1Z0-808
Resumen del Cuestionario
0 of 6 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 6 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
- Actual
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 6
1. Pregunta
Given:
class Patient { String name; public Patient(String name) { this.name = name; } }
=================================
public class Test { public static void main(String[] args) { List ps = new ArrayList(); Patient p2 = new Patient("Mike"); ps.add(p2); // insert code here if (f >= 0) { System.out.print("Mike Found"); } } }
Which code fragment, when inserted at line 14, enables the code to print Mike Found?
CorrectoIncorrecto - Pregunta 2 de 6
2. Pregunta
Given:
public class Test { public static void main(String[] args) { try{ String[] arr = new String[4]; arr[1] = "Unix"; arr[2] = "Linux"; arr[3] = "Solarios"; for(String var:arr){ System.out.print(var + " "); } }catch(Exception e){ System.out.print(e.getClass()); } } }
What is the result?
CorrectoIncorrecto - Pregunta 3 de 6
3. Pregunta
public class Series { private boolean flag; public void displaySeries() { int num = 2; while (flag) { if (num % 7 == 0) { flag = false; } System.out.print(num); num += 2; } } public static void main(String[] args) { new Series().displaySeries(); } }
What is the result?
CorrectoIncorrecto - Pregunta 4 de 6
4. Pregunta
Which of the following can fill in the blank in this code to make it compile?
interface CanFly { String type = "A"; void fly(); ˍˍˍˍˍˍˍString getType() { return type; } }
CorrectoIncorrecto - Pregunta 5 de 6
5. Pregunta
Consider the following method
default void print(){ }
Which statement is true?
CorrectoIncorrecto - Pregunta 6 de 6
6. Pregunta
Given:
public class MyFor3 { public static void main(String[] args) { int[] xx = null; for (int ii : xx) { System.out.println(ii); } } }
What is the result?
CorrectoIncorrecto