Filters
Question type

Study Flashcards

What is an accumulator?

Correct Answer

verifed

verified

An accumulator is a variable that you us...

View Answer

It is the programmer's responsibility to initialize all variables that must start with a specific value.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Match each term with a statement below. -Initialized before entering a while loop


A) indefinite
B) loop control variable
C) nested loops
D) counter
E) increment
F) decrement
G) accumulator
H) loop
I) step value
J) forcing

K) B) and D)
L) A) and I)

Correct Answer

verifed

verified

Match each term with a statement below. -Any numeric variable you use to count the number of times an event has occurred


A) indefinite
B) loop control variable
C) nested loops
D) counter
E) increment
F) decrement
G) accumulator
H) loop
I) step value
J) forcing

K) I) and J)
L) B) and G)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Business reports that list only totals,with no individual item details,are called ____.


A) detail reports
B) summary reports
C) transaction reports
D) control-break reports

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

A mistake programmers often make with loops is that they ____.


A) neglect to initialize the loop control variable prior to entering the loop body
B) increment the loop control variable inside of the loop body
C) validate data to ensure values are the correct data type or that they fall within an acceptable range
D) enclose the inner loop entirely within the outer loop in a nested loop

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

____ is a technique with which you try to prepare for all possible errors before they occur.


A) Incrementing
B) Stub
C) Nested loop
D) Defensive programming

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

Correct Answer

verifed

verified

You usually use the for loop with ____ loops.


A) indefinite
B) definite
C) inner
D) outer

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

Correct Answer

verifed

verified

Match each term with a statement below. -To add to a variable


A) indefinite
B) loop control variable
C) nested loops
D) counter
E) increment
F) decrement
G) accumulator
H) loop
I) step value
J) forcing

K) A) and F)
L) B) and G)

Correct Answer

verifed

verified

A posttest loop is sometimes called a ____________________ loop.

Correct Answer

verifed

verified

An indefinite loop is a loop that never stops.

A) True
B) False

Correct Answer

verifed

verified

Match each term with a statement below. -To override incorrect data by setting the variable to a specific,predetermined value


A) indefinite
B) loop control variable
C) nested loops
D) counter
E) increment
F) decrement
G) accumulator
H) loop
I) step value
J) forcing

K) G) and I)
L) B) and F)

Correct Answer

verifed

verified

When are you required to use a for statement,and what are the advantages of for statements?

Correct Answer

verifed

verified

You never are required to use a for stat...

View Answer

Both the while loop and the for loop are examples of pretest loops.

A) True
B) False

Correct Answer

verifed

verified

In a ____,the loop body might never execute because the question controlling the loop might be false the first time it is asked.


A) summary report
B) pretest loop
C) posttest loop
D) loop control

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

A comparison is correct only when the correct ____ and operator are used.


A) expression
B) operands
C) statements
D) index

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

Correct Answer

verifed

verified

Showing 41 - 59 of 59

Related Exams

Show Answer