Exam 1: I Am Not a Control Freak Control Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When used in a program, the ____ structure directs the computer to repeat one or more instructions until some condition is met, at which time the computer should stop repeating the instructions.

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

B

Programmers must use the repetition structure in every program they write.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

False

Without the repetition structure, if you needed an instruction to repeat 20 times you would have to write that instructions 20 times in your program.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

True

Control structures or ____ structures control the flow of a program's logic.

(Multiple Choice)
4.9/5
(35)

The ____ structure makes a decision and then takes an appropriate action based on that decision.

(Multiple Choice)
4.9/5
(33)

When used in a computer program, the selection structure alerts the computer that a decision needs to be made, and it provides the appropriate action to take based on the result of that decision.

(True/False)
4.8/5
(37)

The redo structure is also referred to as a loop or as iteration.

(True/False)
4.8/5
(36)

A(n) ____ is a set of step-by-step instructions that accomplish a task.

(Multiple Choice)
4.9/5
(29)

The ____ structure in a computer program directs the computer to process the program instructions, one after another, in the order listed in the program.

(Multiple Choice)
4.9/5
(38)

All computer programs, no matter how simple or how complex, are written using one or more of three basic structures: sequence, selection, and repetition.

(True/False)
4.8/5
(24)
close modal

Filters

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