Unit 3 Vocab - Algorithm/Programming Terms
Definitions and code examples
| Term | Notes | Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Variables | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Variables | Used to store values or information |
# "s", "i", and "b" are the 3 variables. They all show the different data types. The values are assigned with the assignment operator =. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data Types | Specifics which type of value a variable has. Includes string (characters), integer (numbers), and boolean (true/false). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Assignment Operators | The operator that assigns a value to a variable, propert, event, etc. Includes =, or -> in pseudocode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Managing Complexity with Variables | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Lists | Stores a finite collection of data items. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2D Lists | List, but organized as a matrix with a number of rows and columns. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dictionaries | General-purpose data structure for storing a group of objects |
5
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Class | Template definition of methods and variables, describes one or more objects. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithms | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithms | A procedure as a list of instructions used to solve problems or perform a task. | Examples for selection and iteration are both algorithms and sequences | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sequence | An ordered series of actions or events that lead to the next in a predetermined order. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Selection | Conditions, allow an algorithm to go down one of two paths depending on if a condition is true or false. |
it's cold
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iteration | The repetition of part of an algorithm until a condition is met or for a predetermined number of times. |
3 2 1 All done! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Expressions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Expressions | A combination of operators, constants and variables |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||