quiz1 - Dave's 15-100 January 21, 2009 Quiz 1 Reference...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Dave's 15-100 January 21, 2009 Quiz 1 Reference Robot.move(); Robot.turnLeft(); Robot.makeLight(); Robot.makeDark(); 1. In the blank next to each of the following examples, write the term that best describes that example: method declaration , process , rule , state , or statement . a. __________ The move instruction moves the robot forward one square, without changing its direction. b. __________ public static void go() { Robot.move(); Robot.makeDark(); Robot.turnLeft(); } c. __________ d. __________ Robot.move(); e. __________
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 2. The robot world is initially in the following state: The following code is then run: Robot.move(); Robot.turnLeft(); Robot.move(); Robot.makeLight(); Robot.makeDark(); Robot.makeLight(); Robot.move(); Robot.turnLeft(); Robot.makeLight(); On the diagram below, clearly show the complete final state of the world after the above code has run. 3. In one sentence, briefly explain what your computer is really doing for you when it compiles your Java program? 4.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

quiz1 - Dave's 15-100 January 21, 2009 Quiz 1 Reference...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online