Mobile Application Development 2
Introduction
Advance mobile development with richer interfaces and platform-specific behaviour.
Topic-Wise Course Outline
- Mobile development tools and application lifecycle
- Views, view controllers and navigation
- Interface components, tables and reusable layouts
- User input, keyboard and event handling
- Rotation, device adaptation and data persistence
Study Guidance
Begin with key concepts and clear definitions. Practise each topic using examples and independent exercises. Topic-wise MCQs, short questions and worked solutions will be added after verification.
Explore Computer Science Subjects
Practice MCQs — Set 1 (Questions 1–10)
Choose the best answer, then open the explanation to check your reasoning.
Question 1. Why should a mobile app cache appropriate data locally?
- To support faster access and limited offline use
- To remove the need for authentication
- To guarantee data never changes
- To bypass all server access rules
Show correct answer and explanation
Correct answer: A. To support faster access and limited offline use
Local caching can reduce network calls and support some offline operations. Cache freshness and access permissions still require deliberate handling.
Question 2. What does a background task scheduler help mobile apps do?
- Replace all backend servers
- Run deferred work according to platform constraints
- Keep the screen permanently awake
- Ignore battery limits
Show correct answer and explanation
Correct answer: B. Run deferred work according to platform constraints
Background schedulers perform work such as synchronization when device conditions permit. The OS may defer or cancel work to protect battery and resources.
Question 3. What is an API pagination strategy used for?
- Disabling network error handling
- Increasing image dimensions
- Retrieving large datasets in manageable portions
- Encrypting every database column
Show correct answer and explanation
Correct answer: C. Retrieving large datasets in manageable portions
Pagination requests records in bounded batches. It reduces memory use and bandwidth for views that display long lists.
Question 4. Why should a mobile app handle expired access tokens?
- To display the expired token publicly
- To disable authorization checks
- To store the token in logs forever
- To restore an authorized session or require reauthentication safely
Show correct answer and explanation
Correct answer: D. To restore an authorized session or require reauthentication safely
Access tokens have limited validity. Clients should follow the backend’s secure renewal process or prompt for sign-in rather than repeatedly sending invalid credentials.
Question 5. What is optimistic UI updating?
- Displaying a predicted successful state before server confirmation and handling failure afterward
- Waiting forever before updating any button
- Encrypting a screen transition
- Disabling user feedback
Show correct answer and explanation
Correct answer: A. Displaying a predicted successful state before server confirmation and handling failure afterward
Optimistic updates can make an app feel responsive. The app must reconcile the displayed result if the server rejects the operation.
Question 6. What is a deep link in a mobile app?
- A private encryption key
- A URI that opens a specific app destination or content
- A low-level device driver
- A database transaction log
Show correct answer and explanation
Correct answer: B. A URI that opens a specific app destination or content
Deep links map supported URIs to particular app screens. They enable navigation from websites, messages and other applications.
Question 7. Why is image compression often useful in mobile apps?
- It eliminates accessibility needs
- It increases battery capacity
- It reduces transfer size and can improve loading time
- It guarantees perfect visual quality at every bitrate
Show correct answer and explanation
Correct answer: C. It reduces transfer size and can improve loading time
Appropriate compression reduces network use and often improves perceived performance. The chosen format and quality determine the tradeoff with detail.
Question 8. What does an app crash-reporting tool help developers investigate?
- The private passwords of every user
- Guaranteed root causes without debugging
- Only the color of the home screen
- Unexpected failures and associated diagnostic context
Show correct answer and explanation
Correct answer: D. Unexpected failures and associated diagnostic context
Crash reports provide stack traces and device or app context that can help identify defects. Privacy-conscious collection and consent policies remain important.
Question 9. Why should sensitive information be excluded from application logs?
- Logs can be exposed to support systems or unauthorized readers
- Logging guarantees encryption
- Log files never leave a device
- Passwords are not confidential
Show correct answer and explanation
Correct answer: A. Logs can be exposed to support systems or unauthorized readers
Secrets and personal data can leak through diagnostic logs. Log messages should avoid credentials, tokens and unnecessary user information.
Question 10. What is progressive delivery of a mobile app update?
- Changing the programming language during installation
- Releasing to a limited group before broader rollout
- Deleting the old app from every device instantly
- Skipping quality assurance
Show correct answer and explanation
Correct answer: B. Releasing to a limited group before broader rollout
Staged rollouts expose an update to a subset of users first. Monitoring helps identify regressions before a larger audience is affected.
