CodeHS Unit 5 2025/2026 Exam
Questions with Detailed Verified
Answers (100% Correct Answers) |
Already Graded A+
5.1.4: Follow The Yellow Ball Road - 🧠 ANSWER ✔✔// Follow the yellow
ball road!
// Karel moves until it's not on a tennis ball.
function start() {
while(ballsPresent()){
move();
}
}
5.1.5: Lay Row of Tennis Balls - 🧠 ANSWER ✔✔/* Write a program to lay a
row of tennis balls
* across first street. Make sure to test your
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, * program on multiple worlds. */
function start(){
while(noBallsPresent()){
putBall();
if (frontIsClear()){
move();
}
}
}
5.2.1: Big Tower - 🧠 ANSWER ✔✔/* This program draws a big tower from
Karel's starting spot */
function start(){
if (facingWest()){
turnRight();
}
if (facingSouth()){
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED
Questions with Detailed Verified
Answers (100% Correct Answers) |
Already Graded A+
5.1.4: Follow The Yellow Ball Road - 🧠 ANSWER ✔✔// Follow the yellow
ball road!
// Karel moves until it's not on a tennis ball.
function start() {
while(ballsPresent()){
move();
}
}
5.1.5: Lay Row of Tennis Balls - 🧠 ANSWER ✔✔/* Write a program to lay a
row of tennis balls
* across first street. Make sure to test your
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, * program on multiple worlds. */
function start(){
while(noBallsPresent()){
putBall();
if (frontIsClear()){
move();
}
}
}
5.2.1: Big Tower - 🧠 ANSWER ✔✔/* This program draws a big tower from
Karel's starting spot */
function start(){
if (facingWest()){
turnRight();
}
if (facingSouth()){
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED