23 terms

Learn to Code 1 & 2 Vocabulary

Learn the vocabulary in Swift Playgrounds!
Code that tells an application to perform a specific action.
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.
An error in code that prevents an application from running as expected.
To find and fix errors in code that prevent an application from running correctly.
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.
The process of combining small parts of a program to solve a larger problem.
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.
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.
A step-by-step set of instructions or rules
for solving a problem.
A human-readable description of an algorithm, usually written using a mix of everyday language and code.
A named container that stores a value
that can be changed.
A named grouping of properties (the features) and methods (the behaviors) of a kind of data.
The act of creating a new instance of a type,
which includes setting initial values for
any properties of the type.
A type that stores a series of characters, such as "hello, world."
A type that stores an integer—a
number that has no decimal.
The name of an input value to a function, used in the definition of the function.
A collection that stores an ordered list of items of the same type. The same item can appear multiple times in different positions.
A number that represents the position
of an item in an array.