Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad MCA 2018 ANDROID APPLICATION DEVELOPMENT Previous Question Paper (January - 2018 - R15)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.
PART - A
Answer all questions. Each question carries 5 marks.
Explain the types of Android applications.
Answer
Android applications are primarily categorized based on their architecture and the technology stack used to build them. The main types are:
- Native Applications: These are developed using the Android SDK, primarily with Java or Kotlin. They have direct access to device hardware and APIs, offering the highest performance and best user experience, but they are platform-specific.
- Web Applications: These are essentially mobile-optimized websites accessed through a browser. They are platform-independent and easy to update, but they lack access to device-specific features like the camera or sensors and rely heavily on internet connectivity.
- Hybrid Applications: These combine elements of both native and web applications. They are built using web technologies like HTML, CSS, and JavaScript and wrapped in a native container (using frameworks like Cordova or Ionic). This allows them to run on multiple platforms while accessing some native device features.
- Progressive Web Apps (PWAs): These are web applications that provide a native-like experience, including offline capabilities via service workers and the ability to be added to the home screen, bridging the gap between web and native apps.
Explain lifecycle of fragments.
Answer
A fragment in Android has a lifecycle that is closely tied to its host Activity. When the host Activity is paused, all fragments within it are also paused, and when the Activity is destroyed, all fragments are destroyed. The lifecycle methods are as follows:
- onAttach(): Called when the fragment is first associated with its host Activity.
- onCreate(): Called to perform initial creation of the fragment.
- onCreateView(): Called to create and return the view hierarchy associated with the fragment.
- onActivityCreated(): Called when the host Activity's onCreate() method has completed.
- onStart(): Called when the fragment becomes visible to the user.
- onResume(): Called when the fragment is active and the user can interact with it.
- onPause(): Called when the user is leaving the fragment, though it may still be visible.
- onStop(): Called when the fragment is no longer visible.
- onDestroyView(): Called when the view hierarchy associated with the fragment is being removed.
- onDestroy(): Called to do final cleanup of the fragment's state.
- onDetach(): Called when the fragment is being disassociated from the Activity.
What are implicit intents?
Answer
Sign in to view the complete answer paper.
Explain the features of SQLite database.
Answer
Sign in to view the complete answer paper.
Explain the features of alarm.
Answer
Sign in to view the complete answer paper.
PART - B
Answer any one full question from each unit. Each question carries 10 marks.
In detail explain the Android development framework.
Answer
Sign in to view the complete answer paper.
Explain the Android Manifest file.
Answer
Sign in to view the complete answer paper.
Explain the layouts in Android operating system.
Answer
Sign in to view the complete answer paper.
What is linear layout in android SDK? Using an XML file, explain the two nested linear layouts?
Answer
Sign in to view the complete answer paper.
Describe the user interface components: spinners, dialog and pickers.
Answer
Sign in to view the complete answer paper.
How Android supports multiple screen? Explain with an appropriate example.
Answer
Sign in to view the complete answer paper.
Explain how fragments are added to activity.
Answer
Sign in to view the complete answer paper.
Explain explicitly starting of new activities using intents.
Answer
Sign in to view the complete answer paper.
Explain passing data to intents.
Answer
Sign in to view the complete answer paper.
How Android resolves intent filters? Explain.
Answer
Sign in to view the complete answer paper.
Explain creation and displaying notifications using intents.
Answer
Sign in to view the complete answer paper.
Explain saving and retrieving data using Shared Preferences.
Answer
Sign in to view the complete answer paper.
Explain the preference framework and preference activity.
Answer
Sign in to view the complete answer paper.
Write a simple android program that reads one file and displays it on the screen.
Answer
Sign in to view the complete answer paper.
Explain content providers.
Answer
Sign in to view the complete answer paper.
Explain the creation of alarms.
Answer
Sign in to view the complete answer paper.
Write a snippet code to create a waking alarm that triggers in 20seconds.
Answer
Sign in to view the complete answer paper.
Describe the various services related to location based service (LBS).
Answer
Sign in to view the complete answer paper.