Introduction to Programming Unit
2025/2026 Exam Questions and Verified
Answers | Already Graded A+
which of the following commands is a valid Karel Command? - 🧠 ANSWER
✔✔move();
What makes the following command an invalid Karel command?
-turnleft(); - 🧠 ANSWER ✔✔the "l" should be a capital "L"
Which of the following is the correct way to define a turnRight function in
Karel? - 🧠 ANSWER ✔✔function turnRight(){
turnLeft();
turnLeft();
turnLeft();
}
Why do we use functions in Karel programs?
-break down our program into smaller parts
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, -avoid repeating code
-make our program more readable - 🧠 ANSWER ✔✔All of the Above
if Karel starts at street 1 and avenue 1, facing east, where will Karel be,
and what direction will Karel be facing after running the following code?
move();
turnLeft();
putball();
turnLeft();
turnLeft();
turnLeft();
move();
turnLeft(); - 🧠 ANSWER ✔✔street 1, avenue3, facing North
Karel starts at Street 1 and Avenue 1, facing East. After calling the stair
Step function twice, where will Karel be and what direction will Karel be
facing ?
function stairStep(){
move();
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED
2025/2026 Exam Questions and Verified
Answers | Already Graded A+
which of the following commands is a valid Karel Command? - 🧠 ANSWER
✔✔move();
What makes the following command an invalid Karel command?
-turnleft(); - 🧠 ANSWER ✔✔the "l" should be a capital "L"
Which of the following is the correct way to define a turnRight function in
Karel? - 🧠 ANSWER ✔✔function turnRight(){
turnLeft();
turnLeft();
turnLeft();
}
Why do we use functions in Karel programs?
-break down our program into smaller parts
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, -avoid repeating code
-make our program more readable - 🧠 ANSWER ✔✔All of the Above
if Karel starts at street 1 and avenue 1, facing east, where will Karel be,
and what direction will Karel be facing after running the following code?
move();
turnLeft();
putball();
turnLeft();
turnLeft();
turnLeft();
move();
turnLeft(); - 🧠 ANSWER ✔✔street 1, avenue3, facing North
Karel starts at Street 1 and Avenue 1, facing East. After calling the stair
Step function twice, where will Karel be and what direction will Karel be
facing ?
function stairStep(){
move();
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED