MiniUnix/usr/man/man6/quiz.6
.th QUIZ VI 9/7/74
.sh NAME
quiz \*- test your knowledge
.sh SYNOPSIS
.bd quiz
[
.bd \*-i
file ]
[
.bd \*-t
] [ category1 category2 ]
.sh DESCRIPTION
.it Quiz
gives associative
knowledge tests on various subjects.
It asks items chosen from
.it category1
and expects answers from
.it category2.
If no categories are specified,
.it quiz
gives instructions
and lists the available categories.
.s3
.it Quiz
tells a correct answer whenever you type
a bare newline.
At the end of input, upon interrupt,
or when questions run out,
.it quiz
reports a score and terminates.
.s3
The
.bd \*-t
flag specifies `tutorial' mode,
where missed questions are repeated
later, and material is gradually introduced as you learn.
.s3
The
.bd \*-i
flag causes the named file to be substituted for the
default index file.
The lines of these files have the syntax:
.s3
.lp +4 0
.if t .ds v \(bv
.if n .ds v |
.tr ||
.tc
.if t .ta .75i
.if n .ta 11
.nf
line = category newline \*v category `:' line
category = alternate \*v category `|' alternate
alternate = empty \*v alternate primary
primary = character \*v `[' category `]' \*v option
option = `{' category `}'
.s3
.i0
.fi
The first category on each
line of an index file names an information file.
The remaining categories specify the order and contents of
the data in each line of the
information file.
Information files have the same syntax.
Backslash `\\' is used as with
.it sh
(I) to quote syntactically
significant characters or to insert transparent
newlines into a line.
When either a question or its answer is empty,
.it quiz
will refrain from asking it.
.sh FILES
/usr/lib/quiz/index
.br
/usr/lib/quiz/*
.sh BUGS