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


Please Help Members By Posting Answers For Below Questions

Which method in OLEDBAdapter is used to populate dataset with records?

816


What are all components of ADO.Net data provider?

829


What is the difference between oledb sql server and oledbdotnet provider?

784


What are the ado.net components?

802


Can we load multiple tables in a dataset?

841


What are two types of transaction supported by ado.net?

789


How is entity framework different from ado.net?

740


What is ado net stands for?

754


What are dataproviders?

760


What is disconnected data?

815


Explain what are the steps to connect to a database?

768


Is datareader faster than datatable?

764


How does entity framework work?

695


What is ado code?

749


What is an example of ordinal data?

768