
Python Function Basics
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Hard
Olena Sakhanda
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Алгоритми
Quiz
•
1st - 12th Grade
9 questions
Онлайн-безпека
Quiz
•
5th Grade
12 questions
Цикли з лічильником та з передумовою
Quiz
•
1st - 12th Grade
12 questions
Taste speciale
Quiz
•
5th - 8th Grade
12 questions
Інформація. Повідомлення. Інформаційні системи
Quiz
•
5th Grade
12 questions
Текстовий редактор
Quiz
•
5th Grade
12 questions
Презентація 6 клас
Quiz
•
1st - 12th Grade
12 questions
Пошук відомостей в Інтернеті
Quiz
•
5th - 6th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
