function start() { turnLeft(); move4(); turnRight(); move2(); takeBall(); move(); turnRight(); move4(); turnLeft(); move3(); gP(); move3(); move3(); gP(); putBall(); } //allow move karel 4 times function move4(){ move(); move(); move(); move(); } function move2(){ move(); move(); } function gP(){ turnLeft(); turnLeft(); } function move3(){
Quizzma Latest Questions
turnLeft(); makeSide(); function turnRight(){ turnLeft(); turnLeft(); turnLeft(); } turnRight(); makeSide(); function makeSide(){ move(); putBall(); move(); putBall(); move(); putBall(); } goHome(); function goHome(){ turnRight(); move(); putBall(); move(); putBall(); move(); putBall(); turnLeft(); turnLeft(); turnLeft(); move(); move(); move(); turnLeft(); turnLeft(); }
How many times should the start function be defined in a program?
Which function will teach Karel how to spin in a circle one time? function spin() { turnRight(); } function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } function spin() { turnLeft(); turnLeft(); } function spin() { move(); move(); move(); move(); }
What can be used to teach Karel to turn right?
How many times should Karel turn left in order to turn right? 3
If Karel is facing North and the code turnLeft(); turnLeft(); runs; which direction is Karel facing now?
If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs? move(); move(); move(); turnLeft(); move();
What is an avenue in a Karel world?