Search Header Logo

EVALUACIÓN FORMATIVA SENTENCIAS REPETITIVAS

Authored by Josue Morales

Computers

University

Used 1+ times

EVALUACIÓN FORMATIVA SENTENCIAS REPETITIVAS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes sentencias repite un bloque de código mientras se cumpla una condición?

a) while

  b) if

  c) switch

 d) do-while

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la diferencia entre un bucle "while" y un bucle "do-while" en C?

 a) Un bucle "do-while" siempre se ejecuta al menos una vez, mientras que un bucle "while" puede no ejecutarse nunca.

b) Un bucle "while" se ejecuta al menos una vez, mientras que un bucle "do-while" puede no ejecutarse nunca.

c) No hay diferencia entre ellos, ambos se ejecutan mientras se cumpla una condición.

d) Un bucle "while" solo se ejecuta una vez, mientras que un bucle "do-while" se repite indefinidamente.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 ¿Cuál de las siguientes opciones define correctamente un bucle "for" infinito en C?

a) for (;;)

  b) for (int i = 0; i < 10; i++)

 c) for (int i = 10; i > 0; i--)

 d) for (int i = 0; i < 5;)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes opciones define correctamente un bucle "for" en C?

 a) for (inicialización; condición; incremento)

  b) for (condición; incremento; inicialización)

 c) for (incremento; inicialización; condición)

d) for (condición; inicialización; incremento)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes opciones define correctamente un bucle "do-while" en C?

a) do-while (inicialización; condición; incremento)

b) do-while (condición; incremento; inicialización)

c) do-while (incremento; inicialización; condición)

 d) do-while (condición)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?