Import from text files

You can import questions from text files to CooSpace in the following way.

Import from plain text

  1. To import plain text, browse the question bank folder in CooSpace that you want to import the questions to. 

  2. Click in 'Import' in the left side menu, and select 'From text'. Then the following window will appear. 

  3. Minding the syntactic rules below, write the questions. 
  4. Click on 'Import'. 

Szintaktikai szabályok

  • The questions have to be separated by a blank line. 
  • The first line of the question should be:
  • [single] - if single choice
  • [multi] - if multiple choice
  • [text] - if text type question 
  • After the word signifying the type optional parameters can be written, seprarated by a comma:
  •      if score=x, where x is the score value of the question (format of fraction number: 4.5, not 4,5)
         if random=1 the answers will be randomized, if random=0 not randomized  
         if layout=1 the answers will be arranged horizontally
         if layout=2  the answers will be arranged vertically
         if layout=3 the answers will be arranged into two columns
  • In the second row the content of the question is written, which can be multiple rows in lenght, but the rows cannot start with '-' or '+' 
  • Then the answers must be typed in different lines, so that the lines of the right answers start with '+' and the wrong ones start with '-'
  • One answer has to be maximum one line long 
  • For easier understanding, you can view the example questions below. 

 

Further rules

Single choice:

  • minimum two answers have to be provided
  • exactly one right answer must be provided 

Multiple choice:

  • minimum one right answer must be provided

Text question:

  • only right answers can be provided, of which's line starts with '+'

 

Manage errors

If the syntactics of the questions is not right, depending on the type of the error the system:

  • reports an error and the question will not be imported

      or

  • reports an error and the corrected question will eb imported. 


Import from a .txt file

  1. Go to the folder that you would like to import the questions to.  
  2. Click on 'Import'. 
  3. Choose the 'From file' option, and browse the text file created in ISO-8859-2 or UTF-8+BOM code. 

The system then will import hte questions. 

Examples

Here are some examples of importable text files to the CooSpace question banks.