
Python funciones
Quiz
•
Professional Development
•
5th Grade
•
Practice Problem
•
Hard
MANUEL DE LA CRUZ CHAVES MAZA
Used 33+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Con qué palabra se especifica el valor que queremos que la función nos devuelva?
return
result
def
give
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dada la siguiente función, ¿Cuál es/son sus parámetros?
c, d
a, b, c, d, resultado
resultado
a, b
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Si queremos importar la función randint del módulo random, ¿cuál es/son formas correctas de hacerlo, y de luego utilizar la función?
import random
a = random.randint(1,10)
from random import randint
a = randint(1,10)
from random import *
a = randint(1,10)
from random import *
a = random.randint(1,10)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué hace la siguiente función?
Retorna el número de x dividido en 10.
Siempre retorna 0
Retorna el número de dígitos del número x
Retorna un dígito del número x
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Cuál/es de las siguientes es una definición de función que SÍ es válida?
def blabla():
def m_90(a,b,c,d,e,f):
def hola(chao):
def while(x,y):
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál código es correcto para una función que reciba un número N y entregue 1+2+3+4+...+N?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indica cuál es la línea de código incorrecta en la siguiente función.
def f(x,y):
print("Funcion f")
return x**2+y**2
print("Final de la función")
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dada la siguiente función,
8
No imprime nada
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo hacemos para importar la variable pi del módulo math, pero con el nombre valor_pi?
from math import pi as valor_pi
from math import pi is valor_pi
import math, pi as valor_pi
valor_pi is pi from math import *
Similar Resources on Wayground
5 questions
Sociedad estamental
Quiz
•
5th Grade
13 questions
Panadería
Quiz
•
1st - 12th Grade
10 questions
METAS Y MOTIVACIÓN
Quiz
•
1st - 5th Grade
10 questions
Principios de Auditoría
Quiz
•
1st - 12th Grade
14 questions
Repaso 2P Contabilidad II
Quiz
•
1st - 7th Grade
11 questions
Segundo Parcial de Gestión de la Empresa
Quiz
•
4th Grade - University
10 questions
Mercadotecnia III Bloque II
Quiz
•
1st - 12th Grade
8 questions
Pronósticos de ventas
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Professional Development
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
20 questions
Making Inferences
Quiz
•
5th Grade
10 questions
Exploring Europe: Geography, History, and Culture
Interactive video
•
5th - 8th Grade
10 questions
Simplifying Fractions
Quiz
•
5th Grade
10 questions
Charlie Brown's Thanksgiving Adventures
Interactive video
•
2nd - 5th Grade
