
Funciones y Retornos en Python

Quiz
•
Information Technology (IT)
•
8th Grade
•
Medium
Andres Erazo
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es una función en Python?
Una función en Python es un tipo de variable que almacena datos.
Una función en Python es un método para crear clases y objetos.
Una función en Python es un bloque de código que realiza una tarea específica y puede recibir parámetros y devolver valores.
Una función en Python es un comando que se ejecuta automáticamente al iniciar el programa.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se define una función en Python?
nombre_funcion(parametros) => cuerpo_de_la_funcion
def nombre_funcion(parametros): cuerpo_de_la_funcion
function nombre_funcion(parametros) { cuerpo_de_la_funcion }
def nombre_funcion: cuerpo_de_la_funcion
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué palabra clave se utiliza para devolver un valor de una función?
yield
return
send
output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué son los argumentos en una función?
Los argumentos son los resultados que devuelve una función.
Los argumentos son las instrucciones dentro de una función.
Los argumentos son los valores que se pasan a una función para que esta los utilice.
Los argumentos son los nombres de las funciones.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se llaman los argumentos que tienen un valor por defecto?
Argumentos con valor por defecto
Argumentos opcionales
Argumentos obligatorios
Argumentos sin valor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué sucede si no se pasan argumentos a una función que los requiere?
Se genera un error de tipo 'TypeError'.
Se devuelve None sin errores.
Se genera un error de tipo 'ValueError'.
La función se ejecuta con valores predeterminados.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se puede llamar a una función en Python?
llamar_funcion(nombre_de_la_funcion)
nombre_de_la_funcion(argumentos)
nombre_de_la_funcion{argumentos}
nombre_de_la_funcion: argumentos
Create a free account and access millions of resources
Similar Resources on Wayground
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 Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade