I have created some quizzes for an app, but am disappointed that the questions are given in randomized order. I feel like it’s better Scripture Engagement to be able to just go through a given passage. Is there something I can do to avoid having the quiz questions delivered in a randomized order?
Thanks!
2 Likes
Do you mean the quiz questions or the quiz answers? The questions should be in the order you set them to be in the SFM quiz file. The answers you give (including the position of the correct answer) should be automatically randomized so they’re not in the same order each time.
For the PWA, we implemented a feature for shuffling questions. This is due to looking at the Android code. The feature name is shuffle-questions
. Here is an example from the issue above:
<book id="QUIZ1" type="quiz">
<name>Premier quiz</name>
<abbrev>Quiz 1</abbrev>
<font-choice type="book-collection" />
<quiz>
<features type="quiz">
<feature name="shuffle-questions" value="true"/>
<feature name="auto-advance" value="false"/>
<feature name="auto-advance-delay" value="2000"/>
<feature name="access-type" value="after"/>
<feature name="access-after" value="QU2"/>
</features>
</quiz>
So this might be a feature implemented but not exposed. So you would have to edit the .appDef file and edit this feature.
Chris
The quiz QUESTIONS are randomized. I’ve checked carefully by opening my “Viewer” to see exactly how I entered, and then taking the quiz several times on my phone.
Thanks Chris, I’ll see if I’m able to do that! I’m presuming that what I change will be changing the value for shuffle-questions to “false”. Is that correct?
Yes. You will need to close SAB, edit the value of ‘shuffle-questions’ to false in the .appDef, re-open SAB, and then build your app.
- I closed SAB
- I navigated to the file called North Tanna Ruth.appDef
- I opened the file in Notepad
- I replaced all occurrences of “shuffle-questions” value=“true” with “shuffle-questions” value=“false”
- I closed saved the file.
- I opened SAB.
- I re-built the app.
- I installed the app.
The questions are still being presented in a random order on my phonw. They are not randomized in the viewer in SAB.
Do I need to do something else intermediate? Like update a source somewhere or something? Or perhaps I’m accessing the wrong file? Also, my app is not a PWA.
Hi Betty,
So sorry you’re still having this issue! I guess the last “easy” thing to try is to specifically uninstall the app on your phone, then recopy over the newly built app APK and install again. Sometimes I’ve seen that to be necessary.
Otherwise, perhaps you could post your app project somewhere and share with me at andrew_shafe@sil.org and I’ll take a look.
Hi Andrew.
I uninstalled the app.
I re-built the app.
I installed the app.
And alas.
See the attached screenshot of the first quiz question on the app and compare to the first quiz.
I noted that Chris mentioned this was with PWA apps, which mine is not.
Any thoughts?
Bethann
(Attachment id Rut 1.1-5 Quiz .txt is missing)
(attachments)
I’ve confirmed that shuffle-questions is set to “true” by default in the .appDef file (and one might argue whether that is desirable or not…) but either way, if I set it to false it has no effect and the questions are always randomized in the app. I’ll submit a bug report.
Thank you, Andrew. I will be glad to see the bug fixed, but I do think it would be better if the default were set to false for the purpose of Scripture Engagement (which is why we do the quizzes).
Anyone out there agree?
Bethann Carlson
SIL Pacific Area Scripture Engagement Coordinator