10. Representing unknown values Flashcards

1
Q

Julia as a Second Language

What does a null or nil object (used in other programming languages but not in Julia) represent?

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

Julia as a Second Language

What is a big problem with using null or nil in a programming language?

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

Julia as a Second Language

What object in Julia is the closest thing Julia has to a null or nil object?

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

Julia as a Second Language

What is a nothing object and what type is it?

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

Julia as a Second Language

How many instances of the nothing object can a program have?

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

Julia as a Second Language

How can you create an object that is empty, similar to the nothing object?

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

Julia as a Second Language

What happens when you call composite type with no fields?

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

Julia as a Second Language

What is P{T} ?

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

Julia as a Second Language

What is Union ?

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

Julia as a Second Language

How will the different types included in a Union{} be related to each other?

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

Julia as a Second Language

Does the order of Union type parameters matter?

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

Julia as a Second Language

How do you represent missing values in Julia?

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

Julia as a Second Language

What happens to a mathematical operation if it contains a missing object?

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

Julia as a Second Language

Any data with a missing object in it mathematically evaluates to missing. How can can the mathematical evaluation be told to skip the missing data?

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

Julia as a Second Language

What is NaN ?

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

Julia as a Second Language

What are the differences and similarities of these objects: nothing, missing, NAN, Undefined ?