Mobile Application Development 2

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?

  1. To support faster access and limited offline use
  2. To remove the need for authentication
  3. To guarantee data never changes
  4. 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?

  1. Replace all backend servers
  2. Run deferred work according to platform constraints
  3. Keep the screen permanently awake
  4. 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?

  1. Disabling network error handling
  2. Increasing image dimensions
  3. Retrieving large datasets in manageable portions
  4. 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?

  1. To display the expired token publicly
  2. To disable authorization checks
  3. To store the token in logs forever
  4. 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?

  1. Displaying a predicted successful state before server confirmation and handling failure afterward
  2. Waiting forever before updating any button
  3. Encrypting a screen transition
  4. 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?

  1. A private encryption key
  2. A URI that opens a specific app destination or content
  3. A low-level device driver
  4. 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?

  1. It eliminates accessibility needs
  2. It increases battery capacity
  3. It reduces transfer size and can improve loading time
  4. 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?

  1. The private passwords of every user
  2. Guaranteed root causes without debugging
  3. Only the color of the home screen
  4. 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?

  1. Logs can be exposed to support systems or unauthorized readers
  2. Logging guarantees encryption
  3. Log files never leave a device
  4. 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?

  1. Changing the programming language during installation
  2. Releasing to a limited group before broader rollout
  3. Deleting the old app from every device instantly
  4. 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.