Creates the body of the question based on its type and additional parameters such as feedback and orientation.
generate_question_body(
type,
answer,
a_values,
fb_correct,
fb_incorrect,
fb_partially,
orientation,
fb_answer,
fb_a_values,
image,
image_alt,
fraction
)
A string containing the question body in XML format.
A string, the question type.
A string or vector, the correct answer(s) for the question.
A vector, additional answers for the question.
A string, feedback for correct answers.
A string, feedback for incorrect answers.
A string, feedback for partially correct answers.
A string, 'v' or 'h'.
A string, answer feedback.
A vector, rest of answer feedback.
Path to an image file associated with the question.
Alternative text describing the image for accessibility.
A number between 0 and 1.