CLAD Homework 3 Questions.pdf

(213 KB) Pobierz
CLAD Homework 3 Questions
1. The most efficient method for creating an array is:
a.
b.
c.
d.
Placing a build array function in a While Loop
Initializing an array and then replacing elements in a While Loop
Using a For Loop with Auto-indexing
Using a While Loop with Auto-Indexing
2. Which of the following statements is TRUE about the following code segment?
a. The loop will execute once and the indicator Iteration will have a value of
one
b. The loop will execute once and the indicator Iteration will have a value of
zero
c. The loop will execute infinitely and the program will have to be aborted
d. The loop will not execute and the indicator Iteration will have a value of
zero
3. What value does the Value Out indicator display after the VI executes?
a.
b.
c.
d.
0
4
5
6
4. Auto-indexing at a loop’s boundary is a feature that allows: (More than one
answer may apply.)
a.
b.
c.
d.
Arrays to be automatically traversed from one iteration to the next
Array functions to automatically index array elements
Functions that use arrays to automatically index them
Arrays to be automatically accumulated at loop boundaries
5. What is the value in Shift Register Answer after the following code has executed?
a.
b.
c.
d.
16
24
32
10
6. Which of the following terminals controls how many times a For loop executes?
a.
b.
c.
d.
7. Which data type is not accepted by the case selector terminal on a case
structure?
a.
b.
c.
d.
Arrays
Enumerated type values
Strings
Integers
8. This graphic displays all the cases of a single case statement. What value does
the Result indicator display after the VI executes?
a.
b.
c.
d.
5
7
12
36
9. In the figure below, the output of Array Size is
a.
b.
c.
d.
1D Array of {2, 3}
1D Array of {3, 2}
2
None of the above
10. What value is displayed in Result when the code executes?
a.
b.
c.
d.
A 1-D Array of {-25, 25, 50}
A 1-D Array of {-25, 25}
A 2-D Array of {{-25, -50, -50} , {50, 25, 25}}
A 1-D Array of {75, -50, 25}
Zgłoś jeśli naruszono regulamin