PREGUNTA 1 de 11
18. Señala qué valor es Falso.
⚪
A)
2
⚪
B)
0
⚪
C)
5
⚪
D)
5
PREGUNTA 2 de 11
19. ¿Qué es una condición?
⚪
A)
Es todo aquello que va entre paréntesis
⚪
B)
Nunca van entre paréntesis
⚪
C)
Es una palabra reservada del lenguaje
⚪
D)
Es una expresión cuyo resultado es falso (0) o cierto (cualquier otro valor)
PREGUNTA 3 de 11
20. ¿Es posible modificar la variable índice en un bucle for?
⚪
A)
Aunque se cambie, no tiene efecto.
⚪
B)
Si, y además es frecuente hacerlo
⚪
C)
Si, pero se recomienda no hacerlo
⚪
D)
No, no se puede
PREGUNTA 4 de 11
¿Qué estructura de control usarías para ejecutar una instrucción u otra, en función de una condición
⚪
A)
if-then
⚪
B)
if-then-else
⚪
C)
for
⚪
D)
while
PREGUNTA 5 de 11
22. En C, dos iguales seguidos indican...
⚪
A)
una asignación doble
⚪
B)
una asignación
⚪
C)
el operador relacional "igual que"
⚪
D)
No es un símbolo de C
PREGUNTA 6 de 11
23. ¿Cuál es la diferencia entre la estructura while y do-while?
⚪
A)
Ambas estructuras son iguales
⚪
B)
En el bucle do-while la condición se comprueba antes de ejecutar las instrucciones, y en el while se comprueba al final
⚪
C)
En el bucle while la condición se comprueba antes de ejecutar las instrucciones, y en el do-while se comprueba al final
⚪
D)
Siempre es mejor usar el while
PREGUNTA 7 de 11
24. ¿Es lícito sustituir una instrucción por un bloque de instrucciones?
⚪
A)
Si, de hecho, esta propiedad es muy importante.
⚪
B)
Sólo en ciertos casos
⚪
C)
No, en ningún caso
⚪
D)
No, daría un error.
PREGUNTA 8 de 11
25. En una estructura if (condición) instrucción;
⚪
A)
Depende de la condición
⚪
B)
La instrucción se ejecuta siempre
⚪
C)
La condición puede no evaluarse
⚪
D)
La instrucción no se ejecuta nunca
PREGUNTA 9 de 11
26. ¿Se puede anidar una estructura condicional dentro de otra?
⚪
A)
Todas son verdaderas
⚪
B)
Sólo si se cumple la condición
⚪
C)
Si
⚪
D)
No
PREGUNTA 10 de 11
¿Qué estructuras de control se deben usar para repetir un conjunto de instrucciones un número de veces desconocido a priori?
⚪
A)
for
⚪
B)
while, o bien, do-while
⚪
C)
solo la do-while
⚪
D)
solo la instrucción while
PREGUNTA 11 de 11
28. ¿Cuáles son los caracteres que delimitan un bloque de instrucciones?
⚪
A)
El punto y coma
⚪
B)
{y}
⚪
C)
(y)
⚪
D)
/* y */
Este test aún no tiene comentarios 🤔