Skip to content

Commit 6c26091

Browse files
committed
fixed first example to be more obvious
1 parent 4cd4e36 commit 6c26091

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

_sources/practicequiz/sorting.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Question 2
3737
:answer_d: [1, 9, 19, 7, 3, 10, 13, 15, 8, 12]
3838
:feedback_a: This answer represents three swaps. A pass means that you continue swapping all the way to the end of the list.
3939
:feedback_b: Very Good
40-
:feedback_c: A bubble sort contines to swap numbers up to index position passnum. But remember that passnum starts at the length of the list - 1.
41-
:feedback_d: You have been doing an insertion sort, not a bubble sort.
40+
:feedback_c: Try again.
41+
:feedback_d: Try again.
4242

4343
Suppose you have the following list of numbers to sort:
4444
[19, 1, 9, 7, 3, 10, 13, 15, 8, 12]
@@ -51,17 +51,17 @@ Question 3
5151

5252
.. mchoice:: sorting-practice-quiz-3
5353
:correct: d
54-
:answer_a: [7, 11, 12, 1, 6, 14, 8, 18, 19, 20]
55-
:answer_b: [7, 11, 12, 14, 19, 1, 6, 18, 8, 20]
54+
:answer_a: [7, 11, 1, 6, 12, 8, 14, 18, 19, 20]
55+
:answer_b: [7, 11, 12, 14, 19, 1, 6, 20, 8, 18]
5656
:answer_c: [11, 7, 12, 14, 1, 6, 8, 18, 19, 20]
5757
:answer_d: [11, 7, 12, 14, 8, 1, 6, 18, 19, 20]
58-
:feedback_a: Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps
59-
:feedback_b: This looks like an insertion sort.
58+
:feedback_a: Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps.
59+
:feedback_b: Try again.
6060
:feedback_c: This one looks similar to the correct answer but instead of swapping the numbers have been shifted to the left to make room for the correct numbers.
6161
:feedback_d: Selection sort improves upon bubble sort by making fewer swaps.
6262

6363
Suppose you have the following list of numbers to sort:
64-
[11, 7, 12, 14, 19, 1, 6, 18, 8, 20]
64+
[11, 7, 12, 14, 19, 1, 6, 20, 8, 18]
6565
Which list represents the partially sorted list after three complete **passes** of selection sort?
6666

6767

docs/_sources/practicequiz/sorting.rst.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Question 2
3737
:answer_d: [1, 9, 19, 7, 3, 10, 13, 15, 8, 12]
3838
:feedback_a: This answer represents three swaps. A pass means that you continue swapping all the way to the end of the list.
3939
:feedback_b: Very Good
40-
:feedback_c: A bubble sort contines to swap numbers up to index position passnum. But remember that passnum starts at the length of the list - 1.
41-
:feedback_d: You have been doing an insertion sort, not a bubble sort.
40+
:feedback_c: Try again.
41+
:feedback_d: Try again.
4242

4343
Suppose you have the following list of numbers to sort:
4444
[19, 1, 9, 7, 3, 10, 13, 15, 8, 12]
@@ -51,17 +51,17 @@ Question 3
5151

5252
.. mchoice:: sorting-practice-quiz-3
5353
:correct: d
54-
:answer_a: [7, 11, 12, 1, 6, 14, 8, 18, 19, 20]
55-
:answer_b: [7, 11, 12, 14, 19, 1, 6, 18, 8, 20]
54+
:answer_a: [7, 11, 1, 6, 12, 8, 14, 18, 19, 20]
55+
:answer_b: [7, 11, 12, 14, 19, 1, 6, 20, 8, 18]
5656
:answer_c: [11, 7, 12, 14, 1, 6, 8, 18, 19, 20]
5757
:answer_d: [11, 7, 12, 14, 8, 1, 6, 18, 19, 20]
58-
:feedback_a: Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps
58+
:feedback_a: Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps.
5959
:feedback_b: This looks like an insertion sort.
6060
:feedback_c: This one looks similar to the correct answer but instead of swapping the numbers have been shifted to the left to make room for the correct numbers.
6161
:feedback_d: Selection sort improves upon bubble sort by making fewer swaps.
6262

6363
Suppose you have the following list of numbers to sort:
64-
[11, 7, 12, 14, 19, 1, 6, 18, 8, 20]
64+
[11, 7, 12, 14, 19, 1, 6, 20, 8, 18]
6565
Which list represents the partially sorted list after three complete **passes** of selection sort?
6666

6767

docs/doctrees/environment.pickle

62 Bytes
Binary file not shown.
-338 Bytes
Binary file not shown.

docs/practicequiz/sorting.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ <h2>Question 2<a class="headerlink" href="#question-2" title="Permalink to this
254254

255255
<li data-component="answer" data-correct='yes' id="sorting-practice-quiz-2_opt_b">[1, 3, 7, 9, 10, 8, 12, 13, 15, 19]</li><li data-component="feedback">Very Good</li>
256256

257-
<li data-component="answer" id="sorting-practice-quiz-2_opt_c">[1, 7, 3, 9, 10, 13, 8, 12, 15, 19]</li><li data-component="feedback">A bubble sort contines to swap numbers up to index position passnum. But remember that passnum starts at the length of the list - 1.</li>
257+
<li data-component="answer" id="sorting-practice-quiz-2_opt_c">[1, 7, 3, 9, 10, 13, 8, 12, 15, 19]</li><li data-component="feedback">Try again.</li>
258258

259-
<li data-component="answer" id="sorting-practice-quiz-2_opt_d">[1, 9, 19, 7, 3, 10, 13, 15, 8, 12]</li><li data-component="feedback">You have been doing an insertion sort, not a bubble sort.</li>
259+
<li data-component="answer" id="sorting-practice-quiz-2_opt_d">[1, 9, 19, 7, 3, 10, 13, 15, 8, 12]</li><li data-component="feedback">Try again.</li>
260260

261261

262262
</ul>
@@ -268,12 +268,12 @@ <h2>Question 3<a class="headerlink" href="#question-3" title="Permalink to this
268268
<div class="runestone ">
269269
<ul data-component="multiplechoice" data-question_label="3" data-multipleanswers="false" id="sorting-practice-quiz-3" style="visibility: hidden;">
270270
<p>sorting-quiz3: Suppose you have the following list of numbers to sort:
271-
[11, 7, 12, 14, 19, 1, 6, 18, 8, 20]
271+
[11, 7, 12, 14, 19, 1, 6, 20, 8, 18]
272272
Which list represents the partially sorted list after three complete <strong>passes</strong> of selection sort?</p>
273273

274-
<li data-component="answer" id="sorting-practice-quiz-3_opt_a">[7, 11, 12, 1, 6, 14, 8, 18, 19, 20]</li><li data-component="feedback">Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps</li>
274+
<li data-component="answer" id="sorting-practice-quiz-3_opt_a">[7, 11, 1, 6, 12, 8, 14, 18, 19, 20]</li><li data-component="feedback">Selection sort is similar to bubble sort (which you appear to have done) but uses fewer swaps.</li>
275275

276-
<li data-component="answer" id="sorting-practice-quiz-3_opt_b">[7, 11, 12, 14, 19, 1, 6, 18, 8, 20]</li><li data-component="feedback">This looks like an insertion sort.</li>
276+
<li data-component="answer" id="sorting-practice-quiz-3_opt_b">[7, 11, 12, 14, 19, 1, 6, 20, 8, 18]</li><li data-component="feedback">This looks like an insertion sort.</li>
277277

278278
<li data-component="answer" id="sorting-practice-quiz-3_opt_c">[11, 7, 12, 14, 1, 6, 8, 18, 19, 20]</li><li data-component="feedback">This one looks similar to the correct answer but instead of swapping the numbers have been shifted to the left to make room for the correct numbers.</li>
279279

0 commit comments

Comments
 (0)