




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which LabVIEW data type is best suited for storing a collection of mixed‑type elements that must be passed together between VIs? A) Array B) Cluster C) Variant D) String Answer: B Explanation: A cluster groups different data types into a single wire, allowing mixed‑type data to travel together while preserving type information. Question 2. In LabVIEW, what is the primary purpose of a Type Definition (Typedef) for an enum? A) To increase execution speed of the enum B) To enforce consistent naming and values across the project C) To convert the enum to a string automatically D) To allow the enum to be used as a Boolean Answer: B Explanation: A Typedef for an enum ensures that any control or indicator using that enum shares the same set of values, improving maintainability. Question 3. Which of the following statements about the Variant data type is true? A) Variants can only store numeric data. B) Variants automatically convert to the required type without loss. C) Variants can store any LabVIEW data type, including clusters and arrays.
D) Variants are deprecated and should not be used. Answer: C Explanation: The Variant type is a wrapper that can hold any LabVIEW data, making it useful for dynamic data handling. Question 4. When should you prefer a 2‑D array over a cluster in LabVIEW? A) When the data elements have different types. B) When you need to perform matrix mathematics on the data. C) When you need to store a fixed number of elements. D) When you want to enforce strict type safety. Answer: B Explanation: A 2‑D array is ideal for homogeneous numeric data where matrix operations are required; clusters are for heterogeneous data. Question 5. Which loop structure is most appropriate for iterating a known number of times without requiring a conditional stop? A) While Loop B) For Loop C) Event Structure D) Sequence Structure Answer: B Explanation: A For Loop executes a predetermined number of iterations, defined by its count terminal.
D) Initialize it with a Variant. Answer: B Explanation: Providing a constant cluster ensures the shift register has the correct data type and initial values. Question 9. Which structure should be used to replace a Sequence Structure for most initialization tasks? A) Case Structure B) For Loop C) While Loop with a shift register D) Event Structure Answer: C Explanation: A While Loop with a shift register can handle one‑time initialization before entering the main loop, removing the need for a Sequence Structure. Question 10. When creating a Formula Node, which of the following is true? A) It automatically supports string operations. B) It requires all inputs and outputs to be wired with the same data type. C) It can only be used inside a For Loop. D) It cannot be used with arrays. Answer: B Explanation: Formula Nodes perform numeric calculations; all inputs and outputs must be of compatible numeric types.
Question 11. Which LabVIEW file format is most appropriate for storing configuration data that can be edited manually? A) .vi B) .lvproj C) .txt (ASCII) D) .dll Answer: C Explanation: ASCII text files are human‑readable and suitable for simple configuration data. Question 12. In the DAQmx model, which object is responsible for defining the physical channel to acquire data from? A) Task B) Virtual Channel C) Timing Configuration D) Read Function Answer: B Explanation: Virtual Channels represent the specific physical inputs or outputs within a DAQmx Task. Question 13. Which debugging tool highlights the flow of execution in real time on the block diagram? A) Probe B) Execution Highlighting
Question 16. Which design principle encourages breaking a large VI into smaller, reusable VIs? A) Cohesion B) Coupling C) Modularity D) Encapsulation Answer: C Explanation: Modularity promotes creating self‑contained subVIs that can be reused and maintained independently. Question 17. In a hierarchical VI architecture, what typically resides at the top level? A) A subVI that performs calculations. B) The main VI that orchestrates subVIs. C) A cluster definition file. D) A global variable. Answer: B Explanation: The main VI acts as the entry point, calling lower‑level subVIs to perform specific tasks. Question 18. Which of the following best describes “loose coupling” between modules? A) Modules share many global variables. B) Modules depend heavily on each other’s internal implementation. C) Modules interact through well‑defined interfaces only.
D) Modules are combined into a single block diagram. Answer: C Explanation: Loose coupling minimizes dependencies, allowing modules to change independently as long as the interface contract is maintained. Question 19. What is the purpose of a connector pane on a subVI? A) To display the VI’s error status. B) To define the inputs and outputs for wiring the subVI. C) To store the VI’s documentation. D) To set the VI’s execution priority. Answer: B Explanation: The connector pane provides a clear, ordered set of terminals for data flow into and out of the subVI. Question 20. Which LabVIEW feature allows you to add descriptive text that appears when the user hovers over a control or indicator? A) Tooltip B) Comment block C) Label D) Property Node Answer: A Explanation: Tip Strips (tooltips) provide hover‑over help for front‑panel objects.
D) Double Answer: C Explanation: An enum provides a clear, limited set of named states, simplifying state transitions. Question 24. Which LabVIEW structure is essential for implementing an event‑driven state machine? A) Case Structure B) Event Structure C) For Loop D) Sequence Structure Answer: B Explanation: The Event Structure captures UI events and can be combined with a state machine to handle user interaction efficiently. Question 25. In a Queued Message Handler (QMH) architecture, what is the primary role of the UI Event Loop? A) To process data acquisition. B) To generate and enqueue messages based on user actions. C) To perform heavy numeric calculations. D) To write data to disk. Answer: B Explanation: The UI Event Loop captures UI events, creates messages, and enqueues them for the Message Handling Loop.
Question 26. Which LabVIEW feature provides a thread‑safe way to store and retrieve data without using global variables? A] Local Variable B] Functional Global Variable (FGV) C] Queue D] Notifier Answer: B Explanation: An FGV uses a hidden while loop with a shift register to maintain data safely across calls, avoiding race conditions. Question 27. In a producer/consumer pattern, how does the consumer typically obtain data from the producer? A] By reading a global variable. B] By pulling from a queue. C] By using a reference to the producer VI. D] By directly wiring the producer’s output to the consumer’s input. Answer: B Explanation: Queues decouple producer and consumer loops, allowing asynchronous data transfer. Question 28. Which synchronization primitive should be used when a single piece of data must be broadcast to multiple consumer loops simultaneously? A] Queue
Explanation: Property Nodes expose control properties such as “Background Color” for runtime modification. Question 31. What is the difference between an implied Property Node and an explicitly opened reference Property Node? A] Implied nodes are slower. B] Implied nodes automatically close after execution; explicit references remain open. C] Implied nodes can only read properties. D] There is no functional difference. Answer: B Explanation: Implied Property Nodes are created and destroyed each time they execute, whereas explicit references persist until manually released. Question 32. Which VI Server method would you use to dynamically launch a VI at runtime? A] Open VI Reference B] Run VI C] Set VI Property D] Call By Reference Answer: B Explanation: The “Run VI” method (via the VI Server) starts a VI programmatically. Question 33. In LabVIEW’s execution system, what determines the order in which parallel loops are scheduled?
A] The order they appear on the block diagram. B] Their assigned priority level. C] The size of their data buffers. D] The number of shift registers they contain. Answer: B Explanation: Loop priorities influence the scheduler’s decision on which loop runs first. Question 34. Which reentrancy option allows a VI to be cloned for each parallel call, providing maximum thread safety? A] Shared Clone B] Preallocated Clone C] Reentrant (No Clone) D] None; LabVIEW VIs are always shared. Answer: B Explanation: Preallocated Clone creates a separate memory instance for each call, avoiding shared data. Question 35. Which practice helps reduce unnecessary memory copies when working with large arrays inside a loop? A] Using the “Resize Array” node each iteration. B] Enabling “Automatic Memory Management” on the loop. C] Placing the array on a shift register and using “Replace Array Subset”. D] Converting the array to a Variant each pass.
Question 38. Which of the following is the correct order to call a DLL function that uses the “stdcall” calling convention? A] Call Library Function Node → Set Calling Convention to “cdecl”. B] Call Library Function Node → Set Calling Convention to “stdcall”. C] Call Library Function Node → No calling convention needed. D] Use a VI Server reference instead of the Call Library Function Node. Answer: B Explanation: The Call Library Function Node must match the DLL’s calling convention; “stdcall” is selected explicitly. Question 39. Which LabVIEW communication protocol is best suited for streaming large binary data over a network with minimal overhead? A] TCP/IP B] UDP C] DataSocket D] HTTP Answer: A Explanation: TCP provides reliable, ordered delivery, making it ideal for large binary streams. Question 40. When integrating a .NET assembly, which LabVIEW node is used to create an instance of a .NET class? A] .NET Constructor Node B] Invoke Node C] Property Node
D] Call Library Function Node Answer: A Explanation: The .NET Constructor Node instantiates .NET objects for use within LabVIEW. Question 41. What must be installed on a target machine to run a LabVIEW executable built as a standalone application? A] LabVIEW Development Environment B] LabVIEW Run‑Time Engine (RTE) C] NI‑DAQmx driver only D] No additional software is required Answer: B Explanation: The LabVIEW RTE provides the necessary runtime libraries for executing compiled VIs. Question 42. Which guideline is part of the LabVIEW Development Guidelines for wire cleanliness? A] Use as many wires as possible to show data flow. B] Keep wires as straight as possible, using right‑angle bends. C] Hide all wires inside clusters. D] Use color‑coded wires for every data type. Answer: B Explanation: Straight wires with right‑angle bends improve readability and maintainability.
C] VI Server – “Set Property” D] Event Structure – “Label Change” Answer: A Explanation: The Property Node exposes the “Label Text” property for controls and indicators. Question 46. In LabVIEW, what is the effect of setting a loop’s “Iteration Count” to a negative value? A] The loop runs infinitely. B] The loop does not execute at all. C] The loop runs once. D] LabVIEW generates a compile‑time error. Answer: D Explanation: Loop iteration counts must be non‑negative; a negative constant causes a compile error. Question 47. Which of the following is NOT a valid reason to use a Sequence Structure? A] To enforce strict execution order when loops cannot be used. B] To initialize hardware before entering a While Loop. C] To simplify complex nested case logic. D] To guarantee that a piece of code runs only once at start‑up. Answer: C Explanation: Sequence Structures are discouraged for complex logic; case structures or state machines are preferred.
Question 48. When using a Queue, which function removes an element from the queue without waiting if the queue is empty? A] Dequeue (wait forever) B] Dequeue (timeout = 0) C] Enqueue D] Flush Queue Answer: B Explanation: Setting the timeout to 0 makes the Dequeue operation return immediately with an error if the queue is empty. Question 49. Which LabVIEW feature allows you to create a custom data type that can be used as a control or indicator across multiple VIs? A] Variant B] Type Definition (Typedef) C] Enum only D] Global Variable Answer: B Explanation: Typedefs define reusable custom data structures (clusters, enums, etc.) for consistent use. Question 50. What is the primary benefit of using the “Preallocate Memory” option on a For Loop that builds an array? A] It disables array resizing, preventing errors.