CLAD Homework 2 Solutions


CLAD Homework 2 Solutions
1. B
There is no need to make an array of arrays since you can simply add dimensions to
an existing array.
2. A
The Initialize Array function creates an array with a length specified by dimension
size. The value of each element is specified by the element input. To initialize
multidimensional arrays, you can simply expand the Initialize Array function to
display more dimension size inputs.
3. C
The Array Subset function takes and input array and returns a section of that array
as specified, starting at the given index and continuing for a number of elements
equal to length. Here, the index value 3 specifies the fourth element of the array, or
10. Since the specified length is value 4, an array of length 4 is returned as follows:
{10, 8, 5, 7}.
4. A
Rings can use any numeric representation while enums can use only unsigned
integers.
5. A
When given a multidimensional array, the Array Size function will output a 1D array
containing the size of each dimension. The order of arrays is always row first,
column second. Thus, the correct answer is A since there are 2 rows and 3 columns.
6. B
When doing array arithmetic, LabVIEW will force the output to be the size of the
smaller input. In this case, the output will be a 1D array with two elements. The
elements are 75-100 and 50-25, or {-25, 25}.
7. A
Clusters allow grouping of data into structures. This cleans up block diagrams by
minimizing the number of wires and terminals required. Data types may be mixed in
clusters.
8. B
Since the .ctl file was saved as a Control and not a Type Def. or a Strict Type Def.,
the change to the file does not update instances of the control.
9. C
Because there are different data types (string, numeric) a cluster should be used to
store them all together.
10. A
A type def forces the data type of each instance to be identical. If the type def cluster
is updated to contain another integer, it will change all of the instances of that type
def.


Wyszukiwarka

Podobne podstrony:
CLAD Homework 5 Solutions
CLAD Homework 6 Solutions
solution?BDB27F
2010 experimental solutions
BBC Auschwitz The Nazis and the Final Solution Episode 4
solution
3 etap 05 solutions
BBC Auschwitz The Nazis and the Final Solution Episode 1
exam 1 solutions
Zadania z różnych lat solution
Gravity Theory — Homework #1
7 Essential Oils 100 all natural solutions

więcej podobnych podstron