Types Flashcards

1
Q

What do the following mean:

  • type equivalence
  • type compatability
  • type inference
  • type clash
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a strongly typed language?

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

What is a statically typed language? Examples?

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

What is a dynamically typed language? Examples?

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

What is the difference between structural and name equivalence?

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

Is the following an error? Think of equivalence

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

What does name equivalence mean? Are aliases of differenent types the same?

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

What are strict and loose name equivalences?

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

What is the difference between type conversion and type coercion?

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

What is type compatability?

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

What is type inference?

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

Example of type inference

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

What is polymorphism?

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

What are the 3 types of polymorphism and what do they mean?

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

What is static allocation of arrays?

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

What is stack allocation of arrays?

A
17
Q

What is heap/stack allocation?

A
18
Q

What are sets and what are their implementations in CS?

A
19
Q

What are pointers?

A
20
Q

What are recursive types?

A
21
Q

What is a dangling reference?

A
22
Q

What is garbage collection?

A
23
Q

What are reference counts?

A
24
Q

Example of reference counts

A
25
Q

What is tracing collection / mark-and-sweep?

A
26
Q

What is stop-and-copy?

A
27
Q

Example of pointer reversal in mark-and-sweep

A