
Course 5 - functions
Authored by Madalina Barbu
Computers
3rd Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The input() function is an example of a:
user-defined function
built-in function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to invoke a function before you define it?
example:
hi()
def hi():
print("hi!")
Python will search the function through the code and after will execute it
It will return an error
if after seach the function is not found, then it will ignore it and execute the code below
Answer explanation
NameError: name 'function_name' is not defined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when you run the code below?
def hi():
print("hi")
hi(5)
It will print 5 times "hi"
It will print "hi 5"
error
Answer explanation
TypeError: hi() takes 0 positional arguments but 1 was given
4.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the output of the following snippet?
def intro(a="James Bond", b="Bond"):
print("My name is", b + ".", a + ".")
intro()
Evaluate responses using AI:
OFF
Answer explanation
My name is Bond. James Bond.
5.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the output of the following snippet?
def intro(a="James Bond", b="Bond"):
print("My name is", b + ".", a + ".")
intro(b="Sean Connery")
Evaluate responses using AI:
OFF
Answer explanation
My name is Sean Connery. James Bond.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
10 questions
TIK KELAS 3 SD
Quiz
•
3rd Grade
10 questions
Bài 1 - TIn học lớp 3
Quiz
•
3rd Grade
9 questions
Storage Devices
Quiz
•
3rd Grade
10 questions
Programming - Basic String Manipulation
Quiz
•
2nd - 10th Grade
10 questions
Computer in the society
Quiz
•
2nd - 10th Grade
10 questions
Ôn tập CK1_22.23_Tin Học 3_Phần 1
Quiz
•
3rd Grade
10 questions
Yr 7 Flowgorithm
Quiz
•
3rd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
22 questions
fractions
Quiz
•
3rd Grade
18 questions
Comparing Fractions with same numerator or denominator
Quiz
•
3rd Grade
15 questions
Fractions on a number line
Quiz
•
3rd Grade
10 questions
Area
Quiz
•
3rd Grade
100 questions
100 multiplication facts
Quiz
•
3rd Grade
16 questions
Equivalent fractions
Quiz
•
3rd Grade