DAY ONE Flashcards

1
Q

how to print

A

print(“Hello, world!”)

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

//

A

are single line comments

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

/* and end with */

A

are multiline comments.

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

variables

A

var numberOfServingsForRecipe = 4

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

Bool

A

true, false

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

Character

A

a single letter, digit, symbol, or code

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

declaring integer

A

var numberOfWheels: Int = 4

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

first initial character type

A

var firstInitial: Character = “A”

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

can you change variables types

A

no

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

constant

A

fixed values

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

let encouragement =

A

“You can do it!”

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

\n

A

newline

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

replacing with values

A
var name = "Kate"
var customizedBirthdayCheer = "Happy Birthday, \(name)!"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly