This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-19 14:27:21

Brightsigh
Scratcher
Registered: 2012-11-19
Posts: 11

How to make a quiz?

I wanna make a quiz, and at the ed, it tells a persentage of what they got. How do I do this? PLEASE HELP!!!!!!

Offline

 

#2 2012-12-19 16:24:55

bubby3
Scratcher
Registered: 2012-11-19
Posts: 44

Re: How to make a quiz?

when gf clicked
ask [question] and wait
if <answer = correct answer>
  change [right v] by 1
end

Offline

 

#3 2012-12-19 16:40:07

bubby3
Scratcher
Registered: 2012-11-19
Posts: 44

Re: How to make a quiz?

Project:
Totals:
    Sprites: 1
    Stacks: 1
    Unique costumes: 3
    Unique sounds: 2
--------
Sprite: Stage
  Costumes (1):
    background1 (480x360)
  Sounds (1):
    pop (0:00:00)
  No stacks.
--------
Sprite: Sprite1
  Costumes (2):
    costume1 (95x111)
    costume2 (95x111)
  Sounds (1):
    meow (0:00:01)
  Stacks (1):
    when green flag clicked
        set "right" to "0"
        ask "q1" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q2" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q3" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q4" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q5" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        say (join "You got " (join (((right) / 5) * 100) "%")) for 5 secs
    end

--------

Offline

 

#4 2012-12-19 17:21:24

Brightsigh
Scratcher
Registered: 2012-11-19
Posts: 11

Re: How to make a quiz?

bubby3 wrote:

Project:
Totals:
    Sprites: 1
    Stacks: 1
    Unique costumes: 3
    Unique sounds: 2
--------
Sprite: Stage
  Costumes (1):
    background1 (480x360)
  Sounds (1):
    pop (0:00:00)
  No stacks.
--------
Sprite: Sprite1
  Costumes (2):
    costume1 (95x111)
    costume2 (95x111)
  Sounds (1):
    meow (0:00:01)
  Stacks (1):
    when green flag clicked
        set "right" to "0"
        ask "q1" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q2" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q3" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q4" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        ask "q5" and wait
        if ((answer) = "correct anwser")
            change "right" by 1
        say (join "You got " (join (((right) / 5) * 100) "%")) for 5 secs
    end

--------

Say What? LOL. I'm just a beginner xD

Offline

 

#5 2012-12-19 17:25:42

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: How to make a quiz?

when gf clicked
ask [(any question)] and wait
if <<answer> = [(answer to question)]>
say [Correct!] for (1) secs
next background//next question
else
if <<answer> = [(wrong answer)]>
say [Incorrect!] for (1) secs
end
Hope this will help! smile

Last edited by maxamillion321 (2012-12-19 17:26:23)

Offline

 

#6 2012-12-19 19:21:15

Brightsigh
Scratcher
Registered: 2012-11-19
Posts: 11

Re: How to make a quiz?

Omg! Thanks! This helps a ton! I just need to figure out how it works it! Thanks you AGAIN! That was such a big help.  big_smile   big_smile   big_smile   big_smile   big_smile

Offline

 

#7 2012-12-19 21:42:32

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: How to make a quiz?

Brightsigh wrote:

Omg! Thanks! This helps a ton! I just need to figure out how it works it! Thanks you AGAIN! That was such a big help.  big_smile   big_smile   big_smile   big_smile   big_smile

Your welcome. smile  I'll friend you.

Offline

 

Board footer