error while fetching data from DB : I have a table c_question in which I stored questions with autoincrement column _id, question, option1,option2,option3,correct_answer
Now I want to retrieve the question on TextView and options on RadioGroup. If user selects correct option then question and options changes 
in the same XML.

Logcat: fatal exception at main ..... cursorIndexOutOfBoundException///
Output showing the last data(Question with options) I entered in DB and if I click any option, the app crashes...
Please help :) I'm new to Android SQLite DB//


	

 
            String row="SELECT* FROM c_question";
        	final Cursor c=db.rawQuery(row, null);
        	c.moveToFirst();
        	
        	if(c.moveToFirst())
        	
        	{
        do
        {
			tv1.setText(c.getString(1));
			r0=(RadioButton)findViewById(R.id.radio0);
			r0.setText(c.getString(2));
			r1=(RadioButton)findViewById(R.id.radio1);
			r1.setText(c.getString(3));
			r2=(RadioButton)findViewById(R.id.radio2);
			r2.setText(c.getString(4));
			
		k.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				
				int idd=r.getCheckedRadioButtonId();
				r0=(RadioButton)findViewById(idd);
				String r=r0.getText().toString();
				if(r.equals(c.getString(5)))
				{
					Toast.makeText(QuestionsOn.this, "correct!!!", 123).show();
					;
					
			}	else
				Toast.makeText(QuestionsOn.this, "Incorrect!!!", 123).show();


			}
		});
		
			} while(c.moveToNext());
        	
        	}	
