Question type - Programming


Manually marked question.

The question is answered by typing a snippet of code.

Programming is a question type where the candidates can write code in a specified programming language in an editor specially adapted for writing and displaying code. The editor displays line numbers and supports highlighting specific syntax for the selected programming language. For some languages, some degree of auto-correction is also supported. As an Author, you can choose whether this should be available or not. 


In the question's edit mode, you can do the following: 


1. Replace text with desired question text.

2. Add math (LaTex), files, tables, links, PDF, images and / or audio clips to the question text.

3. Set general options for the question type. Read more about general options for questions


Specific options

Clicking on the interaction element gives you the specific options for the question type.


1. Prompt: Write an explanation text for the question. The text will appear in the workspace. "Fill in your answer here" is set by default. 

2. Options: Under Options, you can select coding language and show help and line number. 

  • 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 will display useful line numbers in the text box where the candidates writes their answer. For some coding languages, this option will also turn on auto correct and syntax highlighting. 


3. External identifier: For information on external identifier, read general options for questions

Articles in this section

Was this article helpful?
4 out of 4 found this helpful