Code HS Test 1 Questions and Answers
Rated A+
Which of these is a valid Karel command?
move;
MOVE
move();
move() ✔✔move();
What is a street in a Karel world?
A row
A column
,A single point
Karel's position ✔✔A row
What is an avenue in a Karel world?
A row
A column
A single point
Karel's position ✔✔A 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();
Street 1 and Avenue 3
Street 4 and Avenue 4
Street 2 and Avenue 6
Street 6 and Avenue 2 ✔✔Street 2 and Avenue 6
If Karel is facing North and the code
turnLeft();
turnLeft();
, runs, which direction is Karel facing now?
North
South
East
West ✔✔South
How many times should Karel turn left in order to turn right?
1
2
Rated A+
Which of these is a valid Karel command?
move;
MOVE
move();
move() ✔✔move();
What is a street in a Karel world?
A row
A column
,A single point
Karel's position ✔✔A row
What is an avenue in a Karel world?
A row
A column
A single point
Karel's position ✔✔A 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();
Street 1 and Avenue 3
Street 4 and Avenue 4
Street 2 and Avenue 6
Street 6 and Avenue 2 ✔✔Street 2 and Avenue 6
If Karel is facing North and the code
turnLeft();
turnLeft();
, runs, which direction is Karel facing now?
North
South
East
West ✔✔South
How many times should Karel turn left in order to turn right?
1
2