Search Header Logo

Quiz6

Authored by 过蒋 过蒋

Computers

University

Used 20+ times

Quiz6
AI

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;

True
False

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.

True
False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Local variables inside a function will not exist after the function has finished executing.

True
False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A function's declaration must precede any calls of it in the program text.

True
False

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Docstrings in Python are used for normal block comments and do not have any special significance.

True
False

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.

True
False

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The following function declaration is valid: def myFunction(x, y): return x + y

True
False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?