Difference between revisions of "GvR Steps 1-7 Quiz"

From WLCS
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
 
 
== Directions ==
 
== Directions ==
 
The quiz is open-book, open-computer, and CLOSED-PERSON.  You have 30 minutes to complete the quiz.   
 
The quiz is open-book, open-computer, and CLOSED-PERSON.  You have 30 minutes to complete the quiz.   
 
Once you are done, please demo to Mr. Bui for credit.
 
Once you are done, please demo to Mr. Bui for credit.
  
1) Define the compound instruction '''turnright''' so that Guido can turn right using left turns
+
# Define the compound instruction '''turnright''' so that Guido can turn right using left turns
2) Define a new compound instruction called '''spin''' that makes Guido do a full 360 degree spin
+
# Define a new compound instruction called '''spin''' that makes Guido do a full 360 degree spin
3) Define a new compound instruction called '''placesomebeepers''' that does the following:
+
# Define a new compound instruction called '''placesomebeepers''' that does the following:
1) place a beeper and move
+
## place a beeper and move
2) place another beeper and move
+
## place another beeper and move
3) place a beeper and turn to the left
+
## place a beeper and turn to the left
4) move forward once
+
## move forward once
5) place a beeper and move
+
## place a beeper and move
6) place another beeper and turn to the right using your turnright instruction
+
## place another beeper and turn to the right using your turnright instruction
7) move forward once
+
## move forward once
4) After defining the above compound instructions, have Guido do the following
+
# After defining the above compound instructions, have Guido do the following
1) start Guido facing east
+
## start Guido facing east
2) move Guido two spaces forward
+
## move Guido two spaces forward
3) placesomebeepers
+
## placesomebeepers
4) spin
+
## spin
5) placesomebeepers
+
## placesomebeepers
6) turn off Guido
+
## turn off Guido
  
 
== Grading ==
 
== Grading ==
2 pts - turnright
+
2 pts - turnright<br>
2 pts - spin
+
2 pts - spin<br>
2 pts - placesomebeepers
+
2 pts - placesomebeepers<br>
4 pts - program using the above
+
4 pts - completed program using your newly defined instructions<br>
 
+
---<br>
</pre>
+
10 pts total

Latest revision as of 12:01, 25 September 2009

Directions

The quiz is open-book, open-computer, and CLOSED-PERSON. You have 30 minutes to complete the quiz. Once you are done, please demo to Mr. Bui for credit.

  1. Define the compound instruction turnright so that Guido can turn right using left turns
  2. Define a new compound instruction called spin that makes Guido do a full 360 degree spin
  3. Define a new compound instruction called placesomebeepers that does the following:
    1. place a beeper and move
    2. place another beeper and move
    3. place a beeper and turn to the left
    4. move forward once
    5. place a beeper and move
    6. place another beeper and turn to the right using your turnright instruction
    7. move forward once
  4. After defining the above compound instructions, have Guido do the following
    1. start Guido facing east
    2. move Guido two spaces forward
    3. placesomebeepers
    4. spin
    5. placesomebeepers
    6. turn off Guido

Grading

2 pts - turnright
2 pts - spin
2 pts - placesomebeepers
4 pts - completed program using your newly defined instructions
---
10 pts total