¿Qué imprime este código? for i in range(3):
print(i)
Python 3 - Ciclos y Funciones
Quiz
•
Engineering
•
12th Grade
•
Medium
ABRAHAM FLORES
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprime este código? for i in range(3):
print(i)
1 2 3
0 1 2
0 1 2 3
1 2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la salida del siguiente código? x = 10 if x > 5: print("Mayor que 5") else: print("Menor o igual a 5")
Mayor que 5
Menor o igual a 5
Nada
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la sintaxis correcta para definir una función en Python?
function mi_funcion():
def mi_funcion:
def mi_funcion():
func mi_funcion():
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprime este código? def saludar(): print("Hola mundo") saludar()
saludar
Hola mundo
Error
Nada
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Para qué se utiliza la palabra clave def en Python?
Para definir un ciclo
Para crear una función
Para comparar valores
Para declarar una variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprime este código? for letra in "hola": print(letra)
h o l a
hola
h
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el resultado del siguiente código? def sumar(a, b): return a + b print(sumar(3, 4))
34
7
a + b
Error
15 questions
Explorando el Cuerpo Humano
Quiz
•
12th Grade
10 questions
Mastering Python Strings
Quiz
•
12th Grade
10 questions
Evaluación de la Calidad
Quiz
•
12th Grade
12 questions
Python 1
Quiz
•
9th - 12th Grade
15 questions
Python Programming Quiz - 2
Quiz
•
12th Grade
11 questions
Quiz sobre Métodos Cuantitativos
Quiz
•
12th Grade
16 questions
SEGURIDAD EN EL TALLER 2
Quiz
•
9th - 12th Grade
16 questions
Conceptos de Derivadas y Límites
Quiz
•
12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University