💩

programierds

Tests
C Intermediate 1 min

Control flow in C

Decisions, loops and quick reading of small C snippets.

questions

3

Here basic concepts are mixed with flow reading. Perfect practice before tackling longer exercises.

Tiempo estimado

01:00:00

Avance: 0%

C Intermediate 1 min 3 preguntas

Control flow in C

Decisions, loops and quick reading of small C snippets.

Pregunta 1

How many times does `printf` run?

Snippet c
for (int i = 0; i < 3; i++) {
    printf("%d\n", i);
}
Opciones para How many times does `printf` run?

Pregunta 2

Which structure is best when you want to run a block at least once?

Opciones para Which structure is best when you want to run a block at least once?

Pregunta 3

What does this program print?

Snippet c
int x = 5;

if (x > 10) {
    printf("A");
} else {
    printf("B");
}
Opciones para What does this program print?

Elegi una opcion por pregunta y despues hace click en Revisar resultados.