A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 21. 1Z0-808
Límite de tiempo: 0
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
Cuestionario completado. Tus resultados están siendo registrados.
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
Given:
public class Case{ public static void main(String[] args){ String product = "Pen"; product.toLowerCase(); product.concat(" BOX".toLowerCase()); System.out.print(product.substring(4, 6)); } }
What is the result?
CorrectoIncorrecto - Pregunta 2 de 7
2. Pregunta
Given:
public class Whizlabs{ public static void main(String[] args){ int sum = 0; for (int x = 0; x <= 10; x++) sum += x; System.out.print("Sum for 0 to" + x); System.out.print(" = " + sum); } }
Which is true?
CorrectoIncorrecto - Pregunta 3 de 7
3. Pregunta
Given the code fragment:
System.out.println(28 + 5 <= 4 + 29); System.out.println((28 + 5) <= (4 + 29));
What is the result?
CorrectoIncorrecto - Pregunta 4 de 7
4. Pregunta
Given:
public class Equal { public static void main(String[] args) { String str1 = "Java"; String[] str2 = {"J", "a", "v", "a"}; String str3 = ""; for (String str : str2) { str3 = str3 + str; } boolean b1 = (str1 == str3); boolean b2 = (str1.equals(str3)); System.out.print(b1 + ", " + b2); } }
What is the result?
CorrectoIncorrecto - Pregunta 5 de 7
5. Pregunta
Given:
public class Test { static void dispResult(int[] num) { try { System.out.println(num[1] / (num[1] - num[2])); } catch (ArithmeticException e) { System.err.println("First exception"); } System.out.println("Done"); } public static void main(String[] args) { try { int[] arr = {100, 100}; dispResult(arr); } catch (IllegalArgumentException e) { System.err.println("Second exception"); } catch (Exception e) { System.err.println("Third exception"); } } }
What is the result?
CorrectoIncorrecto - Pregunta 6 de 7
6. Pregunta
Given:
public class MarkList { int num; public static void graceMarks(MarkList obj4) { obj4.num += 10; } public static void main(String[] args) { MarkList obj1 = new MarkList(); MarkList obj2 = obj1; MarkList obj3 = null; obj2.num = 60; graceMarks(obj2); } }
How many MarkList instances are created in memory at runtime?
CorrectoIncorrecto - Pregunta 7 de 7
7. Pregunta
Given:
public class X implements Z { public String toString() { return "X "; } public static void main(String[] args) { Y myY = new Y(); X myX = myY; Z myZ = myX; System.out.print(myX); System.out.print((Y) myX); System.out.print(myZ); } } class Y extends X { public String toString() { return "Y "; } } interface Z { public String toString(); }
What is the output?
CorrectoIncorrecto