Documente Academic
Documente Profesional
Documente Cultură
Please do not detach the binding staple of any section. If any part of the exam paper is
missing or detached when returned to National Instruments, you will be deemed to have
failed the exam.
Please do not ask the proctor for help. If you believe the intent of a question is not clear, you
may note that question, and your reasons for choosing the answer you believe best fits the
question.
This examination may not be taken from the examination area or reproduced in any way.
You may not keep any portion of this exam after you have completed it.
Exam Details:
Time allocated: 1 hour
Type of exam items: Multiple choice
Number of exam items: 40 questions
Passing Grade: 70%
IMPORTANT: When you have completed this exam, place it in the provided envelope
with you answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.
Page 1 of 15
Page 2 of 15
Page 3 of 15
a. The loop will execute once and the iteration terminal, , will output a value
of one
b. The loop will execute once and the iteration terminal, , will output 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 iteration terminal, , will return a null
value
7. Which of the following cannot be used to transfer data?
a. Semaphores
b. Queues
c. Notifiers
d. Local variables
8. Which of the following terminals controls how many times a For loop executes?
a.
b.
c.
d.
9. 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 an implicit property node and select the property to modify
b. Create a control reference, pass the reference to a property node and select the
property to modify
c. Create a linked shared variable and select the property to modify the property
d. Create a local variable and select the property to modify
10. Formula nodes accept which of the following operations?
a. Basic programming language instructions Input and Print
b. Embedding of SubVIs within the Formula Node
c. Pre and post increment (++) and decrement (--) as in the C language
d. The use of nested Formula Node structures
Page 4 of 15
a.
b.
c.
d.
14. What is the output of the Initialize Array function after the following code has
executed?
a.
b.
c.
d.
Page 5 of 15
Graphs; Charts
Charts; Plots
Plots; Graphs
Charts; Graphs
19. In what instance would you use the Probe tool rather than Highlight Execution?
a. To see the flow of data
b. To see the value of a wire in real-time
c. To look into a SubVI, as the process is running
d. To slowdown the VI and show data values in wires
Page 6 of 15
a.
b.
c.
d.
16
24
32
10
23. Which Chart update mode should be used to draw new data from left to right, then
clear the chart and draw new data again from left to right?
a. Strip Chart
b. Scope Chart
c. Sweep Chart
d. Step Chart
24. 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 7 of 15
a.
b.
c.
d.
26. Under which of the following conditions does a For loop stop executing?
a. When a false value is present at the conditional terminal and the conditional
terminal is
b. When the value of the iteration terminal,
count terminal,
c. When the value of the iteration terminal,
count terminal,
d. None of the above
27. You are inputting data that represents a circle. The circle data includes an x position,
a y position, and a radius. All three pieces of data are double-precision. In the future,
you might need to store the color of the circle, represented as an integer. How should
you represent the circle on your front panel window?
a. T hree separate controls for the two positions and the radius.
b. A cluster containing all of the data.
c. A type definition containing a cluster.
d. A n array with three elements.
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
b. Update of a Front Panel control using a property node
c. Programmatic update of a Front Panel control via a control reference
d. Using VI Server to update a Front Panel control
Page 8 of 15
29. Which of the following does not conform to data flow programming paradigm?
a. Shift Registers
b. Tunnels
c. SubVIs
d. Local Variables
30. Y ou must store data that other engineers must analyze with Microsoft E xcel. Which
file storage format should you use?
a. T ab-delimited A SCII
b. Custom binary format
c. T DM
d. Datalog
31. What is the result of the following Array addition?
a.
b.
c.
d.
Page 9 of 15
.
a.
b.
c.
d.
35. Which of the following statements is true about the iteration terminal
a. It returns the number of times the loop has executed
b. It returns the number of times the loop has executed, plus one
c. It returns the number of times the loop has executed, minus one
d. It returns a constant number
36. For implementing state diagrams that allow future application scalability, the best
choice for a base structure is?
a. Sequence structure
b. Case structure
c. Formula node
d. Object-Oriented structure
Page 10 of 15
a.
b.
c.
Page 11 of 15
d.
Page 12 of 15
Page 13 of 15
Answer
A
B
B
A
C
C
A
D
A
C
B
C
A
A
B
B
D
A
B
B
C
C
B
A
C
B
C
28
29
30
A
D
A
31
32
33
34
35
36
C
D
A
C
C
B
Resources on Topic
Developing User Documentation
Parallel FOR Loops
Creating Tab Controls
Control References: Overview
How Does LabVIEW Round and Coerce Values?
Tutorial: For Loops and While Loops
Application Design Patterns: Master/Slave
Tutorial: For Loops and While Loops
Control References: Overview
Formula Node Syntax
Tutorial: Front Panel
Tutorial: Arrays and Clusters
How to Concatenate Multiple Arrays in LabVIEW
Tutorial: Arrays and Clusters
Application Design Patterns: State Machines
Tutorial: For Loops and While Loops
Mechanical Action of Buttons
What Is the Difference Between Graphs and Charts in LabVIEW?
Tutorial: Debugging Tips and Tricks
Creating Custom Controls, Indicators, and Type Definitions
Tutorial and Video: Dataflow, SubVI, and Parallelism in NI LabVIEW
Tutorial: Timing, Shift Registers, and Case Structures
Chart Update Modes in LabVIEW and Measurement Studio
Are LabVIEW global variables good or bad, and when is it OK to use them?
Timing VIs and Functions
Tutorial: For Loops and While Loops
Creating Custom Controls, Indicators, and Type Definitions, Tutorial: Arrays
and Clusters
Event-Driven Programming in LabVIEW
Tutorial: Local Variable, Global Variable, and Race Conditions
Appending Data to an Excel Spreadsheet Using Write to Spreadsheet File.vi
Does Not Update the File.
Tutorial: Arrays and Clusters
Tutorial and Video: Dataflow, SubVI, and Parallelism in NI LabVIEW
Tutorial: Arrays and Clusters
Application Design Patterns: State Machines
Tutorial: For Loops and While Loops
Tutorial: Timing, Shift Registers, and Case Structures
Page 14 of 15
A
C,D
A,B,C,D
A,D
Page 15 of 15
Exam Details:
Time allocated: 1 hour
Type of exam items: Multiple choice
Number of exam items: 40 questions
Passing Grade: 70%
IMPORTANT: When you have completed this exam, place it in the provided envelope with you
answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.
Answer Sheet:
To quickly check your answers against the solutions in the Solutions Section, record your answers on this Answers Sheet.
Detach this page and record your answers as you go along. This page is not included in the actual CLAD exam; it is
included here for practice purposes only. The Solutions Section is at the end of the Sample Exam.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
Q1: You must include the option to cancel when a user attempts to interactively close the front panel by
selecting File>>Close.
Which Event case allows this functionality?
Q2: You must generate code that responds to multiple value change events using a Boolean control
while maintaining a latching mechanical action.
Which programming step is NOT required?
A
B
C
D
Q3: What value is displayed in the Value Out indicator after the VI completes execution?
A
B
C
D
0
4
5
6
Q4: How many errors does LabVIEW display at the end of execution?
A
B
C
D
No Errors
One Error
Two Errors
Three Errors
Q5: You have been asked to write a VI called CLAD505 that will generate a path to test.txt. This txt file
is in a folder called CLAD505_Support, and the folder is next to your VI. The VI must run on multiple
platforms (Windows, Linux, etc.).
Which diagram best illustrates how you should write the VI?
Q6: Which of the following statements is TRUE about the following code segment?
A
B
C
D
The loop will execute once and the indicator Iteration will have a value of one
The loop will execute once and the indicator Iteration will have a value of zero
The loop will execute continuously and the program will have to be aborted
The loop will not execute and the indicator Iteration will have a value of zero
Q7: Why is a shift register used for the file refnum input on the For Loop?
A
B
C
D
If the Values to Write to File array is empty, the For Loop will run zero times, but the refnum
value will be passed through to the shift register output
The Write to Text File function modifies the value of the refnum on each For Loop iteration
It is the only way to prevent the For Loop from building an array at the refnum output terminal
No reason. A regular tunnel would provide identical functionality to the shift register
Q8: The following SubVI is loaded into memory and then run. At some later time it is still in memory and
is run a second time.
What is the value is displayed in the Sum indicator when the SubVI completes execution the second time
it is run?
A
B
C
D
5
10
There is no way to know
0
Q9: Which of the following is FALSE about File I/O using binary or TDMS file formats?
A
B
C
D
Q10: How does a producer consumer design pattern process excessive amounts of data?
A
B
C
D
Using a single element queue the Producer Consumer processes only current data.
Using a queue for storage the Consumer loop processes all data when it has time.
The Producer loop will slow its cycle time to allow the consumer loop to catch up.
The consumer loop will increase its processing time to match the producer loop.
Q11: Unlike graphs, which display an entire waveform that ________ the data already displayed, charts
update periodically and __________ the data previously displayed.
A
B
C
D
Q12: What value is displayed in the Result indicator after the VI completes execution?
A
B
C
D
3
2
1
0
Q13: After the VI starts running, the user clicks the "Event1" button twice. The event structure has no
other event cases.
What will be displayed in the "Time 1" indicator when the VI stops executing?
A
B
C
D
0
1
2
Undetermined
Q14:
You have written a LabVIEW VI with three parallel code paths. All three error cluster wires are
wired into a Merge Errors function.
What error is reported to the user?
A
B
C
D
Error 1014, because Merge Errors outputs the first error to occur chronologically
Error 7, because Merge Errors outputs the first error wired in to it from the top down
Error 1, because Merge Errors outputs the most significant error of the errors wired in to it
All three errors are reported, because Merge Errors concatenates the errors into a single error
message to display to the user
Q15: Which timing function can result in logic errors when it rolls over to zero?
A
Q16: You select "Create SubVI" from LabVIEW's Edit menu with the code below selected.
What will the resulting block diagram look like?
Q17: What value will be displayed in the subarray indicator after the following code has executed?
Q19: Which of the following cannot be used to transfer data between two parallel loops?
A
B
C
D
Wires
Queues
Notifiers
Local variables
Q20: The time out input terminal of the Dequeue Element function is wired with the value 1.
While the VI is running, how long does this Dequeue Element function wait to receive data?
A
B
C
D
1 millisecond
1 second
Indefinitely
It does not wait. It returns immediately
A
B
C
D
Q22: When a VI is paused, clicking on the _________ button allows you to bypass a node in the Block
Diagram without single-stepping through the node.
A
B
C
D
Step Into
Step Over
Step Out
Step Through
Step Back
Step Over
Step Around
Step Above
Q24: 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
Q27: When clicking a broken run arrow, the Error list window shows all of the following EXCEPT:
A
B
C
D
Q28: How do you document a VI so that the description appears in the Show Context Help popup
window?
A
B
C
D
Q29: What is the output of the Initialize Array function after the following code has completed execution?
Q30: How many bytes does LabVIEW write to the file when the code executes?
A
B
C
D
5 Bytes
6 Bytes
12 Bytes
14 Bytes
A
B
C
D
-128
0
255
256
A
B
C
D
3
4
5
6
A
B
C
D
Coercion Dot
Data truncation Dot
Data typecast Dot
Buffer allocation Dot
Q35: What settings should be selected for a custom control so that all copies of the control are of the
same data type yet have the flexibility to use different colors and styles?
A
B
C
D
Control
Type Def.
Strict Type Def.
Flex Def.
Q36: In a Simple State Machine design pattern, which of the following stores the state information?
A
B
C
D
Shift Register
Queue
Notifier
Functional global variable
Q37: You are required to use the Get Date/Time in Seconds function for timing in a state machine. The
state machine has an acquire state and must acquire for 5 seconds. If the hardware fails during
acquisition the state machine must be able to transition to the stop state.
Which of the following design patterns will provide timing for a state machine and allow responsiveness to
acquire state requirements?
Q39: You have a front panel control on a top-level VI that you must manipulate from within a SubVI.
Which of the following could you pass to the SubVI to accomplish this?
A
B
C
D
Q40: Which Property Node can change the text color attributes of ANY digital numeric control used on
the panel of a VI?
10.
Correct Answer: B
Topic: Design Patterns
Justification: Textbook use of queue in Producer Consumer.
11.
Correct Answer: B
Topic: General Programming Functions
Justification: Answer B is the difference between charts and graphs.
12.
Correct Answer: B
Topic: Loops
Justification:
In three loops only zeros will pass from the register, but the iteration will count 0, then 1 &
then 2. Therefore the output from the addition function will be 0+2=2.
13.
Correct Answer: B
Topic: Event Structures.
Justification: The events queue up, so if it were not for the TRUE wired to the loop condition, the answer
would be 2. However, the loop ends before we can process the second event that is still in the queue.
14.
Correct Answer: B
Topic: Error Handling
JUSTIFICATION: Merge Errors outputs the first error it finds in the errors clusters wired into it in a
top-down fashion. Error 7 is wired into the top input, so it is the error outputted by Merge Errors.
15.
Correct Answer: B
Topic: General Programming Functions
Justification: The Tick Count (ms) is the only timer that rolls over to 0.
16.
Correct Answer: B
Topic: SubVI Creation
Justification: Input Numeric and Input Array are constants, so they are internal to the SubVI and do not
have input terminals.
17.
Correct Answer: C
Topic: General Programming Functions
Justification: The Array Subset function takes an 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}.
18.
Correct Answer: B
Topic: General Programming Functions
Justification: LabVIEW will not allow creation of an array of arrays -- There is no need to make an array of
arrays since you can simply add dimensions to an existing array.
19.
Correct Answer: A
Topic: Data Synchronization and Communication
Justification: Queues, notifiers, and local variables are all designed to transfer data. Wires can not pass
data between parallel loops.
20.
Correct Answer: A
Topic: Data Communication and Synchronization
Justification: The time out input terminal of the Dequeue Element function is in milliseconds, so with an
input of 1, the Dequeue Element function will wait 1 millisecond to receive data.
21.
Correct Answer: D
Topic: Data communication and synchronization
Justification:
One reference is removed from memory, and the remaining elements are returned. It
can be used to destroy the queue, but this is not an option in the question.
22.
Correct Answer: B
Topic: Debugging tools
Justification: Clicking the Step Into button causes LabVIEW to open up the node or subVI. The Step Out
button is used to return from a subVI to a main VI while single-stepping. There is no Step Through button.
Step Over provides the functionality stated by the question, therefore this is the correct answer.
23.
Correct Answer: B
Topic: Debugging tools
Justification: Stepping back, around,or above are not single step actions, stepping Over is the only
correct choice.
24.
Correct Answer: A
Topic: Case Structures
Justification: Arrays are not accepted by the case selector terminal because the case selector terminal
requires a scalar value.
25.
Correct Answer: D
Topic: Sequence Structures
Justification: Sequence Structures have no error terminals.
26.
Correct Answer: A
Topic: LabVIEW Programming Principles
Justification: Because LabVIEW is a Dataflow language, we can trace the flow of data in the block
diagram to see which operations execute first, second, and so forth.
27.
Correct Answer: D
Topic: LabVIEW Environment
Justification: You must either look at an output error cluster or an error dialog to find the error code.
28.
Correct Answer: A
Topic: LabView Environment
Justification: The documentation window in VI Properties is the only place to edit the information about
the VI that appears in Context Help.
29.
Correct Answer: A
Topic: Data Types
Justification: The "element" input terminal contains the value each element of the initialized array will
contain, and the "dimension size" input terminal dictates the size of each dimension of the initialized
array. Since there is only one dimension size input terminal, the array will be only 1 dimensional. The
array elements will be initialized to the value of the element.
30.
Correct Answer: D
Topic: Data Types
Justification: LabVIEW represents arrays as a list of bytes containing a header and array data. The
header contains a 4-byte integer for each dimension that specifies the length of that dimension. Following
the header is the actual array data. In the question, the array has two dimensions. There are 4 bytes in
the header for each dimension for a total of 8 bytes in the header. Since the array is composed of six
8-bit, or 1-byte integers, there is a total of 6 bytes of actual array data. This makes a total of 14 bytes
being written to file.
31.
Correct Answer: B
Topic: Data Types
Justification: The integers shown are unsigned 8-bit integers. The range for 8-bit integers is 0-255. The
product of 2 times 128 is 256. As 256 is a number larger than the allowable 255, thus 256 wraps to 0.
32.
Correct Answer: C
Topic: SubVI Creation
Justification: The subVI will have Error In/Out terminals as well as the three controls, for a total of 5
terminals.
33.
Correct Answer: A
Topic: Data Types
Justification: Definition of Coercion Dot
34.
Correct Answer: C
Topic: Data Types
Justification: Definition of Coercion Dots
35.
Correct Answer: B
Topic: Data Types
Justification: Definition of Type Def
36.
Correct Answer: A
Topic: Design Patterns
Justification: Definition of Shift Register
37.
Correct Answer: A
Topic: Design Patterns
Justification: A is the only case that checks the data and leaves the timing state, and has persistent start
time (stored in the shift register)
38.
Correct Answer: B
Topic: VI Server
Justification: Deffinition of a property node.
39.
Correct Answer: C
Topic: VI Server
Justification: The only answer option that can be passed from calling VI to subVI is the control reference.
The reference can then be used with Property Nodes and Invoke Nodes to call properties and methods,
respectively. The data type is a property of the control.
40.
Correct Answer: B
Topic: VI Server
Justification: Strict property nodes require precise knowledge of the numeric representation. Since the
question asks for the means to change the text color of any control, a strict Property Node does not
suffice. An implicit Property Node (C), can only be used locally. Answer D shows a property that is not
even relevant to the question. Thus, option B is the best answer.
Exam Details:
Time allocated: 1 hour
Type of exam items: Multiple choice
Number of exam items: 40 questions
Passing Grade: 70%
IMPORTANT: When you have completed this exam, place it in the provided envelope
with you answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.
a.
b.
c.
d.
55
70
65
Indeterminate
a.
b.
c.
d.
7. What is the result in new string after the following code has executed?
a.
b.
c.
d.
Hello to you!
Hello Wto you!
Hello to you!!
Helloto you!
8. Which of the following display options are available for strings on the Front Panel?
a. \ Codes
b. Password
c. Hex
d. All of the above
a.
b.
c.
d.
a.
b.
c.
d.
a.
b.
c.
d.
a. A
b. B
d. D
14. Which of the graphs below matches the output in the Waveform Graph indicator after
the following code has executed?
b. B
c. C
18. Which of the following accurately describes the output that results from execution of
the following loop?
a.
b.
c.
d.
The last three values from the DAQ Assistant will be displayed.
A running average of all measurements will be displayed.
An average of the last four measurements will be displayed.
None of the above
22. Which of the following graphs matches the result in Comparison Values after the
following code has executed?
a. A
c. C
d. D
graphs; charts
charts; plots
plots; graphs
charts; graphs
24. 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 n-dimensional 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.
25. Which of the following is NOT a traditional debugging feature used to help find errors in
a VI:
a. Highlight Execution.
b. Single Stepping
c. Breakpoints
d. Stop Values
26. What VI is typically used to terminate an Error Cluster wire and to display any error
message?
a. Merge Errors
b. One Button Dialog/Two Button Dialog
c. Generate Front Panel Activity
d. Simple Error Handler
a.
b.
c.
d.
28. Clicking on the _________ button allows you to bypass a node in the Block Diagram
without single-stepping through the node.
a. Step Into
b. Step Over
c. Step Out
d. Step Through
29. Variants are used for all of the following but:
a. Passing values between programs written with different compilers
b. Allowing software to achieve a greater degree of generality
c. Representing any data type
d. Converting from fixed point to floating point data
30. You can use all of the following data types as inputs to the case selector terminal except:
a. Doubles
b. Enumerated type values
c. Strings
d. Integers
a.
b.
c.
d.
a.
b.
c.
d.
0
1
True
False
35. Which of the following statements regarding the index of Arrays are NOT true:
a.
b.
c.
d.
a.
b.
c.
d.
37. Which chart update mode plots new data from left to right, then clears the chart and
plots the newer data ?
a. Strip Chart
b. Scope Chart
c. Sweep Chart
d. Step Chart
38. Which of the following methods will create an XY Graph with two plots?
a. Create a single cluster from two arrays of X values and two arrays of Y values in
an X,Y, X,Y pattern.
b. Bundle the X and Y array pairs together into two clusters and then create an
array of these two clusters.
c. Bundle the X and Y array pairs together into two clusters and create a cluster of
these two clusters.
d. Create a single array of each of the X arrays and Y arrays in an X,Y,X,Y pattern.
39. Which of the following terminals controls how many times a For Loop will execute?
a.
b.
c.
d.
40. What is the value in after substring upon completion of the following code?
world!
rld!
h hello world!
<blank>
Below are the answers and links to additional resources for the CLAD Sample Exam. To quickly check
your answers, record them on the Answer Sheet, detach the Answer Sheet, and compare it, side-by side,
with the answer columns on this page.
This answer page is not included in the actual CLAD exam; it is included here for practice purposes only.
Question
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Answer
B
B
B
A
B
C
A
D
C
A
B
C
B
D
C
B
A
18
19
20
C
B
C
21
22
23
24
25
26
27
28
29
30
31
32
33
E
A
A
D
D
D
C
B
D
A
D
B
D
Resources on Topic
B
B
D
B
B
D
B
Exclusive Or Function
Tutorial: Arrays and Clusters
Managing Large Datasets within LabVIEW
Chart Update Modes in LabVIEW and Measurement Studio
Exam Details:
Time allocated: 1 hour
Type of exam items: Multiple choice
Number of exam items: 40 questions
Passing Grade: 70%
IMPORTANT: When you have completed this exam, place it in the provided envelope with you
answer sheet and SEAL the envelope. Give the sealed envelope to your proctor.
Answer Sheet:
To quickly check your answers against the solutions in the Solutions Section, record your answers on this Answers Sheet.
Detach this page and record your answers as you go along. This page is not included in the actual CLAD exam; it is
included here for practice purposes only. The Solutions Section is at the end of the Sample Exam.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
_____
Q1: Which of the following user interface events will allow your code to respond before LabVIEW
performs the default action associated with that event?
A
B
C
D
Mouse Down
Panel Resize
Panel Close?
Value Change
Q2: The Trigger control is configured with a switching mechanical action. The VI's requirement is to
display a Count value that tracks the number of "value change" events, for changes to TRUE, that occur
for the Trigger.
Which of the code snippets meets that requirement when the VI is run?
Q3: What is the value in the Result indicator after the VI completes execution?
A
B
C
D
16
24
32
10
Q4: Which of the following terminals cannot control how many times a For loop executes?
A
B
C
D
Q5: Which of the following statements is TRUE regarding the execution of the following code?
The loop will iterate:
A
B
C
D
51 times
50 times
49 times
a random number of times
Q6: The VI is open and run twice without being closed or modified.
What value is displayed in the Value Out indicator after the second execution of the VI?
A
B
C
D
3
4
5
6
Q7: What value is displayed in the Numeric indicator after the VI executes?
A
B
C
D
0
4
5
The While Loop iterates indefinitely
Q8: What value will be displayed in the Out indicator when this VI completes execution?
A
B
C
D
Case0
Case1
Case2
Case3
Q11: While the VI executes, the user presses and then releases Boolean Control with Switch Until
Released mechanical action. The starting value of Boolean Control is FALSE,
What value is displayed in the Result indicator after execution?
A
B
C
D
0
1
2
3
Q12: What value is displayed in the X+Y indicator after the code completes execution?
A
B
C
D
File path not wired to the input of the Open/Create/Replace File function
File opened with the incorrect access
File reference not closed
File data type is incorrect
Q15: What value will be displayed in the Numeric indicator when the VI completes execution?
A
B
C
D
0
1
2
4
Q16: You are creating a SubVI by selecting a portion of code from an existing VI. The selection
contains an implicitly linked property node and an implicitly linked invoke node for two different front panel
controls.
What new items are placed on the block diagram of the existing VI when the SubVI is created?
A
B
C
D
Q17: What is the best choice for the case selector input for a Functional Global Variable design pattern?
A
Case Structure
While Loop
Enum
Shift Register
A
B
C
D
State Machine
Producer Consumer (data)
Producer Consumer (events)
Queued Message Handler
Q20: The VI begins execution with the value of Numeric as 1. At the end of the 3th loop iteration (i=2),
the user changes the front panel control Numeric to value 4.
What will be the final value of the front panel Numeric Indicator after the VI completes execution?
A
B
C
D
2
4
5
6
Q21: What value is displayed in the Output indicator when the fifth iteration (i=4) of Loop 2 completes?
A
B
C
D
Element1
Element2
Element3
Element1Element2Element3
A
B
C
D
A
B
C
D
A
B
C
D
Q25: When using single step debugging with a SubVI which of the following is not possible?
A
Step Into (
Step Out (
SubVI.
) while the execution flow is paused on a node inside the block diagram of the
Finish VI (
) while the execution flow is paused on the block diagram of the SubVI
Q26: What value will be displayed in the Output indicator when the VI completes execution?
A
B
C
D
5
7
12
Indeterminant
Q27: Which Mechanical Action changes a Boolean when the button is pressed and returns it to its
default value after LabVIEW reads the value?
A
B
C
D
A
B
C
D
It is an indicator
It contains exactly 10 elements
It contains exactly 12 elements
It contains exactly 8 elements
A
B
C
D
Q30: What are the datatype and value at the output terminal of the Round Toward +Infinity function after
the VI completes execution?
A
B
C
D
Q31: The "start index (0)" input terminal of Search 1D Array is unwired.
What value is displayed in the index of element indicator after this code runs?
A
B
C
D
0
2
3
4
Q32: Which block diagram produces the result in the Waveform Graph?
Q33: What will be the value of the concatenated string indicator after the VI completes execution?
A
B
C
D
0
128
-128
-127
Q35: What string is displayed in the Result indicator after the VI completes execution?
A
B
C
D
123
0123
1.00 2.00 3.00
0.001.002.003.00
Q37: A VI takes an input error cluster. If the cluster contains an error or a warning with code = 1 or code
= 2, the VI should clear the error or warning.
Which diagram implements this functionality?
Q38: The following VI has two parallel While Loops, and runs for 11 ms.
What color is the Stop Boolean when the VI completes execution?
A
B
C
D
Blue
Green
Both colors will be present
Indeterminate
Q39: Which do you use to initialize all front panel objects to their default values?
A
B
C
D
Application Reference
Invoke Node
User interface event
User event
Q40: What results from dragging a Numeric Control into a Control Refnum on the front panel?
A
B
C
D
Solutions Page:
Below are the answers and explanations for the CLAD Sample Exam. 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 Solutions Page is not included in the actual CLAD exam; it is included here for
practice purposes only.
1.
Correct Answer: C
Topic: Event Structures
Justification: LabVIEW help Filter events allow you to validate or change the event data before
LabVIEW performs the default action associated with that event.
2.
Correct Answer: C
Topic: Event Structures
Justification: The initialized register increments by one for each Trigger "value change" event when the
Trigger new value is True and displays the new Count value after the event occurs. A counts every
value change, not just true. B polls resulting in constant increments when the switch changes value to
TRUE. D would count every value change if it had a shift register.
3.
Correct Answer: A
Topic: Loops
Justification: The For Loop executes 4 times. Starting with the value of 1, the result of the previous
iteration is multiplied by 2. Thus, the value in the indicator after 4 iterations is equivalent to 2x2x2x2, or
16.
4.
Correct Answer: A
Topic: Loops
Justification: The iteration terminal is only a count of the iteration number and can not control how many
loops occur.
5.
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.
6.
Correct Answer: D
Topic: Loops
Justification: Uninitialized shift register retains value.
7.
Correct Answer: C
Topic: Loops
Justification: Loop runs 1 time, use data flow to calculate the values.
8.
Correct Answer: B
Topic: Case Structures
Justification: Dataflow and correct steps, track shift register and index to get answer.
9.
Correct Answer: A
Topic: Sequence Structures
Justification: Dataflow and correct steps.
10.
Correct Answer: C
Topic: General Programming Functions
Justification: The Wait (ms) function does nothing to release or allocate memory or specify processor
core. All it does is cause the execution of a VI to pause for a short time to allow the processor time to
complete other tasks.
11.
Correct Answer: C
Topic: General Programming Functions
Justification: Since the mechanical action is set to Switch Until Released, two events are generated
when a user clicks and releases. The first event is the FALSE to TRUE transition, and the second is the
TRUE to FALSE transition. In addition, the conditional for the loop is set to Continue if True, so the VI
will complete execution after the Boolean is released and turns back to False.
12.
Correct Answer: C
Topic: General Programming Functions
Justification: Polymorphic response, the addition only occurs if there are elements in each location,
based on the index number. The extra elements in on array are ignored.
13.
Correct Answer: B
Topic: General Programming Functions
Justification: "access" input terminal on the Open/Create/Replace File function is set to "read-only", so
file cannot be written to.
14.
Correct Answer: C
Topic: General Programming Functions
Justification: Data Flow
15.
Correct Answer: C
Topic: General Programming Functions
Justification: Use the index number of the outer loop to set the number of iterations of the inner loop,
including zero. For a zero number of iterations the inner shift register passes its value.
16.
Correct Answer: C
Topic: SubVI Creation
Justification: By definition, control references are placed on the block diagram of the "calling" or existing
VI.
17.
Correct Answer: A
Topic: Design Patterns
Justification: A is an Enum and a Type Def, which are the requirements for the case selector inputs of a
FGV.
18.
Correct Answer: C
Topic: Design Patterns
Justification: An enum is not required to be the case selector of a state machine (but it is best practice).
19.
Correct Answer: B
Topic: Design Patterns
Justification: This producer loop does not have an Events Structure, this producer consumer design
pattern would be used for data handling.
20.
Correct Answer: C
Topic: Data communication and synchronization
Justification: The front panel control is read by the property node, so changes to the control take effect
in the For Loop. The value to be displayed in the Numeric Indicator only depends on the final iteration,
when the value of the numeric is read and incremented.
21.
Correct Answer: B
Topic: Data Communication and Synchronization
Justification: Due to FIFO, and since i=4 is the fifth iteration of the loop, the fifth element in the queue will
be read. The queue is filled in order with element 1 and then element 2, then 3, repeatedly.
22.
Correct Answer: D
Topic: Data communication and synchronization
Justification: The first loop never stops because False is wired to the conditional terminal. Since the first
loop never stops, the second loop can't start as it does not have all its inputs.
23.
Correct Answer: B
Topic: Data communication and synchronization
Justification: The Send Notification function sends a message to all functions waiting on a notifier. The
notifiers are not buffered.
24.
Correct Answer: B
Topic: Debugging tools
Justification: The single step debugging tools are used when execution is paused.
25.
Correct Answer: B
Topic: Debugging practices
Justification: Step Out is not a single step command. Finish VI or Finish Block Diagram are both
available in the SubVI depending on where the VI execution is paused.
26.
Correct Answer: D
Topic: Debugging tools
Justification: Since the order of execution of the write to Output actions cannot be verified, it is not clear
what value will result in Output.
27.
Correct Answer: A
Topic: LabVIEW Environment
Justification: Definition of Latched in LabVIEW. Can not be Latch when released, the question only
describes the action of the button being pressed, not released.
28.
Correct Answer: B
Topic: LabVIEW Environment
Justification: Since the display index value for columns is '2', that means there are two columns not show
(4 elements), along with the 6 visible elements, this array has exactly 10 elements.
29.
Correct Answer: C
Topic: Data Types
Justification: Data is coerced to the widest data type input to minimize loss of information.
30.
Correct Answer: D
Topic: Data Types
Justification: Rounds towards positive value without changing the datatype.
31.
Correct Answer: D
Topic: Data Types
Justification: String comparisons and searches in LabVIEW are case-sensitive and exact.
32.
Correct Answer: C
Topic: Data Types
Justification: Graph 4 points , starting with index 1 (Drop the 0 index element). Values of points in order
are: 3,6,9,12,15.
33.
Correct Answer: A
Topic: Data Types
Justification: When constant is set to "\" codes display, "\s" is a space character, otherwise in normal
display "\s" is literally \s.
34.
Correct Answer: C
Topic: Data Types
Justification: The maximum positive number that a I8 can represent is 127. When the sum of two I8
number is greater than 127, the answer wraps around to -128 .
35.
Correct Answer: D
Topic: Data types
Justification: Because we are starting with an empty string, the output of the "Concatenate Strings"
function is purely the concatenation of the iterations, displayed with two digit precision with no spaces and
converted into text. The loop runs 4 times (until i=3), so first time is 0.00, second time 1.00, etc.
36.
Correct Answer: D
Topic: Error Handling
Justification: The Merge Errors VI does not display any dialog. The One Button Dialog function has no
error input, and would therefore require additional coding. The Generate Front Panel Activity function
does not generate a dialog. Therefore the Simple Error Handler is the best choice because it accepts an
error cluster as an input and displays a dialog to the user in the event of an error.
37.
Correct Answer: c
Topic: Error Handling
Justification: A has the logic in the wrong case. B will only clear errors, will not clear warnings. D will
clear any error or warning with a code value of 2 or less (which includes negative codes). C is the only
one that fulfills all the stated requirements.
38.
Correct Answer: D
Topic: VI server
Justification: Race conditions exist because there is no coordination between the loops.
39.
Correct Answer: B
Topic: VI server
Justification: An Application Reference allows the program to identify an application for an action, but by
itself does not change anything. Both the "user interface events" and "User events" require input from
the user and additional code. An invoke node has a native "renitialize all to default values" action, thus
may be used to fulfill the requirements.
40.
Correct Answer: D
Topic: VI Server
Justification: Drag a control into the front panel control refnum control to remove the original control and
create a strictly typed control refnum. Strictly typed control refnums accept only control refnums of exactly
the same data type.