Exam-style question
Try this first
In the type f: integer x integer → integer, what does integer x integer represent?.
- A.A function that returns two integers
- B.The Cartesian product of the set integer with itself
- C.A function that accepts only one integer
- D.Two separate output values of type integer
Model answer
What a good answer should say
- The Cartesian product of the set integer with itself
Explanation
Why this works
The notation integer x integer describes the Cartesian product of integer with itself, representing pairs of integers such as (3,4).
Common mistake
No common mistake is linked to this question yet.
