FRC C++ Lessons Quiz 1

Description

This quiz covers FRC C++ Part 1 (http://goo.gl/j1FudJ), which deals with Command Based Programming. Note: Some questions have multiple "correct" answers, all of which must be selected to receive points. Read the directions on each question carefully!
4574programming
Quiz by 4574programming, updated more than 1 year ago
4574programming
Created by 4574programming almost 10 years ago
63
1

Resource summary

Question 1

Question
A subsystem represents...
Answer
  • A specific part of the robot (ex. a motor)
  • A complicated task linked to user control that part of the robot does
  • A simple task part of the robot does
  • A broad section of the robot that has parts that work together

Question 2

Question
A Command represents...
Answer
  • A broad section of the robot that has parts that work together
  • A simple task part of the robot does
  • A complicated task linked to user control that part of the robot does
  • A specific part of the robot (ex. a motor)

Question 3

Question
An "action" represents...
Answer
  • A specific part of the robot (ex. a motor)
  • A simple task part of the robot does
  • A complicated task linked to user control that part of the robot does
  • A broad section of the robot that has parts that work together

Question 4

Question
The OI...
Answer
  • Stands for Operator Interface
  • Links Joystick Input to actions
  • Links Joystick Input to commands
  • Specifies which commands are used by a subsystem

Question 5

Question
Teleop Mode...
Answer
  • Does not include user input
  • Lasts longer than Autonomous
  • Is shorter than Autonomous
  • Is the "default" game mode
  • will utilize many different commands
  • will only have one command or command group run

Question 6

Question
Autonomous Mode...
Answer
  • Does not include user input
  • Is the "default" game mode
  • will only have one command or command group run
  • will utilize many different commands

Question 7

Question
Which of these Commands should be set as default?
Answer
  • DriveWithJoystick
  • FLManual
  • FLToggleUp
  • FLToggleDown
  • SLManualUp
  • SLManualDown
  • SLClose
  • SLCatch
  • MovePincerWithJoystick

Question 8

Question
What is the first code your command runs when it is called, and is only run once before the command is called again?
Answer
  • 1. The Constructor
  • 2. The Initialize Function
  • 3. The Execute Function
  • 4. The IsFinished Function
  • 5. The End Function
  • 6. The Interrupted Function

Question 9

Question
Where should you place code that stops the command when it is done running?
Answer
  • 1. The constructor
  • 2. The Initialize Function
  • 3. The Execute Function
  • 4. The IsFinished Function
  • 5. The End Function
  • 6. The Interrupted Function

Question 10

Question
What is the code that tells your command when it is finished running?
Answer
  • 1. The constructor
  • 2. The Initialize Function
  • 3.The Execute Function
  • 4.The IsFinished Function
  • 5.The End Function
  • 6. The Interrupted Function

Question 11

Question
Where should you put code that will cancel the command when another command for the same subsystem is called?
Answer
  • 1. The constructor
  • 2. The Initialize Function
  • 3. The Execute Function
  • 4. The IsFinished Function
  • 5. The End Function
  • 6. The Interrupted Function

Question 12

Question
Where do you specify which subsystem your command uses?
Answer
  • 1. The constructor
  • 2. The Initialize Function
  • 3. The Execute Function
  • 4. The IsFinished Function
  • 5. The End Function
  • 6. The Interrupted Function

Question 13

Question
Code in which section will be run repeatedly every time the command is checked on?
Answer
  • 1. The constructor
  • 2. The Initialize Function
  • 3. The Execute Function
  • 4. The IsFinished Function
  • 5. The End Function
  • 6. The Interrupted Function

Question 14

Question
To create a drive system with 4 motors in RobotBuilder, you drag 4 speed controllers into the Chassis Subsystem folder.
Answer
  • True
  • False

Question 15

Question
When creating a button linked to a robot arm moving to a specified position you could (reasonably) use which of the following:
Answer
  • WhenPressed
  • WhenReleased
  • WhileHeld

Question 16

Question
When creating a button linked to a robot arm moving up as long as the user needs it to, you could (reasonably) use which of the following:
Answer
  • WhenPressed
  • WhenReleased
  • WhileHeld

Question 17

Question
You never need to set default commands for subsystems
Answer
  • True
  • False

Question 18

Question
Everything for the OI is created in RobotBuilder
Answer
  • True
  • False

Question 19

Question
A red light next to "Communications" means you are missing a wireless connection to the robot
Answer
  • True
  • False

Question 20

Question
You should always wear safety glasses when testing robot code
Answer
  • True
  • False

Question 21

Question
If something breaks while you are testing the robot, you should keep testing to figure out what went wrong
Answer
  • True
  • False

Question 22

Question
It doesnt really matter which mode the robot is in (Teleop, Autonomous, etc.), all the code is the same
Answer
  • True
  • False

Question 23

Question
Battery voltages below 12.5 mean you need a new battery
Answer
  • True
  • False
Show full summary Hide full summary

Similar

Spanish Questions
Niat Habtemariam
C6 Flash cards
Anna Hollywood
SAT Math Sample Questions
SAT Prep Group
Nazi Germany Dates
Georgina.Smith
Life in Germany
Ben C
Psychology A1
Ellie Hughes
GCSE REVISION TIMETABLE
Joana Santos9567
Using GoConqr to teach French
Sarah Egan
Frankenstein - Mary Shelley
Johnny Hammer
MAPA MENTAL DISEÑO GRAFICO
puntoideascali
Cell Physiology and General Physiology of Excitable Tissues- Physiology PMU 2nd Year
Med Student