Which of the following illustrates an advantage of a global variable over a local variable?
Suggested Answer: A
Get Premium CLAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
PA
Paola
1 month ago
But what about C? I feel like it’s misleading. Global variables can still have race conditions.
JA
Janessa
1 month ago
I agree, A makes sense. Local variables can't do that.
TH
Thomasena
1 month ago
I think A is the best choice. Global variables are great for sharing data between VIs.
MY
Myra
2 months ago
Global variables need owned labels to work, right?
TU
Tu
2 months ago
Surprised that global variables can avoid race conditions!
SA
Samira
2 months ago
I thought local variables could handle arrays too?
DA
Daron
2 months ago
Totally agree, that's a big advantage!
FR
Frederica
2 months ago
A global variable can pass data between independent VIs.
LY
Lynelle
2 months ago
D seems off to me; I thought both types of variables needed labels, but maybe I'm mixing it up with something else.
JE
Jerry
3 months ago
I feel like I’ve seen a question about race conditions before, but I can't recall if it was related to global variables.
MA
Martin
3 months ago
I remember something about local variables not being able to share data between VIs, so A might be the best choice here.
ME
Melodie
3 months ago
I think A sounds right because global variables can be accessed by multiple VIs, but I'm not completely sure.