169k views
2 votes
A loop decision point for an algorithm consists of three features: an initial value, a set of actions to be performed, and a(n) ________.

a. class operator
b. documentation plan
c. test condition

User Buzzzzjay
by
5.5k points

1 Answer

6 votes

Answer:

Option c is the correct answer for the above question.

Step-by-step explanation:

A loop is used to repeat some lines in some specific times which depends on some conditions of the loop. If a person wants to print "welcome" on 5 times then he can do this by two ways one is writing a print statement 5 times and the other is states a loop that executes 5 times through condition. The loop is described or written by three necessary points which are:-

  1. The fist is to initialize the initial value which tells the compiler for the starting point of the loop.
  2. The second is to any action for that condition variable which takes the loop for the direction of ending points.
  3. The third is a condition that defines the ending point of the loop.

The above question also states about the loop in which first and second points are given then the third point is necessary to complete the sentence which is states in option c. Hence the option c is correct while the other is not because--

  • Option 'a' states about the class operator which is not the part of the loop.
  • Option b states about the documentation plan which is also not the part of the loop.

User KickinMhl
by
5.5k points