
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Derivadas por el metodo logaritmico

Quiz
•
12th Grade - University
10 questions
Conocimientos sobre Manufactura

Quiz
•
6th Grade - University
10 questions
Quiz sobre Automatismos Eléctricos Industriales

Quiz
•
12th Grade
12 questions
Hidrometalurgia: Conceptos Clave

Quiz
•
12th Grade
16 questions
Control de Actuadores Eléctricos

Quiz
•
12th Grade
15 questions
Machine Learning Quiz

Quiz
•
12th Grade
15 questions
Sistemas de Gestión Ambiental en Perú

Quiz
•
12th Grade
15 questions
Cuestionario_Trigonometria (1)

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade