stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Coding with Karel 7-12 Flashcards | StudBud
Explore
/
Coding with Karel 7-12
Coding with Karel 7-12
10 terms
·
StudBud Administration
·
49 plays
Lessons 7-12
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Repeating a code a fixed number of times.
If/Else Loop
Loop
For Loop
While Loop
2
Which is the correct example of a Comment code?
// This is a single line comment
/ This is a single line comment
//* This is a single line comment
/** This is a single line comment
3
Why are IF/Else Statements used?
To do something when a condition is true or when some other thing is true
To break out of some block of code
To do something as long a the condition is true
To repeat something for a fixed number of times
4
A way to repeat code in your program.
If/Else Loop
For Loop
Loop
Control Structure
5
Why are IF statements used?
To do something while a condition is true
To repeat something for a fixed number of times
To do something only when a condition is true
To break out of some block of code
6
Managing complexity by taking away information and detail, in order to focus on the relevant concepts.
If/Else Statement
Condition
Abstract
Function
7
Why do we use While loops?
To do something if a condition is true
To repeat some code as long as the condition is true
To repeat some code a fixed number of times
To break out of some block of code
8
What is a code Comment?
A message to your teacher in code
A place to write whatever you want to in your code
A way to give notes to the reader to explain what your code is doing
A way to teach karel a new word
9
Why do we use Functions in programming?
Avoid repeating code
All of the above
Make our program easier to read
Breakdown our program into smaller parts
10
What's the best way for Karel to move 5 times?
move5();
Type the move(); command five times
move(5);
for (i = 0 < 5; i++) { move(); }