CIS 103 - CHAPTER 5

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

When two loops are nested, the loop that is contained by the other is the _____ loop.

inner

Typically, the value added to a counter variable is _____.

1

Which of the following is not a step that must occur with every correctly working loop?

Set the loop control value equal to a sentinel during each iteration.

Which of the following is a definite loop?

a loop that executes 1000 times

Which of the following is an indefinite loop?

a loop that follows a prompt that asks a user how many repetitions to make and uses the value to control the loop

Typically, the value added to an accumulator variable is _____.

different in each iteration

Overriding a user's entered value by setting it to a predetermined value is known as ______.

forcing

Adding 1 to a variable is also called _____ it.

incrementing

The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _____.

loop

The statements executed within a loop are known collectively as the _____.

loop body

After an accumulator or counter variable is displayed at the end of a program, it is best to _____.

none of the above

When loops are nested, _____.

none of the above

When you decrement a variable, you _____.

subtract a value from it

13. A report that lists only totals, with no details about individual records, is a(n) _____ report.

summary

A variable might hold an incorrect value even when it is _____.

the correct data type, within a required range, a constant coded by the programmer all of the above

A counter keeps track of _____.

the number of times an event has occurred

To ensure that a user's entry is the correct data type, frequently you ______.

use a method built into the programming language

When you _____, you make sure data items are the correct type and fall within the correct range.

validate data

Most programmers use a for loop _____.

when they know the exact number of times a loop will repeat

The loop that frequently appears in a program's mainline logic _____.

works correctly based on the same logic as other loops


Set pelajaran terkait

Unit 6: Gilded Age and Progressivism

View Set

Cartilage & Bone - Human Anatomy & Physiology - Chapter 6 - Tortora

View Set

Life Insurance - Chapter 10: Taxation of Life Insurance and Annuities - Premiums and Proceeds

View Set

Fundamentals Nursing Prep U Chapter 22 Nurse Leader, Manager, and Care Coordinator

View Set