Swift Playgrounds – Learn to Code Part 1: Fundamentals of Swift – Flashcards
Unlock all answers in this set
Unlock answersquestion
Command
answer
Code that tells the program to perform a specific action.
question
Swift
answer
Apple's programming language, used for writing apps for iPhone, iPad, Mac, Apple Watch, and Apple TV.
question
Bug
answer
An error in code that prevents a program from running as expected.
question
Debug
answer
To find and fix errors in code that prevent a program from running correctly.
question
Coding
answer
The Act of composing commands, code, structures, and algorithms to create a computer program.
question
Composition
answer
The process of combining small parts of a program to solve a larger problem.
question
Function
answer
A named set of commands that can be run whenever needed.
question
Define
answer
To provide the explicit value or behavior of a newly created piece of code, such as a function, variable, or custom type. For example, you define a function by providing a set of commands within the function to tell it what to do.
question
Call
answer
To tell a program to run a function. For example, calling the moveForward() function in your code tells the program to perform the actions defined in that function.
question
Pattern
answer
A repeating set of circumstances or data.
question
Decomposition
answer
The process of breaking a large problem into smaller, more manageable pieces.
question
Loop
answer
A block of code that's repeated a certain number of times (for example, a for loop) or until a condition is met (for example, a while loop).
question
For loop
answer
A block of repeated code that runs a certain number of times.
question
If statement
answer
A Code structure used to run code based on the value of one or more conditions. The first block of code in an if statement is the if block. An if statement might also contain other blocks that provide additional checks. For example, an else block runs if all conditions in the if statement are false. An else if block checks a condition that isn't checked by the if block or any other else if blocks.
question
Else if block
answer
A block of code in an if statement, used to check a condition that isn't checked by the if block or any other else if blocks.