CLAD Sample Exam-2
CLAD Sample Exam-2
CLAD Sample Exam-2
1. Which of the following statements is TRUE regarding the execution of the following code?
2. Which of the following will cause an event to be captured by the LabVIEW Event Structure?
3. What value does the Result indicator display after the code snippet executes?
Page 3 of 24
CLAD Sample Exam
4. 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?
6. 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.
Page 4 of 24
CLAD Sample Exam
7. 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?
a. Yes, each time the error from the Open/Create/Replace File function is returned
b. Yes, each time a loop iteration completes
c. Yes, but only once, not on each iteration of the loop
d. No
8. 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. 1D Array of {2, 3}
b. 1D Array of {3, 2}
c. 2
d. None of the above
Page 5 of 24
CLAD Sample Exam
10. Which code snippet writes the smallest amount of data to disk?
a.
b.
c.
Page 6 of 24
CLAD Sample Exam
d.
11. Which setting assigns specific keys or key combinations to a front panel control?
a. Key Focus
b. Key Navigation
c. Radix
d. Distribute Objects
12. What is the result in new string after the following code has executed?
a. Hello to you!
b. Hello Wto you!
c. Hello to you!!
d. Helloto you!
Page 7 of 24
CLAD Sample Exam
14. What value does the Numeric indicator display after this code executes?
a. 0
b. 4
c. 8
d. The While Loop iterates indefinitely
15. 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?
Page 8 of 24
CLAD Sample Exam
16. The file C:\data.txt does not exist, but the VI does not report an error. Which code snippet
reports an error and stops?
a.
b.
c.
Page 9 of 24
CLAD Sample Exam
d.
17. Can a wire be used to pass data between loops that are intended to run in parallel?
a. Yes
b. No
18. You need to programmatically update the value in a numeric control. Which is the most
appropriate strategy?
19. Which of the following illustrates an advantage of a global variable over a local variable?
a. A global variable can pass data between two independent VIs running simultaneously
b. Only the global variable can pass array data, local variables cannot
c. Global variables follow the dataflow model, and therefore cannot cause race conditions
d. Global variables do not require owned labels to operate
Page 10 of 24
CLAD Sample Exam
21. 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 an 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.
22. Which statement best describes a Notify event, such as the value change of a Boolean
control?
a. Indication that an event occurred and LabVIEW did NOT process the event
b. Indication that an event occurred and was discarded by the user
c. Indication that an event occurred and LabVIEW processed the event
d. Indication that an event did NOT occur but specified Event timeout did occur
Page 11 of 24
CLAD Sample Exam
23. 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
24. How long does this Dequeue Element function wait to receive data?
25. 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
Page 12 of 24
CLAD Sample Exam
26. Which of the following accurately describes the output that results from execution of the
following loop?
a. The last three values from the Random Number function will be displayed.
b. A running average of all measurements will be displayed.
c. An average of the last four measurements will be displayed.
d. None of the above
27. In what instance would you use the Probe tool rather than Highlight Execution?
Page 13 of 24
CLAD Sample Exam
28. 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
Page 14 of 24
CLAD Sample Exam
31. Which mechanical action of a Boolean would you use to mimic a button on a Windows
dialog?
33. 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. Strip Chart
b. Scope Chart
c. Sweep Chart
d. Step Chart
Page 15 of 24
CLAD Sample Exam
34. The following block diagram represents which common type of VI architecture?
37. Which combination of words correctly completes the following statement? Unlike _____
Property Nodes, _____ Property Nodes require _____ as inputs in order to function
correctly.
Page 16 of 24
CLAD Sample Exam
39. Which combination of words correctly completes the following statement? The
______________ indicates the total number of times the loop will execute and the
_______________ returns the number of times the loop has executed minus one.
Page 17 of 24
CLAD Sample Exam
Solutions Page:
Below are the answers and links to additional resources for the CLAD Sample Exam. All of the references listed
are articles in LabVIEW Help. To quickly check your answers, record them on the Answer Sheet, detach the
Answer Sheet, and compare it, side-by side, with the Solutions Page. This answer page is not included in the
actual CLAD exam; it is included here for practice purposes only.
1. Correct Answer: A
Topic: Loops
Justification: The iteration terminal in While Loops and For Loops always starts counting at zero. It
returns 0 on the first iteration, 1 on the second iteration, etc. Since the While Loop is configured to stop
when the output of the iteration terminal is greater than or equal to 50, we know that the iteration
terminal must output a value of at least 50. The first time this happens is after 51 iterations.
References: For Loop and While Loop Structures
2. Correct Answer: A
Topic: Event Structures
Justification: Each possible answer refers to a Value Change event. Value Change events are most
commonly generated from user interaction with the front panel.
References: Available Events, Using Events in LabVIEW
3. Correct Answer: A
Topic: Timing
Justification: The Tick Count (ms) function returns the value of the millisecond timer when it is called.
Calling it twice and taking the difference will yield elapsed time in milliseconds between the calls. In this
code snippet, SubVI is called between the two calls of the Tick Count (ms) function, therefore A is the
correct answer.
References: Case and Sequence Structures, Tick Count (ms) Function
4. Correct Answer: A
Topic: VI Server
Justification: Property Nodes are designed for modifying front panel objects programmatically. Answers
C and D do not make sense because modifying front panel objects is not what variables do. Because we
are not using subVIs, answer A is a better choice than answer B because an implicit Property Node will
work and does not require the extra inputs that the explicit Property Node requires.
References: Controlling Front Panel Objects Programmatically from a SubVI, VI Server Reference
5. Correct Answer: C
Topic: Arrays and Clusters
Justification: For Loops are more efficient at creating arrays than While Loops because For Loops
execute for a predetermined number of iterations. Thus, LabVIEW can allocate the memory to be used
by the array before the For Loop runs.
References: For Loop, VI Memory Usage
Page 18 of 24
CLAD Sample Exam
6. Correct Answer: C
Topic: Timing
Justification: Answers A and B both return values in milliseconds. Since the question specifies
applications that run for extended periods of time, we should choose a function with a larger resolution
to minimize the likelihood that the clock value will wrap around to zero. Furthermore, answer B simly
adds a synchronous delay to code. This would not be efficient for applications running for long periods
of time. It is better to compare the current time to a reference time to see if the correct amount of time
has elapsed. Thus, answer C is the best choice.
References: Tick Count (ms) Function, Timing VIs and Functions
7. Correct Answer: D
Topic: Error Handling
Justification: Even though automatic error handling is enabled, all of the functions have error clusters
wired to their outputs. This prevents LabVIEW from interrupting execution and displaying a dialog to the
user even though an error has occurred. If any of the functions had no error cluster wired to their
outputs, then LabVIEW would display a dialog and suspend execution.
References: Handling Errors
8. Correct Answer: C, D
Topic: Documentation
Justification: A bold input in the Context Help window indicates a Required input. Because of the nature
of Required inputs, the VI will have a broken run arrow if the input is unwired.
References: Setting Required, Recommended, and Optional Inputs and Outputs
9. Correct Answer: A
Topic: Arrays and Clusters
Justification: 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.
References: Array Size Function
Page 19 of 24
CLAD Sample Exam
Page 20 of 24
CLAD Sample Exam
Page 21 of 24
CLAD Sample Exam
Page 22 of 24
CLAD Sample Exam
Page 23 of 24
CLAD Sample Exam
Page 24 of 24