Summary

This VR - Blocks - Unit 7 Exam PDF contains computer science exam questions on VEXcode VR. The questions revolve around the use of sensors and blocks in programming, focusing on color, distance, and object detection.

Full Transcript

Name: ___________________________________________________ Date: ____________________ Computer Science Level 1 - Blocks with VEXcode VR Course Unit 7 Exam 1. Which of the following is the best description of what the Eye Sensor does? a. It...

Name: ___________________________________________________ Date: ____________________ Computer Science Level 1 - Blocks with VEXcode VR Course Unit 7 Exam 1. Which of the following is the best description of what the Eye Sensor does? a. It reports the (X,Y) position of the VR Robot. b. It reports the distance between the VR Robot and the nearest solid object. c. It can be controlled to pick up and drop disks with metal cores. d. It detects if there is an object present and if so, the color of that object. 2. Which two sensors are being pointed to on the VR Robot? a. The Left and Right Bumper Sensors. b. The Front Eye and Down Eye Sensors. c. The Electromagnet and Location Sensors. d. The Distance and Front Eye Sensors. Page 1 of 10 3. What value will the Boolean block report when the Eye Sensor is close to an object that has detectable colors? a. It will report TRUE. b. It will report FALSE. c. It will report how far in millimeters (mm) or inches the Eye Sensor is from the object. d. It will report the location angle of the VR Robot in degrees. 4. What value will the Boolean block report when the Eye Sensor detects a different color than the one that was selected? a. It will report the time elapsed of the project in seconds. b. It will report the current heading in degrees of the VR Robot. c. It will report FALSE. d. It will report TRUE. Page 2 of 10 5. Describe how the VR Robot is using the Down Eye Sensor in this project. a. To draw on the Playground. b. To measure the distance to the blue disk. c. To solve a maze. d. To identify when the VR Robot is above a blue disk. Page 3 of 10 6. What will happen when the Front Eye Sensor detects red in this project? a. The VR Robot will stop driving. b. The VR Robot will turn left for 90 degrees. c. The VR Robot will drive forward. d. The VR Robot will check the Front Eye Sensor repeatedly. Page 4 of 10 7. What is the purpose of having multiple [If then] blocks in this project? a. To have the Electromagnet Sensor pick up and place disks. b. To be able to have the Down Eye Sensor check for the color red. c. To have the Distance Sensor report how far the VR Robot is from an object. d. To have the Front Eye Sensor check for each color and have the VR Robot perform a discrete behavior depending on the color detected. Page 5 of 10 8. In this project, if the condition of the Down Eye detecting red is TRUE, how will the VR Robot move? a. It will turn right for 115 degrees. b. It will drive forward forever. c. It will turn left for 115 degrees. d. It will stop driving. 9. In this project, how many times will the [Drive] block be repeated? a. It will be repeated forever. b. It will repeat 100 times. c. It will repeat 90 times. d. It will repeat once. Page 6 of 10 10. Describe why a [Forever] block is used in this project. a. To continuously check if the VR Robot Pen is up or down. b. To continuously check if the VR Robot is near an object with detectable colors. c. To draw the color blue with the VR Robot Pen. d. To report if the Bumper Sensors are being pressed. Page 7 of 10 11. What condition will be checked next if the condition of the Front Eye Sensor detecting blue is FALSE? a. The condition of the Front Eye Sensor detecting green will be checked. b. The condition of the Down Eye Sensor detecting red will be checked. c. The condition of the Front Eye Sensor detecting none will be checked. d. The condition of the Front Eye Sensor detecting red will be checked. Page 8 of 10 12. Why is the [If then] block nested inside the [Forever] block for this project? a. Conditions of the [If then] block will be checked continually if nested in a [Forever] block. the VR Robot will use the Down Eye Sensor to continually check for an object. b. The [Forever] block is not needed. c. If the [Forever] block was not used, the [If then] block would only be executed and checked four times. d. To turn right for 90 degrees when an object is detected. Page 9 of 10 13. The goal of this challenge is to navigate the VR Robot through the Disk Maze and stop at the red Disk. Which of the following could be added to this project in order to solve the Disk Maze challenge? a. If the Front Eye Sensor detects blue then stop. b. If the Down Eye Sensor detects purple then stop. c. Wait until the Front Eye Sensor detects red. d. If FrontEye detects red then Stop. Page 10 of 10

Use Quizgecko on...
Browser
Browser