Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. True or False - Items within ML records are access \"by position\" 2. True or

ID: 3600298 • Letter: 1

Question

1. True or False - Items within ML records are access "by position"

2. True or False - ML enumeration types (i.e., datatype declarations) are "one-of" types.

3. True or False - ML tuple types are "each-of" types.

4. True or False - ML list types are "each-of" types.

5. True or False - ML tuple types are "one-of" types.

6. True or False - Items within ML records are access "by name"

7. What is the result of evaluating this ML expression?

8. Which patterns match the list [5, 7, 9]?

a.) x :: y :: zs

b.) x :: y :: [ ]

c.) [x, y]

d.) x :: xs

Explanation / Answer

1. Items within ML records are access "by position"

Answer: True

2. ML enumeration types (i.e., datatype declarations) are "one-of" types.

Answer: True

3. ML tuple types are "each-of" types.

Answer: False

4. ML list types are "each-of" types

Answer: True

5. ML tuple types are "one-of" types.

Answer: False

6. Items within ML records are access "by name"

Answer: False

8. Which patterns match the list [5, 7, 9]?

a.) x :: y :: zs

b.) x :: y :: [ ]

c.) [x, y]

d.) x :: xs

Answer: C[x, y]