iOS10 Swift Playgrounds 1-7 Flashcards

1
Q

algorithm

A

A step-by-step instructions or rules for solving a problem. E.g., a list of steps used to make a cup of tea can be considered an algorithm.

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

operator (list all types)

A

A symbol that represents an action on one or more values. Four main types:

Arithmetic (+, -, *, /) does basic math.
Assignment (=) assigns a value to an object.
Comparison (==, !=,, , =) compares and returns Boolean value of true or false.
Logical (&&, !, ||) combines or inverts Boolean value and returns true or false.

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

Boolean

A

A type that has a value of either true or false. For example, 9

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

bug / debug

A

An error in code that prevents a program from running as expected. To find and fix errors in code that prevent a program from running correctly.

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

call

A

to run (a function or a method). E.g., “I called the move() function.”

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

command

A

Code that tells the program to perform a specific action.

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

compose / decompose

A

To combine small parts of a program to solve a larger program. OR to break a large problem into smaller, more manageable pieces.

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

conditional code

A

Code that start with an “if” or has loops. Runs based on conditions.

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

define

A

to provide the explicit value or behavior of a newly created piece of code, such as a function, variable, or custom type.

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

nest

A

The act of placing one block of code (loops or conditional if statements) inside another to create inner blocks within outer blocks.

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

function

A

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

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

if statement (list all parts)

A

A code structure that uses any combination of if blocks, else if blocks, and else blocks.

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

inner / outer

A

When one loop or block of code is nested inside another loop or block of code. E.g., an inner loop is nested inside an outer loop. An inner conditional block is inside an outer conditional block.

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

loop (describe first 2 types)

A

A block of code that’s repeated a certain number of times (e.g., a for loop) or until a condition is met (e.g., a while loop).

A for loop is a block of repeated code that runs a certain number of times.

A while loop is 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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
16
Q

pseudocode

A

A human-readable description of an algorithm, usually written using a mix of everyday language and code.

17
Q

reusability

A

A characteristic of code that allows it to be used in different situations within a program.

18
Q

statement

A

A structure, such as a loop or if statement, that organizes code in a program.

19
Q

wireframe

A

An outline of an item, such as a gem or block for a puzzle world, webpage for a website, or a screen for a mobile app.