Programmers use…….. known as loops.
a) Repetition structure
b) Conditional structure
c) Goto
d) Unconditional structure
Explanation: Programmers use the repetition structure, referred to more simply as a loop, when they need the computer to repeatedly process one or more program instructions. If and for how long the instructions are repeated is determined by the loop’s condition.
The requirement for repeating the instructions is referred to as the……….
a) Looping condition
b) Conditional statement
c) Iterative statement
d) Initialization statement
Explanation: The requirement for repeating the instructions is referred to as the looping condition, because it indicates when the computer should continue “looping” through the instructions.
The requirement for not repeating the instructions is referred to as the ……..
a) Loop exit condition
b) Looping condition
c) Conditional statement
d) Iterative statement
Explanation: The requirement for not repeating the instructions is referred to as the loop exit condition, because it tells the computer when to exit (or stop) the loop. Every looping condition has an opposing loop exit condition; in other words, one is the opposite of the other.
The instructions in a…… loop are always processed at least once, whereas the instructions in a……..loop might not be processed at all.
a) Posttest, pretest
b) Pretest, posttest
c) Pretest, pretest
d) Posttest, posttest
……. is a numeric variable used for counting something.
a) Accumulator
b) Counter
c) Positive
d) Negative
Explanation: Counter is a numeric value used for counting something and accumulator is a valued used for accumulating something, such as adding, such as total amount of a month earned by a person etc.
……….is a numeric variable used for accumulating something.
a) Accumulator
b) Counter
c) Positive
d) Negative
Explanation: Counter is a numeric value used for counting something and accumulator is a valued used for accumulating something, such as adding, such as total amount of a month earned by a person etc.