A continuación tienes las preguntas relacionadas con este capítulo del curso.
Cuestionario 7. 1Z0-808
Cuestionario Summary
0 de 7 preguntas completadas
Preguntas:
Información
You have already completed the cuestionario before. Hence you can not start it again.
Cuestionario is loading…
You must sign in or sign up to start the cuestionario.
En primer lugar debes completar esto:
Resultados
Resultados
0 of 7 questions answered correctly
Your time:
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
- Current
- Revisar
- Respondido/a
- Correcto
- Incorrecto
- Pregunta 1 de 7
1. Pregunta
Given the following array:
int[] intArr = {8, 16, 32, 64, 128};
Which two code fragments, independently, print each element in this array?
CorrectoIncorrecto - Pregunta 2 de 7
2. Pregunta
Given the content of three files:
A.java public class A { public void a() { } int a; }
===================================
B.java public class B { private int doStuff(){ private int x = 100; return x++; } }
===================================
C.java import java.io.*; package p1; class C { public void main(String fileName) throws IOException { } }
Which statement is true?
CorrectoIncorrecto - Pregunta 3 de 7
3. Pregunta
Given the code fragment:
int[] array = {1, 2, 3, 4, 5};
And given the requirements:
Process all the elements of the array in the order of entry.
Process all the elements of the array in the reverse order of entry.
Process alternating elements of the array in the order of entry.Which two statements are true?
CorrectoIncorrecto - Pregunta 4 de 7
4. Pregunta
Given:
public class TestScope { public static void main(String[] args) { int var1 = 200; System.out.print(doCalc(var1)); System.out.print(" " + var1); } static int doCalc(int var1) { var1 = var1 * 2; return var1; } }
What is the result?
CorrectoIncorrecto - Pregunta 5 de 7
5. Pregunta
Given the following class declarations:
public abstract class Animal public interface Hunter public class Cat extends Animal implements Hunter public class Tiger extends Cat
Which answer fails to compile?
CorrectoIncorrecto - Pregunta 6 de 7
6. Pregunta
Which statement is true about Java byte code?
CorrectoIncorrecto - Pregunta 7 de 7
7. 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 objects are created in the memory runtime?
CorrectoIncorrecto