"DragCompletion" (Question Interface Type)

"DragCompletion"

provides a fill-in the-blank interface with slots to fill by dragging items from a common pool.

Properties

  • In QuestionInterface["DragCompletion",props], props is an Association that supports the following keys:
  • "Prompt"Nonetext asking the user a question
    "Template"(required)template object with slots to be filled
    "Choices"Automaticavailable choices
    "ChoiceOrdering"Automaticfunction for ordering choices
  • The "Template" can be any content supported by TemplateObject or StringTemplate. When providing a string, template slots denoted by backticks `` define locations for blanks in the question interface.
  • By default, the "Choices" are inherited from the AssessmentFunction and randomly sorted to avoid exposing the correct answer.
  • When provided directly, "Choices" should have the form {item1,item2,}. By default, the order will be maintained as provided.
  • When "ChoiceOrdering"f is specified, the items will be presented as f[{item1,item2,}].

Corresponding AssessmentFunction

Examples

open allclose all

Basic Examples  (3)

Define a drag-completion question with assessment:

Create a drag-completion question without assessment:

Specify the choices directly using entities:

A question with multiple correct answers:

Scope  (2)

Use TemplateObject to provide a template:

The choices can be any type of expression. Create a drag-completion question with images:

Properties & Relations  (1)

Use the setting "ChoiceOrdering"f to specify a function for sorting the choices in the interface:

Possible Issues  (1)

The values in the AssessmentFunction should be lists:

Specify the values as a list instead:

Interactive Examples  (1)

Create a QuestionGenerator for a "DragCompletion" question: