0% found this document useful (0 votes)
34 views9 pages

SW - Mobile Application Module

The document contains a series of multiple-choice questions focused on advanced programming concepts in Android development and expert systems. It covers various topics including Android architecture components, data storage options, UI elements, services, intents, fragments, and lifecycle methods. Each question is designed to test knowledge of Android programming practices and principles.

Uploaded by

afomh2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views9 pages

SW - Mobile Application Module

The document contains a series of multiple-choice questions focused on advanced programming concepts in Android development and expert systems. It covers various topics including Android architecture components, data storage options, UI elements, services, intents, fragments, and lifecycle methods. Each question is designed to test knowledge of Android programming practices and principles.

Uploaded by

afomh2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

100+ Choose questions on Advanced programming in Android Development

1. Which of the following is not a popular mobile operating system?

a) Android c) Windows Phone

b) iOS d) Symbian

2. Which programming language is primarily used for developing Android applications?

a) Java c) Python

b) C++ d) Swift

3. Which of the following is not a key component of the Android application architecture?

a) Activity c) Broadcast Receiver

b) Service d) Emulator

4. What is the purpose of the [Link] file in an Android project?

a) To define the application's user interface

b) To specify the application's components and permissions

c) To manage the application's data storage

d) To handle the application's network communication

5. Which of the following is not a common UI element in Android development?

a) TextView c) Spinner

b) Button d) Slider

6. What is the purpose of the LayoutInflater class in Android?

a) To create and inflate XML layout files

b) To manage the application's data storage

c) To handle the application's network communication

d) To define the application's user interface

1
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

7. Which of the following is not a common navigation pattern in Android?

a) Bottom Navigation Bar c) Tab Navigation

b) Drawer Navigation d) Carousel Navigation

8. What is the purpose of the AsyncTask class in Android?

a) To perform background tasks without blocking the main UI thread

b) To manage the application's data storage

c) To handle the application's network communication

d) To define the application's user interface

9. Which of the following is not a common data storage option in Android?

a) SharedPreferences c) Firebase Firestore

b) SQLite Database d) Cassandra Database

[Link] is the purpose of the Retrofit library in Android?

a) To simplify network communication

b) To manage the application's data storage

c) To handle the application's user interface

d) To define the application's architecture

[Link] of the following is not a common testing framework for Android development?

a) JUnit c) Selenium

b) Espresso d) Robolectric

[Link] is the purpose of the Room persistence library in Android?

a) To simplify database management

b) To handle the application's network communication

c) To define the application's user interface

d) To manage the application's data storage

2
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

[Link] of the following is not a common dependency injection library in Android?

a) Dagger c) Guice

b) Koin d) Retrofit

[Link] is the purpose of the Android Jetpack libraries?

a) To provide a set of tools and libraries for Android development

b) To manage the application's data storage

c) To handle the application's network communication

d) To define the application's user interface

[Link] of the following is not a common Android app distribution platform?

a) Google Play Store c) Apple App Store

b) Amazon Appstore d) Microsoft Store

[Link] is the purpose of the Android App Bundles?

a) To optimize the app size and delivery

b) To manage the application's data storage

c) To handle the application's network communication

d) To define the application's user interface

3
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

[Link] of the following is not a common Android app monetization strategy?

a) In-app purchases c) Subscription

b) Advertising d) Blockchain-based payments

[Link] is the purpose of the Android App Signing?

a) To secure the app and protect it from tampering

b) To manage the application's data storage

c) To handle the application's network communication

d) To define the application's user interface

[Link] is the primary purpose of an Intent in Android?

a) To start an activity

b) To define the user interface

c) To manage the application's data storage

d) To handle the application's network communication

[Link] of the following is not a type of Intent in Android?

a) Explicit Intent c) Broadcast Intent

b) Implicit Intent d) Scheduled Intent

[Link] is the difference between an Explicit Intent and an Implicit Intent?

a) Explicit Intents specify the target component, Implicit Intents do not.

b) Implicit Intents specify the target component, Explicit Intents do not.

c) Explicit Intents are used for inter-app communication; Implicit Intents are not.

d) Implicit Intents are used for inter-app communication; Explicit Intents are not.

[Link] is the primary purpose of a Service in Android?

a) To perform long-running operations in the background

b) To define the application's user interface

c) To manage the application's data storage

4
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

d) To handle the application's network communication

[Link] of the following is not a type of Service in Android?

a) Foreground Service c) Bound Service

b) Background Service d) Scheduled Service

[Link] can a Service communicate with the main UI thread of an Android app?

a) By using Intents c) By using Content Providers

b) By using Broadcast d) By using Binders


Receivers

[Link] is the primary purpose of a Content Provider in Android?

a) To manage the application's data storage

b) To perform long-running operations in the background

c) To define the application's user interface

d) To handle the application's network communication

[Link] of the following is not a common operation performed by a Content Provider?

a) Query c) Update

b) Insert d) Broadcast

[Link] can other applications access the data managed by a Content Provider?

a) By using Intents c) By using Content URIs

b) By using Broadcast d) By using Binders


Receivers

[Link] is the primary purpose of a Broadcast Receiver in Android?

a) To respond to system-wide or application-specific events

b) To perform long-running operations in the background

c) To define the application's user interface

d) To manage the application's data storage

5
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

[Link] of the following is not a common way to register a Broadcast Receiver?

a) Dynamically in the code c) Using the ContentResolver

b) Statically in the [Link] file d) Using the LocalBroadcastManager

[Link] can a Broadcast Receiver communicate with the main UI thread of an Android app?

a) By using Intents c) By using Binders

b) By using Content d) By using the main thread's


Providers messagequeue
[Link] Android component can be used to share data between different applications?

a) Activity c) Content Provider

b) Service d) Broadcast Receiver

[Link] is the purpose of the startService() and bindService() methods in Android?

a) To start and bind a Service, respectively

b) To start and bind an Activity, respectively

c) To start and bind a Content Provider, respectively

d) To start and bind a Broadcast Receiver, respectively

[Link] can an Android app receive system-wide events, such as device boot or network connectivity
changes?

a) By using Intents c) By using Content Providers

b) By using Services d) By using Broadcast Receivers

[Link] Android component can be used to perform long-running operations without blocking the
main UI thread?

a) Activity c) Content Provider

b) Service d) Broadcast Receiver

[Link] is the purpose of the ContentResolver class in Android?

a) To manage the application's data storage

b) To perform long-running operations in the background

c) To define the application's user interface

6
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

d) To interact with Content Providers

[Link] can an Android app communicate with a remote service running in a different process?

a) By using Intents c) By using Content Providers

b) By using Binders d) By using services

[Link] is the primary purpose of a Fragment in Android?

a) To create a standalone app c) To manage network requests

b) To display a user interface within an Activity d) To handle background tasks

[Link] method is called when a Fragment is first created?

a) onCreate() c) onResume()
b) onStart() d) onAttach()

[Link] lifecycle method is called when a Fragment becomes visible to the user?

a) onAttach() c) onResume()

b) onCreateView() d) onPause()

[Link] method is responsible for inflating the Fragment's layout?

a) onCreate() c) onViewCreated()

b) onCreateView() d) onAttach()

[Link] lifecycle method is called when a Fragment is no longer visible to the user?

a) onPause() c) onDestroy()

b) onStop() d) onDetach()

[Link] can you add a Fragment to an Activity's layout?

a) Using the <fragment> tag in the Activity's layout XML

b) Calling [Link]()

c) Calling [Link]()

d) Both b and c

7
ADVANCED PROGRAMMING (ANDROID & EXPERT SYSTEMS)

[Link] method is called when a Fragment is about to be destroyed?

a) onPause() c) onDestroy()

b) onStop() d) onDetach()

[Link] is the purpose of the setArguments() method in a Fragment?

a) To set the Fragment's layout c) To set the Fragment's tag

b) To pass data to the Fragment d) To set the Fragment's ID

[Link] method is called when a Fragment is no longer attached to an Activity?

a) onPause() c) onDestroy()

b) onStop() d) onDetach()

[Link] can you communicate between a Fragment and its host Activity?

a) Using the Fragment's setArguments() method

b) Using the Activity's findViewById() method

c) Using an interface implemented by the Activity

d) All of the above

[Link] lifecycle method is called when a Fragment is about to be destroyed?

a) onPause() c) onDestroy()

b) onStop() d) onDetach()

[Link] is the purpose of the FragmentTransaction class?

a) To manage the addition, removal, and replacement of Fragments

b) To handle network requests

c) To manage the lifecycle of Fragments

d) To handle background tasks

[Link] method is called when a Fragment is no longer in use and can be destroyed?

a) onPause() c) onDestroy()

b) onStop() d) onDetach()

You might also like