Exam 5: Functions

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

A(n)__________ is any piece of data that is passed into a function when the function is called.

Free
(Multiple Choice)
4.8/5
(76)
Correct Answer:
Verified

B

A hierarchy chart shows all the steps that are taken inside a function.

Free
(True/False)
4.9/5
(75)
Correct Answer:
Verified

False

Python function names follow the same rules as those for naming variables.

Free
(True/False)
4.8/5
(66)
Correct Answer:
Verified

True

Functions that are in the standard library are stored in files that are known as __________.

(Short Answer)
4.9/5
(83)

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

(True/False)
4.8/5
(75)

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

(Short Answer)
4.9/5
(74)

A local variable can be accessed from anywhere in the program.

(True/False)
4.9/5
(81)

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

(Multiple Choice)
4.7/5
(70)

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

(Multiple Choice)
4.9/5
(83)

The approach known as __________ makes a program easier to understand,test,and maintain.

(Short Answer)
4.8/5
(65)

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

(Multiple Choice)
5.0/5
(94)

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

(Multiple Choice)
4.9/5
(75)

The math function atan(x)returns one tangent of x in radians.

(True/False)
4.9/5
(92)

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

(Short Answer)
4.8/5
(75)

When a function is called by its name during the execution of a program,then it is

(Multiple Choice)
4.9/5
(91)

The Python library functions that are built into the Python __________ can be used by simply calling the required function.

(Multiple Choice)
4.8/5
(85)

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.9/5
(78)

In Python you can have a list of variables on the left side of the argument operator.

(True/False)
4.9/5
(66)

A set of statements that belong together as a group and contribute to the function definition is known as a

(Multiple Choice)
4.8/5
(76)

What will display after the following code is executed? Def main(): Print("The answer is",magic(5)) Def magic(num): Answer = num + 2 * 10 Return answer Main()

(Multiple Choice)
4.8/5
(84)
Showing 1 - 20 of 66
close modal

Filters

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