Exam 5: Repetition Structures

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The While instruction is a posttest loop.

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

False

Which type of structure is used to execute the same set instructions more than once?

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

C

The following loop would execute ___________________ times: Loop index from 0 up to (but not including) 10 times incrementing by 1

Free
(Short Answer)
4.7/5
(25)
Correct Answer:
Verified

10

The Loop instruction causes a set of instructions to execute as long as a specified Boolean expression is true.

(True/False)
4.7/5
(28)

The following loop would execute how many times? Loop index from 0 up to (but not including) 3 times incrementing by 1

(Multiple Choice)
4.9/5
(40)

Which of the following is an example of an infinite loop?

(Multiple Choice)
4.8/5
(35)

The ___________________ instruction causes a set of instructions to execute a certain number of times.

(Short Answer)
4.9/5
(36)

The Loop instruction can use only integers, or whole numbers, as the number of times to repeat.

(True/False)
4.7/5
(41)

The complicated version of the loop instruction shows that the loop uses a counter variable named ___________________.

(Short Answer)
4.7/5
(35)

You can use a variable or a function call to specify the number of repetitions that a loop will perform.

(True/False)
4.8/5
(45)

The following loop would execute how many times? Loop 1 times times

(Multiple Choice)
4.9/5
(38)

Because the condition is tested before the loop is repeated, what is another term for the While instruction?

(Multiple Choice)
4.8/5
(37)

The following loop would execute how many times? Loop index from 0 up to (but not including) 4 times incrementing by 2

(Multiple Choice)
4.9/5
(30)

This is the type of variable that the Loop instruction uses internally.

(Multiple Choice)
4.7/5
(36)

The ___________________ instruction causes a set of instructions to execute as long as a specified Boolean expression is true.

(Short Answer)
4.9/5
(41)

Which type of instruction will cause a set of instructions to execute as long as a specified Boolean expression is true?

(Multiple Choice)
4.8/5
(31)

Because programmers commonly need to repeat instructions, all programming languages provide repetition structures.

(True/False)
4.9/5
(39)

The While instruction can be used to test the value of an object's property.

(True/False)
4.7/5
(31)

A(n) ___________________ loop will repeat an unlimited number of times.

(Short Answer)
4.9/5
(44)

The While instruction is also called a(n) ___________________ loop because the condition is tested before the loop is repeated.

(Short Answer)
4.8/5
(36)
close modal

Filters

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