## Giving Feedback on Multiple choice Questionnaire

##### Giving Feedback on Multiple choice Questionnaire
 Author Message nash posted Last Month ANSWER         Group: Forum Members Posts: 2, Visits: 3 Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.###################################################################################################### TESTLET ING_tcm_002_tex_en######################################################################################################################### Testletstamm###################/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")/ position = (0%,50%)/ showborders = false/ showscrollbars = True/ size = (100%,100%)#################### Items###################/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"/ options = ("~nAll objects reach the ground at the same time t1.~n",            "~nThe spring lands at time t1.~n",            "~nThe apple lands at time t1.~n",            "~nThe stone lands at time t1.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"/ options = ("~n40 Nm~n",            "~n50 Nm~n",            "~n60 Nm~n",            "~n70 Nmn~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"/ options = ("~nNo.~n",            "~nYes.~n",            "~nBoth arrive at the bottom at the same time.~n",            "~nThis can only be analyzed if the initial heights are known.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "What is the trend of the speed of fall from free fall?"/ options = ("~nLinear~n",            "~nSquare~n",            "~nRemains constant~n",            "~nIndeterminable~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"/ options = ("~n350 Nm potential energy~n",            "~n0 Nm potential energy~n",            "~n35 Nm potential energy~n",            "~n175 Nm potential energy~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"/ options = ("~nJust as large as at the time of firing.~n",            "~nLess than at the time of firing.~n",            "~nGreater than at the time of firing.~n",            "~nNo statement can be made about this.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random#################### survey pages###################/ questions = [1 = ING_tcm_002a]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002b]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002c]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002d]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002e]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002f]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]#################### total testlet###################/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]/ showbackbutton=false/ finishlabel = "Continue"/ nextlabel = "Continue"/ screencolor = whiteNow I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that. Is that possible? Thank you in advance!best, Nash Dave posted Last Month ANSWER         Group: Administrators Posts: 10K, Visits: 51K +x nash - 1/30/2020Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.###################################################################################################### TESTLET ING_tcm_002_tex_en######################################################################################################################### Testletstamm###################/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")/ position = (0%,50%)/ showborders = false/ showscrollbars = True/ size = (100%,100%)#################### Items###################/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"/ options = ("~nAll objects reach the ground at the same time t1.~n",            "~nThe spring lands at time t1.~n",            "~nThe apple lands at time t1.~n",            "~nThe stone lands at time t1.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"/ options = ("~n40 Nm~n",            "~n50 Nm~n",            "~n60 Nm~n",            "~n70 Nmn~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"/ options = ("~nNo.~n",            "~nYes.~n",            "~nBoth arrive at the bottom at the same time.~n",            "~nThis can only be analyzed if the initial heights are known.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "What is the trend of the speed of fall from free fall?"/ options = ("~nLinear~n",            "~nSquare~n",            "~nRemains constant~n",            "~nIndeterminable~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"/ options = ("~n350 Nm potential energy~n",            "~n0 Nm potential energy~n",            "~n35 Nm potential energy~n",            "~n175 Nm potential energy~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"/ options = ("~nJust as large as at the time of firing.~n",            "~nLess than at the time of firing.~n",            "~nGreater than at the time of firing.~n",            "~nNo statement can be made about this.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random#################### survey pages###################/ questions = [1 = ING_tcm_002a]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002b]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002c]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002d]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002e]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002f]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]#################### total testlet###################/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]/ showbackbutton=false/ finishlabel = "Continue"/ nextlabel = "Continue"/ screencolor = whiteNow I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that. Is that possible? Thank you in advance!best, NashYes, you can do so using and a bit of /ontrialend logic in your s.#################### survey pages###################/ correctsum = 0/ ontrialend = [    if (radiobuttons.ING_tcm_002a.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002a]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002b.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002b]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002c.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002c]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002d.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002d]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002e.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002e]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002f.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002f]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ caption = "You have solved <%values.correctsum%> out of 6 items correctly."#################### total testlet###################/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f; 7=end]/ showbackbutton=false/ finishlabel = "Continue"/ nextlabel = "Continue"/ screencolor = white nash posted Last Month ANSWER         Group: Forum Members Posts: 2, Visits: 3 +x Dave - 1/30/2020+x nash - 1/30/2020Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.###################################################################################################### TESTLET ING_tcm_002_tex_en######################################################################################################################### Testletstamm###################/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")/ position = (0%,50%)/ showborders = false/ showscrollbars = True/ size = (100%,100%)#################### Items###################/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"/ options = ("~nAll objects reach the ground at the same time t1.~n",            "~nThe spring lands at time t1.~n",            "~nThe apple lands at time t1.~n",            "~nThe stone lands at time t1.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"/ options = ("~n40 Nm~n",            "~n50 Nm~n",            "~n60 Nm~n",            "~n70 Nmn~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"/ options = ("~nNo.~n",            "~nYes.~n",            "~nBoth arrive at the bottom at the same time.~n",            "~nThis can only be analyzed if the initial heights are known.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "What is the trend of the speed of fall from free fall?"/ options = ("~nLinear~n",            "~nSquare~n",            "~nRemains constant~n",            "~nIndeterminable~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"/ options = ("~n350 Nm potential energy~n",            "~n0 Nm potential energy~n",            "~n35 Nm potential energy~n",            "~n175 Nm potential energy~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random*********************/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"/ options = ("~nJust as large as at the time of firing.~n",            "~nLess than at the time of firing.~n",            "~nGreater than at the time of firing.~n",            "~nNo statement can be made about this.~n")/ optionvalues = ("1","2","3", "4")/ position = (55%,10%)/ required = false/ validresponse = ("1","2","3","4")/ correctresponse = ("1")/ responsefontstyle = ("Arial", 1.5%)/ fontstyle = ("Arial", 1.5%)/ order = random#################### survey pages###################/ questions = [1 = ING_tcm_002a]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002b]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002c]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002d]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002e]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ questions = [1 = ING_tcm_002f]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]#################### total testlet###################/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]/ showbackbutton=false/ finishlabel = "Continue"/ nextlabel = "Continue"/ screencolor = whiteNow I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that. Is that possible? Thank you in advance!best, NashYes, you can do so using and a bit of /ontrialend logic in your s.#################### survey pages###################/ correctsum = 0/ ontrialend = [    if (radiobuttons.ING_tcm_002a.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002a]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002b.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002b]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002c.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002c]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002d.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002d]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002e.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002e]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ ontrialend = [    if (radiobuttons.ING_tcm_002f.response == "1") {        values.correctsum += 1;    }]/ questions = [1 = ING_tcm_002f]/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]/ caption = "You have solved <%values.correctsum%> out of 6 items correctly."#################### total testlet###################/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f; 7=end]/ showbackbutton=false/ finishlabel = "Continue"/ nextlabel = "Continue"/ screencolor = whiteThank you so much! You saved my day!

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...