// Numbas version: exam_results_page_options {"name": "Product rule for counting", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["num_women", "num_men", "num_pairs_men"], "name": "Product rule for counting", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "

One of the men and one of the women are going to be chosen to make a pair to sing the first song.

\n

Work out the number of different pairs that can be chosen.

", "allowFractions": false, "variableReplacements": [], "maxValue": "num_men*num_women", "minValue": "num_men*num_women", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}, {"displayColumns": 0, "prompt": "

Two of the men are going to be chosen to make a pair to sing the second song.

\n

Ben thinks the number of different pairs that can be chosen is {comb(num_men,2)}.

\n

Mark thinks the number of different pairs that can be chosen is {perm(num_men,2)}.

\n

Who is correct, Ben or Mark?

", "matrix": ["1", 0], "shuffleChoices": false, "variableReplacements": [], "choices": ["

Ben

", "

Mark

"], "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "extensions": [], "statement": "

There are {num_men} men and {num_women} women in a choir.

\n

The choir is going to sing at a concert.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"num_women": {"definition": "random(10..40#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "num_women", "description": ""}, "num_men": {"definition": "random(10..40 except num_women)", "templateType": "anything", "group": "Ungrouped variables", "name": "num_men", "description": ""}, "num_pairs_men": {"definition": "comb(num_men,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "num_pairs_men", "description": "

Number of ways of picking 2 men; order doesn't matter.

"}}, "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}