STARTING OUT WITH PYTHON CHAPTER 5 EXAM

Exam (elaborations)
Loading...

Loading secure study material viewer...

Page 0 of 0

Document Text

PDF Download

STARTING OUT WITH PYTHON CHAPTER 5 EXAM

QUESTIONS

Qs and Ans Expert- Explanation

This Exam contains:

-Guarantee passing score -20 Questions and Answers -format set of multiple-choice -Expert- Explanation

Question 1: Sqrt

Answer:

Example of a math module function.

Question 2: Top down design

Answer:

A design technique that programmers use to break down an algorithm into functions.

Question 3: Global variable

Answer:

You should avoid using these variables when possible.

Question 4: Return

Answer:

This statement causesva function to end and sends a value back to the part of the program that called the function.

Question 5: Random

Answer:

This standard library function returns a random floating point number in the rang of 0.0 up to 1.0 but not including 1.0.

Question 6: IPO

Answer:

This is a design tool that describes the input, peocessing, and output of a function.

Question 7: Boolean

Answer:

This type of function returns either true or falsem

Question 8: Global variable

Answer:

A variable that is visible to every function in a program file.

Question 9: Header

Answer:

The first line of a function definition.

Question 10: Local variable

Answer:

A variable that us created inside a function.

Question 11: Library function

Answer:

A prewritten function that is built into the language.

Question 12: Argument

Answer:

A piece of data that is sent to a function.

Question 13: Hierarchy chart

Answer:

A diagram that gives a visual representation of the relationships between functions in a program.

Question 14: Uniform

Answer:

This standard library function returns a random float number in a specified range of values.

Question 15: Call it

Answer:

In order to use a function you have to do this.

Question 16: Scope

Answer:

The part of the program in such a variable may be accessed.

Question 17: Code reuse

Answer:

A design technique that helps with reduce the duplication of code within a program and is a benefit of using functions.

Question 18: Randint

Answer:

This standard library function returns a random integer within a specified range of values.

Question 19: Function

Answer:

A group of statements that exist within a program for the purpose of performing a specific task.

Question 20: Parameter

Answer:

A special variable that receives a piece of data when a function is called.

Download Study Material

Buy This Material

$35.00 One-time purchase
Buy Now
  • Full access to this material
  • Download anytime
  • No expiration

Study Material Information

Category: Exam (elaborations)
Description:

STARTING OUT WITH PYTHON CHAPTER 5 EXAM

Get this material $35.00