POE FINAL SEMESTER 2 MULTIPLE CHOICE 1. What is the purpose of the RobotC Debug window? a. It allows the user to Start and Stop their program. b. It allows the user to step through their program one line at a time. c. It must be open to use any of the other Debug windows (Sensors, Motors, etc.) d. All of the above e. None of the above 2. A Light Sensor is a sensor a. Analog b. Digital 3. A Potentiometer is a sensor. a. Analog b. Digital 4. A Quad Encoder (Shaft Encoder) is a sensor. a. Analog b. Digital 5. The Ultrasound (SONAR) sensor is. a. Analog b. Digital 6. Bumper switches and limit switches are inputs. a. Analog b. Digital 7. What is the purpose of the SensorValue [sensorname] command? a. It retrieves the value of sensorname b. It sets the value of sensorname c. Both of the above d. None of the above 8. What is the purpose of the RobotC Motors and Sensors Setup? a. It is a lookup chart that tells you where to plug in your motors and sensors and what to call them. b. It is a place where you can read all of the values of the sensors in one place c. It is a central place to configure and name all of the motors and sensors that are connected to the Cortex. d. None of the above.
9. What programming language is this written in? a. Standard RobotC b. RobotC Natural Language c. Pseudocode d. None of the above 10. What will this program cause the robot to do? a. Spin in left circles until the sonar sensor detects an object within 10 cm AND the touch sensor is pressed b. The robot will move forward if the sonar sensor detects an object within 10 cm OR if the touch sensor is pressed. c. The robot will move forward while the touch sensor is not pressed. If an object is detected within 10 cm by the sonar sensor, the robot will stop and turn left before moving again. d. The program will not run on the robot. 11. The Line Follower (Line Tracking Sensor) is a sensor. a. Analog b. Digital 12. What range of values does the Line Follower provide? a. 0 to 1023 b. 0 to 4095 c. -127 to 127 d. 0 to 100 13. Why would a VEX robotic vehicle spin in place if you gave them the same motor power level?
a. The motors are designed to mirror each other on opposite sides of the vehicle s drivetrain b. Motor inconsistency is a design flaw in VEX robotic equipment. c. The Robot Vehicle has been built incorrectly. 14. How many analog ports are on a Cortex controller? a. 6 b. 8 c. 10 d. 12 15. How many Motor output ports are on a Cortex controller? a. 6 b. 8 c. 10 d. 12 16. How do you change the polarity of the Quad Shaft Encoder? a. You can t. b. Use the Motors and Sensors setup. c. Use the SensorValue [ ] command. d. Swap where the wires are plugged in. 17. One full revolution of the Quad Shaft Encoder is equal to how many ticks? a. 90 b. 180 c. 360 d. 720 18. How does the Ultrasonic Rangefinder (SONAR sensor) measure distance? a. It sends out pulses of sound, listens for the echo signal strength, and calculates the distance. b. It requires special equipment to be attached to the Cortex. c. It sends out pulses of sound, listens for the echo, and the Cortex uses the amount of time it takes for the sound to bounce back to calculate the distance. d. What? That s what that s for? 19. The Ultrasonic Rangefinder (SONAR sensor) can give distances in: a. Millimeters b. Centimeters c. Inches d. All of the above. 20. The Potentiometer returns values from: a. 0 to 100
b. 0 to 1023 c. 0 to 4095 d. -127 to 127 21. The bumper switch and limit switch give values of 1 when pressed and 0 when released. a. True b. False 22. Is the speed of a motor affected by battery power? a. Yes b. No 23. Does the Potentiometer have a full range of motion? a. Yes b. No 24. The Quad Shaft Encoder can only count positive directions of rotation. a. True b. False 25. What are the command(s) to control the VEX Flashlight? a. FlashlightOn ( ), FlashlightOff ( ) b. turnflashlighton ( ), turnflashlightoff ( ) c. FLOn ( ), FLOff ( ) d. None of the above 26. What command(s) control the VEX LED? a. turnledon ( ), turnledoff ( ) b. switchledoff ( ), switchledon ( ) c. LEDOn ( ), LEDOff ( ) 27. How should a VEX LED be configured in the Motors and Sensors Setup a. Digital Input b. VEX LED c. Digital Output d. 2-wire 269 motor 28. Which of the following is NOT a Natural Language command? a. startmotor() b. stopmotor() c. setservo() d. stopservo() 29. Which of these commands waits for the potentiometer to fall below a given threshold? a. untilpotentiometerlessthan()
b. untilpotentiometergreaterthan ( ) c. untilsensorlessthan ( ) d. untilsensorgreaterthan ( ) 30. What will the following program cause your robot to do? a. the code will turn on the right motor at half speed for 2 seconds and then stop. b. the code will turn on the right motor at half speed for 2 milliseconds and then stop. c. the code will cause the robot to move forward at half speed for 2 rotations and then stop. d. the code will turn on the right motor at full speed in the opposite direction for 2 seconds and then stop. 31. Which of the following commands will allow a user to move a servo motor? a. setservo(servoport, position); b. setservo (position, servoport); c. startservo(servoport, distance); d. setservo(servoport, distance); 32. In which Natural Language Category will a user find the commands for the LEDs and the VEX Flashlight? a. Movement b. Control Structures c. Special d. Behaviors 33. Which command waits for a bumper or limit switch to be pressed and released? a. untiltouch b. untilrelease c. untilbump d. untilpress 34. Which command waits for a bumper or limit switch to be pressed? a. untiltouch b. untilrelease c. untilbump d. untilpress
35. When a light is shined on a light sensor, does the sensor value increase or decrease? a. Increase b. Decrease c. No effect on the sensor 36. As soon as you start up RobotC for the first time, the Natural Language is enabled. a. True, it s the default b. False, you must set it first 37. Which of these is more precise? a. untilencodercounts() b. untilencoderrotations() 38. How does a user access the value of a sensor in RobotC? a. SensorValue() b. Sensor() c. Value() 39. How does a user reset a timer in RobotC? a. Time1(); b. ResetTimer(); c. ClearTimer(); 40. Where can a user see all of the values of the sensors, timers, and global variables? a. Sensor Configurator b. Motors and Sensors Setup c. Debug windows d. Task main 41. In lines 38, 41, 42, and 49, what is motorcount? a. Function b. Variable c. Task d. Condition Statement 42. In the RobotC code below, how many times will the program run?
a. 9 b. 10 c. 11 d. Cannot be determined 43. In the program below, what are Sub1, Sub2, and Sub3? a. Functions b. Global Variables c. Local Variables d. Sensor Values 44. What tool can you use to control how long a while loop will run? a. Timers b. the wait1msec ( ); command c. the VEX Stopwatch sensor d. Potentiometer 45. Which of these is not part of the Debug window? a. Start b. Step c. Continuous d. Wait 46. Which of these is a way to loop a program? a. While() b. Repeat until () c. Void () d. If else() 47. Which of these is a way to create a single line comment in RobotC? a. //
b. * c. 48. Why is it important to comment out code? a. Comments are not important. b. They allow the programmer to make notes in the code. c. They help others to understand the code. d. Both B and C 49. How does a user create a multi-line comment in RobotC? a. /* */ b. c. ** ** d. // // 50. What is happening in the code below? a. The robot checks the condition of the bumper switch. If the value is 1, the if statement runs. If the value is 0, the else statement runs. The program ends immediately after that. b. The robot checks the condition of the bumper switch. If the value is 1, the if statement runs. If the value is 0, the else statement runs. The program loops forever. c. The robot checks the condition of the bumper switch. If the value is 0, the if statement runs. If the value is 1, the else statement runs. The program then loops forever. 51. In RobotC programming, all simple statements end with a(n): a. Colon b. Semi-colon c. Asterisk d. Single quote 52. Which of the following describes task main ( ). a. It defines the main task of the robot. b. Every RobotC program must contain one task main. c. Both A and B d. None of the above
53. What is a threshold in robot programming? a. A minimal motor power level before the motor will turn. b. A safe starting zone for your robot so it won t fall off a table. c. A value that separates many values into two categories so that the robot can make a decision. d. None of the above 54. All RobotC programs must contain what? a. Task main () b. Void () c. Semi-colons after statements d. Both A and C 55. Which one uses a liquid for fluid power? a. hydralauics b. pneumatics A pneumatic system is producing 80 lb/in. 2 of gauge pressure. A cylinder is needed to press an adhesive label onto a product. It has been determined that 10 lb of force is optimal to complete this task. 56. What is the required area of the cylinder? 57. What is the diameter of the cylinder? The gauge pressure of a pneumatic cylinder reads 30 lb/in. 2 when the volume is 25 in. 3. The cylinder is compressed until the gauge reads 60 lb/in. 2 58. What is the initial absolute pressure of the cylinder? 59. What is the new volume of the cylinder after the change in pressure? A flow meter is attached in a hydraulic line that measures 17 gal/min. The line has an inside diameter of 2.25 in. 60. What is the flow rate in the line measured in (in 3 /min)? 61. What is the flow velocity of the hydraulic fluid?
62. In the system shown below. The input force is 25lbs and the output force is 325lbs. What would the diameter of the output cylinder have to be if the input cylinder has a diameter of 1.75in. Match the following components of a hydraulic system 63. Valve 64. Cylinder 65. Resevoir A B C D 66. This is the average of a data set. a. mean b. median c. mode d. standard deviation 67. This is the most common result of a data set. a. mean b. median c. mode d. standard deviation 68. This is the middle value of a data set. a. mean b. median c. mode d. standard deviation 69. This show the amount of spread in a data set. a. mean b. median c. mode d. standard deviation
70. What is the median value for the following numbers? 16, 18, 15, 12, 22, 16, 25 a. 25 b. 12 c. 17.7 d. 16 71. What is the mode for the following numbers? 16, 18, 15, 12, 22, 16, 25 a. 25 b. 12 c. 17.7 d. 16 72. What is the mean for the following numbers? 16, 18, 15, 12, 22, 16, 25 a. 25 b. 12 c. 17.7 d. 16 73. This term describes the straight-line distance between where an object starts and where it ends up. a. displacement b. velocity c. speed d. acceleration 74. This term describes the rate that an object travels by comparing the displacement the object experiences to the time period. a. displacement b. velocity c. speed d. acceleration 75. This term describes the rate that an object travels by comparing the distance an object moves to the time period. a. displacement b. velocity c. speed d. acceleration
76. This term describes the change in rate of motion of an object (a speeding up or slowing down of an object). a. displacement b. velocity c. speed d. acceleration 77. Because our projectile devices will launch and land on the same horizontal plane we can assume: a. Initial vertical velocity is equal to zero b. Vertical displacement is equal to zero. c. Acceleration is equal to velocity d. Horizontal displacement is equal to zero 78. The launch angle that will produce the greatest range is: a. Theta Ѳ b. 45 degrees c. 60 degrees d. Determined by the sine of the initial velocity 79. Velocity is considered a vector quantity because it has both a: a. Displacement and a magnitude b. Magnitude and a direction c. Scalar value and gravitational value d. Magnitude and a latitude 80. If the horizontal motion of a projectile is constant, what can be said about the horizontal acceleration of a projectile? a. It is equal to zero b. It is caused by gravity c. It is slowing down d. It is equal to the vertical acceleration 81. What is the cause of the vertical acceleration of a projectile? a. Horizontal motion b. Velocity c. Time d. Gravity 82. The sine (SIN) of an angle compares the length of: a. The hypotenuse to the angle b. The adjacent side to the angle c. The adjacent side to the hypotenuse d. The opposite side to the hypotenuse
True or False: 83. When a car rounds a corner at a constant speed, its velocity is also constant. 84. The change in velocity with respect to time is called acceleration. 85. The SI unit of acceleration is meters per second (m/s). 86. Displacement is a scalar quantity. 87. A vector quantity has magnitude and direction. 88. Velocity is a vector quantity. 89. The rate at which velocity changes with respect to time is called acceleration. 90. A ball is thrown straight up. At its highest point, its velocity and acceleration are zero. 91. As a ball falls freely, the distance it falls each second is the same. 92. The acceleration of any moving object is always 9.80 m/s 2. 93. 2 balls are thrown from the same height, one upward and one downward. If the ball thrown upward has the same magnitude of velocity as the ball that is thrown downwards, the balls will strike the ground with the same velocity. 94. When an object has a positive acceleration along a horizontal path, the distance it travels each second increases. 95. If a ball falls freely for 1.0 seconds from rest, the displacement of the ball during that 1.0 second will be 9.8 m. 96. Air resistance will increase the acceleration of a ball when dropped from rest. 97. A positive or negative sign given to a velocity or displacement indicates that an object is traveling on an upward or downward direction. 98. When a ball is thrown up into the air and returns to your hand from the point that it left, the displacement of the ball is zero. 99. Neglecting air resistance, a projectile fired horizontally will accelerate vertically at a slower rate than if it were dropped from rest. 100. Neglecting air resistance, a projectile will travel horizontally with a constant velocity. 101. A projectile will reach maximum horizontal displacement when fired at an angle of 40 o. Multiple Choice: 102. Speed is: a. the distance traveled by an object in a certain period of time. b. the displacement of an object in a certain period of time. c. the distance traveled by an object in a certain period of time in a certain direction. d. all of the above. 103. When you look at the speedometer of a moving car you see the car s: a. average velocity.
b. instantaneous acceleration. c. instantaneous speed. d. average speed. 104. For an object in free fall (neglecting air resistance), the acceleration of an object the mass of the object. a. is directly proportional to b. is inversely proportional to c. does not depend upon 105. For an object traveling away from the surface of the earth (where the velocity is considered to be negative), the acceleration is considered to be. a. -9.80 m/s 2 b. +9.80 m/s 2 c. -9.80 m/s d. +9.80 m/s 106. For every second an object falls toward the surface of the earth (where the velocity is considered to be positive) while in free fall, the velocity. a. increases 9.80 m b. decreases 9.80 m c. increases 9.80 m/s d. decreases 9.80 m/s 107. When a ball is thrown upward with a certain velocity, the magnitude of the velocity of the ball when it returns to your hand will be the magnitude of the velocity of the ball when it left your hand. a. greater than b. less than c. the same as 108. A projectile, fired at a 60 o angle, will have the same horizontal displacement as a projectile fired at an angle of: a. 15 o b. 30 o c. 45 o d. 75 o 109. A massive ball is dropped from a moving vehicle that is traveling in a straight line at a constant velocity. Neglecting air resistance, the massive ball will strike the ground: a. behind the vehicle b. in front of the vehicle c. beside the vehicle 110. Where will the ball strike the ground if, just after it is dropped the vehicle accelerates? a. behind the vehicle b. in front of the vehicle c. beside the vehicle 111. One possible unit of speed is: a. m/s b. s/m c. m d. m/s 2 112. A runner traveled 15 km east and then backtracked 11 km west before stopping. The displacement of the runner from the original position is: a. 26 km east b. 4 km east c. 4 km west d. 26 km west 113. A negative slope of a straight line on a graph of displacement time for a moving object indicates:
a. the object is speeding up and moving backward. b. the object is moving backward and the velocity is constant during that period of time. c. the object is moving forward and the velocity is constant during that period of time. d. the object is slowing down and moving backward. 114. The area under a line on a velocity vs. time graph for a moving object gives a value of: a. the rise over the run. b. the displacement of the object for a given period of time. c. the average acceleration of the moving object. d. the instantaneous velocity of the object. 115. The slope of a tangent line at a point on a displacement time curve for a moving object curve can give a value of: a. the instantaneous velocity at that time. b. the average velocity. c. the instantaneous acceleration at that time. d. the average acceleration.