Python Programming: Chapter 5(Files)
A value returning function is ___________
a function that will return a value back to the part of the program that called it
A set of statements that belong together as a group and contribute to the function definition is known as a _______________
block
What is the result of the following statement? x = random.randint(5, 15) * 2
A random integer from 5 to 15, multiplied by 2, assigned to the variable x
A _____________ is any piece of data that is passes into a function when the function is called
Argument
A _____________ variable is accessible to all the functions in a program file
global
A ________________ chart is also known as a structured chart
hierarchy
Which of the following statements causes the interpreter to load the contents of the random module into memory? -load random -import random -upload random -download random
import random
The ____________ argument specifies which parameter the argument should be passed into
keyword
The python standard library's _____________ module contains numerous functions that can be used in mathematical calculations
math
What makes it easier to reuse the same code in more than one program?
modules
Which of the following will assign a random number in the range of 1 through 50 to the variable 'number'? 1) random(1, 50) = number 2) number = random.randint(1, 50) 3) randint(1, 50) = number 4) number = random(range(1, 50))
number = random.randint(1, 50)
A ___________ is a variable that receives an argument that is passed into a function
parameter
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
return
A variable _________ is the part of a program in which the variable may be accessed
scope
the __________ of a local variable is the function in which the variable is created
scope
When a function is Called by its name, then it is ___________
executed
What type of value is returned by the functions 'random' and 'uniform'?
float