how to create a quiz software using 4 options to answer
and how to check with answers in the database and award
marks....



how to create a quiz software using 4 options to answer and how to check with answers in the datab..

Answer / 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

More ADO.NET Interview Questions

How can we load multiple tables in to dataset?

0 Answers  


What is the meaning of executenonquery?

0 Answers  


What is Serialization in .NET? what are the types of Serialization?

0 Answers   Arigo Infotech,


How to call the SQL commands asynchronously in ADO.NET version 2.0

4 Answers   DELL,


What is ole in excel?

0 Answers  






Can we bind one datareader wid two dropdown list?

5 Answers  


How can we add/remove row's in "datatable" object of "dataset"?

0 Answers  


how do u connect ado.net to sql server

1 Answers   Microsystems,


Define table relations?

0 Answers  


What is the significance of CommandBehavior.CloseConnection ?

0 Answers   NA,


How do you update database through dataset?

0 Answers  


What is executequery?

0 Answers  


Categories