A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 13. 1Z0-808
Límite de tiempo: 0
Resumen del Cuestionario
0 of 4 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
Cuestionario completado. Tus resultados están siendo registrados.
Resultados
0 de 4 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
- Actual
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 4
1. Pregunta
Given the code fragment:
String shirts[][] = new String[2][2]; shirts[0][0] = "red"; shirts[0][1] = "blue"; shirts[1][0] = "small"; shirts[1][1] = "medium";
Which code fragment prints red:blue:small:medium:?
CorrectoIncorrecto - Pregunta 2 de 4
2. Pregunta
Given the code fragment:
public class Test { void readCard() throws Exception { System.out.println("Reading Card"); } void checkCard(int carNo) throws Exception { System.out.println("Checking Card"); } public static void main(String[] args) throws RuntimeException { // line n1 Test ex = new Test(); int carNo = 12344; ex.checkCard(carNo); // line n2 ex.readCard(carNo); // line n3 } }
What is the result?
CorrectoIncorrecto - Pregunta 3 de 4
3. Pregunta
Given the code fragment:
public static void main(String[] args) { StringBuilder sb = new StringBuilder(5); String s = ""; if (sb.equals(s)) { System.out.println("Match 1"); } else if (sb.toString().equals(s.toString())) { System.out.println("Match 2"); } else { System.out.println("No Match"); } }
What is the result?
CorrectoIncorrecto - Pregunta 4 de 4
4. Pregunta
Given:
Acc.java package p1; public class Acc { int p; private int q; protected int r; public int s; }
=========================
Test.java package p2; import p1.Acc; public class Test extends Acc { public static void main(String[] args) { Acc obj = new Test(); } }
Which statement is true?
CorrectoIncorrecto