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

What is aggregating data ?

719


What is the meaning of object pooling?

856


What is the difference in record set and dataset?

746


What is execute reader in ado.net?

706


How do you implement locking concept for dataset?

767


What is difference between executequery and executeupdate?

721


Describe the disconnected architecture of ADO.NET’s data access model.

779


Can you explain how to enable and disable connection pooling?

744


What is ado.net code?

728


How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

806


What are the important features of ado.net 2.0?

835


What is the difference between SqlCommand and SqlCommandBuilder?

808


What is datatable in ado.net?

732


What are the core objects of ADO.NET?

799


What is the usage of the dataset object in ado.net?

713