Miguel Arias
Quiz by , created more than 1 year ago

Evaluacion de Unidad II para 4to Bachillerato Valle del Saber

75
0
0
Miguel Arias
Created by Miguel Arias over 8 years ago
Miguel Arias
Copied by Miguel Arias over 8 years ago
Close

Evaluación II java 4to Bachillerato Valle del Saber

Question 1 of 20

1

Fill the blank spaces to complete the text.


while (i<10)
{
System.out.println('hola');

}

Explanation

Question 2 of 20

1

a=1;
do

System.out.pritln(a + "*" +i+ "=" + a*i);

}
while (i<=10);

Drag and drop to complete the text.

    {
    i=i+1;
    +i+
    pritln

Explanation

Question 3 of 20

1

Select from the dropdown list to complete the text.

Scanner x=new Scanner (System.( in, int, ini, float ));

Explanation

Question 4 of 20

1

int i,vcs;
nm;
Scanner x=new Scanner (System.in);
System.out.println ("dame un nombre");
nm=x.nextLine();
System.out.println("cuantas veces quieres que se repita");
vcs=x.nextInt();
i=1;
{
System.out.println(nm);
i=i+1;
}
(i<=vcs);

Drag and drop to complete the text.

    do
    int
    While
    for
    while
    String
    spim

Explanation

Question 5 of 20

1

Fill the blank spaces to complete the text.

int i,n;
Scanner x=new Scanner (System.in);
i=1;
System.out.println("Dame el valor de N");
n=x.next();
{ System.out.println(i);
i=i+1; }
(i<=n);

Explanation

Question 6 of 20

1

int i;

i=1;

do {
if (i 2==0)
{
System.out.println();
}
;
}
while (i<=10);
}

Drag and drop to complete the text.

    %
    &
    @
    x
    y
    x+2
    i
    i=i+1

Explanation

Question 7 of 20

1

Fill the blank spaces to complete the text.

int us,cla,i,a;
Scanner w=new (System.in);
System.out.println("cual es su usuario");
us=w.next();
System.out.println("cual es su clave");
cla=.nextInt();
if (us == 1 cla == 123)
{
System.out.println("Acceso autorizado");
}

{
System.out.println("acceso denegado");
}

Explanation

Question 8 of 20

1

(op)
{
case 1:
System..println("UNO");
break;
case :
System.out.println("UNO")
break;
default:
System.out.println("no existe opción");
;

Drag and drop to complete the text.

    switch
    out
    Switch
    2
    break
    ;
    }

Explanation

Question 9 of 20

1

int A;
A= 1;
(A<=10)
{
System.out.("Jose")
;
}

Drag and drop to complete the text.

    while
    for
    if
    a++
    primnt
    :
    }
    println
    ;
    A=A+1

Explanation

Question 10 of 20

1

La estrucrura que se muestra a continuación corresponde a que ciclo?
i=1;
______ (n<=m)
{
System.out.println(n);
n=n+1;
}

Select one of the following:

  • For

  • while

  • do

Explanation

Question 11 of 20

1

El ciclo IF evalúa una condición y luego repite esa instrucción 10 veces

Select one of the following:

  • True
  • False

Explanation

Question 12 of 20

1

La inicialización de la variable contadora y el icremento. Son dos instrucciones que se tienen que agregar a los ciclos

Select one of the following:

  • For - While

  • Do - While

Explanation

Question 13 of 20

1

La instrucción switch permite evaluar una condición y mostrar el resultado solo puede ser falso o verdadero.

Select one of the following:

  • True
  • False

Explanation

Question 14 of 20

1

Select from the dropdown lists to complete the text.

if (n ( %, !, &, && ) 2 ( ==, =, $ ) 0)
{
System.( out, in, ini ).println("( es par, es impar )");
}
else
{
System.out.println("( es impar, es par )");
}

Explanation

Question 15 of 20

1

Fill the blank spaces to complete the text.

int i;

String ;

Scanner = new Scanner(System.in);

System.out.println("dame un nombre");

a= x.next();

i=1;

do

{

System.out.println();

;

}

(i<=10);

Explanation

Question 16 of 20

1

Que realiza el codigo que se muestra a continuación
int i;

String a;

Scanner x = new Scanner(System.in);

System.out.println("dame un nombre");

a= x.nextLine();

i=1;

do

{

System.out.println(a);

i++;

}

while(i<=10);

Select one of the following:

  • Pide el nombre y lo imprime las veces que el usuario quiere

  • Imprime los nombres de los 10 numeros

  • Pide el nombre y lo imprime las 10 veces

  • Imprime los numero de 1 al 10

Explanation

Question 17 of 20

1

¿Es correcto el siguiente código?
i=1;
do
{
System.out.println("sara");
}
while (i<=10);

Select one of the following:

  • True
  • False

Explanation

Question 18 of 20

1

Java es un lenguaje que solamente lo puedo escribir el IDEONE.com

Select one of the following:

  • True
  • False

Explanation

Question 19 of 20

1

us,cla,i,a;
Scanner w=new Scanner(System.in);
System.out.println("cual es su usuario");
us=w.nextInt();
System.out.println("cual es su clave");
cla=w.nextInt();
if ( == 1 cla == 123)
{
System.out.println("Acceso autorizado");
System.out.println("dame un valor");
a=w.nextInt();
;
do
{
System.out.pritln();
i=i+1;
}
while ();
}
else
{
System.out.println("acceso denegado");
}

Drag and drop to complete the text.

    int
    String
    Char
    us
    a
    w
    i
    &&
    ==
    #
    !=
    a=1
    a=a+1
    a++
    a + "*" +i+ "=" + a*i
    a + *" +i+ "=" + a*i
    a + "*" +i "=" +a*i
    i<=10
    z<10
    10=i

Explanation

Question 20 of 20

1

int ;
(i<=10)
{
if ()
{
System.out.println();
}
;
}

Drag and drop to complete the text.

    i=1
    x=1
    while
    for
    if
    i % 2 == 0
    i % 2 > 0
    i % 2 !! 0
    i
    w
    h
    i=i+1
    x=x+2
    x=x+1

Explanation