Exam 3: Simple functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

(Multiple Choice)
5.0/5
(30)

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

(Multiple Choice)
4.7/5
(40)

Python function names follow the same rules for naming variables.

(True/False)
4.8/5
(43)

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

(True/False)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.9/5
(42)

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

(Multiple Choice)
4.8/5
(42)

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

(Short Answer)
4.8/5
(36)

Python allows for passing multiple arguments to a function.

(True/False)
4.9/5
(39)

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

(Short Answer)
4.7/5
(33)

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

(Multiple Choice)
4.9/5
(36)

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

(Short Answer)
4.7/5
(35)

The function header marks the beginning of the function definition.

(True/False)
4.7/5
(34)

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

(Short Answer)
4.8/5
(43)
Showing 21 - 34 of 34
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)