Exam 4: Algorithms

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The simplest element of logical structure in an algorithm is a ____, in which one instruction follows another as if in a straight line.

(Multiple Choice)
4.8/5
(38)

The path through an algorithm each time it is executed is determined by the state of the true or false conditions in the algorithm at that time.

(True/False)
4.8/5
(31)

A count-controlled loop is a special case of a sentinel loop, in which the sentinel involves a counter, but the term "sentinel loop" is generally used to refer only to loops that are not count-controlled.

(True/False)
4.8/5
(40)

In a branching routine, each path is called a ____.

(Multiple Choice)
4.8/5
(37)

A programmer who is familiar with the design patterns of logical structure can more easily create and edit software.

(True/False)
4.8/5
(33)

Usually terminators are labeled with the words "start" or "stop," or sometimes "begin" or "end."

(True/False)
4.9/5
(44)

Alice's LOOP instruction allows us to use a negative increment.

(True/False)
4.9/5
(40)

There should only be one terminator at the beginning of an algorithm and one terminator at the end of an algorithm.

(True/False)
4.9/5
(36)

The question "Which pair of shoes would you like?", is an example of a binary question.

(True/False)
4.8/5
(36)

Algorithms are sequential in nature, forming a kind of sequential logic.

(True/False)
4.7/5
(44)

Whenever a more sophisticated loop is called for, such as one that counts backward, it is best to create your own version of a count-controlled loop with a FOR instruction.

(True/False)
4.8/5
(33)

In a ____, one of two instructions is chosen.

(Multiple Choice)
4.9/5
(37)

A ____ occurs when an algorithm branches backward to a previous instruction, and then repeats part of the algorithm.

(Multiple Choice)
4.9/5
(41)

To say that one thing is "predicated" on another means that one thing is determined by another.

(True/False)
4.8/5
(40)

Böhm and Jacopini used a system they called ____ to describe their work.

(Multiple Choice)
4.9/5
(36)

In a count-controlled loop, the control variable is a called a ____.

(Multiple Choice)
4.9/5
(47)

A(n) ____ is a diagram that shows the structure of an algorithm.

(Multiple Choice)
4.8/5
(49)

In a ____, an instruction is either executed or bypassed.

(Multiple Choice)
5.0/5
(38)

Böhm and Jacopini used a simple system of flowcharting with two symbols: ovals to show each step in an algorithm, and diamond-shaped boxes to show what they called a logical predicative.

(True/False)
4.9/5
(40)

In a posttest loop, the test to determine whether or not to continue executing the loop comes before any other instructions that are to be repeated.

(True/False)
4.7/5
(39)
Showing 21 - 40 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)