#### 4.1.4 block [(type=[multiplechoice|shortanswer|trufalse] rearrange=[yes|no])]

All exercises are composed by at least one block/endblock unit. Blocks
are by default composed by multiplechoice questions and options are
rearranged. Options are given inside brackets right after `block`

.
Using the `type`

option the block can be declared (this
is needed if the block is shortanswer or true/false, and can be
optionally specified for multiplechoice).
The format is `type=[multiplechoice|shortanswer|truefalse]`

.
With the `rearrange`

option questions within the block will be rearrraged at random or
not. The format is `rearrange=[yes|no]`

.

**Example of blocks**

block
question
The binomial coefficient ${n \choose k}$ equals
. ${n \choose n-k}$.
. $0$ if $k=0$.
: The previous two answers are incorrect.
endquestion
endblock

This is equivalent to:

block (type=multiplechoice rearrange=yes)
question
The binomial coefficient ${n \choose k}$ equals
. ${n \choose n-k}$.
. $0$ if $k=0$.
: The previous two answers are incorrect.
endquestion
endblock