Ics - Java Quiz

4 Questions | Attempts: 50
Share
SettingsSettings
Please wait...
  • 1/4 Questions

    What shape does the following code make?int a = 0;while(a<2){forward(200);right(90);forward(50);a++;}

Please wait...
About This Quiz

Quiz 2 - Java. This quiz covers the basic java codes based on Jurtle.

Java Quizzes & Trivia

Quiz Preview

  • 2. 

    What are the basic java codes?

    • Forward(); penUp(); penDown(); backward();

    • Forward(); backward(); right(); left();

    • PenUp(); penDown(); setHeading(); setPosition();

    • Backward(); setHeading(); penDown(); left();

    Correct Answer
    A. Forward(); backward(); right(); left();
  • 3. 

    What type of number is put in the parenthesis for the following codes?forward();right();

    Correct Answer
    pixels and degrees
  • 4. 

    What will the following code make? Assume that the turtle was in it's starting position.forward(100);penUp();right(90);setPenColor(Color.red);forward(100);right(90);forward(100);right(90);forward(100);

    • A square

    • A square with one side black and the remaining sides red

    • A straight vertical line

    • Nothing.

    Correct Answer
    A. A straight vertical line
  • 5. 

    Write the code to make a circle.

Quiz Review Timeline (Updated): Mar 14, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 14, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 03, 2010
    Quiz Created by
    Kmckenzie29
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.