how to create a quiz software using 4 options to answer
and how to check with answers in the database and award
marks....
Answer Posted / neha
First, you need to bind the label control to the questions
in the database as
Label ques = new Label();
ques.DataBindings.Add("Text", bindsource, "Question");
Similarly, you can bind 4 radio buttons to the 4 options of
the question.
You can provide the button then, clicking on which will
calculate the result and move on to the next question.
For calculation, you need to bind another label's tag
property to the correct answer column in the database, and
can match the strings to calculate whether the user has
entered right answer or not.
Based on that, the score variable can be incremented.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is difference between dataset and datatable?
How will you fill the gridview by using datatable object at runtime?
What do you know about ADO.NET's objects and methods?
What is dataset object? Explain the various objects in dataset.
What are the benefits of using ado.net?
What is typed dataset ?
How to add an aggregate column?
What are all the commands used with Data Adapter?
What is the use of sqldatareader class?
What is ole access?
What is row state?
What are the essential features of ado.net?
What are the various methods provided by the DataSet object to generate XML?
Which database is the ado.net?
Explain the architecture of ado.net?