CODE HS PRACTICE TEST QUESTIONS AND ANSWERS
Which is a valid Karel command?
move;
MOVE
move();
move() - CORRECT ANSWER✅✅✅move();
What is a street in a Karel world? - CORRECT ANSWER✅✅✅Row
What is an avenue in a Karel world? - CORRECT ANSWER✅✅✅Column
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(); - CORRECT ANSWER✅✅✅Street 2 Avenue 6
If Karel is facing North and the code
turnLeft();
turnLeft();
runs; which direction is Karel facing now? - CORRECT ANSWER✅✅✅South
How many times should Karel turn left in order to turn right? - CORRECT ANSWER✅✅✅3
What can be used to teach Karel to turn right? - CORRECT ANSWER✅✅✅functions
, 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();
} - CORRECT ANSWER✅✅✅function spin() {
turnLeft();
turnLeft();
turnLeft();
turnLeft();
}
How many times should the start function be defined in a program? - CORRECT ANSWER✅✅✅1
How many times should the start function be called in a program? - CORRECT ANSWER✅✅✅0
Which is a valid Karel command?
move;
MOVE
move();
move() - CORRECT ANSWER✅✅✅move();
What is a street in a Karel world? - CORRECT ANSWER✅✅✅Row
What is an avenue in a Karel world? - CORRECT ANSWER✅✅✅Column
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(); - CORRECT ANSWER✅✅✅Street 2 Avenue 6
If Karel is facing North and the code
turnLeft();
turnLeft();
runs; which direction is Karel facing now? - CORRECT ANSWER✅✅✅South
How many times should Karel turn left in order to turn right? - CORRECT ANSWER✅✅✅3
What can be used to teach Karel to turn right? - CORRECT ANSWER✅✅✅functions
, 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();
} - CORRECT ANSWER✅✅✅function spin() {
turnLeft();
turnLeft();
turnLeft();
turnLeft();
}
How many times should the start function be defined in a program? - CORRECT ANSWER✅✅✅1
How many times should the start function be called in a program? - CORRECT ANSWER✅✅✅0