An Introduction to Swift Programming - Part One Flashcards

1
Q

// I am a…

A

Comment

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

var is…

A

a variable

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

let is…

A

a constant

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

Mutable

A

Can Change, (i.e. a variable)

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

Immutable

A

Does not change, (i.e. a constant)

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

Assignment Operators:

(Such as: +)

A

An assignment operator takes the value on its righthand side and assigns it to the variable on its left-hand side.

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

Naming Conventions

A

// Rule #1: Spaces not allowed

let programmingLanguage = “Objective-C”

// Rule #2: Use camelCase

let favoriteProgrammingLanguage = “Swift”

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