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

Why sql Data Reader object not created

9 Answers   Matrix,


What is ado net stands for?

0 Answers  


What is the difference between typed and untyped dataset?

0 Answers  


What is sql connection in ado.net?

0 Answers  


OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbConnection1)); OleDbCommandBuilder cmd=new OleDbCommandBuilder(ole); ole.Fill(dataSet11,"login"); DataRow drow=dataSet11.Tables ["login"].NewRow(); drow[0]=textBox1.Text; drow[1]=textBox2.Text; drow[2]=textBox3.Text; dataSet11.Tables["login"].Rows.Add (drow); ole.UpdateCommand=cmd.GetUpdateCommand(); ole.Update(dataSet11,"login"); MessageBox.Show("one row added"); this gives exception.how to solve it

1 Answers   Nimaya,






what is data access layer?

2 Answers   Honeywell,


What is the hierarchy of data in databases?

0 Answers  


What is serialization and de-serialization in .net?

0 Answers  


How do I delete a row from a DataTable?

0 Answers   UGC Corporation,


Some important instruction regarding ADO.NET connection string ?

0 Answers   NA,


Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

0 Answers  


I want to ask u that if i add radio button in ado.net form,and how radion button data insert in SQL2005 Database...

6 Answers  


Categories