Ch 3: Intro to Classes, Objects, Methods and Functions Flashcards

1
Q

What are the two Swift types for floating point?

==> P. 34

A

Two floating point types:

Float
Double

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

What is the minimum number of significant digits in a Float type?

==> P. 34

A

Minimum number of significant digits in a Float type:

6

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

What is the default floating point type used by Swift?

==> P. 34

A

Default floating point type used by Swift:

Double

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

What is the minimum number of significant digits in a Double type?

==> P. 34

A

Minimum number of significant digits in a Double type:

15

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

What class does Swift provide to handle money values precisely?

==> P. 34

A

NSDecimalNumber

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

In what framework is the NSDecimalNumber class found?

==> P. 34

A

Foundation

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

Provide an example of the format of a class declaration statement.

==> P. 35 and on

A
public class Account {
    public var name : String = ""
    ...
How well did you know this?
1
Not at all
2
3
4
5
Perfectly