Exam 5: Looping

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

Match each term with a statement below. -The amount by which a for loop control variable changes

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

I

Match each term with a statement below. -To decrease a variable's value

Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
Verified

F

What is an advantage of using fewer instructions?

Free
(Essay)
4.9/5
(24)
Correct Answer:
Verified

Using fewer instructions results in less time required for design and coding,fewer errors,and shorter compile time.

Programmers use the term ____ to describe programs that are well designed and easy to understand and maintain.

(Multiple Choice)
4.9/5
(36)

In a ____,the loop body executes at least one time because the loop control variable is not tested until after one iteration.

(Multiple Choice)
4.7/5
(41)

What are the tasks performed by the for count = 0 to 3 statement?

(Essay)
4.7/5
(34)

To add to a variable is to ____________________ the variable.

(Short Answer)
4.8/5
(28)

A(n)____ is any numeric variable you use to count the number of times an event has occurred.

(Multiple Choice)
4.8/5
(32)

Use a counter or a(n)____ to control a loop's repetitions.

(Multiple Choice)
4.9/5
(35)

Once your logic enters the body of a structured loop,____.

(Multiple Choice)
4.8/5
(39)

Match each term with a statement below. -One set of instructions that operates on multiple,separate sets of data

(Multiple Choice)
4.8/5
(37)

What are common mistakes made by programmers in coding loops?

(Essay)
4.9/5
(35)

You can either increment or decrement the loop control variable.

(True/False)
4.8/5
(43)

When one loop appears inside another,the loop that contains the other loop is called the ____ loop.

(Multiple Choice)
4.9/5
(44)

The amount by which a for loop control variable changes is often called a ____ value.

(Multiple Choice)
4.9/5
(37)

Explain when it would be appropriate to write an indefinite loop.

(Essay)
4.9/5
(28)

What is the difference between a definite loop and an indefinite loop?

(Essay)
4.9/5
(31)

What is a step value?

(Essay)
4.8/5
(36)

____________________ can ensure that a value is the correct data type or that it falls within an acceptable range.

(Short Answer)
4.9/5
(40)

The first step in a while loop is typically to ____.

(Multiple Choice)
5.0/5
(36)
Showing 1 - 20 of 59
close modal

Filters

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