¿Qué es una función en Python?

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
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 Quizizz
7 questions
Questionário - Prog. I

Quiz
•
6th - 8th Grade
10 questions
Викторина по языку Python

Quiz
•
6th - 8th Grade
10 questions
Fundamentos de Programación en Python

Quiz
•
6th Grade - University
8 questions
Aplicaciones Móviles

Quiz
•
6th - 8th Grade
15 questions
Quiz sobre Sentencias If en Python

Quiz
•
8th Grade
10 questions
Quiz sobre la evolución de las computadoras

Quiz
•
4th Grade - University
10 questions
Tipos de Software

Quiz
•
4th Grade - University
10 questions
Fundamentos de la Programación - Cuarto

Quiz
•
6th - 8th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Information Technology (IT)
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
10 questions
Identifying equations

Quiz
•
KG - University
17 questions
guess the logo

Quiz
•
8th Grade
20 questions
Punctuation

Quiz
•
6th - 8th Grade
10 questions
Candy

Quiz
•
4th - 8th Grade
60 questions
FLACS Checkpoint A Review

Quiz
•
7th - 9th Grade
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...