23 terms

Learn to Code 1 & 2 Vocabulary

Learn the vocabulary in Swift Playgrounds!
STUDY
PLAY
command
Code that tells an application to perform a specific action.
sequence
A set of related events, movements, or things that follow each other in a particular order.
toggle switch
Closed switches are OFF and awaiting activation.
Open switches are ON and glowing with light.
bug
An error in code that prevents an application from running as expected.
debugging
To find and fix errors in code that prevent an application from running correctly.
function
A named set of commands that can be
run whenever needed.
for loop
A block of repeated code that runs a
certain number of times.
composition
The process of combining small parts of a program to solve a larger problem.
call
To tell a program to run a function. For example, calling the moveForward( ) function in your code tells the program to perform actions defined in that function.
conditional code
Code that runs only when specific conditions are met. For example, IF statements and WHILE loops contain conditional code that runs only if or while a condition is TRUE.
boolean
A type that has a value of either true or false.
logical operator
A symbol, such as &&, ||, or !, that modifies or combines the Boolean logic values true and false.
while loop
A block of code that runs for as long as a given condition is true. When the condition changes to false, the loop stops running.
algorithm
A step-by-step set of instructions or rules
for solving a problem.
pseudocode
A human-readable description of an algorithm, usually written using a mix of everyday language and code.
variable
A named container that stores a value
that can be changed.
type
A named grouping of properties (the features) and methods (the behaviors) of a kind of data.
initialization
The act of creating a new instance of a type,
which includes setting initial values for
any properties of the type.
string
A type that stores a series of characters, such as "hello, world."
INT
A type that stores an integer—a
number that has no decimal.
parameter
The name of an input value to a function, used in the definition of the function.
array
A collection that stores an ordered list of items of the same type. The same item can appear multiple times in different positions.
index
A number that represents the position
of an item in an array.