Category: Arrays

CLAD 04-35

CLAD 04-35

Which of the following statements regarding the index of Arrays are NOT true?

  1. The index is used to access a particular element of an Array.
  2. The index ranges from 1 to N.
  3. A 2-D Array has both a column and row index.
  4. The index ranges from 0 to N-1.

CLAD 04-16

CLAD 04-16

Which of the following methods is NOT a method to create a 1-D Array?

  1. Place an Array Shell on the Front Panel and drag a Control into the shell.
  2. Use a While Loop with auto-indexing disabled.
  3. Use a For Loop with auto-indexing enabled.
  4. Use the Initialize Array function.

CLAD 04-09

CLAD 04-09

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

  1. A 1-D Array of {8, 5, 7}
  2. A 1-D Array of {10, 8, 5}
  3. A 1-D Array of {10, 8, 5, 7}
  4. A 1-D Array of {7, 10, 8, 5}

CLAD 04-02

CLAD 04-02

Which of the following statements regarding Array constants is NOT true?

  1. When you create an Array constant on the Block Diagram, it is not visible on the Front Panel.
  2. You cannot resize an Array constant to include more than one element.
  3. You can copy or drag and existing Array on the Front Panel to the Block Diagram to create a constant of the same data type.
  4. All array operations can be performed on an Array constant.

CLAD 03-31

CLAD 03-31

What is the result of the following Array addition?

  1. A 1-D Array of {80, 20, 40, 10, -60}
  2. A 1-D Array of {120, 30, -60}}
  3. A 1-D Array of {120, 30}
  4. A 2-D Array of {{120, 90, 20}, {60, 30, -40}}

CLAD 03-14

CLAD 03-14

What is the output of the Initialize Array function after the following code has executed?

  1. A 1-D Array of {3, 3, 3, 3}
  2. A 1-D Array of {4, 4, 4}
  3. A 1-D Array of {3, 4}
  4. A 1-D Array of {4, 3}

CLAD 03-13

CLAD 03-13

What is the output of the Build Array function in the following block diagram when Concatenate Inputs is selected?

  1. A 1-D Array of {1, -4, 3, 7, -2, 6}
  2. A 1-D Array of {1, 7, -4, -2, 3, 6}
  3. A 2-D Array of {{1, -4, 3, 0}, {7, -2, 6}}
  4. A 2-D Array of {{1, -4, 3}, {7, -2, 6}}

CLAD 02-30

CLAD 02-30

In the figure below, the output of Array Size is…

  1. A 1-D Array of {-25, 25, 50}
  2. A 1-D Array of {-25, 25}
  3. A 2-D Array of {{-25, -50, -50}, {50, 25, 25}}
  4. A 1-D Array of {75, -50, 25}

CLAD 02-09

CLAD 02-09

In the figure below, the output of Array Size is…

  1. 1D Array of {2, 3}
  2. 1D Array of {3, 2}
  3. 2
  4. None of the above.

CLAD 02-05

CLAD 02-05

The most efficient method for creating an array is:

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