Skip to content

Question-Answer Block

A questionanswer block defines slides for a question-answer experiment. The participant is shown a question, where it is intended that the participant answers this question in the text field. This type of experiment can also be used for translation experiments, where the text to be translated is displayed instead of the question. The parameters of the questionanswer block are summarized below.

id
Optional.
String that identifies this block in later analysis of results.
content
Conditionally required, aquestionanswer block must always contain either a content or a contentlist element.
String that specifies the text or question shown to the participant.
contentlist
Conditionally required, aquestionanswer block must always contain either a content or a contentlist element.
List of Strings that specify the texts or questions shown to the participant.

Note

Be careful, the content and contentlist of the questionanswer block differ in syntax and in use than those from the selfpacedreading block.

position
Optional, defaults to bottom.
Keyword taking the value of either bottom, left or right. This parameter specifies position of the input field, which may be set to right to achieve the look of a sentence-completion task.
Example: position = "right".
continue_text
Optional, defaults to "Next".
String that specifies the text shown on the continue-button.
validationerror_text
Optional, defaults to "LET OP: Je moet meer gegevens invullen.". String that specifies the text shown when the participant clicks on the continue-button without having filled in an answer.
showtime
Optional.
Float that indicates the maximum number of seconds the experiment waits for an answer before continuing, regardless of whether an answer has been given.
font
Optional.
font that specifies the font used for the current block.

Example usage

The code below illustrates how the questionanswer block might be used.

experiment {
    questionanswer {
        showtime = 200
        content = "question"
    }
    questionanswer {
        showtime = 200
        content = "sample sentence question"
    }
    questionanswer {
        showtime = 60
        contentlist = [ "Dit is zin1", "Dit is zin2", "Dit is zin3" ]
    }   
}

Back to top