{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz1 - Dave's 15-100 Quiz 1 Reference Robot.move...

Info icon This 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. __________
Image of page 1

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

View Full Document Right 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. In the middle of a valid working Java program, the following line appears: Dip.boom();
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern