A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 3. 1Z0-808
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
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:
LocalDate date1 = LocalDate.now(); LocalDate date2 = LocalDate.of(2014, 6, 20); LocalDate date3 = LocalDate.parse("2014-06-20", DateTimeFormatter.ISO_DATE); System.out.println("date1 = " + date1); System.out.println("date2 = " + date2); System.out.println("date3 = " + date3);Assume that the system date is June 20, 2014. What is the result?
CorrectoIncorrecto - Pregunta 2 de 4
2. Pregunta
Given the code fragment:
public class Test { public static void main(String[] args) { StringBuilder sb1 = new StringBuilder(); String str1 = sb1.toString(); // insert code here System.out.print(str1 == str2); } }Which code fragment, when inserted at line 9, enables the code to print true?
CorrectoIncorrecto - Pregunta 3 de 4
3. Pregunta
Given the code fragment:
public class Test { static int count = 0; int i = 0; public void changeCount() { while (i < 5) { ++i; count++; } } public static void main(String[] args) { Test check1 = new Test(); Test check2 = new Test(); check1.changeCount(); check2.changeCount(); System.out.println(check1.count + " : " + check2.count); } }What is the result?
CorrectoIncorrecto - Pregunta 4 de 4
4. Pregunta
Given the code fragment:
double discount = 0; int qty = Integer.parseInt(args[0]); // line n1;
And given the requirements:
If the value of the qty variable is greater than or equal to 90, discount = 0.5
If the value of the qty variable is between 80 and 90, discount = 0.2Which two code fragments can be independently placed at line n1 to meet the requirements?
CorrectoIncorrecto