Category: While Loops

CLAD 02-39

CLAD 02-39

Which combination of words correctly completes the following statement?

The _________________ indicates the total number of times the loop will execute and the ______________ returns the number of times the loop has executed minus one.

  1. count terminal, ; conditional terminal, .
  2. conditional terminal, ; iteration terminal, .
  3. count terminal, ; iteration terminal, .
  4. conditional terminal, ; count terminal, .

CLAD 03-06

CLAD 03-06

Which of the following statements is true about the following block diagram?

  1. The loop will execute once and the iteration terminal, , will output a value of one.
  2. The loop will execute once and the iteration terminal, , will output a value of zero.
  3. The loop will execute infinitely and the program will have to be aborted.
  4. The loop will not execute once and the iteration terminal, , will output a null value.

CLAD 04-18

CLAD 04-18

Which of the following accurately describes the output that results from execution of the following loop?

  1. The last three values from DAQ Assistant will be displayed.
  2. A running average of all measurements will be displayed.
  3. An average of the last four measurements will be displayed.
  4. None of the above.

CLAD 02-14

CLAD 02-14

What value does the Numeric indicator display after this code executes?

  1. 0
  2. 4
  3. 8
  4. The While Loop iterates indefinitely

CLAD 02-01

CLAD 02-01

Which of the following statements is TRUE regarding the execution of the following code?

  1. The loop will iterate 51 times.
  2. The loop will iterate 50 times.
  3. The loop will iterate 49 times.
  4. A For Loop that has a 50 wired to the count terminal will perform the same operation.

CLAD 01-11

CLAD 01-11

Which of the following statements is TRUE about the following code segment?

  1. The loop will execute once and the indicator Iteration will have value of one.
  2. The loop will execute once and the indicator Iteration will have a value of zero.
  3. The loop will execute infinitely and the program will have to be aborted.
  4. The loop will not execute and the indicator Iteration will have a value of zero.
Top