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
(78)
Correct Answer:
Verified

I

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

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

F

What is an advantage of using fewer instructions?

Free
(Essay)
5.0/5
(62)
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
(81)

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
(81)

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

(Essay)
4.7/5
(81)

To add to a variable is to ____________________ the variable.

(Short Answer)
4.7/5
(61)

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

(Multiple Choice)
4.8/5
(75)

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

(Multiple Choice)
4.9/5
(81)

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

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
4.8/5
(78)

What are common mistakes made by programmers in coding loops?

(Essay)
4.9/5
(82)

You can either increment or decrement the loop control variable.

(True/False)
4.8/5
(83)

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

(Multiple Choice)
4.9/5
(91)

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

(Multiple Choice)
4.9/5
(77)

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

(Essay)
4.9/5
(63)

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

(Essay)
4.9/5
(76)

What is a step value?

(Essay)
4.8/5
(74)

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

(Short Answer)
4.9/5
(90)

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

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

Filters

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