Filters
Question type

Study Flashcards

Every high-level computer programming language contains a while statement.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

A definite loop executes a def...

View Answer

____ a data item means you override incorrect data by setting the variable to a specific value.


A) Flexing
B) Tracing
C) Forcing
D) Blanking

Correct Answer

verifed

verified

____________________ are frequently used to accumulate totals and to validate data.

Correct Answer

verifed

verified

Forgetting to initialize and alter the loop control variable are common mistakes that programmers sometimes make.

Correct Answer

verifed

verified

How might user data be validated?

Correct Answer

verifed

verified

When you ask a user to enter data into a...

View Answer

When one loop appears inside another is is called an indented loop.

Correct Answer

verifed

verified

The ____ loop provides three actions in one compact statement.


A) for
B) while
C) do until
D) repeat

Correct Answer

verifed

verified

What is an advantage of using fewer instructions?

Correct Answer

verifed

verified

Using fewer instructions resul...

View Answer

A loop within another loop is known as a(n) ____ loop.


A) indefinite
B) infinite
C) nested
D) hidden

Correct Answer

verifed

verified

C

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


A) nested loop
B) pretest loop
C) posttest loop
D) loop control

Correct Answer

verifed

verified

What are the three steps that should occur in every loop?

Correct Answer

verifed

verified

1. The loop control variable is initialized before entering the loop. 2. The loop control variable is tested, and, if the result is true, the loop body is entered. 3. The loop control variable is altered within the body of the loop so that the while expression eventually evaluates as false.

What is an accumulator?

Correct Answer

verifed

verified

An accumulator is a variable that you us...

View Answer

An indefinite loop is a loop that never stops.

Correct Answer

verifed

verified

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


A) industrial
B) intractable
C) well behaved
D) elegant

Correct Answer

verifed

verified

D

Programmers employ the acronym ____ to mean that if your input is incorrect, your output is worthless.


A) IBOW
B) GIGO
C) IIOW
D) GIGS

Correct Answer

verifed

verified

The ____ loop is particularly useful when processing arrays.


A) for
B) while
C) infinite
D) nested

Correct Answer

verifed

verified

The loop control variable is initialized after entering the loop.

Correct Answer

verifed

verified

A(n) ____ is very similar to a counter that you use to count loop iterations, except that you usually add a value other than one to this type of variable.


A) transaction
B) total
C) validator
D) accumulator

Correct Answer

verifed

verified

What are common mistakes made by programmers in coding loops?

Correct Answer

verifed

verified

• Neglecting to initialize the loop cont...

View Answer

Showing 1 - 20 of 51

Related Exams

Show Answer