@problem@
	@problemtype@
		truefalse
	@;problemtype@
	@name@
		tutorial_9_true_false_questions
	@endname@
	@preamble@
		y = randint(1,9)
	@;preamble@
	@content@
		@intro@
			Apart from 'embedded' type problems, you can also create true-false questions using the 'truefalse' problem type. For such a problem, you generally create a single list of possible questions, the answer to each of which is either "True" or "False".
			@pb;@
			After compilation, the 'intro' block of the problem file will then be shown on top, followed by a list of randomly selected questions. The number of questions in each problem instance can be specified in the exam description file (cf. Tutorial A0). In debug mode, by default, a single instance will contain all questions in random order.
			@pb;@
			The questions can be stated as shown below. For each question, you can (optionally) specify additional Python code, ending with either of the function calls 'TRUE()', 'FALSE()' or 'TRUEIF(b)', where 'b' is a Boolean value ('True' or 'False'), which determines the correct answer to the questions.
			@pb;@
			When the questions are randomly selected and generated, the actual preamble (which sets "y" to a random integer between 1 and 9 in this case) will only be exectued once per instances. In particular, all values randomly assigned there (e.g. 'y') will remain the same throughout all questions.
		@endintro@
		
		@TF@
			z = randint(10,12)
			TRUE()
				The inequality @y@ < @z@ holds.
		@;TF@
		
		@TF@
			FALSE()
				The number @y@ is negative.
		@;TF@
		
		@TF@
			z = randint(7,11)
			TRUEIF(y<z)
				The inequality @y@ < @z@ holds.
		@;TF@
	@;content@
@;problem@