iOS10 Swift Playgrounds 8-11 Flashcards

1
Q

argument

A

The part you add within the parentheses of functions. E.g., in move(distance: 3), 3 is the argument.

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

assignment

A

Using an = sign, to put the right hand value into the left hand object (container).

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

constant

A

A container object that can’t change once it’s set. Declared with “let”

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

declare

A

To create a new object such as a function, variable or custom type.

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

dot notation

A

a form of syntax used to access the properties or call the methods of an instance. E.g., expert.toggleSwitch() calls the toggle switch() method on the instance expert.

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

initialization

A

The act of creating a new instance of a type, which includes setting initial values for any properties of the type.

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

instance

A

A value of a particular type. E.g., in let greenPortal = Portal(), greenPortal is an instance of type Portal.

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

Int

A

A type that stores an integer (a number that has no decimal points such as 10 or -42.

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

method

A

A function that’s defined inside a type (and that comes after dot notation).

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

property

A

A variable (a named container that stores a value) defined inside a type.

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

syntax

A

the grammar and rules of arranging words for any language

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

type

A

A named group with shared properties (the features) and methods (the behaviors).

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

variable

A

A container object that can change after it’s set. Declared with “var”

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

string

A

A type that stores a series of characters, such as “hello, world” or “42”.

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

slate

A

The stored information of a variable, program, or system at a given time

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

parameter

A

The description of an argument. E.g., in move(distance: 3), “distance” is the parameter.