Which of the following commands is a valid Karel command? move, move;, move();, move()

CodeHS Programming Review

Flashcard
•
Other
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
move();
2.
FLASHCARD QUESTION
Front
Why is the following command an invalid Karel command? turnleft();
Back
The l should be a capital L
3.
FLASHCARD QUESTION
Front
Which of the following is the correct way to define a turnRight function in Karel? Options: function turnRight() { turnLeft(); turnLeft(); turnLeft(); }, function turnRight() { turnRight(); turnRight(); turnRight(); }, function turnRight { turnLeft(); turnLeft(); turnLeft(); }, turnRight function() { turnLeft(); turnLeft(); turnLeft(); }
Back
function turnRight() { turnLeft(); turnLeft(); turnLeft(); }
4.
FLASHCARD QUESTION
Front
Why do we use functions in Karel programs?
Back
Break down our program into smaller parts, Avoid repeating code, Make our program more readable, All of the above
5.
FLASHCARD QUESTION
Front
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? (Assume the world is 10x10 in size)
Back
Street 1, Avenue 3, Facing North
6.
FLASHCARD QUESTION
Front
Karel starts at Street 1 and Avenue 1, facing East. After calling the stairStep function twice, where will Karel be and what direction will Karel be facing?
Back
Street 3, Avenue 3, Facing East
7.
FLASHCARD QUESTION
Front
In this code, how many times is the dance function called and how many times is it defined? Options: Called 1 time, defined 1 time; Called 1 time, defined 3 times; Called 3 times, defined 1 time; Called 3 times, defined 3 times
Back
Called 3 times, defined 1 time
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Scratch Programming

Flashcard
•
KG
18 questions
AP CSP Unit 1 Vocab Flashcard (1.1 through 1.3)

Flashcard
•
9th - 12th Grade
23 questions
Unit 2 Computer Science Review

Flashcard
•
10th - 12th Grade
17 questions
Unit 4 Flashcard 2

Flashcard
•
9th - 12th Grade
19 questions
AP CSP Unit 5 Review: Lists, Loops and Traversals

Flashcard
•
9th - 12th Grade
20 questions
Basic Programming Concepts in C++ Language

Flashcard
•
KG
20 questions
Code.org Express 1 - BLOCKLY

Flashcard
•
KG - University
25 questions
2.18.1 Introduction to Programming Unit Flashcard

Flashcard
•
7th Grade - University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Other
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade