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

Explain the role of data provider in ado.net?

0 Answers  


What does ado stand for?

0 Answers  


Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?

0 Answers  


What's the difference between Dataset.clone and Dataset.copy?

10 Answers   Ksb,


Explain the ADO . Net Architecture ( .Net Data Provider) ?

2 Answers  






What is linq and entity framework?

0 Answers  


What is data adapter in ado.net with example?

0 Answers  


HOW TO FILL GRID VIEW WITH OUT USING SQLDATASOURCE AND PROGRAMING?

4 Answers  


What is bubbled event can you please explain?

0 Answers  


What is the difference between executenonquery () and executescalar ()?

0 Answers  


What is acid in ado.net?

0 Answers  


What are the usages of the command object in ado.net?

0 Answers  


Categories