Coaching Class Student List:
1. Abdullah
2. Ashish
3. Suhaag
4. Chirag
5. Daksh
6. Divith
7. Pranjal
8. Pratham
9. Prathik N R
10. Prathik P S
11. Puttaraju
Both Task 3 and Task 4 Have to be submitted before Monday (24/7/23), by
above mentioned students.
Both Task 1 and Task 2 Have to be submitted on Tuesday (4/7/23), by above
mentioned students.
Both Task should be written in Separate A4 Sheets and Staple it Task wise…Only
Name and USN should be written on Front page of each Task.
Task 1:
What are the different layouts available to design user interface of an Android
Applications? Justify the use of each layout.
Write a Java Code to build a Quiz Application by using RadioGroup Class.
Consider asuitable view for designing the front end.
With the relevant code snippet, explain the use of following views
i) Checkbox ii) ToggleButton iii) ImageButton iv) EditText
Demonstrate how CRUD operations can be performed programmatically in
Android
Application.
Task 2:
What is an Activity? With a neat diagram the explain the Activity life Cycle.
What are Intents? With a Java code, demonstrate how intents can be used to
i) Switch between Activitiesii) to start an activity for result.
Which are the states, a fragments goes through after it’s creation. List the
differentmethods that are called when fragment transits from one state to
another.
Write a Java code to
i) Pass Data Using an Intent Objectii) display a progress dialog.
Task 3:
Explain different constructors supported by String class along with example code which includes all
those constuctors.
Demonstrate the following string operations. Explain with example
i) String Literals ii) String Concatenation iii) String Concatenation with other data types
With relevant Program/ code example, explain the following StringBuffer methods
i) length()and capacity() ii) setLength() iii) charAt() and setCahrAt() iv) reverse() v) insert()
Demonstrate the following string operations
i)startsWith and endsWith() ii) String Conversion and toString() iii) indexOf( ) and lastIndexOf().
Task 4:
List and explain the advantages of Collections Framework in developing a generic Java program.
How Auto boxing/Unboxing can be used to prevent errors? Explain.
How default values can be used in an Annotations? Explain with an example Java Code.
Give the explanation why Wrapper classes are required when compared to primitive types.