Coding Vocab Flashcards
(23 cards)
What is a world?
A “world” or “Karel World” is a grid that Karel lives in
Who is Karel
Karel is a dog who listens to your commnds
What is a command?
A command is an instruction you give to Karel
What is a lower camel case?
A naming convention where the first letter is lower case and each consequent start of a word is uppercase
What does define a function mean?
Defining a function means to teach the computer a new command and explain what it should do when receiving that command
What does calling a function mean?
Calling a function actually gives the command, so the computer will run the code for that function
What is indentation?
Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into an hierarchy
What is a curly bracket?
An open curly bracket is { and a close curly bracket is }
What are parentheses
( and )
What is the function body?
The part of a function that contains the commands
What is breaking down (deomposing)?
Breaking down (decomposing) your code is splitting it into more functions
What is read like a story?
Programs that read like a story have good decomposition and make the code easy to follow
What is indentation?
Indentation is the visual structure of how your code is laid out. it uses tabs to organize code into a heirarchy
What is top down design?
Top-down design is a method for breaking our program down into smaller parts
What is an algorithm?
An algorithm is a set of steps or rules to follow to solve a particular problem
What is a loop?
A loop is a way to repeat code in your program
What is a for loop?
A for loop lets you repeat a code a fixed number of times.
What is a control structure?
A control structure lets us change the flow of the code.
What is a condition?
A condition is a code that you put inside an if statement or while-loop
What is a fencepost problem?
A problem when using a while loop where you forget one action at the beginning or end.
What is a while loop?
A while loop lets us repeat code as long as something is true
What is an if statement?
An if statement lets you ask a question to the program and only run code if the answer is true
What is an if else statement?
Control structure that lets us do either one section of code or another depending on a test