﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Repeat questions until a correct answer is provided</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 29 Sep 2026 12:45:18 GMT</lastBuildDate><ttl>20</ttl><item><title>Repeat questions until a correct answer is provided</title><link>https://forums.millisecond.com/Topic16821.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I'm making a multiple-choice test in which questions are presented one at a time, and I'd like to make it so that the test moves questions answered incorrectly to the end of the test, and repeats them (indefinitely) until the subject answers the question correctly.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The topic found here&amp;nbsp;&lt;a href="http://www.millisecond.com/forums/Topic11329.aspx"&gt;http://www.millisecond.com/forums/Topic11329.aspx&lt;/a&gt; outlines a similar process, but I'd really like to have the questions repeat indefinitely, instead of just a pre-defined number of times. I'd also, if possible, like a way to record how many attempts were taken to produce a correct answer.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Can anyone offer any advice?</description><pubDate>Mon, 03 Aug 2015 03:14:31 GMT</pubDate><dc:creator>ibaxendine</dc:creator></item><item><title>RE: Repeat questions until a correct answer is provided</title><link>https://forums.millisecond.com/Topic16824.aspx</link><description>Taking the script in the thread you mentioned as a basis, you can (1) set an exceptionally high number of repeats that no one will ever realistically exhaust, and (2) track the number of attempts per page via a bunch of values.&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ pg1_attempts = 0&lt;br/&gt;/ pg2_attempts = 0&lt;br/&gt;/ pg3_attempts = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [&lt;strong&gt;1-1000&lt;/strong&gt;=sequence(pg1,pg2,pg3)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg1&amp;gt;&lt;br/&gt;/ ontrialend = [values.pg1_attempts+=1]&lt;br/&gt;/ caption = "Page 1"&lt;br/&gt;/ questions = [1=rb1]&lt;br/&gt;/ skip = [radiobuttons.rb1.response=="A" || radiobuttons.rb1.response=="B" || radiobuttons.rb1.response=="C"]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg2&amp;gt;&lt;br/&gt;/ ontrialend = [values.pg2_attempts+=1]&lt;br/&gt;/ caption = "Page 2"&lt;br/&gt;/ questions = [1=rb2]&lt;br/&gt;/ skip = [radiobuttons.rb2.response=="A" || radiobuttons.rb2.response=="B" || radiobuttons.rb2.response=="C"]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg3&amp;gt;&lt;br/&gt;/ ontrialend = [values.pg3_attempts+=1]&lt;br/&gt;/ caption = "Page 3"&lt;br/&gt;/ questions = [1=rb3]&lt;br/&gt;/ skip = [radiobuttons.rb3.response=="A" || radiobuttons.rb3.response=="B" || radiobuttons.rb3.response=="C"]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons rb1&amp;gt;&lt;br/&gt;/ options = ("A", "B", "C", "Skip")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons rb2&amp;gt;&lt;br/&gt;/ options = ("A", "B", "C", "Skip")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons rb3&amp;gt;&lt;br/&gt;/ options = ("A", "B", "C", "Skip")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject group blocknum blockcode trialnum trialcode response latency correct values.pg1_attempts values.pg2_attempts values.pg3_attempts]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 03 Aug 2015 03:14:31 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>