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 ado in agriculture?
Explain which name space is used to get assembly details?
What are good ado.net object to replace to ado recordset object.
What are disadvantages of microsoft-provided data provider classes in ado.net?
Explian About DataAdapters
What does datareader object do?
What is microsoft ado.net?
What is data adapter in ado.net with example?
Explain ado.net features? Benefits? Drawbacks?
Define data adapter?
Describe connection object in ado.net
Explain the architecture of ado.net?
Explain how to pass multiple tables in datasets simultaneously?
How do you update a dataset in ado.net and how do you update database through dataset?
What DataReader class do in ADO.NET ?