LabVIEW For FRC Programming Fundamentals


SettingsSettingsSettings
LabVIEW For FRC Programming Fundamentals - Quiz


When you pass this quiz, you'll earn a LabVIEW for FRC Programming Fundamentals Badge. In order to pass, you must score 85%. You may take as much time as you need, and feel free to use LabVIEW or other resources to help you answer the questions.
Please enter your information below so that we can issue the badge when you pass.


Questions and Answers
  • 1. 

    Case structures are a great way to run conditional code. All cases of the case structure are displayed below. What will the Numeric indicator display after the code runs?        

    • A.

      15

    • B.

      0

    • C.

      -5

    • D.

      5

    Correct Answer
    A. 15
    Explanation
    Case Structures

    Rate this question:

  • 2. 

    The data from a game controller's button is carried on which color wire?

    • A.

      Green

    • B.

      Blue

    • C.

      Orange

    • D.

      Pink

    Correct Answer
    A. Green
    Explanation
    Wires and Data Types

    Rate this question:

  • 3. 

    What will the Output indicator display after the VI is run?

    • A.

      FALSE

    • B.

      TRUE

    • C.

      0

    • D.

      Cannot be determined

    Correct Answer
    A. FALSE
    Explanation
    Logic Functions

    Rate this question:

  • 4. 

    The data from a game controller's analog stick or thumbstick is carried on what color wire?

    • A.

      Orange

    • B.

      Blue

    • C.

      Pink

    • D.

      Green

    Correct Answer
    A. Orange
    Explanation
    Wires and Data Types

    Rate this question:

  • 5. 

    The autonomous selector uses a string to select which case to run. What color wire connects the string input to the case selector terminal?

    • A.

      Pink

    • B.

      Orange

    • C.

      Blue

    • D.

      Green

    Correct Answer
    A. Pink
    Explanation
    Wires and Data Types

    Rate this question:

  • 6. 

    How do you select the correct button from Index Array if the button is the 7th element?

    • A.

      Wire an integer constant of 6 into the element input.

    • B.

      Wire an integer constant of 7 into the element input.

    • C.

      Nothing extra is required; the Index Array function automatically determines which elements are updating and outputs only those elements.

    • D.

      Wire the entire array into your subVI.

    Correct Answer
    A. Wire an integer constant of 6 into the element input.
    Explanation
    Indexing Arrays

    Rate this question:

  • 7. 

    Your game controller's buttons are elements 0 and 1 in the button array. Which of the following is the best way to read both of these values?

    • A.

      Expand the Index Array VI down to allow for two outputs.

    • B.

      Place two Index Array VIs and get one button value from each.

    • C.

      Use the value from button 0 wherever button 1 is required.

    • D.

      LabVIEW will read one value each time Teleop.vi is run. The second time it runs, it will grab the next value.

    Correct Answer
    A. Expand the Index Array VI down to allow for two outputs.
    Explanation
    Indexing Arrays

    Rate this question:

  • 8. 

    Case structures are a great way to run conditional code. All cases of the case structure are displayed below. What will the Numeric indicator display after the code runs?      

    • A.

      0

    • B.

      15

    • C.

      -5

    • D.

      5

    Correct Answer
    A. 0
    Explanation
    Case Structures

    Rate this question:

  • 9. 

    The code below shows how to implement a one-shot button. What is the function of the Not primitive?

    • A.

      It inverts the output of the Feedback Node.

    • B.

      It doubles the output of the Feedback Node.

    • C.

      It only passes the output of the Feedback Node through if it is a TRUE value.

    • D.

      It resets the output of the Feedback Node to the default value.

    Correct Answer
    A. It inverts the output of the Feedback Node.
    Explanation
    Logic Functions

    Rate this question:

  • 10. 

    To give your driver increased control, you might want to use a button to decrease motor speed. To do this, you will need to get a value from both the buttons array and the axes array. What would be the best way to do this?

    • A.

      Use an Index Array for each of the array types, and pass both values through logic functions to change the motor speed.

    • B.

      Wire both arrays into a single Index Array to combine all the joystick outputs.

    • C.

      Change the button to another axis so that you no longer have two arrays.

    • D.

      Use Build Array to combine the two arrays into one array. Then make that the input for Index Array

    Correct Answer
    A. Use an Index Array for each of the array types, and pass both values through logic functions to change the motor speed.
    Explanation
    Indexing Arrays

    Rate this question:

  • 11. 

    The code below shows how to implement a one-shot button. What is the function of the AND primitive?

    • A.

      It outputs a TRUE if both inputs are TRUE.

    • B.

      It outputs a FALSE if both inputs are TRUE.

    • C.

      It outputs a TRUE if both inputs are FALSE.

    • D.

      It outputs a TRUE if one input is TRUE and one input is FALSE.

    Correct Answer
    A. It outputs a TRUE if both inputs are TRUE.
    Explanation
    Logic Functions

    Rate this question:

  • 12. 

    Which of the following is always an input?

    • A.

      Control

    • B.

      Indicator

    • C.

      Typedef

    • D.

      Terminal

    Correct Answer
    A. Control
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram

    Rate this question:

  • 13. 

    You have created a subVI to read sensor values and placed it in Teleop.vi, Autonomous.vi, and Periodic Tasks.vi. You open the subVI from Teleop.vi, make changes to the subVI, and save it. Which instances of the subVI are updated?

    • A.

      The subVI is updated everywhere.

    • B.

      Only the subVI in Teleop.vi is updated.

    • C.

      The subVIs in Teleop.vi and Autonomous.vi are updated.

    • D.

      The subVIs in Teleop.vi and Periodic Tasks.vi are updated.

    Correct Answer
    A. The subVI is updated everywhere.
    Explanation
    SubVIs and Functions

    Rate this question:

  • 14. 

    Which of the following is always an output?

    • A.

      Indicator

    • B.

      Control

    • C.

      Constant

    • D.

      Typedef

    Correct Answer
    A. Indicator
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram

    Rate this question:

  • 15. 

    What happens if you drag a VI directly from your Robot Project to the Block Diagram of another VI?

    • A.

      The VI is placed as a subVI.

    • B.

      LabVIEW asks if you want to add the Block Diagram to your project.

    • C.

      The cursor shows a red X on the Block Diagram and nothing happens.

    • D.

      LabVIEW combines the Block Diagrams of the two VIs.

    Correct Answer
    A. The VI is placed as a subVI.
    Explanation
    SubVIs and Functions

    Rate this question:

  • 16. 

    Being able to combine different inputs can be useful when attempting to have your robot autonomously make decisions. Which function will take the inputs shown in String 1, String 2, and String 3 and generate the output shown below?

    Correct Answer
    A.
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram I

    Rate this question:

  • 17. 

    When is the best time to place probes on wires in your application?

    • A.

      During debugging to see real-time values.

    • B.

      After you've tested your robot and know it works.

    • C.

      Before saving your VI to ensure they are visible next time.

    • D.

      While you're developing your robot code in case you need them later.

    Correct Answer
    A. During debugging to see real-time values.
    Explanation
    Troubleshooting LabVIEW Code

    Rate this question:

  • 18. 

    LabVIEW reports an error number you do not recognize. Where is the best place to get more information about the error?

    • A.

      Select Explain Error from the Help Menu on the toolbar.

    • B.

      Read the LabVIEW documentation.

    • C.

      Run the code until you can see what is causing the error.

    • D.

      Find an example that has the same error and read the comments explaining it.

    Correct Answer
    A. Select Explain Error from the Help Menu on the toolbar.
    Explanation
    Troubleshooting LabVIEW Code

    Rate this question:

  • 19. 

    Engineers, scientists, and researchers are doing some truly amazing things with LabVIEW. Which of the following are examples of applications that are using LabVIEW? (SELECT ALL THAT APPLY.)

    • A.

      Developing and prototyping bearingless magnetic-levitation blood pumps for life support

    • B.

      Developing interplanetary robotic systems, including a ground-based demonstrator arm for the Mars rovers

    • C.

      Providing high-quality data processing in cutting edge flight test engineering education

    • D.

      Creating a cluster of autonomous robots that can simulate satellite dynamics in space

    Correct Answer(s)
    A. Developing and prototyping bearingless magnetic-levitation blood pumps for life support
    B. Developing interplanetary robotic systems, including a ground-based demonstrator arm for the Mars rovers
    C. Providing high-quality data processing in cutting edge flight test engineering education
    D. Creating a cluster of autonomous robots that can simulate satellite dynamics in space
    Explanation
    Awareness of LabVIEW in Industry

    Rate this question:

  • 20. 

    You enter Ctrl + H  to enable Context Help and hover your mouse over a subVI you do not recognize. One of the inputs for the subVI has a bolded name. For example, the RobotDriveDevRef input is bolded for the Tank Drive subVI. What does this mean?   

    • A.

      This input is required. If it is not wired, the VI you are editing will be broken until the subVI has a value wired to this input.

    • B.

      This is the first input you should enter. All other input values are derived based on this input.

    • C.

      This input has a constant value that you cannot change. You do not need to wire the input.

    • D.

      If you wire this input, it will use your value. Otherwise, it will use a default value. You do not need to wire this input if you want to use the default value.

    Correct Answer
    A. This input is required. If it is not wired, the VI you are editing will be broken until the subVI has a value wired to this input.
    Explanation
    Using Built-in Resources and Help

    Rate this question:

  • 21. 

    Engineers, scientists, and researchers are doing some truly amazing things with LabVIEW. Which of the following are examples of applications that are using LabVIEW? (SELECT ALL THAT APPLY.)

    • A.

      Developing the world's first functional prototype of a semi-autonomous blind driver vehicle

    • B.

      Developing an engine simulator test system to enhance the performance of gas turbine engine controllers

    • C.

      Intercepting misguided and unstable particle beams in the world's most powerful particle accelerator

    • D.

      Controlling and monitoring astronauts' heart rate monitors on the International Space Station

    Correct Answer(s)
    A. Developing the world's first functional prototype of a semi-autonomous blind driver vehicle
    B. Developing an engine simulator test system to enhance the performance of gas turbine engine controllers
    C. Intercepting misguided and unstable particle beams in the world's most powerful particle accelerator
    D. Controlling and monitoring astronauts' heart rate monitors on the International Space Station
    Explanation
    Awareness of LabVIEW in Industry

    Rate this question:

  • 22. 

    LabVIEW is used widely in nearly every science and engineering industry across the globe. Which of the following are examples of industries that use LabVIEW? (SELECT ALL THAT APPLY.)

    • A.

      Automotive and Energy

    • B.

      Military/Defense and Aerospace

    • C.

      Scientific Research and Medical Research

    • D.

      Robotics and Manufacturing

    Correct Answer(s)
    A. Automotive and Energy
    B. Military/Defense and Aerospace
    C. Scientific Research and Medical Research
    D. Robotics and Manufacturing
    Explanation
    Awareness of LabVIEW in Industry

    Rate this question:

  • 23. 

    Which of the following is the keyboard shortcut to enable/disable Context Help?

    • A.

      Ctrl + H

    • B.

      Ctrl + C

    • C.

      Ctrl + Shift + H

    • D.

      Ctrl + Shift + C

    Correct Answer
    A. Ctrl + H
    Explanation
    Using Built-in Resources and Help

    Rate this question:

  • 24. 

    LabVIEW automatically provides some frequently used specific string constants. What does the following string constant represent?

    • A.

      A space constant

    • B.

      An end-of-line constant

    • C.

      A tab constant

    • D.

      An empty string constant

    Correct Answer
    A. A space constant
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram I

    Rate this question:

  • 25. 

    The FRC Update Suite installs examples to help program your robot. How do you navigate to these examples?

    • A.

      From the Help Menu, choose Find Examples. This will open up the FRC Robotics folder of examples.

    • B.

      Go to www.ni.com/frc and choose Open LabVIEW Examples.

    • C.

      LabVIEW displays a welcome screen. Choose the appropriate example under the Open heading.

    • D.

      Enter to bring up the Example Finder.

    Correct Answer
    A. From the Help Menu, choose Find Examples. This will open up the FRC Robotics folder of examples.
    Explanation
    Using Built-in Resources and Help

    Rate this question:

  • 26. 

    Case structures are a great way to implement conditional code. The code below determines which autonomous code to run, based on the robot's starting location in the match. All cases of the case structure are shown below. What will the output of the case structure be when this code runs?

    • A.

      Autonomous 1

    • B.

      Autonomous 2

    • C.

      Autonomous 3

    • D.

      Cannot be determined

    Correct Answer
    A. Autonomous 1
    Explanation
    Case Structures

    Rate this question:

  • 27. 

    While testing your new encoder, you want to display the output value in the Encoder Value indicator on the Front Panel of a VI. Which of the following options should you use?

    Correct Answer
    A.
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram I

    Rate this question:

  • 28. 

    You want to find where a control on the Front Panel is being used in your code. What is the quickest way to find the control's terminal on the Block Diagram?

    • A.

      Double-click the edge of the control on the Front Panel, and the Block Diagram will pop up with the matching terminal flashing.

    • B.

      Open the Block Diagram and, starting in the upper left corner, look for a matching terminal.

    • C.

      Use to search for the name of the control.

    • D.

      Ask your teammate, who originally programmed this part of the code, where the control is used. They will remember exactly where it is.

    Correct Answer
    A. Double-click the edge of the control on the Front Panel, and the Block Diagram will pop up with the matching terminal flashing.
    Explanation
    Inputs/Outputs, Front Panel/Block Diagram

    Rate this question:

  • 29. 

    Case structures are a great way to implement conditional code. The code below determines which autonomous code to run, based on the robot's starting location in the match. All cases of the case structure are shown below. What will the output of the case structure be when this code runs?

    • A.

      Autonomous 3

    • B.

      Autonomous 2

    • C.

      Autonomous 1

    • D.

      Cannot be determined

    Correct Answer
    A. Autonomous 3
    Explanation
    Case Structures

    Rate this question:

  • 30. 

    Shift registers are used to pass values to subsequent iterations of loops. Given the While Loop below, what value would the Output indicator display when the loop completes its second iteration (i=1)?

    • A.

      3

    • B.

      2

    • C.

      1

    • D.

      4

    Correct Answer
    A. 3
    Explanation
    Loops

    Rate this question:

  • 31. 

    The Stop terminal in a While Loop controls when the loop will stop iterating. How many iterations will the given While Loop execute before stopping?

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      Infinite

    Correct Answer
    A. 1
    Explanation
    Loops

    Rate this question:

  • 32. 

    Shift registers are used to pass values to subsequent iterations of loops. What will the Output indicator display be after the loop completes its second iteration (i=1)?

    • A.

      3

    • B.

      4

    • C.

      7

    • D.

      6

    Correct Answer
    A. 3
    Explanation
    Loops

    Rate this question:

  • 33. 

    The String Subset function is useful for pulling out pieces of longer strings. Given the code shown below, what would be the result in Output?

    • A.

      Awesome

    • B.

      LabVIEW

    • C.

      IsAwesome

    • D.

      Some

    Correct Answer
    A. Awesome
    Explanation
    SubVIs and Functions

    Rate this question:

  • 34. 

    Your VI is broken, and clicking on the broken Run Arrow displays this Error List popup window. Where is the best place to start looking for the problem?

    • A.

      NT Write Numeric Array.vi

    • B.

      NT Server.vi

    • C.

      Robot Main.vi

    • D.

      WPI_CameraSend Images To PC Loop.vi

    Correct Answer
    A. NT Write Numeric Array.vi
    Explanation
    Troubleshooting LabVIEW Code

    Rate this question:

  • 35. 

    Quick Drop allows you to rapidly find and place LabVIEW front panel and block diagram objects without navigating the palettes or initiating a search. What keyboard shortcut accesses Quick Drop?

    • A.

      Ctrl + Space

    • B.

      Ctrl + Q

    • C.

      Ctrl + D

    • D.

      Ctrl + Q + D

    Correct Answer
    D. Ctrl + Q + D
    Explanation
    Using Search or Quick Drop to Find Functions

    Rate this question:

  • 36. 

    If you want to perform array manipulation, where would you find the relevant LabVIEW primitives and subVIs?

    • A.

      Functions Palette » Programming » Array

    • B.

      Controls Palette » Modern » Array, Matrix, and Cluster

    • C.

      Functions Palette » Programming » Comparison

    • D.

      Controls Palette » Modern » List, Table, and Tree

    Correct Answer
    A. Functions Palette » Programming » Array
    Explanation
    Using Pallets to Find Functions

    Rate this question:

  • 37. 

    If you want to use Boolean logic to make a decision in your VI, where would you find the relevant LabVIEW primitives and subVIs?

    • A.

      Functions Palette » Programming » Boolean

    • B.

      Controls Palette » Modern » Array, Matrix, and Cluster

    • C.

      Functions Palette » Programming » Comparison

    • D.

      Controls Palette » Modern » List, Table, and Tree

    Correct Answer
    A. Functions Palette » Programming » Boolean
    Explanation
    Using Pallets to Find Functions

    Rate this question:

  • 38. 

    If you want to perform string manipulation, where would you find the relevant LabVIEW primitives and subVIs?

    • A.

      Functions Palette » Programming » String

    • B.

      Controls Palette » Modern » String & Path

    • C.

      Functions Palette » Programming » Comparison

    • D.

      Controls Palette » Modern » List, Table & Tree

    Correct Answer
    A. Functions Palette » Programming » String
    Explanation
    Using Pallets to Find Functions

    Rate this question:

  • 39. 

    If you want find a way to perform math functions in LabVIEW, where would you find the relevant LabVIEW primitives and subVIs?

    • A.

      Functions Palette » Programming » Numeric

    • B.

      Controls Palette » Modern » Array, Matrix & Cluster

    • C.

      Functions Palette » Programming » Comparison

    • D.

      Controls Palette » Modern » List, Table & Tree

    Correct Answer
    A. Functions Palette » Programming » Numeric
    Explanation
    Using Pallets to Find Functions

    Rate this question:

  • 40. 

    Which search term below would NOT return the Index Array function at the top of the list when typed into the block diagram's Quick Drop?

    • A.

      Array

    • B.

      Dex

    • C.

      Index

    • D.

      Ndx

    Correct Answer
    A. Array
    Explanation
    Using Search or Quick Drop to Find Functions

    Rate this question:

  • 41. 

    While you are wiring up your code, you notice that some of your wires are broken. Why is the wire broken in the code shown below from Teleop.vi?

    • A.

      You have wired an array into a single-value input.

    • B.

      You have wired a Double to a Boolean input.

    • C.

      You have wired an output to an input.

    • D.

      You have wired an Integer into a Double.

    Correct Answer
    A. You have wired an array into a single-value input.
    Explanation
    Troubleshooting LabVIEW Code I

    Rate this question:

  • 42. 

    While you are wiring up your code, you notice that some of your wires are broken. Why is the wire broken in the code shown below from the Teleop.vi?

    • A.

      You have wired a Boolean to a Double input.

    • B.

      You have wired an array into a single-value input.

    • C.

      You have wired an output to an input.

    • D.

      You have wired an Integer to a Boolean input.

    Correct Answer
    A. You have wired a Boolean to a Double input.
    Explanation
    Troubleshooting LabVIEW Code I

    Rate this question:

  • 43. 

    You receive the following error in the Driver Station when you deploy your robot code and enable your robot: Looking at the below snippets from Begin.vi and Teleop.vi, what is the causing the error?

    • A.

      The motor refnum names do not match.

    • B.

      The Safety Config should have been disabled in Begin.vi.

    • C.

      The motor refnum name should have been Drivetrain Motors.

    • D.

      The motors should have been initialized in Teleop.vi.

    Correct Answer
    A. The motor refnum names do not match.
    Explanation
    Troubleshooting LabVIEW Code II

    Rate this question:

  • 44. 

    You add the following motor code for your Lift Motor (which is correctly initialized) in Teleop.vi. After adding the code, you notice Teleop.vi has a broken Run Arrow. Looking at the code snippet and the Context Help window below, why is this VI broken?

    • A.

      The MotorControlDevRef needs to be wired.

    • B.

      The options need to be set.

    • C.

      Output should be a Boolean value.

    • D.

      The error wire should not be wired.

    Correct Answer
    A. The MotorControlDevRef needs to be wired.
    Explanation
    Troubleshooting LabVIEW Code II

    Rate this question:

  • 45. 

    You tried to build your project to deploy it to your robot but received the following error during the build process. You notice that all the affected VIs are associated with the Vision Acquisition Software. How would you resolve this error? 

    • A.

      Activate the Vision Acquisition Software.

    • B.

      Delete the problematic VIs from your project.

    • C.

      Add the problematic VIs as Dependencies in your project.

    • D.

      Uninstall the Vision Acquisition Software from your computer.

    Correct Answer
    A. Activate the Vision Acquisition Software.

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Apr 16, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 09, 2018
    Quiz Created by
Back to Top Back to top
Advertisement