Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

False

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


A) executed
B) located
C) defined
D) exported

Correct Answer

verifed

verified

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()


A) 70
B) 25
C) 100
D) The statement will cause a syntax error.

Correct Answer

verifed

verified

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


A) math
B) string
C) random
D) number

Correct Answer

verifed

verified

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


A) global variable
B) argument
C) local variable
D) parameter

Correct Answer

verifed

verified

B

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


A) global variable
B) argument
C) named constant
D) parameter

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

True

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


A) code
B) compiler
C) linker
D) interpreter

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

What will be the output after the following code is executed? What will be the output after the following code is executed?   A)  Tony Gaddis B)  Gaddis Tony C)  Tony, Gaddis D)  Gaddis, Tony


A) Tony Gaddis
B) Gaddis Tony
C) Tony, Gaddis
D) Gaddis, Tony

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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.


A) def
B) result
C) sent
D) return

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) global reach
B) definition
C) space
D) scope

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 1 - 20 of 66

Related Exams

Show Answer