Search Header Logo

Chapter 3 - Think Python - Voc

Authored by Michael Hayes

Computers

9th - 12th Grade

Used 1+ times

Chapter 3 - Think Python - Voc
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

30 sec • 1 pt

What is a function?

A function is a random set of operations without a name.
A function is an unorganized collection of statements.
A function is a type of variable that stores data.
A function is a named sequence of statements that performs some useful operation.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a parameter?

A name used inside a function to refer to the value passed as an argument.
A type of loop used in programming.
A keyword used to define a function.
A variable that stores the function's return value.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a return value: The result of a function. If a function call is used as an expression, the return

value is the value of the expression.

The result of a function.
The definition of a function.
The process of executing a function.
The input of a function.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a void function?

A function that always raises an exception.
A function that always returns None.
A function that takes no parameters.
A function that returns a boolean value.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module object?

A function that returns a module's values.
A variable that stores the name of a module.
An object that contains only the functions of a module.
A value created by an import statement that provides access to the values defined in a module.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the flow of execution: The order statements run in.

Random execution based on user input.
Execution follows a circular pattern.
Top-down sequence of statements unless altered by control structures.
Statements run in reverse order.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is stack diagram?

A diagram showing the memory allocation of variables.
A visual representation of a queue and its elements.
A method for sorting data in a stack.
A graphical representation of a stack of functions, their variables, and the values they refer to.

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?