Python Programming: Chapter 5(Files)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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


Kaugnay na mga set ng pag-aaral

Motivation, Expectancy and Equity Theory

View Set

Unit 6 How are you? (Our World 2)

View Set

Prioritization, Delegation, Assignment- Chapter15

View Set

Lesson 9 - CODAs, Time Frames, What do you like to do

View Set

apush marking period one quarterly klos

View Set

NCLEX Practice- Diagnostic Testing & Lab Values

View Set

Digestive System and Metabolism Exam Study Guide (Pt. 3

View Set

Ch 4 Unit 5 Liens and Encumbrances - Quiz

View Set

Module 5 - Micronutrient Deficiencies

View Set

AWS Academy Cloud Architecting [2606] - Module 7 Knowledge Check

View Set

ثقافة علمية الطب البديل

View Set