a.
The question can be answered using the permutations because the order of the flag strung on the mast determines the signal being sent.
Since there are 6 signal flags and the captain has to send a 3-signal flag. So, the number of signals that can be sent are:

Thus, the answer is 120.
b.
The question can be answered using the combination because the questions are randomly selected.
Since the total number of questions is 50 and the number of questions that have to be selected is 50.
So, the number of versions of the quiz that are possible are:

Thus, the answer is 15890700.