
Functions in Python
Authored by Deepak M
Other
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following function call def function(name,age=22):
print(name,age)
function('charlie',25)
charlie
25
charlie 25
name 25
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select which true for Python function
A function is a code block that only executes when called and always returns a value.
A function only executes when it is called and we can reuse it in a program
Python doesn’t support nested function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are the two main parts of every function in Python?
The function heading and the function body
The function signature and the function corpus
The function signature and the function body
The function head and the function tail
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following function:
def square(num):
num_sqaured=num**2
return num_squared
def square(num):
num_squared=num**2
return num_squared
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following keywords are used to create a loop in Python?
if
for
foreach
loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following loop:
for num in range(1,5):
print(num)
1
2
3
4
5
0
1
2
3
4
1
2
3
4
2
3
4
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 0
while x < 10:
x = x + 1
What’s the value of x after the above code snippet executes?
0
9
10
11
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
Music Theory Assessment #2
Quiz
•
9th - 12th Grade
13 questions
football of world
Quiz
•
1st Grade - University
13 questions
Anime 99
Quiz
•
9th Grade - Professio...
15 questions
HEALTH - GRADE 10 - Monthly Test
Quiz
•
9th - 10th Grade
12 questions
25.09.2021Đây là ai?
Quiz
•
10th Grade
10 questions
Star Wars
Quiz
•
KG - Professional Dev...
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
15 questions
MISTAKES
Quiz
•
10th 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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade