
Estructuras Repetitivas en Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Eric Castillo
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es un bucle en Python?
Un bucle en Python es una estructura de datos para almacenar información
Un bucle en Python es una estructura de control que permite repetir un bloque de código varias veces.
Un bucle en Python es un tipo de variable que almacena múltiples valores
Un bucle en Python es una función predefinida para realizar cálculos matemáticos
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explica la diferencia entre un bucle for y un bucle while en Python.
La diferencia radica en que el bucle for se utiliza para un número fijo de iteraciones, mientras que el bucle while se ejecuta mientras se cumpla una condición.
Un bucle for se utiliza para iteraciones infinitas, mientras que un bucle while tiene un número fijo de iteraciones.
Un bucle for se ejecuta solo si se cumple una condición, mientras que un bucle while se ejecuta siempre.
Un bucle for y un bucle while son lo mismo en Python, solo varía la sintaxis.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se utiliza un bucle for en Python?
Proporciona un ejemplo.
for i in range(10): print(i);
for i in range(5): print(i)
for i in range(5): println('Python')
for i in range(5); print('Hello')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se utiliza un bucle while en Python? Proporciona un ejemplo.
contador = 5
while contador < 0:
while contador < 5:
print(contador)
contador -= 1
Ejemplo de bucle while en Python: contador = 0
while contador < 5:
print(contador)
contador += 1
for i in range(5):
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué son los contadores y acumuladores en Python?
Los contadores y acumuladores en Python son exclusivos de la versión 3.x
Los contadores y acumuladores en Python son variables utilizadas para llevar la cuenta de ocurrencias o sumar valores respectivamente.
Los contadores y acumuladores en Python son tipos de datos que almacenan información de forma temporal
Los contadores y acumuladores en Python son funciones predefinidas que realizan operaciones matemáticas
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explica cómo se generan números aleatorios en Python.
Se generan números aleatorios en Python utilizando el módulo random, con funciones como random() y randint(a, b).
Los números aleatorios en Python se generan utilizando el módulo random, con funciones como random() y randomrange(a, b)
Los números aleatorios en Python se generan utilizando el módulo math con la función random()
Python no tiene capacidad para generar números aleatorios
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la función del statement 'break' en un bucle en Python?
Continuar ejecutando el bucle desde el principio
Salir inmediatamente del bucle sin ejecutar el resto de las iteraciones.
Detener la ejecución del programa por completo
Saltar a la siguiente iteración del bucle
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
Instalacion de Equipos #1
Quiz
•
9th Grade - University
10 questions
SEGURIDAD DE LA INFORMACION
Quiz
•
University
10 questions
6-文件操作
Quiz
•
University
10 questions
Bilgisayarın Temel Birimleri
Quiz
•
9th Grade - University
14 questions
Programación Orientada a Objetos: Conceptos básicos
Quiz
•
University
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
11 questions
Arduino - Contador
Quiz
•
9th Grade - University
10 questions
Subtema 1.1 EVA
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade
