Calculating probabilities in multiple-choice tests