CS-3320 Chapter 5 Quiz Study Questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

A function definition specifies what a function does and causes the function to execute.

False

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

False

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

False

In Python there is no restriction on the name of a module file.

False

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

False

The value assigned to a global constant can be changed in the mainline logic.

False

Unfortunately, there is no way to store and call on functions when using turtle graphics.

False

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

Different functions can have local variables with the same names.

True

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

True

One reason not to use global variables is that it makes a program hard to debug.

True

One reason to store graphics functions in a module is so that you can import the module into any program that needs to use those functions.

True

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

True

The function header marks the beginning of the function definition.

True

The randrange function returns a randomly selected value from a specific sequence of numbers.

True


Set pelajaran terkait

Unit 6 Communication with Clients and Prospects

View Set

Econ Unit 4 Test: Monetary Policy

View Set

Quizzes for Ultrasound & Electrical Modalities

View Set

NURS 401 PrepU Ch. 24: Management of Patients With Chronic Pulmonary Disease

View Set

Lesson 5 - Transcription, Translation and DNA Repair

View Set

Management EAQ - Answers I missed

View Set