Vocab Flashcards
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 into hierarchy.
Curly Bracket
An open curly bracket is { and a close curly bracket is }
Function Body
The part of a function that contains the commands.
Breaking Down (Decompose)
Breaking down (Decomposing) 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.
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.
Condition
A condition is code that you put inside an if statement or while-loop.
If Statement
An if statement lets you ask a question to the program and only run code if the answer is true.
If Else Statement
Control structure that lets us do either one section of code or another depending on a test.
Control Structure
A control structure lets us change the flow of the code.