Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

SMART PHONE APPLICATION DEVELOPMENT

ASSIGNMENT ON WIDGETS
BATCH 8 – A,B & C

1. Make a quiz app that gets input for the user name and date of birth from the user, and have 5
questions displayed on the same activity with a submit button at the end. Each question has 5
options. For each correct answer you may give one mark. Once the button is clicked you need to
show the Score with the user details with the time taken to complete the test. Once the button
is clicked then you need to disable all the input fields including the questions and answer.
Highlight the correct answers in green background, wrong answers with pink/red background
and change the button text to “Try Again?”. If the user clicks the button “Try Again?” again then
clear the previous responses (User name and radio buttons) and change the button text to
“Submit”. Repeat the process based on the user input.

Hints:

1. EditText, Grouping RadioButtons


2. Listener for button and score calculation
3. Calculating time elapsed (learn how to calculate duration using some Java or Kotlin classes)
4. Disabling EditText, RadioButton
5. Changing background color of RadioButton
6. Changing Button Text

You might also like