Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

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


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

E) C) and D)
F) None of the above

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

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

An indefinite loop is a loop that never stops.

A) True
B) False

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

What is an advantage of using fewer instructions?

Correct Answer

verifed

verified

Using fewer instructions resul...

View Answer

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

A) True
B) False

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

The ____ loop is particularly useful when processing arrays.


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

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

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

A) True
B) False

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.

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


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

E) A) and B)
F) A) and D)

Correct Answer

verifed

verified

C

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


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

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

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

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

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

D

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

E) A) and C)
F) C) and D)

Correct Answer

verifed

verified

The loop control variable is initialized after entering the loop.

A) True
B) False

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

The ____ loop provides three actions in one compact statement.


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

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

What is an accumulator?

Correct Answer

verifed

verified

An accumulator is a variable that you us...

View Answer

Showing 1 - 20 of 51

Related Exams

Show Answer