CLAD Sample Exam 02: Name: Date
CLAD Sample Exam 02: Name: Date
1. You develop a subVI that only outputs a value and need to use this subVI in a (calling) VI. Which of the following is the best way to enforce
dataflow to control the execution of the subVI?
A. Modify the subVI to have a global variable and use it from the calling VI
B. Modify the subVI to have dummy inputs that can be used from the calling VI
D. Modify the subVI to have Error clusters that can be used from the calling VI
2. The file c:\data.txt does not exist, but the VI below does not report an error. Which code snippet reports an error and stops?
A.
B.
C.
D.
3. Can a wire be used to pass data between loops intended to run in parallel?
A. Yes
B. No
4. You need to programmatically update the value in a numeric control. Which is the most appropriate strategy?
A. Use a Functional Global Variable
5. Which of the following illustrates an advantage of a global variable over a local variable?
A. Only the global variable can pass array data, local variables cannot.
B. A global variable can pass data between two independent VIs running simultaneously.
7. Which of the following will allow you to have multiple plots on a Waveform Graph?
A. Bundle two 1D arrays of X and Y data together for each plot. Then build an array of these clusters and wire it to the Waveform Graph
indicator.
B. Build a 2D array of data with each plot in a separate row (or column) in the array, then wire the array to the Waveform Graph indicator.
C. Bundle the elements of each waveform into a cluster and build an array of these clusters, then wire the array to the Waveform Graph
indicator.
D. Both B and C.
8. Which statement best describes a Notify event, such as the value change of a Boolean control?
A. Indication that an event occurred and was discarded by the user.
B. Indication that an event occurred and LabVIEW did NOT process the event.
C. Indication that an event did NOT occur but specified Event timeout did occur.
9. You customize a control, select Control from the Type Def. Status pull-down menu, and save the control as a .ctl file. You then use an
instance of the custom control on your front panel window. If you open the .ctl file and modify the control, does the control on the front panel
window change?
A. Yes
B. No
10. How long does this Dequeue Element wait to receive data?
A. 1 second (default since unwired)
D. Indefinitely
11. What value does the Result F2 indicator display after the VI containing this Stacked Sequence structure executes?
A. 0
B. 25
C. 40
D. 65
12. Which of the following accurately describes the output that results from the execution of the following loop?
C. The last three values from the Random Number will be displayed.
14. This graphic displays all the cases of a single case statement. What value does the Result indicator display after the VI executes?
A. 5
B. 7
C. 12
D. 36
17. Which mechanical action of a Boolean would you use to mimic a button on a Windows dialog?
A. Switch Until Released
19. Which chart update mode should be used to compare old and new data separated by a vertical line? This chart will display similar to an
electro-cardiogram (EKG).
A. Scope Chart
B. Sweep Chart
C. Step Chart
D. Strip Chart
20. The following block diagram represents which common type of VI architecture?
A. General VI
C. Parallel Loop VI
D. State Machine VI
C. Data values are being coerced because they are out of range.
D. If two state changes occur at the same time, only the first state change will be handled and the second will be lost.
The _________________ indicates the total number of times the loop will execute and the ______________ returns the number of times the
loop has executed minus one.
A.
conditional terminal, ; count terminal, .
B.
count terminal, ; iteration terminal, .
C.
conditional terminal, ; iteration terminal, .
D.
count terminal, ; conditional terminal, .
B. A file that contains references to, and provides organization for all files pertaining to an application.
D. A file containing a front panel and block diagram where programming steps can be implemented.
27. Which of the following statements is TRUE regarding the execution of the following code?
D. A For Loop that has a 50 wired to the count terminal will perform the same operation.
28. Which of the following will cause an event to be captured by the LabVIEW Event Structure?
A. Changing a value on a Front Panel control via a mouse click.
29. What value does the Result indicator display after the code snippet executes?
A. Zero
D. The time elapsed in milliseconds during the execution of the sequence structure
30. You have a control on the front panel of a VI and you need to modify one of its properties at run time. Which of the following is the best
approach you would take?
A. Create a local variable and select the property to modify
D. Create a control reference, pass the reference to a property node and select the property to modify
32. Which timing function (VI) is the best choice for timing control logic in applications that run for extended periods of time?
A.
B.
C.
D.
33. For the VI shown in the following block diagram, automatic error handling is enabled. If the file c:\data.txt does not exist, will an error dialog
box pop up?
B. Yes, each time the error from the Open/Create/Replace File function is returned.
D. No
34. If an input name on the Show Context Help window is in bold for a subVI, which of the following conditions are true? (Multiple Answers
may apply)
A. An input is recommended, but not required.
D. An input is required.
A. 2
B. 1D Array of {2, 3}
C. 1D Array of {3, 2}
C.
D.
37. Which setting assigns specific keys or key combinations to a front panel control?
A. Key Navigation
B. Key Focus
C. Distribute Objects
D. Radix
38. What is the result in new string after the following code has executed?
A. Helloto you!
B. Hello to you!!
D. Hello to you!
40. What value does the Numeric indicator display after this code executes?
A. 0
B. 4
C. 8