Swift Playgrounds Vocabulary, Learn to Code 2 – Flashcards

Unlock all answers in this set

Unlock answers
question
variable
answer
a named container that stores a value that can be changed
question
declaration
answer
a piece of code that creates something new in your application, such as a function, variable, or custom type
question
assignment operator
answer
The = symbol used to set the value of a variable
question
assignment
answer
an action that sets the value of a variable or constant
question
Boolean
answer
a type that has a value of either true or false
question
comparison operator
answer
a symbol, such as ==, !=, , =, used to compare two values
question
Int
answer
a type that stores an integer - a number that has no decimal
question
constant
answer
a named container that stores a value that can't be changed
question
dot notation
answer
a form of syntax used to access the properties or call the methods of an instance
question
property
answer
a variable (a named container that stores a value) defined inside a type
question
instance
answer
a value of a particular type
question
syntax
answer
the rules for writing code that computers can understand and run
question
state
answer
the stored information of a variable, program, or system at a given time
question
algorithm
answer
a step-by-step set of instructions or rules for solving a problem
question
reusability
answer
a characteristic of code that allows it to be used in different situations within a program
question
initialization
answer
the act of creating a new instance of a type, which includes setting initial values for any properties of the type
question
type
answer
a name grouping of properties (the features) and methods (the behaviors) of a kind of data
question
method
answer
a function, or set of commands, that's defined inside a type
question
parameter
answer
the name of an input value to a function, used in the definition of the function. For example, move(distance: Int)
question
call
answer
to tell a program to run a function
question
for loop
answer
a block of repeated code that runs a certain number of times
question
argument
answer
an input value passed into a function to customize its behavior
question
enumeration
answer
a type that defines a set of unique, but related, values. For example, a Direction defines cases for each cardinal direction.
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New