Marlon Corzo
Quiz by , created more than 1 year ago

Realice el siguiente test

389
0
0
Marlon Corzo
Created by Marlon Corzo over 7 years ago
Close

Java Test

Question 1 of 5

1

¿Qué hace el siguiente programa?
for (int x=0,x<10,x++)
System.out.println(x);

Select one or more of the following:

  • Muestra los números del 0 al 9

  • Muestra los números del 1 al 10

  • Muestra 10 letras X

Explanation

Question 2 of 5

1

¿Cómo se llama la estructura que sirve para ejecutar una acción cuando se cumple una condición y otra cuando no se cumple la condición?

Select one or more of the following:

  • Selectiva

  • Repetitiva

  • Algorítmica

Explanation

Question 3 of 5

1

¿Cuál es la salida del siguiente programa?
int x=5;
int y=5;

if (x<10)
if (y<10)
System.out.println("Uno");
else
System.out.println("Dos");
System.out.println("Tres");

Select one or more of the following:

  • No compila

  • Uno

  • Dos

Explanation

Question 4 of 5

1

¿Qué se imprime por pantalla?
int total = 10;
int contador = 4;

total -= --contador;
System.out.println(total);

Select one or more of the following:

  • 10

  • 7

  • 6

Explanation

Question 5 of 5

1

¿Cuál es el resultado de la operación?
int x=1;
System.out.println(++x*4+1);

Select one or more of the following:

  • 6

  • 5

  • 9

Explanation