Code HS Test 1 Questions and Answers Rated A+
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 3 4 ANSWERED 3 What can be used to teach Karel to turn right? Functions Variables Dog treats Karel can already turn right ANSWERED Functions Which function will teach Karel how to spin in a circle one time? A function spin() { turnRight(); } B function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } C function spin() { turnLeft();
Written for
- Institution
- Code HS
- Course
- Code HS
Document information
- Uploaded on
- March 10, 2023
- Number of pages
- 35
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
code hs test 1 questions and answers rated a
-
which of these is a valid karel command move move move move move
Also available in package deal