Exam 6: Value-Returning functions and Modules

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

In a value-returning function, the value of the expression that follows the key word _____ will be sent back to the part of the program that called the function.

(Multiple Choice)
4.8/5
(35)

The Python standard library's _____ module contains numerous functions that can be used in mathematical calculations.

(Multiple Choice)
4.7/5
(39)

In Python, a module's file name should end in _______________.

(Short Answer)
4.8/5
(48)

The math function, ceil(x), returns the smallest integer that is greater than or equal to x.

(True/False)
4.9/5
(36)

In Python, one can have a list of variables on the left side of the assignment operator.

(True/False)
4.8/5
(33)

The approach of _______________ makes the program easier to understand, test, and maintain.

(Short Answer)
4.8/5
(29)

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

(Short Answer)
4.9/5
(35)

A value-returning function is _____.

(Multiple Choice)
4.9/5
(43)

One of the drawbacks of a modularized program is that the only structure we could use is sequence structure.

(True/False)
5.0/5
(40)

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

(Multiple Choice)
4.9/5
(32)

A value-returning function is like a simple function except that when it finishes it returns a value back to the called part of the program.

(True/False)
4.8/5
(38)

Boolean functions are useful for simplifying complex conditions that are tested in decision and repetition structures.

(True/False)
4.9/5
(35)

The return values of the trigonometric functions in Python are in _______________.

(Short Answer)
4.8/5
(40)

What type of value is returned by the functions random and uniform?

(Multiple Choice)
4.8/5
(39)

What is the result of the following statement? x = random.randint(5, 15) * 2

(Multiple Choice)
4.8/5
(47)
Showing 21 - 35 of 35
close modal

Filters

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