CH 3 Review: Programming Logic & Design - Python

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Snarled program logic is called ___ code. (3.1)

spaghetti

2
New cards

The three structures of structured programming are ___. (3.2)

sequence, selection, and loop

3
New cards

A sequence structure can contain ___. (3.2)

any number of tasks

4
New cards

Which of the following is not another term for a selection structure? (3.2)

loop structure

5
New cards

A ____ expression has one of two values, often expressed as true or false. (3.2)

Boolean

6
New cards

Placing a structure within another structure is called ___ structure.

nesting

7
New cards

Attaching structures end to end is called ___. (3.2)

stacking

8
New cards

When an action is required if condition is true, but no action is needed if it is false, you use a ___. (3.2)

single-alternative selection

9
New cards

To take action repeatedly as long as a condition remains true, you use a ___. (3.2)

loop

10
New cards

When you must perform one action when a condition is true and a different one when it is false, and then the program continues, you use a ___. (3.2)

dual-alternative selection

11
New cards

Which of the following attributes do all three basic structures share? (3.2)

They all have one entry and one exit point.

12
New cards

Which true of stacking structures? (3.2)

When you stack structures, you cannot nest them in the same programs.

13
New cards

When input data in a loop within a program, the input statement that precedes the loop ___. (3.3)

is called a priming input

14
New cards

A group of statements that executes as a unit is a ___. (3.2)

block

15
New cards

Placing a decision within a loop is ___. (3.2)

an acceptable structured programming technique

16
New cards

In a selection structure, the structure-controlling condition is ___. (3.2)

tested once at the beginning of the structure

17
New cards

When a loop executes, the structure-controlling condition is ___. (3.2)

tested either before or after the loop body executes

18
New cards

Which of the following is not a reason for enforcing structure rules in computer programs? (3.4)

Structured programs usually are shorter than unstructured ones.

19
New cards

Which of the following is not a benefit of modularizing programs. (3.4)

If you use modules, you can ignore the rules of structures.

20
New cards

Which of the following is true of structured logic? (3.6)

Any task can be described using some combination of the three structures: sequence, selection, and loop.