Python Function
Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Sangita Panchal
Used 154+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the keyword used to define a function.
define
def
function
fu
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
def square(x) _______
print(x*x)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is not true about function?
It breaks the large program into small modules.
It avoids repetition.
It makes code reusable.
It makes the program unorganized.
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statement is used to display the docstring?
print(welcome.__doc__)
print(__doc__)
print(welcome._doc_)
print(docstring)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the value of Y?
Error
None
Alsan
Hello, Alsan Good Morning!
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which one is incorrect calling function statement?
add(4, c = 10, b = 5)
add(3, 4, c = 45)
add (b = 12, c = 10, 1)
add (5, 6, 7)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
Value inside function: 10
Value outside function: 20
Value inside function: 10
Value outside function: 10
Value inside function: 20
Value outside function: 10
Value inside function: 20
Value outside function: 20
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
11 questions
AP CSP Review 11Q
Quiz
•
10th - 12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
10 questions
Les variables sous Python
Quiz
•
10th - 12th Grade
16 questions
Python есептер 1
Quiz
•
9th - 12th Grade
10 questions
Quiz TLJ - VoIP
Quiz
•
12th Grade
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
