Exam 5: Repetition Structures

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

The statements that appear between the While and the End While clauses are called the ________________.

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

C

Which structure causes a statement or set of statements to execute repeatedly?

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

D

The loop that iterates as long as a condition is false and then stops when the condition becomes true is called a __________ loop.

Free
(Short Answer)
4.9/5
(39)
Correct Answer:
Verified

Do-Until

Which loop is specifically designed to initialize,test,and increment a counter variable?

(Multiple Choice)
4.7/5
(35)

A While loop repeats infinitely when there is no statement inside the loop body that makes the test condition false.

(True/False)
4.7/5
(38)

Which of these are posttest loops?

(Multiple Choice)
4.9/5
(30)

The amount by which the counter variable is incremented in a For loop is known as what?

(Multiple Choice)
4.8/5
(37)

A count-controlled loop uses a variable known as ________ to store the number of iterations that it has performed.

(Short Answer)
4.8/5
(39)

How many times will the following loop iterate? For j = 1 To 5 Step 2 Display j End For

(Multiple Choice)
4.7/5
(33)

To ___________ a variable means to decrease its value.

(Multiple Choice)
4.8/5
(44)

In a For loop,the programmer should know the exact number of iterations the loop must perform before writing the code.

(True/False)
4.9/5
(41)

A condition-controlled loop can be used to iterate the body of the loop a specific number of times.

(True/False)
4.7/5
(48)

When the ________ loop executes,the condition is tested; if it is true,the loop body is executed,and then the loop starts over; if the condition is false,the loop terminates.

(Short Answer)
4.9/5
(37)

How many times will the following loop iterate? Set k = 1 While k < = 5 Display k End While

(Multiple Choice)
4.9/5
(39)

In a count-controlled loop the test action compares the counter variable to the _________ value to determine if the loop iterates or terminates.

(Short Answer)
4.8/5
(32)

The term __________ is used in the For loop if the counter needs to be incremented by a value other than one.

(Short Answer)
5.0/5
(45)

Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?

(Multiple Choice)
5.0/5
(44)

A structure that has a loop that is inside another loop is called a __________ loop

(Short Answer)
4.8/5
(38)

The conditions that control a loop repetition are Boolean expressions.

(True/False)
4.8/5
(40)

What type of loop uses a Boolean expression to control the number of times that it repeats a statement or set of statements?

(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 44
close modal

Filters

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