
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
11 questions
Безпека в Інтернеті

Quiz
•
1st - 12th Grade
10 questions
Спрайти в Scratch

Quiz
•
5th Grade
11 questions
ЗМІННІ

Quiz
•
3rd - 5th Grade
9 questions
Python Quiz

Quiz
•
5th Grade
10 questions
Техніка безпеки в кабінеті інформатики

Quiz
•
5th - 8th Grade
10 questions
Пригадаймо Scratch

Quiz
•
5th Grade
12 questions
Алгоритми та програми

Quiz
•
5th Grade
12 questions
Плата MicroBit

Quiz
•
5th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade