Instructor solution
You may exit out of this review and return later without penalty.
OOP review, SML, and Types
1.What is a type in simple terms?
2.What is the difference between a list and a tuple in SML?
3.How can functions be agnostic of type in SML?
4.What information do we need to save to create an instance of a class?
5.What is the difference between static and dynamic typing?
6.What is the difference between declared and inferred typing?
7.Consider an SML function that takes in an int and returns a function that takes in a string and returns an boolean. How would you write the type of this function?
8.Why do we need lists in SML if we already have tuples? Tuples support heterogeneity of types so are arguably more flexible than lists.
9.What is an example of a function that takes another function as an argument? (Does not have to be from computer science specifically).
You may exit out of this review and return later without penalty.