@problem@
	@problemtype@
		embedded
	@;problemtype@
	@name@
		tutorial_2_multiple_choice_questions
	@endname@
	@preamble@
		colors = ["blue", "gray", "yellow", "green"]
		correct = [1,2]
	@;preamble@
	@content@
		For multiple choice questions, you need to specify a list of all possible answers as well as the index or indices of the correct answer or answers. For example, we can ask the student to to select the correct color from the answers listed in 'colors':
		@lb;@
		What is the color of gras?
		@chooseans(42, colors, 4)@
		@pb;@
		The student will receive 42 points for answering the above question correctly by choosing the 4th answer, "green". By default, the answers will be displayed in the moodle quiz via vertically arranged radio buttons. However, you can also specify a horizontal arrangment:
		@lb;@
		What color is considered complementary to orange?
		@chooseans(100, colors, 1, display=HORIZONTAL)@
		@pb;@
		Finally, the answers can also be displayed in a dropdown menu, which makes it easier to embed questions into the text:
		@lb;@
		It is well known that the color of gras is @chooseans(420, colors, 4, display=DROPDOWN)@ and not blue.
		@pb;@
		If there are multiple correct answers, you can also specify a list of indices as the third argument for the 'chooseans' function. For example, 'correct' was defined as the list [1,2] in the preamble. Therefore, a student would receive 200 points for either of the answers "blue" and "gray":
		@lb;@
		What is the color of the sky?
		@chooseans(42, colors, correct)@
		@pb;@
		Note carefully that the quotation marks around the color names in the definition of 'colors' in the preamble are not printed in the answers, but are necessary to mark the text as 'string' arguments. In general, if you want to use strings (i.e. text) as function arguments within the preamble or for content functions calls, you will need to surround them with quotation marks.
	@;content@
@;problem@