Programming Quiz 1
(Q)
This is a short quiz that will help you make sure you've really learned everything you can about how programming works from the programs you've already written . The quiz works like this:
- You can take this quiz as many times as you like and there's no time limit.
- It's an "open book" quiz. That means you can look up anything you like in any book or on the internet or on the Lego EV3 software in order to find something that will help you answer the questions. You can also build and run programs to see what they will do.
- To finish the quiz and go onto the next activities you have to get 100% (more like reality. You're not finished until you get it right)
- Just write your answers on a piece of paper with the questions numbered. You can ask a tutor to come and tell you if you've got it right or wrong once you've attempted all the questions.
2. A question about timingWhen you press "run" on this program, how much time will the large motor connected to port A rotate for before the motor on port D starts rotating?
MULTIPLE CHOICE:
|
3. A question about loopsThere are 5 motor commands in the program to the right (the green ones). Assuming no one stops the program manually, how many times will each motor command be executed?
Why? |
--- A scenario ---
For the rest of the questions in this quiz you need to imagine your EV3 brick is set up with motors and sensors connected to it as follows:
- PORT A: Large motor named Jerry (which drives the left wheel forward when it rotates clockwise)
- PORT D: Large motor named Terry (which drives the right wheel forward when it rotates clockwise)
- PORT 3: Colour/light sensor named Jerrus
- PORT 4: Proximity sensor named Tom Garland
5. Another question about switchesIn the switch command in the program on the right, what is the exact question we are asking and who are we asking it of?
...6. A question about how fast loops areLooking at the same program, say the program ran for 30 seconds and then the robot fell off the desk and smashed into 1000 pieces and the program stopped and Tim got fired. In that 30 seconds before the incident, roughly how many times would the program ask the same question (the question you worked out just a moment ago)?
MULTIPLE CHOICE:
|
7. Three driving programsAlvin, Brendan and Tim all had a go at programming the robot to drive.
Is this statement (below) true? "Alvin's will make the robot turn left, then right, Brendan's will make the robot drive straight, and Tim's will make the robot turn in a circle" If yes, describe why. If no, describe what the three programs will actually do. |
8. A driving path
Draw a sketch of the path that the robot drives in over the whole program below:
~ End of Quiz ~
Learning About Robotics by Timothy J Kenworthy is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at learning-about-robotics.weebly.com.