|
Manually marked question. The question is answered by typing a snippet of code. |
The Programming question type allows candidates to write code in a specified programming language using a specialized editor. This editor is adapted for displaying code, featuring line numbers and supporting syntax highlighting. For some languages, some degree of auto-correction is also supported. As an Author, you can choose whether this should be available or not.
This article explains the layout of Programming questions and details their specific options, including coding language selection and display settings.
Question layout
In the question's edit mode, you can do the following:
- Replace text with desired question text.
- Add math (LaTex), files, tables, links, PDF, images and / or audio clips to the question text.
- Set general options for the question type. Read more about general options for questions.
Specific options
Clicking on the interaction element (the code editor area) provides access to specific options unique to the Programming question type:
- Write an explanation text for the question. This text will appear in the workspace. "Fill in your answer here" is set by default.
-
Under Options, you can select the coding language and choose to display help and line numbers.
Coding language: Use this list to select the coding language that the candidates will use in their response. This will automatically provide syntax markup adapted to the selected language.
Show help and line number: This option displays useful line numbers in the text box where the candidates write their answer. For some coding languages, this option will also turn on auto correct and syntax highlighting.
- An External Identifier is a unique string that helps link the question to external systems for data collection, without serving any internal purpose in Inspera Assessment.