You are on page 1of 12

JAVA-APX Engineer

Resumen del informe


Nombre : RUBEN GERARDO SANCHEZ BACA GERARDO SANCHEZ
Su Calificación : 76 De 100 (76%)
Contestó correctamente : 19 Pregunta
Contestó incorrectamente : 6 Pregunta
Sin respuesta : 0 Pregunta
Puntaje minimo para : 70%
aprobar (%)
Tiempo necesario : 29 mins 28 secs
Correo electrónico : rubengerardo.sanchez.baca.contractor@bbva.com

Su Informe

Correcta

Q1) Given

What is printed out when the program is excuted?


A. - one.
B. - two.
C. - three. (Su Respuesta)(Correcta)
D. - four.
E. - There is no output.
Correcta

Q2) Which two statements are true?


A. An abstract class can implement an interface. (Su Respuesta)(Correcta)
B. An abstract class can be extended by an interface.
C. An interface CANNOT be extended by another interface.
D. An interface can be extended by an abstract class.
E. An abstract class can be extended by a concrete class. (Su Respuesta)(Correcta)
F. An abstract class CANNOT be extended by an abstract class.

Correcta

Q3) Which declaration initializes a boolean variable?


A. - boolean h = 1;
B. - boolean k = 0;
C. - boolean m = null;
D. - boolean j = (1 < 5); (Su Respuesta)(Correcta)

Correcta

Q4) Given

What is the result?


A. 212
B. 10
C. null.
D. An infinite loop.
E. Compilation fails. (Su Respuesta)(Correcta)

Correcta

Q5) Which two will compile, and can be run successfully using the following
command? java Fred1 hello walls
A. class Fred 1{ public static void main(String args) { System.out.println(args[1]); } }
B. abstract class Fred1 { public static void main(String[] args) { System.out.println(args[2]); } }
C. class Fred1 { public static void main(String[] args) { System.out.println(args); } } (Su
Respuesta)(Correcta)
D. class Fred1 { public static void main(String[] args) { System.out.println(args[1]); } }

Incorrecta

Q6) Given:

What is the result?


A. b 3. (Correcta)
B. b 8.
C. b 13. (Su Respuesta)(Incorrecta)
D. f 3.
E. f 8.
F. f 13.
G. Compilation fails.
H. An exception is thrown at runtime.

Correcta

Q7) Given
What is the result?
A. 6564 (Su Respuesta)(Correcta)
B. 6554
C. 6566
D. 6565

Correcta

Q8) Given:

What is the result?


A. hi hi.
B. hi world.
C. world world.
D. Compilation fails. (Su Respuesta)(Correcta)
E. An exception is thrown at runtime.

Correcta

Q9) Given
What is the result?
A. 22 (Su Respuesta)(Correcta)
B. 12
C. 32
D. 33

Incorrecta

Q10) Given:

What is the result?


A. The output is true and MyStuff fulfills the Object.equals() contract. (Su Respuesta)(Incorrecta)
B. The output is false and MyStuff fulfills the Object.equals() contract.
C. The output is true and MyStuff does NOT fulfill the Object.equals() contract. (Correcta)
D. The output is false and MyStuff does NOT fulfill the Object.equals() contract

Incorrecta

Q11) Given:

What is the result if you try to compile Truthy.java and then run it with assertions
enabled?
A. Truthy.java does NOT compile. (Correcta)
B. Truthy.java compiles and the output is x != 6.
C. Truthy.java compiles and an AssertionError is thrown with no additional output.
D. Truthy.java compiles and an AssertionError is thrown with x != 6 as additional output. (Su
Respuesta)(Incorrecta)

Correcta

Q12) Which code fragment is illegal?


A. Class Base1 { abstract class Abs1 { } }
B. Abstract class Abs2 { void doit() { } }
C. class Base2 { abstract class Abs3 extends Base2 { } }
D. class Base3 { abstract int var1 = 89; } (Su Respuesta)(Correcta)

Correcta

Q13) Given:

What is the result?


A. The value "4" is printed at the command line.
B. Compilation fails because of an error in line 5.
C. Compilation fails because of an error in line 9.
D. A NullPointerException occurs at runtime. (Su Respuesta)(Correcta)
E. A NumberFormatException occurs at runtime.
F. An IllegalStateException occurs at runtime.

Correcta

Q14) Given:What is the result?


A. 0 tom 0 jerry 1 tom 1 jerry.
B. 0 tom 0 jerry 2 tom 2 jerry.
C. 0 tom 0 jerry 1 tom 2 tom 2 jerry. (Su Respuesta)(Correcta)
D. 0 tom 0 jerry 1 tom 1 jerry 2 tom 2 jerry.

Incorrecta

Q15) Given

What is the result when this program is executed?


A. Bob's Name: Bob. (Su Respuesta)(Incorrecta)
B. Bob's Name: Jian (Correcta)
C. Nothing prints
D. Bob's name.

Correcta

Q16) The standard API for accessing databases in Java is:


A. ODBC.
B. JDBC. (Su Respuesta)(Correcta)
C. JPA/Hibernate.

Correcta

Q17) Given
What is the result?
A. sc: class.Object asc: class.AnotherSampleClass
B. sc: class.SampleClass asc: class.AnotherSampleClass
C. sc: class.AnotherSampleClass asc: class.SampleClass
D. sc: class.AnotherSampleClass asc: class.AnotherSampleClass (Su Respuesta)(Correcta)

Incorrecta

Q18) Given:

Which class has a default constructor?


A. X only. (Correcta)
B. Y only.
C. Z only.
D. X and Y. (Su Respuesta)(Incorrecta)
E. Y and Z.
F. X and Z.
G. X, Y and Z.

Incorrecta

Q19) Given:
What is the result?
A. 16 mph, lope.
B. 24 mph, lope.
C. 27 mph, lope. (Su Respuesta)(Incorrecta)
D. Compilation fails. (Correcta)

Correcta

Q20) Given:

What is the result?


A. 111.234 222.567
B. 111.234 222.568
C. 111.234 222.5678 (Su Respuesta)(Correcta)
D. An exception is thrown at runtime.

Correcta

Q21) Which two may precede the word "class" in a class declaration?
A. Local.
B. Public. (Su Respuesta)(Correcta)
C. Static. (Su Respuesta)(Correcta)
D. Volatile.
E. Synchronized.

Correcta

Q22) Given:

What values of x, y, z will produce the following result?


1234
1234
1234
-----
1234
------
A. - int x = 4, y = 3, z = 2;
B. - int x = 3, y = 2, z = 3;
C. - int x = 2, y = 3, z = 3;
D. - int x = 4, y = 2, z= 3;
E. - int x = 2, y = 3, z = 4; (Su Respuesta)(Correcta)

Correcta

Q23) Given

What is the result?


A. 4 Null.
B. Null 4.
C. An IllegalArgumentException is thrown at run time.
D. 4 An ArrayIndexOutOfBoundsException is thrown at run time. (Su Respuesta)(Correcta)

Correcta

Q24) Given:

Which three lines will compile and output "Right on!"?


A. Line 17.
B. Line 18.
C. Line 19. (Su Respuesta)(Correcta)
D. Line 20. (Su Respuesta)(Correcta)
E. Line 21.
F. Line 22. (Su Respuesta)(Correcta)

Correcta

Q25) Given

What is true about the class Wow?


A. It compiles without error. (Su Respuesta)(Correcta)
B. It does not compile because an abstract class cannot have private methods.
C. It does not compile because an abstract class cannot have instance variables.
D. It does not compile because an abstract class must have at least one abstract method.
E. It does not compile because an abstract class must have a constructor with no arguments.

Powered by TCPDF (www.tcpdf.org)

You might also like