¿Cuál es la sintaxis para definir una función en Python?

13 ENCUENTRO LÓGICA DE PROGRAMACIÓN ISW-121-50

Quiz
•

ESMERLING PULINARIO PINALES
•
Computers
•
1st Grade
•
1 plays
•
Medium
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) def nombre_funcion(parametros):
b) funcion nombre_funcion(parametros):
c) def nombre_funcion(tipo_retorno):
d) funcion nombre_funcion(tipo_retorno):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es un arreglo (o lista) en programación?
a) Una estructura de datos que almacena un conjunto de elementos del mismo tipo.
b) Un tipo de dato que almacena valores alfanuméricos.
c) Una variable que puede almacenar una secuencia de caracteres.
d) Una instrucción que imprime un mensaje en la consola.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuáles son las ventajas de usar funciones en un programa?
a) Modularidad y reutilización.
b) Facilidad de uso y legibilidad.
c) Eficiencia y velocidad.
d) Todas las anteriores.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué elementos componen una función?
a) Nombre, parámetros, tipo de retorno y cuerpo.
b) Tipo de dato, tamaño e índice.
c) Valor inicial, valor final e incremento.
d) Operador, condición y resultado.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se declara un arreglo unidimensional en Python?
a) tipo_dato nombre_arreglo[tamanio]
b) arreglo nombre_arreglo(tipo_dato, tamanio)
c) lista nombre_arreglo = [valor1, valor2, ..., valorN]
d) arreglo nombre_arreglo = (valor1, valor2, ..., valorN)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es una función en programación?
a) Un bloque de código reutilizable que realiza una tarea específica.
b) Un tipo de dato que almacena valores numéricos.
c) Una variable que puede almacenar diferentes tipos de datos.
d) Una instrucción que controla el flujo del programa.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se accede a un elemento específico dentro de un arreglo?
a) Mediante el índice del elemento.
b) Mediante el nombre del elemento.
c) Mediante la posición del elemento.
d) Mediante el valor del elemento.
Explore all questions with a free account
Similar Resources on Quizizz
11 questions
Cuestionario Módulo 5

Quiz
•
1st Grade - University
15 questions
3valuacion 5oftware 3ducativo

Quiz
•
1st Grade
8 questions
Variables y Constantes

Quiz
•
1st - 4th Grade
15 questions
SOFTWARE - HARDWARE

Quiz
•
1st - 5th Grade
12 questions
Arduino

Quiz
•
1st - 3rd Grade
13 questions
LA COMPUTADORA Y SUS PARTES

Quiz
•
1st - 4th Grade
7 questions
Repaso de Fundamentos

Quiz
•
1st Grade
10 questions
Hojas de cálculo. Introducción

Quiz
•
1st Grade
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Computers
16 questions
Academic Olympics: National Parks

Quiz
•
1st - 5th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
20 questions
Telling Time to the Hour and Half hour

Quiz
•
1st Grade
12 questions
Pixar Movies!

Quiz
•
KG - 5th Grade
15 questions
goods and services

Quiz
•
1st Grade
7 questions
Life Science: Ecosystems

Interactive video
•
1st - 6th Grade
10 questions
2D and 3D shapes

Quiz
•
1st Grade
20 questions
2D and 3D shapes

Quiz
•
1st Grade