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