
Quiz6
Authored by 过蒋 过蒋
Computers
University
Used 20+ 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
After a function is declared, it cannot be called when needed;
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The number of actual parameters in a function call must match the number of formal parameters in the function’s declaration.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Local variables inside a function will not exist after the function has finished executing.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A function's declaration must precede any calls of it in the program text.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Docstrings in Python are used for normal block comments and do not have any special significance.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Using the global modifier is essential if you want to read the value of a global variable in a function.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The following function declaration is valid: def myFunction(x, y): return x + y
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?