and Answers 100% Solved
Which of the following while loops will make karel move until a wall is in the way?
while(frontIsBlocked()){ move(); } while(frontIsClear()){ move(); } while(facingEast()){
move();
} while(noBallsPresent()){
move();
} ✔✔while(frontIsClear()){ move();
}
Which of the following pairs of keywords correctly fits in the code below?
____(frontIsClear()){ move();
}
____(ballsPresent()){ takeBall(); } if, else while, else
for, it
while, if ✔✔while, if
, Which of the following choices is a valid and useful variable name?
2nd Number myVariable joes___variable
minNum ✔✔minNum
What is top down Design?
Starting with the most specific problems and then working up to solve the big problem.
Working from the top of your program and coding down to the bottom
Starting with the biggest problem and then working down to solve the more specific problems.
Implementing all of the functions first, then putting them together in the start function.
✔✔Starting with the biggest problem and then working down to solve the more specific
problems.
In order to ask the user for input and store the result as a string, you should use the function
_____. ✔✔read line
Most lines of code must end with a _______. ✔✔Semicolon