Vocabulary Flashcards
(25 cards)
lowerCamelCase
lowerCamelCase is a naming convention where the first letter is lower case, subsequent start of a word is upper case.
World
A “world’ or “Karel World” is a grid that Karel lives in.
Karel
Karel is a dog who listens to your commands.
Command
A Command is an instruction you can give to Karel.
Define a Function
Defining a function means to teach the computer a new command and explain what it should do when receiving that command
Call a Function
Calling a Function actually gives the command, so the computer will run the code for that function
Indentation
Indentation is the visual structure of how your code is laid out. It uses tabs to organize code in to a hierarchy .
Curly Bracket
An open curly bracket is {and a close curly bracket is}
Parenthesis
( and )
Function body
The part of a function that contains the commands
Break Down (decompose)
Breaking down (decompose) your code is splitting it into more functions.
Read like a Story
Programs that “Read like a Story “ have good decomposition and make the code easy to follow.
Indentation
Indentation is the visual structure of how your code is laid out. It uses tabs to organize code in hierarchy.
Start Function
This is the function that is called when you click run
Decomposition
Decomposition is breaking your program into smaller parts.
Top Down Design
Top Down Design is a method for breaking our program down into smaller parts.
Algorithm
An algorithm is a set of steps or rules to follow to solve a particular problem.
Loop
A loop is a way to repeat code in your program
For loop
A for loop lets us repeat code a fixed number of times
Control Structure
A control structure lets us change the flow of the code
While loop
Lets us repeat code as long as something is true
Condition
A condition is code that you put inside an if statement or while loop
Fencepost Problem
A problem when using a while loop where you forgot one action at the beginning or the end
If Statement
An if statement lets you ask a question to the program and only run code if the answer is true