Questions and Answers | A+ Solutions
API Level Fragmentation occurs due to:
Select one:
a. Android updates are typically slow to reach actual devices
b. Google releases very frequent updates
c. Android steep learning curve
d. Third party developers - Answ a
Broadcast Receivers can be activated by Activities or Services
Select one:
- True
- False - Answ False
Which of the following Android app components has the most to do with UI?
Select one:
a. Services
b. Activities
c. Broadcast Receivers
d. Content Providers - Answ b
Which of the following is activated by an Intent?
Select one:
a. Content Providers & Broadcast Receivers
b. Broadcast Receivers & Activities & Services
c. Activities
d. Services & Broadcast Receivers
e. Activities & Services & Content Providers - Answ b
In order to share the data of your app with other apps, you have to use
Select one:
,a. Activities
b. Services
c. Content Providers
d. Intents - Answ c
A service is a component that runs in the background
Select one:
- True
- False - Answ True
With respect to Activities, which of the following are incorrect?
Select one or more:
a. An app can have multiple activities
b. New activities can be activated using the 'New' keyword
c. Activities can only be started from their apps
d. An activity represents a single screen with a user interface - Answ b, c
With respect to API Fragmentation, which of the following is incorrect?
Select one:
a. Android applications are forward-compatible with new versions of the Android
b. Forward Compatibility occurs when an old apps running on new platform
versions
c. Backward Compatibility means new apps running on old platform versions
d. Backward compatibility problem cannot be solved - Answ d
When an application is compiled, references to the application resources can be
found in---
Select one:
a. Context
b. Application Manifest File
c. Class R
d. Resources folder - Answ c
All platform releases are given a friendly code name
Select one:
, - True
- False - Answ False
Which of the following is not true about a Shared Preference?
a. The only possible storage format is key/value pairs
b. They reference files on a device's non-volatile memory
c. There is a default one for each Activity
d. You need an editor to read from one
e. You need an editor to write to one - Answ b
Which of the following Activity lifecycle callbacks cannot be called next after
onStop() has been called?
a. onCreate
b. onRestart
c. onResume
d. onDestroy - Answ c
Android supplies a Bundle object to the onCreate, onSaveInstanceState,
onRestoreInstanceState Activity callbacks when they are called. Is it the same
Bundle object?
a. Yes
b. No
c. It depends on the Activity's lifecycle state - Answ a
Which of the following is false with respect to Activity lifecycle callbacks?
a. They are called from app code
b. Android calls them as a result of user interactions
c. Android calls them as a result of system actions
d. If we don't override them in an Activity sub class they will not run at all for that
sub class's instance
e. If you think more than one of the above are false, select this option - Answ e
Which of the following does happen as the result hitting the back key?
a. If you think more than one of a), b) and c) happens, select this option