Quiz

Have you met your match?

Question 1

Why does the following code not compile?



Question 2

True or false:

It is impossible to exhaustively match on enum variants/discriminants without a wildcard branch.

Question 3

What is the printed output of the following?

Question 4

Fill in the blank for the match statement below such that all 32-bit negative numbers are included.
(Think back to the error examples given for match statements!)

Question 5

Will the following code compile?