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