CS Test 2

¡Supera tus tareas y exámenes ahora con Quizwiz!

Diamond

. In flowcharting, the _____ symbol is used to represent a Boolean expression.

Def

.The function header begins with the keyword _______ followed by the name of the function.

Repetition

A ___ structure causes a statement or set of statements to execute repeatedly.

Return

A value-returning function has a(n) ______ statement that returns a value back to the part of the program that called it.

Scope

A variable is visible only to statements in the variables ______ .

Condition

A(n) ____ controlled loop causes a statement or set of statements to repeat as long as a condition is true.

Infinite

A(n) ____ loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false.

Running

A(n) _____ total is a sum of numbers that accumulates with each iteration of a loop

Input

A(n) _____ validation loop is sometimes called an error trap or an error handler.

Single Alternative

A(n) ______ decision structure provides only one alternative path of execution.

Compound

A(n) ______ expression is made up of two or more Boolean expressions

Sentinel

A(n) ______ is a special value that marks the end of a sequence of items

Menu-Driven

A(n) ______ program displays a list of the operations on the screen and allows the user to select the operation that the program should perform.

If-Else

A(n) ______ statement will execute one block of statements if its condition is true, or another block if its condition is false.

Relational

A(n) _______ operator determines whether a specific relationship exists between two values.

Position

Arguments are passed by _______ to the corresponding parameter variables in the function.

Flags

Boolean variables are commonly used as _____ to indicate whether a specific condition exists.

Modules

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

.py

In Python, a modules file name should end in _____.

For

In Python, you would use the ______ statement to write a count-controlled loop.

Conditionally

In a decision structure, the action is _____ executed because it is performed only when a certain condition is true.

If-Elif-Else

Python provides a special version of a decision structure known as the ______ statement, which makes the logic of the nested decision structure simpler to write.

Range

The ______ function is a built-in function that generates a list of integer values.

If

The ______ statement is used to create a decision structure

GIGO

The acronym _____ refers to the fact that the computer cannot tell the difference between good data and bad data.

Divide and conquer

The approach called ______ is taking a large task and dividing it into several smaller tasks that are easily performed.

Modularization

The approach of ______ makes the program easier to understand, test, and maintain.

Definition

The code for a function is known as a function ______.

Not

The logical ______ operator reverses the truth of a Boolean expression.

Radians

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

Black Box

The term ______ is used to describe any mechanism that accepts input, performs some operation that cannot be seen, and produces output.

Subtasks

The top-down design breaks down the overall task of the program into a series of ______ .

Pretest

The while loop is known as a(n)____ loop because it tests conditions before performing an iteration.

Dot

To refer to a function in a module, in our program we have to use the _____ notation.


Conjuntos de estudio relacionados

Chapter 8: Chemical Equations REVIEW

View Set

Honan Chapter 30: Nursing Management: Diabetes Mellitus

View Set

Acquiring product info for use in selling/Selling process/ Customer service

View Set

Neuroanatomy Text and Atlas Questions

View Set

CH 36 ANTIANGINAL AND VASODILATING DRUGS

View Set

Management Ch 2 part 2 Fayol's Theroy of management

View Set

Principles of Leadership and Management

View Set