hi, how do you count the score for a quiz?

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

hi, how do you count the score for a quiz?

Post by Anonymous »

I have to make a quiz using turing... I'm new to this stuff so I'm just wondering on how you could know the score for that quiz... I would be so grateful if you could help me...

Thanks.

Archived topic from Iceteks, old topic ID:4096, old post ID:33596
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

hi, how do you count the score for a quiz?

Post by Death »

Just make a counter. Set a condition where if the answer is correct you add 1 to the counter and if the answer is wrong, don't add anything to the counter:

if answer = true then
counter:= counter + 1
elsif answer = false then
counter:= counter + 0
end if

Do that for each question and at the end, just display the counter to show how many questions you got right. That counter:= counter + 0 part isn't necessary, I just added that to show that nothing needs to go in that condition seeing as counter:= counter + 0 does not change anything.

Archived topic from Iceteks, old topic ID:4096, old post ID:33607
Anonymous

hi, how do you count the score for a quiz?

Post by Anonymous »

oh thanks so much!

Archived topic from Iceteks, old topic ID:4096, old post ID:33611
Locked