Results 1 to 2 of 2

Thread: Help with mcq(muliple choose questions) form

  1. #1

    Thread Starter
    New Member Seema_r101's Avatar
    Join Date
    Jul 2007
    Location
    South Africa
    Posts
    7

    Question Help with mcq(muliple choose questions) form

    Hi
    I have to do a webform. I have to enter 100 questions into database. have 4 possible answers (A, B, C, D). The questions has to be randomly choosen. Example of 20 questions. And if just say 5 people are answering this questions. They all must have different answers.
    Just for an example,somthing like this

    1)What color is the sky?
    A. pink B. yellow C. orange D. blue

    1)What color is the sky?
    A. blue B. orange C. pink D. yellow

    1)What color is the sky?
    A. yellow B. pink C. blue D. orange

    2) What color is grass?
    A. yellow B. green C. blue D. orange

    2) What color is grass?
    A. green B. yellow C. blue D. orange
    and so on.

    The point of this is that there is no copying. Can someone help me with this please.


    Im using sql server 2005 and vb.net

    Tips and code will really be appreicated

    Thanks for taking the time to read this

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Help with mcq(muliple choose questions) form

    Quite straightforward. Store the questions in a table. Store its corresponding possible answers in another table. When you present the questions, use RND to select random rows out of the corresponding answers. You cannot guarantee that users will always get different possible answers but you can greatly increase the probability.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width