Swift Playground Flashcards

1
Q

Commands

A

Code that tells an application to perform a specific action. Commands have no spaces between words and always end with parentheses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bug

A

An error in code that prevents an application from running as expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Debugging

A

To find and fix errors in code that prevents an application from running correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Functions

A

A named set of commands that can be run whenever needed.

Allows you to name a set of commands, which you can then run any time you want.

func tieMyShoe() {
       Loop ()
       Swoop ()
       Pull ()
}

Commands/behavior live inside functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Coding

A

The act of composing commands, code structures, and algorithms to create a computer program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Composition

A

The process of combining small parts of a program to solve a larger problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define

A

To provide the explicit value or behavior of a Newley 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.

Enter a set up commands between the { and } curly braces to give its behavior and define a functions behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Call

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Pattern

A

A repeating set of circumstances or data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Decomposition

A

The process of breaking a large problem into smaller, more manageable pieces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly