Filters
Question type

Study Flashcards

Python allows for passing multiple arguments to a function.

Correct Answer

verifed

verified

The function header marks the beginning of the function definition.

Correct Answer

verifed

verified

The first line in the function definition is known as the function _____.


A) header
B) block
C) return
D) parameter

Correct Answer

verifed

verified

The function header begins with the keyword _______________ followed by the name of the function.

Correct Answer

verifed

verified

The approach called _______________ is taking a large task and dividing it into several smaller tasks that are easily performed.

Correct Answer

verifed

verified

The _____ of a local variable is the function in which the variable is created.


A) global
B) defined
C) local
D) scope

Correct Answer

verifed

verified

The main function contains a program's _______________ logic, which is the overall logic of the program.

Correct Answer

verifed

verified

A function definition specifies what a function does and causes the function to execute.

Correct Answer

verifed

verified

The top-down design breaks down the overall task of the program into a series of _______________.

Correct Answer

verifed

verified

A variable's _____ is the part of a program in which the variable may be accessed.


A) global
B) argument
C) scope
D) local

Correct Answer

verifed

verified

A(n) _____ is a variable that receives an argument that is passed into a function.


A) global
B) argument
C) scope
D) parameter

Correct Answer

verifed

verified

A(n) _____ constant is a global name that references a value that cannot be changed.


A) keyword
B) local
C) global
D) string

Correct Answer

verifed

verified

Python function names follow the same rules for naming variables.

Correct Answer

verifed

verified

A(n) _____ variable is created inside a function.


A) global
B) constant
C) defined
D) local

Correct Answer

verifed

verified

Showing 21 - 34 of 34

Related Exams

Show Answer