Program Design & Development

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

No matter how complicated it is, any set of steps can always be reduced to combinations of the two basic structures of sequence and loop.

**A) False B) True

As a general rule, an eof question should always come immediately after an input statement because the end-of-file condition will be detected at input.

**A) True B) False

Because you may stack and nest structures while retaining overall structure, it might be difficult to determine whether a flowchart as a whole is structured.

**A) True B) False

In a structured program, any structure can be nested within another structure.

**A) True B) False

The following pseudocode is an example of a(n) ____ structure. if firstNumber is bigger than secondNumber then print firstNumber else print secondNumber

**A) decision B) sequence C) nested D) loop

You may hear programmers refer to looping as ____.

**A) iteration B) case C) execution D) selection

The action or actions that occur within a loop are known as a(n) ____.

**A) loop body B) loop internals C) action body D) structure body

Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.

**A) modules B) units C) sequences D) segments

The do loop is a variation of the ____ loop.

**A) while B) case C) sequence D) if-then-else

With a selection structure, you perform an action or task, and then you perform the next action, in order.

A) True **B) False

The following pseudocode is an example of ____. if conditionA is true then do stepE else do stepB do stepC do stepD endif

A) a posttest **B) nesting C) stacking D) a pretest

The following pseudocode is an example of a(n) ____ structure. get firstNumber get secondNumber add firstNumber and secondNumber print result

A) decision **B) sequence C) nested D) loop

The priming read is an example of a(n) ____ task.

A) declaration B) exit **C) housekeeping D) selection

You can use an ____ statement to clearly show where the actions that depend on a decision end.

A) endstructure B) end C) endloop **D) endif

Structures can be stacked or connected to one another at their ____.

A) entry points only B) exit points only C) entry or combination points **D) entry or exit points

The maximum number of entry points that any programming structure can have is ____.

A) five B) zero **C) one D) three

A structured program includes only combinations of the three basic structures—____.

A) identification, selection, and loop B) iteration, selection, and loop **C) sequence, selection, and loop D) sequence, iteration, and loop

With a(n) ____, you perform an action or task, and then you perform the next action, in order.

A) loop sequence B) sequence problem C) ordered structure **D) sequence structure

A loop must return to the ____ question at some later point in a structure.

A) master loop **B) loop-controlling C) start loop D) continue loop

The following pseudocode is an example of a(n) ____ structure. get number while number is positive add to sum get number

A) nested **B) loop C) sequence D) decision

In older languages, you could leave a selection or loop before it was complete by using a "____" statement.

A) next B) go next C) loop **D) go to

Placing a structure within another structure is called ____ structures.

A) selecting B) shelling **C) nesting D) stacking

The following pseudocode is an example of ____. do stepA do stepB if conditionC is true then do stepD else do stepE endif while conditionF is true do stepG endwhile

A) single alternative structures B) a posttest C) nesting **D) stacking

One way to straighten out an unstructured flowchart segment is to use the "____" method.

A) spaghetti code **B) spaghetti bowl C) priming D) restructuring

A________read is an added statement that gets the first input value in a program

A) stacked B) nested **C) priming D) posttest

Fill in the blank in the following pseudocode: if someCondition is true then do oneProcess ____ do theOtherProcess

A) then **B) else C) while D) do

Variation of the selection structure

case structure

With this, you ask a question, and, depending on the answer, you take one of two courses of action

decision structure

Case in which nothing is done

loop structure

Continue to repeat actions while a condition remains true

loop structure

Often can be used in multiple programs

module

Added statement that gets the first input value in a program

priming read

Logically snarled program statements

spaghetti code

Attaching structures end-to-end

stacking structures

Basic unit of programming logic

structure


Kaugnay na mga set ng pag-aaral

Equity Items on the Balance Sheet

View Set

Income Statement Preparation for Ernst Consulting

View Set

Compensation Admin Test 3 quiz questions

View Set