Exam 5: Repetition Structures

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

When processing a long list of values with a loop,the program knows it has reached the end of the list when the _________ value is read.

(Short Answer)
4.8/5
(30)

The While loop gets its name from the way it works: While a condition is false,do some task.

(True/False)
4.8/5
(36)

An inner loop goes through all of its iterations for every single iteration of the ______ loop.

(Short Answer)
4.9/5
(37)

The ___________ represents a special value that marks the end of a list of values.

(Multiple Choice)
4.9/5
(34)

A posttest loop does not perform any iteration if the Boolean expression is false to begin with.

(True/False)
4.7/5
(46)

A loop that accumulates a total as it reads each number from a series is often said to keep a what?

(Multiple Choice)
4.8/5
(36)

The While and For loops are considered pretest loops because they test the condition before processing the statement(s)in the loop body.

(True/False)
5.0/5
(28)

A ______________ structure is commonly known as a loop.

(Short Answer)
4.9/5
(32)

The following is an example of what type of loop? For k = 7 To maxValue

(Multiple Choice)
4.9/5
(23)

The While loop will never execute if its condition is true to start with.

(True/False)
4.9/5
(44)

The following loop will perform ______ iterations. For start = 6 To 2 Step -3

(Short Answer)
4.9/5
(44)

How many times will the following loop iterate? Set k = 1 Do Display k Set k = k + 1 Until k > 1

(Multiple Choice)
4.9/5
(43)

The While loop is known as a pretest loop,which means it tests its condition before performing an iteration.

(True/False)
4.9/5
(30)

A ____________ -controlled loop repeats a statement or set of statements a specific number of times.

(Short Answer)
4.8/5
(37)

In a count-controlled loop,the counter performs _______ action(s).

(Multiple Choice)
4.8/5
(33)

Modules can be called from statements in the body of any loop.

(True/False)
4.9/5
(32)

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

(Multiple Choice)
4.9/5
(35)

In a For loop a negative step value is used to __________ the counter variable.

(Short Answer)
4.7/5
(31)

In the For statement,you can only use positive integers as step values.

(True/False)
4.8/5
(36)

The variable that is used to keep the running total in a loop is called a(n)_________________ in programming.

(Short Answer)
4.8/5
(36)
Showing 21 - 40 of 44
close modal

Filters

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