Category: Loops

CLAD 04-06

CLAD 04-06

What is the result in Array after the following code has executed?

  1. A 1-D array of {1, 4, 3, 2, 1, 0}
  2. A 1-D array of {1, 8, 0, 1, 2, 3, 4, 6, 2}
  3. A 1-D array of {1, 4, 3, 2, 1, 0, 8, 6, 2}
  4. A 1-D array of {1, 8, 0, 1, 2, 2, 9}

CLAD 04-20

CLAD 04-20

Which of the following statements is TRUE?

  1. The default setting for a tunnel into or out of a For Loop has auto-indexing enabled if the data being passed is an array.
  2. The default setting for a tunnel into or out of a While Loop has auto-indexing disabled if the data being passed is an array.
  3. Both A and B are True.
  4. None of the above.

CLAD 03-33

CLAD 03-33

The most efficient method for creating an array is:

  1. Using a For Loop with Auto-Indexing.
  2. Placing a Build Array function in a While Loop.
  3. Initializing an Array and then replacing elements in a While Loop.
  4. Using a While Loop with Auto-Indexing.

CLAD 03-22

CLAD 03-22

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

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

CLAD 02-17

CLAD 02-17

Can a wire be used to pass data between loops that are intended to run in parallel?

  1. Yes
  2. No

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.

CLAD 01-32

CLAD 01-32

The Wait function can be added to While Loops:

  1. To free up available memory.
  2. To allocate memory used by the CPU.
  3. To allow the processor time to complete other tasks.
  4. To reserve which processor the code is running on.

CLAD 01-05

CLAD 01-05

What does the Value Out indicator display after the VI executes?

  1. 0
  2. 4
  3. 5
  4. 6
Top