
Python Function Basics

Quiz
•
Computers
•
5th Grade
•
Hard
Olena Sakhanda
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Який запис функції правильний?
def some_function()
function some_function()
function some_function():
def some_function():
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що виведе на екран наступний код?
def fun1(name, age=20):
print(name, age)
fun1('Emma', 25)
Emma 25
Emma 20
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що з цього функція?
print()
function
int
func
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що виведе на екран наступний код?
def fun1(num):
return num + 25
fun1(5)
print(num)
NameError
25
5
30
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Правда чи ні?
Функція завжди виводить значення
Так
Ні
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що цей код виведе на екран?
def func(a,b):
print(a-b)
a=4
b=9
func(a=b,b=a)
NameError
-5
5
(9, 4)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як зупинити функцію?
Використати 'return'
Використати 'end'
Використати 'stop'
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що виведе на екран наступний код?
def fun1(num):
return num + 25
num = fun1(5)
print(num)
NameError
25
5
30
Similar Resources on Wayground
10 questions
DESAFIO CANGURU

Quiz
•
1st - 5th Grade
6 questions
KA JS Arrays

Quiz
•
KG - University
10 questions
Exa 2 BD1 Parte1

Quiz
•
5th Grade
5 questions
Examen Medio Callcenter

Quiz
•
1st - 5th Grade
13 questions
Клавиатура

Quiz
•
2nd - 5th Grade
7 questions
Πληκτρολόγιο για προχωρημένους !

Quiz
•
4th - 6th Grade
9 questions
WINDOWS - AULA 1 E 2

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade