1QUIZ(6)                        BSD Games Manual                        QUIZ(6)
2

NAME

4     quiz — random knowledge tests
5

SYNOPSIS

7     quiz [-t] [-i file] [question answer]
8

DESCRIPTION

10     The quiz utility tests your knowledge of random facts.  It has a database
11     of subjects from which you can choose.  With no arguments, quiz displays
12     the list of available subjects.
13
14     The options are as follows:
15
16     -t      Use tutorial mode, in which questions are repeated later if you
17             didn't get them right the first time, and new questions are pre‐
18             sented less frequently to help you learn the older ones.
19
20     -i      Specify an alternative index file.
21
22     Subjects are divided into categories.  You can pick any two categories
23     from the same subject.  quiz will ask questions from the first category
24     and it expects answers from the second category.  For example, the com‐
25     mand “quiz victim killer” asks questions which are the names of victims,
26     and expects you to answer with the cause of their untimely demise,
27     whereas the command “quiz killer victim” works the other way around.
28
29     If you get the answer wrong, quiz lets you try again.  To see the right
30     answer, enter a blank line.
31
32   Index and Data File Syntax
33     The index and data files have a similar syntax.  Lines in them consist of
34     several categories separated by colons.  The categories are regular
35     expressions formed using the following meta-characters:
36
37           pat|pat  alternative patterns
38           {pat}    optional pattern
39           [pat]    delimiters, as in pat[pat|pat]pat
40
41     In an index file, each line represents a subject.  The first category in
42     each subject is the pathname of the data file for the subject.  The
43     remaining categories are regular expressions for the titles of each cate‐
44     gory in the subject.
45
46     In data files, each line represents a question/answer set.  Each category
47     is the information for the question/answer for that category.
48
49     The backslash character (``\'') is used to quote syntactically signifi‐
50     cant characters, or at the end of a line to signify that a continuation
51     line follows.
52
53     If either a question or its answer is empty, quiz will refrain from ask‐
54     ing it.
55

FILES

57     /usr/share/bsd-games//quiz  The default index and data files.
58

BUGS

60     quiz is pretty cynical about certain subjects.
61
62BSD                              May 31, 1993                              BSD
Impressum