Click here to Skip to main content
15,909,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi programmers,
I am doing a project in Microsoft visual studio 2008 using C# language.
I am making a standalone application which can be used to conduct objective type exams
. I am facing a problem which is as follow.
I have a form containing
1. textbox with multiline property used to display question from the database.
2. 4 radiobutton in a groupbox used to display choices to user.
3. A button named previous and a button named next.

Now suppose a user attempts the questions.
1. So WHERE and HOW i should save the correct answers so that if user want to review the questions and answer he attempted on a form.

2. It may be possible that user first select a answer and go to next then again he want to change the answer of the previous one then how this can be achieved.

Please help me ...
Thank you.
Posted

I suggest you have these two types
C#
class Question
{
    ...
}

class Answer
{
    public Question Question {get;}
    ...
}


Then you should store all the answers in a list, and then you can easily retrieve an answer the user wishes to review. Once the user is happy with the all the provided answers you can store them in a database. An extra feature you might want to add is an auto save which saves the answer to the hard drive in-case of a crash and then restores these answers when the application restarts.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-Oct-11 13:29pm    
A simple design idea, my 5.
--SA
You call this test based on multiple-choice questionnaire an "exam"? Than I don't call it "education".

Seriously, this is a huge problem. People coming to work after such "education" gets no value from it. They hardly can do anything, but those who can probably could do it without such "education". We need really fundamental education, let it be not so big but true. I can see massive educational fraud in engineering fields. Educated and capable people do exist, wonderful people, but their valuable time is more and more consumed by the struggle with the "weak-minded" who do the best to protect their jobs of doing their garbage-in, garbage-out. Those multiple-choice questionnaire "exams" takes a great share in all this disaster. We're going nowhere — fast.

—SA
 
Share this answer
 
Comments
Simon Bang Terkildsen 4-Oct-11 13:20pm    
I totally agree that multiple-choice exams is of no use, many people can get through such an exam with only the most basic knowledge of the course and look ups in the literature, if allowed of course. Though I suppose you could add a feature so the user can enter an answer in a textbox, of course this would have to be reviewed and graded by at least one person, but would yield the best results.
My 5
Sergey Alexandrovich Kryukov 4-Oct-11 13:28pm    
First, thank you for your support of my opinion (I still think that the down-votes of this post will follow, maybe from the people who "passed" such kind of "education" and were naive enough to take it seriously -- such people tend to protect their "knowledge" from doubt). Unfortunately, when you add a free-form answer to a questionnaire, you make is nearly impossible to evaluate the answer.

Many would say, old-style evaluation of knowledge and understanding by human teachers is error-prone, but what I think is: it's much better to suffer from teacher's mistakes than surrender to those automated tests. By the way, mistakes in all kind of tests are also pretty common.

--SA
Simon Bang Terkildsen 4-Oct-11 13:38pm    
Yeah being evaluated by humans involves the danger of their preconception and opinions to influence your grade, but honestly that doesn't happen that much, most are really professional about it especially at universities.
Sergey Alexandrovich Kryukov 4-Oct-11 14:59pm    
Yes, but those valuable people will go as being replaced by stupid tests. It should not happen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900