Relating Data
A) Arrays
B) Clusters
C) Type Definitions
Questions:
1) Auto-indexing at loop boundary is a feature that allows: (More than one answer may apply.)
a) Arrays to be automatically traversed from one iteration to the next
b) Array functions to automatically index array elements
c) Functions that use arrays to automatically index them
d) Arrays to be automatically accumulated at loop boundaries
a) 1-D Array of {3, 3, 3, 3}
c) 1-D Array of {3, 4}
a) 1-D Array of {8, 5, 7}
b) 1-D Array of {10, 8, 5}
c) 1-D Array of {10, 8, 5, 7}
d) 1-D Array of {7, 10, 8, 5}
4) Which of the following statements is NOT valid:
a) You can make a Cluster of Clusters.
b) You can make an Array of Arrays.
c) You can make a Cluster of Arrays.
d) You can make an Array of Clusters.
5) The most efficient method for creating an array is:
a) Placing a build array function in a While Loop
b) Initializing an array and then replacing elements in a While Loop
c) Using a For Loop with Auto-indexing
d) Using a While Loop with Auto-Indexing
a) 1D Array of {2, 3}
b) 1D Array of {3, 2}
c) 2
d) None of the above
a) 1-D Array of {-25, 25, 50}
b) A 1-D Array of {-25, 25}
c) A 2-D Array of {{-25, -50, -50} , {50, 25, 25}}
d) A 1-D Array of {75, -50, 25}
8) The function of a Cluster is to:
a) Grouping of mixed data types into logical structures.
b) Present data on the Front Panel using charts or graphs.
c) Provide a means of differentiating between data types on the Block Diagram.
d) Separate data objects by data type on the Front Panel.
9) Which of the following functions assembles Cluster elements by their owned labels?
a) Unbundle by Name
b) Unbundle
c) Bundle by Name
d) Bundle
10) What is the output of the Build Array function in the following block diagram when Concatenate Inputs is selected?
a) 1-D Array of {1, -4, 3, 7, -2, 6}
b) 1-D Array of {1, 7, -4, -2, 3, 6}
c) 2-D Array of {{1, -4, 3, 0}, {7, -2, 6}}
d) 2-D Array of {{1, -4, 3}, {7, -2, 6}}
a) 1-D Array of {3, 3, 3, 3}
b) 1-D Array of {4, 4, 4}
c) 1-D Array of {3, 4}
d) 1-D Array of {4, 3}
12) What is the result of the following Array addition?
a) 1-D Array of {80, 20, 40, 10, -60}
b) 1-D Array of {120, 30, -60}
c) 1-D Array of {120, 30}
d) 2-D Array of {{120, 90, 20}, {60, 30, -40}}
13) Which of the following statements regarding Array constants are NOT true: 2
a) When you create an Array constant on the block diagram, it is not visible on the Front Panel
b) You cannot resize an Array constant to include more than one element.
c) You can copy or drag an existing Array on the Front Panel to the Block Diagram to create a constant of the same data type.
d) All array operations can be performed on an Array constant
a) A 1-D array of {1, 4, 3, 2, 1, 0}
b) A 1-D array of {1, 8, 0, 1, 2, 3, 4, 6, 2}
c) A 1-D array of {1, 4, 3, 2, 1, 0, 8, 6, 2}
d) A 1-D array of {1, 8, 0, 1, 2, 2, 9}
15) What is the result in subarray after the following code has executed?
a) A 1-D Array of {8, 5, 7}
b) A 1-D Array of {10, 8, 5}
c) A 1-D Array of {10, 8, 5, 7}
d) A 1-D Array of {7, 10, 8, 5}
16) What is the result of the following Array subtraction?
a) A 1-D Array of {-25, 25, 50}
b) A 1-D Array of {-25, 25}
c) A 2-D Array of {{-25, -50, -50} , {50, 25, 25}}
d) A 1-D Array of {75, -50, 25}
17) Which of the following methods is NOT a method to create a 1-D Array:
a) Place an Array Shell on the Front Panel and drag a Control into the shell.
b) Use a While Loop with auto-indexing disabled.
c) Use a For Loop with auto-indexing enabled.
d) Use the Initialize Array function.
18) Which of the following statements is NOT valid:
a) You can make a Cluster of Clusters.
b) You can make an Array of Arrays.
c) You can make a Cluster of Arrays.
d) You can make an Array of Clusters.
19) Which of the following statements regarding the index of Arrays are NOT true:
a) The index is used to access a particular element of an Array.
b) The index ranges from 1 to n.
c) A 2-D Array has both a column index and a row index.
d) The index ranges from 0 to n-1.
20) Which are very helpful when you are working with a collection of similar data and when you want to store a history of repetitive computations?
a) Arrays
b) Clusters
c) Structures
d) Loops
21) In NI LabVIEW software, the array index is _____-based
a) Zero
b) One
c) Two
d) Three
22) Which is similar to a record or a struct in text-based programming languages?
a) Loop
b) Array
c) Case Structure
d) Cluster
23) Which can contain mixed data types?
a) Cluster
b) Array
c) Array
d) String
24) Which can contain only one data type?
a) Custer
b) Array
c) Loops
d) None of the above
25) The difference between clusters and arrays…
a) particular cluster has a fixed size, where a particular array can vary in size
b) Particular array has a fixed size, where a particular cluster can vary in size.
c) both cluster and array having fixed size
d) none of the above
26) Arrays group data elements of the ______ type.
a) Same data
b) Different data
c) Loop data
d) None of the above
27) An array consists of________.
a) elements and dimensions
b) Arrays and Clusters
c) Loops and nodes
d) None of the above
28) A dimension is the length, height, or depth of an array.
a) Yes
b) No
a) 5
b) 4
c) 0
d) 1
a) a 1-D Array of {2,3}
b) a 1-D Array of {3,2}
c) 3
d) None of the above
a) A 1-D Array of {1,2,3}
b) A 1-D Array of {3,3,3}
c) A 1-D Array of {3,2,1}
d) None of the above
a) 4
b) 5
c) 2
d) None of the above
a) 4
b) 5
c) 9
d) 6
34) In the figure below, the output of Array is
b) 4
c) 7
d) 2
b) 8
d) 2
a) A 1-D array of {3,6,7,8,9}
b) A 1-D array of {3,6,7,8}
c) A 1-D array of {6,7,8,9,4}
d) A 1-D array of {7,8,9,4}
37) In the figure below, the output of Array is
a) A 1-D array of {3,6,8,9}
b) A 1-D array of {9,8,6,3}
c) A 2-D array of {3,6,8,9}
d) None of the above
38) In the figure below , the output of Array is
%20Relating%20Data/Relating%20Data_files/image042.gif)
a) A 1-D array of {1,2,4,8,9}
b) A 1-D array of {2,1,8,4,9}
c) A 1-D array of {9,8,4,2,1}
d) None of the above
39) In the figure below, the output of Array is
%20Relating%20Data/Relating%20Data_files/image044.gif)
a) 0
b) -1
c) 1
40) In the figure below , the output of Array is
a) 4
b) 5
c) -1
d) None of the above
41) In the figure below , the output Arrays are
%20Relating%20Data/Relating%20Data_files/image048.gif)
a) 1st Array of {6,3},2nd Array of {8,2,4}
b) 1st Array of {8,2,4},2nd Array of {6,3}
c) 1st Array of {6,3,8},2nd Array of {2,4}
d) 1st Array of {2,4},2nd Array of {6,3,8}
42) What is output of the below Array
%20Relating%20Data/Relating%20Data_files/image050.gif)
a) A 1-D array of {4,2,8,3}
b) A 1-D array of {4,2,8,3,6}
c) A 1-D array of {6,3,8,2,4}
d) None of the above
a) A 1-D array of {6,3,8,2,4}
b) A 1-D array of {3,8,2,4,6}
c) A 1-D array of {4,2,8,3,6}
d) A 1-D array of {2,8,3,6,4}
a) A 1-D array of {3,8,2,4,6}
b) A 1-D array of {4,6,3,8,2}
c) A 1-D array of {4,2,8,3,6}
d) A 1-D array of {2,8,3,6,4}
a) A 1-D array of {9,36,0}
b) A 1-D array of{0,36,21}
c) A 1-D array of{9,18,0}
d) None of the above
a) A 1-D array of { 6, 12, 14}
b) A 1-D array of {6,12,14,8,9,4}
c) A 1-D array of {6,12,14,0,0,0}
d) None of the above
a) A 1-D array of {1,2,3,4,5,6}
b) A 2-D array of {1,2,3}{4,5,6}
c) A 2-D array of {1,4}{2,5}{3,6}
d) None of the above
a) A 1-D array of { 2,5,8}
b) A 1-D array of {8,5,2}
c) A 1-D array of 0,2,5,8}
d) None of the above
a) A 1-D array of {8,5,4,2}
b) A 1-D array of {2,5,8}
c) A 1-D array of {8,4,5,2}
d) None of the above
b) Max value:9, Max index:4,Min value:2,Min index:1
c) Max value:8, Max index:3,Min value:2,Min index:1
d) None of the above
a) 8.6
b) 4.6
c) 6.6
d) None of the above
b) 0.65
c) 0.85
d) None of the above
53) Which is the similar data structure in C.?
a) array
b) cluster
c) case structure
d) event structure
54) Which is the similar data member of a class in C++ or Java?
a) array
b) cluster
c) case structure
d) event structure
55) Which can group data of different types (i.e., numeric, Boolean, etc.)
a) array
b) cluster
c) case structure
56) Which function assembles individual components into a new cluster or allows you to replace elements in an existing cluster.
a) bundle function
b) unbundle function
c) array size
d) rebuild function
57) which function is splits a cluster into each of its individual components
a) bundle function
b) unbundle function
c) array size
d) rebuild function
58) Which function allows you can access only the elements you need
a) bundle By name
b) bundle by element
c) unbundle by name
d) unbundle by element
59) Which function is used to convert to cluster to an array
a) Cluster To Array
b) bundle by element
c) unbundle by name
d) unbundle by element
60) Cluster To Array converts a cluster of N elements of thex_______ data type into an array of N elements of that type.
a) different data type
b) same date type
c) Character data type
d) only numeric data type
61) while converting the array to cluster , cluster will take default size of
a) 6
b) 9
c) 3
d) 1
62) How can you change the cluster size in the array to cluster function?
a) by pop up on the Array To Cluster terminal and choose Cluster Size
b) by pop up on the Array To Cluster terminal and choose Cluster number
c) by pop up on the Array To Cluster terminal and choose Cluster type
d) by pop up on the Array To Cluster terminal and choose Cluster serial
63) list the two comparison function of array and clusters.
a) compare elements
b) compare aggregates
64) The error contains three elements.
a) status, code, source
b) status, code, destination
c) status, code, array
d) status, code, error log
65) in the error cluster the negative code indicates
a) errors
b) comments
c) warnings
d) status
66) in the error cluster the Positive code indicates
a) errors
b) comments
c) warnings
d) status
67) the error case structure having states are
a) error, no error
b) 0 or 1
c) yes, no
d) ok, not ok
68) Which option enables you make extensive changes to the individual parts of various control or indicators?
a) Edit Mode
b) Control Editor window
c) Customize Mode
d) None of the above
69) Which is a feature of cluster order?
a) The cluster order determines the order in which the elements appear as terminals on the Bundle and Unbundled functions on the block diagram.
b) The first object placed in the cluster is element 1.
c) Cluster elements have alogical order related to their position in the shell.
d) None of the above
70) The first element in a LabVIEW array is at index:
a) Zero
b) One
c) User-defined
d) None of the above
71) Which is the feature of auto-indexing?
a) If you wire an array to or from a For loop or while loop, you can link each operation of the loop to an element in that array by disabling auto indexing.
b) You can disable auto-indexing if you need to process arrays one element at a time
c) Auto-indexing output arrays are always equal in size to the number of iterations.
d) None of the above.
No comments:
Post a Comment