Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 32 pages
Exam (elaborations)

D308 ITSW 3034 Mobile Application Dvpt (Android) - Objective Assessment - WGU 2025.

Document preview thumbnail
Preview 4 out of 32 pages

D308 ITSW 3034 Mobile Application Dvpt (Android) - Objective Assessment - WGU 2025.D308 ITSW 3034 Mobile Application Dvpt (Android) - Objective Assessment - WGU 2025.D308 ITSW 3034 Mobile Application Dvpt (Android) - Objective Assessment - WGU 2025.

Content preview

D308 ITSW 3034 Mobile Application
Development (Android)

Objective Assessment Review

(Questions & Solutions)

2025




©2025

, Question 1
A development team is optimizing an Android app’s responsiveness.
When an activity is first launched, which of the following lifecycle
methods is guaranteed to be called exactly once before the activity
becomes visible?
- A. onStart()
- B. onResume()
- C. onCreate()
- D. onPause()

ANS: C
Rationale: The onCreate() method is called only once during the
lifetime of an activity instance to perform all initial setup (such as
inflating the layout and binding data). This initialization step is key to
establishing a stable baseline for the activity’s further lifecycle.

---

Question 2
Which Android Jetpack component is specifically designed to store and
manage UI-related data in a lifecycle-conscious way, thereby surviving
configuration changes such as device rotations?
- A. LiveData
- B. ViewModel
- C. Room
- D. Navigation Component

ANS: B
Rationale: The ViewModel component is intended to store and manage
UI data and survives configuration changes, preventing unnecessary
reloading of data when the activity or fragment is recreated.

---
©2025

, Question 3
A mobile app relies on offline-first capabilities and must synchronize data
when an Internet connection becomes available. Which Android
architecture component best facilitates asynchronous background
processing for this purpose?
- A. AsyncTask
- B. JobScheduler
- C. WorkManager
- D. IntentService

ANS: C
Rationale: WorkManager is a robust, lifecycle-aware component meant
for deferrable, asynchronous tasks that need reliable execution across
app restarts and even after system reboots, making it ideal for offline-
first syncing.

---

Question 4
When designing a complex user interface for an Android application that
must run on a wide range of devices, which design technique best
ensures that layouts adapt fluidly to different screen sizes and
orientations?
- A. Fixed pixel-based layouts
- B. Responsive layouts using constraint layouts and resource qualifiers
- C. Hard-coded dimensions in Java
- D. Utilizing only relative layouts

ANS: B
Rationale: Using responsive layouts (e.g., ConstraintLayout or
GridLayout) combined with resource qualifiers enables interfaces to scale
and reflow properly on different devices and orientations, providing
optimal usability across the board.


©2025

, ---

Question 5
Which Android persistence library leverages an abstraction layer over
SQLite to reduce boilerplate code while providing compile-time
verification of SQL queries?
- A. Realm
- B. GreenDAO
- C. Room
- D. ORMLite

ANS: C
Rationale: Room is the modern persistence library recommended by
Android that simplifies database access with minimal boilerplate while
ensuring safety with compile-time verification.

---

Question 6
A development team wants to ensure that UI updates occur only when
the activity is in a valid lifecycle state. Which Android component helps
accomplish this by holding observable data that respects lifecycle
changes?
- A. Service
- B. LiveData
- C. BroadcastReceiver
- D. ContentProvider

ANS: B
Rationale: LiveData is lifecycle-aware and ensures that observers
receive updates only when their corresponding activities or fragments
are in active states, preventing potential crashes or unexpected behavior.

---


©2025

Document information

Uploaded on
May 28, 2025
Number of pages
32
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown
$18.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EmilioOchieng
4.1
(24)
Sold
148
Followers
17
Items
4032
Last sold
3 months ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions