Design a quiz program in Android Mobile App




Design a quiz program in Android.

Description : The following program is a quiz  , user can answer the displayed question and on click of an option result is also displayed.

The score is displayed based on the answer of the question.

Every question has two options in the form of radio buttons.

To keep track of score a query is designed that keep track of answers entered by user.

So based on count of correct and incorrect answers the position of user whether he has won won or loss is declared by message box.

Advantage of using radio button to accept answer from user is that at a time only one answer can be selected.

Clear button will reset the quiz that is all selected radio buttons will be reset to normal and a fresh quiz can be started again.

Comments