Category: Loops

CLAD 01-21

CLAD 01-21

What is the value in Shift Register Answer after the following code has executed?

  1. 16
  2. 24
  3. 32
  4. 10

CLAD 01-17

CLAD 01-17

Auto-indexing at a loop boundary is a feature that allows:
(More than one answer may apply).

  1. Arrays to be automatically traversed from one iteration to the next.
  2. Array functions to automatically index array elements.
  3. Functions that use arrays to automatically index them.
  4. Arrays to be automatically accumulated at loop boundaries.

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-35

CLAD 03-35

Which of the following statements is true about the iteration terminal ?

  1. It returns the number of times the loop has executed.
  2. It returns the number of times the loop has executed, plus one.
  3. It returns the number of times the loop has executed, minus one.
  4. It returns a constant number.

CLAD 03-26

CLAD 03-26

Under which of the following conditions does a For Loop stop executing?

  1. When a true value is present at the conditional terminal and the conditional terminal is .
  2. When the value of the iteration terminal, , is one less than the value of the count terminal, .
  3. When the value of the iteration terminal, , is one more than the value of the count terminal, .
  4. None of the above.

CLAD 03-08

CLAD 03-08

Which of the following terminals controls how many times a For Loop will execute?

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-39

CLAD 04-39

Which of the following terminals controls how many times a For Loop will execute?

CLAD 04-22

CLAD 04-22

Which of the following graphs matches the result in Comparison Values after the following code has executed?

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.
Top