Preliminary Document
11
5.0
CSV File Data Format
5.1
Question.csv File Format
The first record of the CSV file will always contain the number of total questions that have been pre-defined. It will be in
this format:
<Total Questions>[CR][LF]
Total questions will always be 2 bytes of ASCII defining the number of questions (i.e. “03” means there are three questions
and “99” means there are 99 questions.
Each pre-defined question will be stored in a CSV file called “Question.CSV” in the following format:
<Question Number>,[Question Type (1-9)],[Correct Answer],<Number of Keys
Used>,<Text Line 1>,<Text Line 2>,…,<Text Line 12>[CR][LF]
Where:
Item Fixed
Length
(Characters)
Description
Question Number
2
Question number for the following data (01-99)
Question Type
1
ASCII value representing the question type (same as impromptu list)
Correct Answer
1
Correct answer (numeric keypress expected). For example, if the correct
answer is “True” for a True/False Question, “1” would be listed as the correct
answer.
Number of Keys Used
2
Used to determine what keys to disable on keypad.
Text Line N
20
ASCII string containing text that will be displayed on line N. Each text line
can be up to 20 characters long. Base will automatically pad lines shorter
than 20 characters with spaces (0x00).