Exam 4: The Sequence Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Every time a module is called, the computer suspends execution of the main program, runs the module, and then returns to the next statement in the main program.

(True/False)
4.8/5
(39)

The following statement is an example of a(n) ____ structure. "For one week, you will pay $3 for a subway ticket. After that, you will receive a discount."

(Multiple Choice)
4.9/5
(35)

On a flowchart, ____ are used for comments.

(Multiple Choice)
4.8/5
(39)

A ____ structure consists of one or more statements performed in order with no variation.

(Multiple Choice)
4.8/5
(32)

A common example used for a sequence structure is the ______ part of a recipe.

(Multiple Choice)
4.8/5
(28)

The JavaScript equivalent of the pseudocode Input is ____.

(Multiple Choice)
4.8/5
(30)

The following statement is an example of a(n) ____ structure. "If the baby gets sick, take her to the hospital."

(Multiple Choice)
4.8/5
(41)

The following is an example of a nonstructured program: 100 PRINT "Enter a number (or 0 to quit): " 110 INPUT N 120 WHILE N <> 0 120 \quad IF N < 0 THEN PRINT "Your number is negative." 130 \quad IF N > 0 THEN PRINT "Your number is positive." 140 \quad PRINT "Enter a number (or 0 to quit): " 150 \quad INPUT N 160 END WHILE 200 PRINT "Thank you!"

(True/False)
4.8/5
(40)

Left-brained people tend to favor flowcharts as a method of developing algorithms for programs.

(True/False)
4.9/5
(41)

The ____ structure evaluates a logical condition, one that's true or false, then performs one or more statements (or ignores those statements), based on the evaluation of this condition.

(Multiple Choice)
4.7/5
(40)
Showing 41 - 50 of 50
close modal

Filters

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