QUESTION IMAGE
Question
question #5
repeat 1 times
- which of the following are benefits of repeat blocks? (check all that apply)/ 5) ¿cuáles de los siguientes son beneficios de los bloques de repetición? (marque todas las opciones que correspondan)
- the robot knows how many times to do something without the programmer telling it/ el robot sabe cuántas veces hacer algo sin que el programador se lo diga.
- they make code easier to modify (change and improve)/ hacen que el código sea más fácil de modificar (cambiar y mejorar)
- they make code simpler to read and understand/ hacen que el código sea más fácil de leer y comprender.
- they made code run faster/ ellas hicieron que el código se ejecutara más rápido(feminine)
Brief Explanations
- For the first option: The repeat block's count is set by the programmer (like "repeat 1 times" here), so the robot doesn't know without the programmer specifying. So this is incorrect.
- Second option: If you want to change the number of repetitions, you modify the repeat block's parameter, making code easy to adjust. Correct.
- Third option: Instead of writing the same code multiple times, a repeat block groups the code, making it simpler to read. Correct.
- Fourth option: Repeat blocks don't inherently make code run faster; they just repeat code. So this is incorrect.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- They make code easier to modify (change and improve)/ Hacen que el código sea más fácil de modificar (cambiar y mejorar)
- They make code simpler to read and understand/ Hacen que el código sea más fácil de leer y comprender