
                          Sample Q&ASA Database

This file must be compiled with Q&ASA's database compiler Q&AC.EXE, which 
will create the file SAMPLE.Q&A.

This sample database contains questions and answers about Q&ASA. 

A Q&ASA database may contain any of the following options. Any line
not part of one of the following options is considered to be a comment,
which is why this explanatory text may appear here.

Q=	question on following lines, terminated by a blank line or
	another option.
A=	answer on following lines, terminated by a blank line or
	another option.
N=	quiz name is on next line.
M=	macro definition on following lines, terminated by a blank
	line or another option.
T=	time allowed is on next line in the format HH:MM:SS.
C=	clear NOT allowed. No additional lines.
S=	lock in sequential mode (user cannot change mode). No additional
	lines.
R=	lock in random mode (user cannot change mode). No additional
	lines.
F=	output score filename is on next line (no score recording 
	if omitted).
W=	assign weighting. Weight appears as an integer on the next line.
	This weight will be used for all questions following until and
	unless another weight is assigned.
D=	disable display of correct answers if answer is incorrect. No
	additional lines.

In this sample database, questions are weighted by type as follows:
	multiple-choice		1 point each	
	true/false (yes/no)	2 points each
	fill-in			3 points each

Again, note that comments are just about free-form. Place them anywhere 
except between option keywords and their termination. Q&AC will discard
all comment text as it compiles this file, so you are not penalized for
commenting your databases.

The sample database configuration follows....
---------------------------------------------

Set the time limit to 10 minutes.
T=
10:00

Name the database. This name is displayed in Q&ASA's main window.
N=
Q&ASA Sample Database

Specify a score file. If it already exists, score data will be appended.
Otherwise, a new file will be created using this name.
F=
sample.scr

These are the 'true' and 'false' macro definitions...
-----------------------------------------------------

M=
$TRUE$
True
T
Yes
Y

M=
$FALSE$
False
F
No
N

The first question follows, with a weight of 3.
-----------------------------------------------

W=
3

Q=
 Fill-in:

 Q&ASA requires a maximum of _____ bytes of memory.

A=
 126K
 126000
 126,000

Now the weighting is changed to 1 before multiple-choice questions.
-------------------------------------------------------------------

W=
1

Q=
 Multiple-choice:

 How many questions and answers can typically be put in a Q&ASA database?

	A. 100
	B. Limited by disk space
	C. 3000
	D. All of the above
	E. None of the above

A=
	C. 3000
	C
	3000
	3K

Q=
 Multiple-choice:

 How does Q&ASA determine the correct answer?

	1. It knows the answers
	2. By scanning the list of answers in the database and scoring
	   "correct" if your answer matches any of them.
	3. By reading your mind
A=
	2. By scanning the list of answers in the database
	By checking for matches.
	2
	Scanning
	Matching

Q=
 Multiple-choice:

 What will Q&ASA do if my question won't fit in the 15 screen 
 lines provided?

	1. Crash
	2. Truncate the question
	3. Display the question in 'pages'
A=
	2. Truncate the question (actually done by Q&AC)
	2
	truncate

Q=
 Multiple-choice:

 Can Q&ASA assign a "weight" to each question?

	a. Yes, provided the total weight adds up to 100.
	b. No.
	c. Yes, without restriction.
A=
	c. Yes, without restriction.
	c

Change the weight to 2 for "true/false".
----------------------------------------

W=
2

Q=
 True/False:

 Is there a way to limit the time allowed to answer all questions?
A=
 $TRUE$

And back to 1 again for multiple-choice.
----------------------------------------

W=
1

Q=
 Multiple-choice:

 How does Q&ASA save the score?

	1. By appending the score information to the file "Q&ASA.SCR".
	2. It creates a score file defined by the "File/Load" command.
	3. By appending the score to the file defined in the database.
	4. Both 1 and 2 above.
	5. None of the above.
A=
	3. By appending the score to the file defined in the database.
	3

W=
2
 
Q=
 True/False

 Can I skip questions without answering them and come back to them later?
A=
$TRUE$

W=
1

Q=
 Multiple-choice:

 How does Q&ASA locate my database?

	1. It searches the whole disk
	2. It searches the current directory
	3. It searches the directory specified in the "File/Load" command.
A=
	3. It searches the directory specified by "File/Load"
	3

Q=
 Multiple-choice:

 How does Q&ASA locate its HELP file?
	1. It searches the whole disk.
	2. It searches the current directory.
	3. It searches the directory specified by the "File/Load" command.
	4. It searches all of the directories given by the PATH variable.
   	5. It will ask for the directory if it cannot find the file.
	6. Both 2 and 4 above
	7. 2, 4, and 5 above
	8. All of the above
A=
	7. It searches the current directory, then the PATH, then asks.
	7

W=
2

Q=
 True/False

 The name of the database definition file must end with ".Q&A".

A=
No. It CANNOT end with ".Q&A". The Q&AC compiler uses this extension!
$FALSE$

W=
1

Q=
 Multiple-choice:

 The number of correct answers that I can give for a question is

	A. Two
	B. Five
	C. Unlimited
	D. Limited by available memory, but essentially unlimited.
A=
	D. Limited by available memory
	D

W=
2
	
Q=
 True/False

 Can Q&ASA handle an essay question?
A=
No. Scoring an essay question would require language interpretation.
$FALSE$

W=
1

Q=
 Multiple-choice:

 Which of the answers given in the database does Q&ASA display as correct
 if I answer incorrectly?

	1. All of them
	2. The last one
	3. The first one
A=
	3. The first one
	First
	3

W=
2

Q=
 True/False

 Does Q&ASA regard case ("A/a") in an answer as significant?
A=
$FALSE$

W=
1

Q=
 Multiple-choice:

 What will Q&ASA do if I put tabs in my database?

	1. It will crash
	2. It will expand them using 8-column tab stops
	3. It will convert them to blanks
A=
	2. Q&AC will expand them using 8-column tab stops.
	2
	expand

Q=
 Multiple-choice:

 How does Q&ASA locate the question/answer tags (Q=, A=) in the database?

	1. It looks at the first character of each line
	2. It looks for those characters alone on a line
	3. It assumes 7-line spacing
        A=
	2. It looks for those characters alone on a line
	2

W=
2

Q=
 True/False

 Is Q&ASA public domain?

A=
NO! Q&ASA is SHAREWARE. You are expected to register and pay for its use.
$FALSE$

W=
1

Q=
 Multiple-choice

 What if I want to change the database file?

	1. You may change it any time you wish.
	2. You must recompile it using Q&AC.
	3. You cannot change the database.
A=
	2. You must recompile it using Q&AC.
	2

W=
2

Q=
 True/False

 If I type the database to the screen using the DOS command
 "type filename.q&a", can I see the answers?

A=
No, the database is encrypted for just this reason.
$FALSE$

End of sample database.....
---------------------------
