Types Flashcards
What do the following mean:
- type equivalence
- type compatability
- type inference
- type clash

What is a strongly typed language?

What is a statically typed language? Examples?

What is a dynamically typed language? Examples?

What is the difference between structural and name equivalence?

Is the following an error? Think of equivalence


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

What are strict and loose name equivalences?

What is the difference between type conversion and type coercion?

What is type compatability?

What is type inference?

Example of type inference

What is polymorphism?

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

What is static allocation of arrays?

What is stack allocation of arrays?

What is heap/stack allocation?

What are sets and what are their implementations in CS?

What are pointers?

What are recursive types?

What is a dangling reference?

What is garbage collection?

What are reference counts?

Example of reference counts

What is tracing collection / mark-and-sweep?

What is stop-and-copy?

Example of pointer reversal in mark-and-sweep
