Skip to content

Commit

Permalink
Add and update quiz questions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrguseinov authored Apr 20, 2022
1 parent 39130b8 commit 1aa1081
Show file tree
Hide file tree
Showing 35 changed files with 6,024 additions and 1,145 deletions.
36 changes: 18 additions & 18 deletions chapters/chapter-01/chapter-01-quiz-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"from helpers.submitters import QuizSubmitter\n",
"from helpers.widgets import MyRadioButtons\n",
"\n",
"questions = [MyRadioButtons() for i in range(10)]\n",
"questions = [MyRadioButtons(4) for _ in range(10)]\n",
"questions[1] = MyRadioButtons(5)\n",
"\n",
"submitter = QuizSubmitter(\"01\")"
"submitter = QuizSubmitter(\"01.1\")"
]
},
{
Expand All @@ -38,12 +38,12 @@
"\n",
"### Question 0\n",
"\n",
"When Python is running in the interactive mode and displaying the chevron prompt `>>>`, what question is Python asking you?\n",
"When Python is running in the interactive mode and displaying the chevron prompt `>>>`, what question is it asking you?\n",
"\n",
"1. What is your favourite color?\n",
"2. What Python statement would you like me to run?\n",
"1. What's your favorite color?\n",
"2. What Python statement would you like to run?\n",
"3. What is the next machine language instruction to run?\n",
"4. What Python script would you like me to run?"
"4. What Python script (file) would you like to run?"
]
},
{
Expand All @@ -65,7 +65,7 @@
"\n",
"### Question 1\n",
"\n",
"What will the following program print out:\n",
"What will the following code print out?\n",
"\n",
"```python\n",
"x = 15\n",
Expand Down Expand Up @@ -153,7 +153,7 @@
"\n",
"### Question 4\n",
"\n",
"What is the proper way to say \"good-bye\" to Python?\n",
"What is the proper way to say \"good-bye\" to Python in the interactive mode?\n",
"\n",
"1. `// stop`\n",
"2. `while`\n",
Expand Down Expand Up @@ -209,10 +209,10 @@
"\n",
"What is \"code\" in the context of this book?\n",
"\n",
"1. A way to encrypt data during World War II\n",
"2. A password we use to unlock Python features\n",
"3. A sequence of instructions in a programming language\n",
"4. A set of rules that govern the style of programs"
"1. A way to encrypt data during World War II.\n",
"2. A password we use to unlock Python features.\n",
"3. A sequence of instructions in a programming language.\n",
"4. A set of rules that govern the style of programs."
]
},
{
Expand All @@ -234,7 +234,7 @@
"\n",
"### Question 7\n",
"\n",
"A USB flash drive is an example of which of the following components of computer architecture?\n",
"A USB flash drive is an example of which of the following computer architecture components?\n",
"\n",
"1. Central Processing Unit (CPU)\n",
"2. Main Memory\n",
Expand Down Expand Up @@ -263,10 +263,10 @@
"\n",
"What is the best way to think about a `Syntax Error` while programming?\n",
"\n",
"1. The computer has used GPS to find your location and hates everyone from your town\n",
"2. The computer did not understand the statement that you entered\n",
"3. The computer needs to have its software upgraded\n",
"4. The computer is overheating and just wants you to stop to let it cool down"
"1. The computer has used GPS to find your location and hates everyone from your town.\n",
"2. The computer did not understand the statement that you entered.\n",
"3. The computer needs to have its software upgraded.\n",
"4. The computer is overheating and just wants you to stop to let it cool down."
]
},
{
Expand Down Expand Up @@ -351,7 +351,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.8.10"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 1aa1081

Please sign in to comment.