Quiz6

Quiz6

University

10 Qs

quiz-placeholder

Similar activities

PSP Week 4

PSP Week 4

University

15 Qs

Exam 1 Practice

Exam 1 Practice

University

15 Qs

Python Generators

Python Generators

10th Grade - University

10 Qs

Activity 2

Activity 2

University

10 Qs

Python

Python

KG - Professional Development

13 Qs

CSSE Quiz Day2

CSSE Quiz Day2

University

12 Qs

Processing Quiz

Processing Quiz

University

13 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Quiz6

Quiz6

Assessment

Quiz

Computers

University

Medium

Created by

过蒋 过蒋

Used 15+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?