New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Tema de Ciclo While y Condicionales

Fill in the Blanks

(1)
Played 7 %Accuracy 90 Average time 18:36

About this activity

Tema de Ciclo While y Condicionales

Created by

Mexico

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Tema de Ciclo While y Condicionales
 

Fill in the Blanks

Tema de Ciclo While y CondicionalesOnline version

Tema de Ciclo While y Condicionales

by Gabriel Barron Rodírguez
1

# Sensor de humo
humo_detectado = True

if humo_detectado = = True :
( " Alarma : activar extractor de humo " )

2

# Repetir un movimiento fijo de un brazo robótico

movimiento ( 5 ) :
print ( f " Ejecutando movimiento número { movimiento + 1 } " )

3

# Espera de una señal de sensor

sensor_activado = False

sensor_activado = = :
respuesta = input ( " ¿ Se activó el sensor ? ( si / no ) : " )
respuesta = = " si " :
sensor_activado = True
print ( " Sensor activado , iniciar proceso " )

4

# Límite de corriente en un motor
corriente = ( ( " Corriente medida ( A ) : " ) )

corriente 5 :
print ( " Corriente excesiva : apagar motor " )

5

# Encendido secuencial de LEDs debe imprimir LEDs del 1 al 8

led ( , ) :
print ( f " Encendiendo LED { led } " )

6

# Contador de ciclos de un motor

ciclos =

ciclos 5 :
print ( f " Motor girando , ciclo { ciclos + 1 } " )
ciclos + = 1

7

# Sensor de proximidad
distancia = ( ( " Distancia al objeto ( cm ) : " ) )

distancia 10 :
( " Objeto muy cerca , detener banda transportadora " )

8

# Recorrido de lecturas de un sensor guardadas en una lista

lecturas_temperatura = [ 22 , 25 , 30 , 45 , 60 , 28 ]

temp lecturas_temperatura :
print ( f " Temperatura registrada : { } °C " )

9

# Carga de batería hasta llegar al 100%

carga =

carga 100 :
print ( f " Cargando batería : { carga } % " )
= carga + 10

print ( " Batería cargada al 100% " )

10

# Encendido de Ventilador
temperatura = ( ( " Temperatura ( °C ) : " ) )

temperatura 40 :
print ( " Encender ventilador " )
:
print ( " Ventilador apagado " )

11

# Contar motores encendidos
estado_motores = [ True , False , True , True , False ]
contador =

estado estado_motores :
estado = = :
contador + =

print ( f " Motores encendidos : { } " )

12

# Estado de un sensor de nivel
nivel_liquido = ( input ( " Nivel de líquido ( % ) : " ) )

if nivel_liquido = 15 :
print ( " Nivel bajo : activar bomba " )
:
print ( " Nivel adecuado , bomba apagada " )

13

# Esperar a que un botón de emergencia se presione

emergencia =

not emergencia :
entrada = input ( " ¿ Se presionó el botón de emergencia ? ( si / no ) : " )
entrada = = " si " :
emergencia =
print ( " Emergencia detectada : deteniendo motores " )

14

# El motor avanza de 2 en 2 pasos hasta llegar a 20
paso ( 0 , 20 , ) :
print ( f " Motor en el paso { } " )

15

# Clasificación de velocidad de un motor
rpm = ( input ( " Velocidad del motor ( RPM ) : " ) )

rpm < 500 :
print ( " Motor en reposo " )
rpm < 2000 :
print ( " Velocidad normal " )
elif rpm < 4000 :
print ( " Velocidad alta , revisar vibración " )
:
( " Riesgo de sobrecalentamiento " )

16

# Estado de un sensor ( básico )

estado = " activo "

estado :
case " activo " :
print ( " El sensor está funcionando correctamente " )
case " inactivo " :
print ( " El sensor está apagado " )
case _ :
print ( " Estado desconocido " )

17

# Descenso de presión en un tanque
presion = 100

presion 0 :
print ( f " Presión actual : { presion } bar " )
- = 10

print ( " Presión liberada por completo " )

18

lecturas_distancia = [ 50 , 12 , 8 , 35 , 5 , 100 ]

distancia lecturas_distancia :
distancia < 10 :
print ( f " { distancia } cm : ¡ Alerta ! Objeto muy cerca " )
:
print ( f " { distancia } cm : distancia segura " )

19

# Sensor de nivel de líquido en un tanque
nivel = int ( ( " Nivel del tanque ( % ) : " ) )

nivel 20 :
print ( " Nivel bajo : activar bomba de llenado " )
nivel < 90 :
print ( " Nivel adecuado " )
:
print ( " Nivel alto : detener bomba de llenado " )

20

# Modo de operación de una máquina

modo = input ( " Ingrese el modo ( manual / automatico / mantenimiento ) : " )

modo :
" manual " :
print ( " Operando en modo manual " )
case " automatico " :
print ( " Operando en modo automático " )
case " mantenimiento " :
print ( " Máquina en mantenimiento , no operativa " )
case " otro " :
print ( " Modo no reconocido " )

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.