quiz: Add Quiz.introduction for an optional intro message
[quizzer.git] / quizzes / posix-utilities.json
1 {
2         "version": "0.1",
3         "introduction": "Test your knowledge of POSIX utilities.",
4         "questions": [
5                 {
6                         "class": "ScriptQuestion",
7                         "interpreter": "sh",
8                         "prompt": "List all the files in the current directory.",
9                         "answer": "ls",
10                         "setup": [
11                                 "touch file-1 file-2 file-3"
12                                 ],
13                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
14                 },
15                 {
16                         "class": "ScriptQuestion",
17                         "interpreter": "sh",
18                         "prompt": "Print the current directory to stdout.",
19                         "answer": "pwd",
20                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
21                 },
22                 {
23                         "class": "ScriptQuestion",
24                         "interpreter": "sh",
25                         "prompt": "Change to your home directory.",
26                         "answer": "cd",
27                         "teardown": [
28                                 "pwd"
29                                 ],
30                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
31                 },
32                 {
33                         "class": "ScriptQuestion",
34                         "interpreter": "sh",
35                         "prompt": "Change to the parent of your current working directory.",
36                         "answer": "cd ..",
37                         "teardown": [
38                                 "pwd"
39                                 ],
40                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html",
41                         "dependencies": [
42                                 "change to your home directory"
43                                 ]
44                 },
45                 {
46                         "class": "ScriptQuestion",
47                         "interpreter": "sh",
48                         "prompt": "Print the contents of README file to the terminal.",
49                         "answer": "cat README",
50                         "setup": [
51                                 "echo 'This project is wonderful' > README"
52                                 ],
53                         "help": [
54                                 "The README file is in your current directory.",
55                                 "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
56                                 ],
57                         "dependencies": [
58                                 "list all the files in the current directory"
59                                 ]
60                 }
61         ]
62 }