You are on page 1of 103

Quiz Questions and Answers

(Review and Summary quizzes merged)

ni.com/trainin
Navigating LabVIEW

ni.com/trainin
Quiz

What are the three parts of a VI?

a) Front panel
b) Block diagram
c) Project
d) Icon/Connector pane

3 ni.com/trainin
3
Quiz Answer

What are the three parts of a VI?

a) Front panel
b) Block diagram
c) Project
d) Icon/Connector pane

4 ni.com/trainin
4
Quiz

Match the VI parts with their descriptions.

I. Defines inputs and


outputs of a subVI
a) Front panel
II. User interface
b) Block diagram
III. Graphical representation
c) Icon
of a subVI
d) Connector pane
IV. Contains graphical
source code

5 ni.com/trainin
5
Quiz Answer

Match the VI parts with their descriptions.

I. Defines inputs and


outputs of a subVI
a) Front panel
II. User interface
b) Block diagram
III. Graphical representation
c) Icon
of a subVI
d) Connector pane
IV. Contains graphical
source code

6 ni.com/trainin
6
Quiz

Which types of folders are available


in a LabVIEW Project?

a) Virtual folder
b) Logical folder
c) Auto-updating folder
d) Auto-populating folder

7 ni.com/trainin
7
Quiz Answer

Which types of folders are available


in a LabVIEW Project?

a) Virtual folder
b) Logical folder
c) Auto-updating folder
d) Auto-populating folder

8 ni.com/trainin
8
Quiz

Match the data types with wires that represent


them on the block diagram.

a) String
b) Boolean
c) Integer Numeric
d) Floating-Point Numeric

9 ni.com/trainin
9
Quiz Answer

Match the data types with wires that represent


them on the block diagram.

a) String
b) Boolean
c) Integer Numeric
d) Floating-Point
Numeric

10 ni.com/trainin
10
Quiz

Which is only available on the block diagram?

a) Control
b) Constant
c) Indicator
d) Connector Pane

11
ni.com/trainin
Quiz Answer

Which is only available on the block diagram?

a) Control
b) Constant
c) Indicator
d) Connector Pane

12
ni.com/trainin
Quiz

Which function executes first: Add or Subtract?

a) Add
b) Subtract
c) Unknown

ni.com/trainin
Quiz Answer

Which function executes first: Add or Subtract?

a) Add
b) Subtract
c) Unknown

ni.com/trainin
Quiz

Which function executes first: Sine or Divide?

a) Sine
b) Divide
c) Unknown

ni.com/trainin
Quiz Answer

Which function executes first: Sine or Divide?

a) Sine
b) Divide
c) Unknown

ni.com/trainin
Quiz

Which of the following functions executes first:


Random Number, Add or Divide?

a) Random Number
b) Divide
c) Add
d) Unknown

17
17 ni.com/trainin
Quiz Answer

Which of the following functions executes first:


Random Number, Add or Divide?

a) Random Number
b) Divide
c) Add
d) Unknown

18
18 ni.com/trainin
Quiz

Which of the following functions executes last:


Random Number, Subtract or Add?

a) Random Number
b) Subtract
c) Add
d) Unknown

ni.com/trainin
Quiz

Which of the following functions executes last:


Random Number, Subtract or Add?

a) Random Number
b) Subtract
c) Add
d) Unknown

ni.com/trainin
Quiz

In the figure below, what will Result equal when


this calculation is executed?

a) 55
b) 70
c) 65
d) Indeterminate

ni.com/trainin
Quiz Answer

In the figure below, what will Result equal when


this calculation is executed?

a) 55
b) 70
c) 65
d) Indeterminate

ni.com/trainin
Quiz
What is the value in XOR Result after the
following code has executed?

a) 0
b) 1
c) True
d) False

ni.com/trainin
Quiz Answer
What is the value in XOR Result after the
following code has executed?

a) 0
b) 1
c) True
d) False

ni.com/trainin
Quiz

In the following VI, what is the execution order of


functions?

ni.com/trainin
Quiz Answer

In the following VI, what is the execution order of


functions?

ni.com/trainin
Troubleshooting and Debugging
VIs

ni.com/trainin
Quiz

Which of the following will result in a broken


run arrow?

a) A subVI is broken.
b) The diagram includes a divide by zero.
c) A required subVI input is unwired.
d) A Boolean terminal is wired to a numeric
indicator.

28
ni.com/trainin
Quiz Answer

Which of the following will result in a broken


run arrow?

a) A subVI is broken.
b) The diagram includes a divide by zero.
c) A required subVI input is unwired.
d) A Boolean terminal is wired to a numeric
indicator.

29
ni.com/trainin
Quiz

The Error list shows all of the following EXCEPT:

a) Items with errors


b) Errors and warnings
c) Details about the warnings
d) Error codes

30
ni.com/trainin
Quiz Answer

The Error list shows all of the following EXCEPT:

a) Items with errors


b) Errors and warnings
c) Details about the warnings
d) Error codes

31
ni.com/trainin
Quiz

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 slow down the VI and show data values in
wires

32
ni.com/trainin
Quiz Answer

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 slow down the VI and show data values in
wires

33
ni.com/trainin
Quiz

The following breakpoint does which of the


following?

a) Causes the VI to abort


b) Causes the VI to pause
c) Causes the VI to single step over the addition
d) Causes the VI to single step over the indicator

34
ni.com/trainin
Quiz Answer

The following breakpoint does which of the


following?

a) Causes the VI to abort


b) Causes the VI to pause
c) Causes the VI to single step over the addition
d) Causes the VI to single step over the indicator

35
ni.com/trainin
Quiz

Which of the following are the components and


data types of the error cluster?

a) Status: Boolean
b) Error: String
c) Code: 32-bit integer
d) Source: String

36
ni.com/trainin
Quiz Answer

Which of the following are the components and


data types of the error cluster?

a) Status: Boolean
b) Error: String
c) Code: 32-bit integer
d) Source: String

37
ni.com/trainin
Quiz

All errors have negative error codes and all


warnings have positive error codes.

a) True
b) False

38
ni.com/trainin
Quiz Answer

All errors have negative error codes and all


warnings have positive error codes.

a) True
b) False

39
ni.com/trainin
Quiz

Merge Errors function concatenates error


information from multiple sources.

a) True
b) False

40
ni.com/trainin
Quiz Answer

Merge Errors function concatenates error


information from multiple sources.

a) True
b) False

41
ni.com/trainin
Implementing a VI

ni.com/trainin
Quiz
If an input to a function is marked with a red dot
(known as a coercion dot), what does the dot
indicate?

a) Data was transferred into a structure.


b) A For Loop was configured with a conditional terminal.
c) A For Loop iteration terminal is unwired.
d) The value passed into a node was converted to a different
representation.

43
ni.com/trainin
Quiz Answer
If an input to a function is marked with a red dot
(known as a coercion dot), what does the dot
indicate?

a) Data was transferred into a structure.


b) A For Loop was configured with a conditional terminal.
c) A For Loop iteration terminal is unwired.
d) The value passed into a node was converted to a
different representation.

44
ni.com/trainin
Quiz

Which structure must run at least one time?

a) While Loop
b) For Loop

45
ni.com/trainin
Quiz Answer

Which structure must run at least one time?

a) While Loop
b) For Loop

46
ni.com/trainin
Quiz
some code
Which of the following
statements is TRUE
about the following
code segment?

a) The loop will execute once and ‘Iteration’ will have a value of one
b) The loop will execute once and ‘Iteration’ will have 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 ‘Iteration' will have a value of zero

47
ni.com/trainin
Quiz Answer
some code
Which of the following
statements is TRUE
about the following
code segment?

a) The loop will execute once and ‘Iteration’ will have a value of one
b) The loop will execute once and ‘Iteration’ will have 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 ‘Iteration' will have a value of zero

48
ni.com/trainin
Quiz
Which data type is not accepted by the case
selector terminal on a Case structure?

a) Arrays
b) Enumerated type values
c) Strings
d) Integers

49
ni.com/trainin
Quiz
Which data type is not accepted by the case
selector terminal on a Case structure?

a) Arrays
b) Enumerated type values
c) Strings
d) Integers

50
ni.com/trainin
Data Structures

ni.com/trainin
Quiz
The most efficient method for creating an array is:

a) Placing a build array function in a While Loop


b) Initializing an array and then replacing
elements in a While Loop
c) Using a For Loop with Auto-indexing
d) Using a While Loop with Auto-Indexing

52
ni.com/trainin
52
Quiz Answer
The most efficient method for creating an array is:

a) Placing a build array function in a While Loop


b) Initializing an array and then replacing
elements in a While Loop
c) Using a For Loop with Auto-indexing
d) Using a While Loop with Auto-Indexing

53
ni.com/trainin
53
Quiz
In the figure below, the output of Array Size is:

a) 1D Array of {2, 3}
b) 1D Array of {3, 2}
c) 2
d) None of the above
54
ni.com/trainin
54
Quiz Answer
In the figure below, the output of Array Size is:

a) 1D Array of {2, 3}
b) 1D Array of {3, 2}
c) 2
d) None of the above
55
ni.com/trainin
55
Quiz
What value is displayed in Result when the code
executes?

a. 1-D Array of {-25, 25, 50}


b. 1-D Array of {-25, 25}
c. 2-D Array of {{-25, -50, -50} , {50, 25, 25}}
d. 1-D Array of {75, -50, 25}

56
ni.com/trainin
56
Quiz Answer
What value is displayed in Result when the code
executes?

a. 1-D Array of {-25, 25, 50}


b. 1-D Array of {-25, 25}
c. 2-D Array of {{-25, -50, -50} , {50, 25, 25}}
d. 1-D Array of {75, -50, 25}

57
ni.com/trainin
57
Quiz
You can create an array of arrays.

a) True
b) False

58
ni.com/trainin
58
Quiz Answer
You can create an array of arrays.

a) True
b) False

You cannot drag an array data type into an


array shell. However, you can create
arrays with more dimensions.

59
ni.com/trainin
59
Quiz
You can create:

• a cluster • a cluster • an array


of clusters. of arrays. of clusters.
a) True a) True a) True
b) False b) False b) False

60
ni.com/trainin
60
Quiz Answer
You can create:

• a cluster • a cluster • an array


of clusters. of arrays. of clusters.
a) True a) True a) True
b) False b) False b) False

61
ni.com/trainin
61
Quiz
What is the value of the Iterations indicator
after running this VI?

62
ni.com/trainin
62
Quiz Answer
What is the value of the Iterations indicator
after running this VI?
4

63
ni.com/trainin
63
Quiz
Which of the following custom control settings
defines the data type of all instances of a
control but allows for different colors and font
styles?

a) Control
b) Type definition
c) Strict type definition
d) Cluster control

64
ni.com/trainin
64
Quiz Answer
Which of the following custom control settings
defines the data type of all instances of a
control but allows for different colors and font
styles?

a) Control
b) Type definition
c) Strict type definition
d) Cluster control

65
ni.com/trainin
65
Quiz
You have input data representing a circle: X Position, Y
Position, and Radius. In the future, you might need to
modify your data to include the color of the circle.
What data structure should you use to represent the
circle in your application?
a) Three separate controls for the two positions and the
radius
b) A cluster containing all of the data
c) A custom control containing a cluster R
d) A type definition containing a cluster
(X,Y)
e) An array with three elements

66
ni.com/trainin
Quiz Answer
You have input data representing a circle: X Position, Y
Position, and Radius. In the future, you might need to
modify your data to include the color of the circle.
What data structure should you use to represent the
circle in your application?
a) Three separate controls for the two positions and the
radius
b) A cluster containing all of the data
c) A custom control containing a cluster R
d) A type definition containing a cluster
(X,Y)
e) An array with three elements

67
ni.com/trainin
Developing Modular
Applications

ni.com/trainin
Quiz
Which of the following statements is FALSE?

a) A subVI connector pane defines where to wire inputs


and outputs.
b) The color of a subVI connector pane terminal matches
the data type it is connected to.
c) You must have an icon/connector pane to use a subVI.
d) A subVI icon can be edited from the functions palette.

69
ni.com/trainin
69
Quiz
Which of the following statements is FALSE?

a) A subVI connector pane defines where to wire inputs


and outputs.
b) The color of a subVI connector pane terminal matches
the data type it is connected to.
c) You must have an icon/connector pane to use a subVI.
d) A subVI icon can be edited from the Functions
palette.

70
ni.com/trainin
70
Quiz
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) Input values must be scalar.


b) An input is recommended, but not required.
c) An input is required.
d) A broken run arrow will result unless the input is
wired.
71
ni.com/trainin
71
Quiz Answer
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) Input values must be scalar.


b) An input is recommended, but not required.
c) An input is required.
d) A broken run arrow will result unless the
input is wired.
72
ni.com/trainin
72
File Input and Output

ni.com/trainin
Quiz
Consider the following code. The resulting Log
File Path contains a text file path in which
folder?
a) Same folder as VI that executed the code.
b) Same folder as the LabVIEW project.
c) Current user’s AppData directory.
d) Same folder as the Application Directory VI.

ni.com/trainin
Quiz Answer
Consider the following code. The resulting Log
File Path contains a text file path in which
folder?
a) Same folder as VI that executed the code.
b) Same folder as the LabVIEW project.
c) Current user’s AppData directory.
d) Same folder as the Application Directory VI.

ni.com/trainin
Quiz

You need to store data that other engineers will


later analyze with Microsoft Excel. Which file
storage format(s) should you use?

a) Tab-delimited ASCII
b) Custom binary format
c) TDMS

ni.com/trainin
Quiz Answer

You need to store data that other engineers will


later analyze with Microsoft Excel. Which file
storage format(s) should you use?

a) Tab-delimited ASCII
b) Custom binary format
c) TDMS

ni.com/trainin
Quiz

TDMS files store properties at which of the


following levels?

a) File
b) Channel Group
c) Channel
d) Value

ni.com/trainin
Quiz Answer

TDMS files store properties at which of the


following levels?

a) File
b) Channel Group
c) Channel
d) Value

ni.com/trainin
Programming Designs

ni.com/trainin
Quiz

The Event structure handles only one event


each time it executes.

a) True
b) False

ni.com/trainin
Quiz Answer

The Event structure handles only one event


each time it executes.

a) True
b) False

ni.com/trainin
Quiz

What is the default timeout value of an Event


structure?

a) 0
b) 100 ms
c) Never time out
d) The input value of the Wait (ms) function that
exists in the same loop as the Event
structure

ni.com/trainin
Quiz Answer

What is the default timeout value of an Event


structure?

a) 0
b) 100 ms
c) Never time out
d) The input value of the Wait (ms) function that
exists in the same loop as the Event
structure

ni.com/trainin
Quiz
When using a Sequence structure, you can
stop the execution in the middle of a
sequence.

a) True
b) False

ni.com/trainin
Quiz Answer
When using a Sequence structure, you can
stop the execution in the middle of a
sequence.

a) True
b) False

That is why Sequence structures


should not be overused.

ni.com/trainin
Quiz
Which of the following are benefits of using a
state machine instead of a sequential
structure?

a) You can change the order of the sequence.


b) You can repeat individual items in the sequence.
c) You can set conditions to determine when an
item in the sequence should execute.
d) You can stop the program at any point in the
sequence.

ni.com/trainin
Quiz Answer
Which of the following are benefits of using a
state machine instead of a sequential
structure?

a) You can change the order of the sequence.


b) You can repeat individual items in the
sequence.
c) You can set conditions to determine when an
item in the sequence should execute.
d) You can stop the program at any point in the
sequence.

ni.com/trainin
Quiz

Which of the following are reasons for using a


multiple loop design pattern?

a) Execute multiple tasks concurrently


b) Execute different states in a state machine
c) Execute tasks at different rates
d) Execute start up code, main loop, and shutdown code

ni.com/trainin
Quiz Answer

Which of the following are reasons for using a


multiple loop design pattern?

a) Execute multiple tasks concurrently


b) Execute different states in a state machine
c) Execute tasks at different rates
d) Execute start up code, main loop, and shutdown code

ni.com/trainin
Quiz

The major difference between Notifiers and Queues is:

a) Notifiers cannot send data with the notification,


but queues can.
b) Notifiers cannot buffer data that is sent, but
queues buffer data.
c) Notifiers will make the slave loop wait on the
notification, a queue does not make the slave
loop wait.

ni.com/trainin
Quiz

The major difference between Notifiers and Queues is:

a) Notifiers cannot send data with the notification,


but queues can.
b) Notifiers cannot buffer data that is sent, but
queues buffer data.
c) Notifiers will make the slave loop wait on the
notification, a queue does not make the slave
loop wait.

ni.com/trainin
Quiz

Which of the following are valid data types for


queues and notifiers?

a) String
b) Numeric
c) Enum
d) Array of Booleans
e) Cluster of a String and a Numeric

ni.com/trainin
Quiz Answer

Which of the following are valid data types for


queues and notifiers?

a) String
b) Numeric
c) Enum
d) Array of Booleans
e) Cluster of a String and a Numeric

ni.com/trainin
Quiz
Match the following:

1. Obtain Queue a. Destroys the queue


reference
2. Get Queue Status b. Assigns the data type of
the queue
3. Release Queue c. Adds an element to the
back of a queue
4. Enqueue Element d. Determines the number
of elements currently in
the queue

ni.com/trainin
Quiz Answer
Match the following:

1. Obtain Queue a. Destroys the queue


reference
2. Get Queue Status b. Assigns the data type of
the queue
3. Release Queue c. Adds an element to the
back of a queue
4. Enqueue Element d. Determines the number
of elements currently in
the queue

ni.com/trainin
Variables

ni.com/trainin
Quiz
You should use variables in your VI whenever
possible.

a) True
b) False

ni.com/trainin
98
Quiz Answer
You should use variables in your VI whenever
possible.

a) True
b) False

You should use variables only when


necessary. Use wires to transfer data
whenever possible.

ni.com/trainin
99
Quiz
When controlling resources, which
combination of writers and readers reduces
chance of race conditions?

a) One writer, one reader


b) One writer, multiple readers
c) Multiple writers, one reader
d) Multiple writers, multiple readers

ni.com/trainin
100
Quiz Answer
When controlling resources, which
combination of writers and readers reduces
chance of race conditions?

a) One writer, one reader


b) One writer, multiple readers
c) Multiple writers, one reader
d) Multiple writers, multiple readers

ni.com/trainin
101
Quiz
Which of the following buffer data?

a) Queues
b) Events
c) Local Variables

ni.com/trainin
Quiz Answer
Which of the following buffer data?

a) Queues
b) Events
c) Local Variables

ni.com/trainin

You might also like