
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
10 questions
MATEMÁTICA III
Quiz
•
University
13 questions
Sistemas de información
Quiz
•
10th Grade - University
10 questions
PYTHON BASICS PART 1
Quiz
•
University
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
10 questions
Diagrama de Flujo de Datos
Quiz
•
University
12 questions
IP-Com3 - Clase 2
Quiz
•
University
10 questions
REDES INFORMÁTICAS
Quiz
•
University
10 questions
Cuestionario Steve Jobs
Quiz
•
12th Grade - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Computers
20 questions
Place Value
Quiz
•
KG - 3rd Grade
6 questions
3.3 Magnets
Quiz
•
KG
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
12 questions
HOMOPHONES
Lesson
•
KG - 4th 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
20 questions
Capitalization in sentences
Quiz
•
KG - 4th Grade
14 questions
Reference Sources
Lesson
•
KG - 3rd Grade
