Exam 5: Functions

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

A __________ constant is a name that references a value that cannot be changed while the program runs.

(Multiple Choice)
4.9/5
(79)

One reason to store graphics functions in a module is so that you can import the module into any program that needs to use those functions.

(True/False)
4.8/5
(65)

Whic of the following will assign a random integer in the range of 1 through 50 to the variable number?

(Multiple Choice)
4.8/5
(83)

Unfortunately,there is no way to store and call on functions when using turtle graphics.

(True/False)
4.9/5
(81)

To assign a value to a global variable in a function,the global variable must be first declared in the function.

(True/False)
4.8/5
(75)

Unlike other languages,in Python the number of values a function can return is limited to one.

(True/False)
4.9/5
(71)

The first line in a function definition is known as the function

(Multiple Choice)
4.8/5
(67)

One reason not to use global variables is that it makes a program hard to debug.

(True/False)
4.8/5
(69)

In Python there is no restriction on the name of a module file.

(True/False)
4.8/5
(77)

What will be the output after the following code is executed? What will be the output after the following code is executed?

(Multiple Choice)
4.8/5
(65)

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

(Short Answer)
4.8/5
(71)

What will be the output after the following code is executed? What will be the output after the following code is executed?

(Multiple Choice)
4.8/5
(83)

Python comes with __________ functions that have already been prewritten for the programmer.

(Multiple Choice)
4.8/5
(68)

To refer to a function in a module,Python uses ___________ notation.

(Short Answer)
4.9/5
(87)

What does the following program do? What does the following program do?

(Multiple Choice)
4.9/5
(86)

A(n)__________ chart is a visual representation of the relationships between functions.

(Short Answer)
4.7/5
(71)

A value-returning function has a(n)___________ statement that sends a value back to the part of the program that called it.

(Short Answer)
4.9/5
(74)

It is recommended that programmers avoid using __________ variables in a program whenever possible.

(Multiple Choice)
4.8/5
(89)

The function header marks the beginning of the function definition.

(True/False)
4.8/5
(75)

What does the following program do? What does the following program do?

(Multiple Choice)
4.8/5
(68)
Showing 41 - 60 of 66
close modal

Filters

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