Computer Science > QUESTIONS & ANSWERS > Code HS Answers: Lessons 1-20 Questions with complete solution (All)
Code HS Answers: Lessons 1-20 Questions with complete solution Which is a valid Karel command? move; MOVE move(); move() ✔Ans✔ move(); What is a street in a Karel world? ✔Ans✔ Ro... w What is an avenue in a Karel world? ✔Ans✔ 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(); ✔Ans✔ Street 2 Avenue 6 If Karel is facing North and the code turnLeft(); turnLeft(); runs; which direction is Karel facing now? ✔Ans✔ South How many times should Karel turn left in order to turn right? ✔Ans✔ 3 What can be used to teach Karel to turn right? ✔Ans✔ 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(); } ✔Ans✔ function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } [Show More]
Last updated: 1 year ago
Preview 1 out of 44 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
We Accept:
Connected school, study & course
About the document
Uploaded On
Feb 14, 2023
Number of pages
44
Written in
This document has been written for:
Uploaded
Feb 14, 2023
Downloads
0
Views
102
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·