Mobile Application Development 1

Mobile Application Development 1

Introduction

Learn the foundations of designing mobile applications for different devices and operating systems.

Topic-Wise Overview

Mobile Platforms

Android, iOS and mobile platform architectures

Interface Design

Views, fragments, navigation, preferences and device orientation

Device Features

Notifications, messaging, maps and built-in applications

Data and Networking

Persistence, data sharing, HTTP and web services

Deployment

Threading, performance, power constraints and app publication

Study Guidance

Start with the core definitions, follow practical examples and check your understanding with independent exercises. Topic-wise MCQs, short questions and step-by-step solutions are planned for this subject.

Explore Other Subjects

Browse Computer Science subjects

Practice MCQs — Set 1 (Questions 1–10)

Choose the best answer, then open the explanation to check your reasoning.

Question 1. Which Android component is commonly used to display a user-facing screen?

  1. Activity
  2. BroadcastReceiver
  3. ContentProvider
  4. Service
Show correct answer and explanation

Correct answer: A. Activity

An Activity serves as an entry point for user interaction and commonly hosts a screen. Other Android components serve different responsibilities.

Question 2. What is the purpose of an Android application’s manifest file?

  1. To store all user passwords
  2. To declare components, permissions and app metadata
  3. To render every button
  4. To replace the Android operating system
Show correct answer and explanation

Correct answer: B. To declare components, permissions and app metadata

AndroidManifest.xml declares essential application properties, including components and requested permissions. The operating system uses this metadata when installing and running the app.

Question 3. Why should long-running network requests not execute on the Android main thread?

  1. The network cannot transmit on mobile devices
  2. Blocking the main thread can freeze the user interface
  3. The requests would automatically be encrypted
  4. The app would not require permissions
Show correct answer and explanation

Correct answer: B. Blocking the main thread can freeze the user interface

The main thread handles UI events and rendering. Blocking it with network work can make the app unresponsive, so asynchronous operations are preferred.

Question 4. What does an Android Intent commonly express?

  1. A request to perform an operation, such as opening another screen
  2. A declaration of screen pixel density only
  3. A database index
  4. A static website layout
Show correct answer and explanation

Correct answer: A. A request to perform an operation, such as opening another screen

An Intent describes an operation to perform and may identify a target component. Activities and other components can communicate using intents.

Question 5. What is a key benefit of separating UI code from business logic?

  1. It guarantees zero bugs
  2. It improves maintainability and testability
  3. It eliminates the need for tests
  4. It forces every screen to use a database
Show correct answer and explanation

Correct answer: B. It improves maintainability and testability

Separation of concerns makes UI and application rules easier to modify independently. Business logic can often be tested without launching a full screen.

Question 6. Which principle should guide mobile app runtime permission requests?

  1. Request every available permission at startup
  2. Request only permissions needed for a user-facing feature
  3. Never explain permission use
  4. Store permission approvals in plaintext files
Show correct answer and explanation

Correct answer: B. Request only permissions needed for a user-facing feature

Least privilege reduces unnecessary access to sensitive device capabilities. Users should be asked only when the feature genuinely requires the permission.

Question 7. What is the purpose of an app navigation stack?

  1. To encrypt images
  2. To track the sequence of destinations and support back navigation
  3. To allocate CPU registers
  4. To validate SQL queries
Show correct answer and explanation

Correct answer: B. To track the sequence of destinations and support back navigation

A back stack records navigation history so the user can return to previous destinations. Proper stack management makes navigation predictable.

Question 8. Which approach helps an app remain usable on small and large screens?

  1. Hard-code the same pixel coordinates everywhere
  2. Use responsive layouts and scalable dimensions
  3. Disable landscape layouts permanently
  4. Render all text as images
Show correct answer and explanation

Correct answer: B. Use responsive layouts and scalable dimensions

Responsive layouts adjust component positions and sizes to available space. Scalable text and density-independent dimensions help across devices.

Question 9. Why is secure storage important for authentication tokens on a phone?

  1. Tokens are not sensitive
  2. A stolen token may let an attacker impersonate a session
  3. Tokens are always public information
  4. It makes authentication unnecessary
Show correct answer and explanation

Correct answer: B. A stolen token may let an attacker impersonate a session

Session and access tokens can grant access to accounts or services. Platform-backed secure storage and short token lifetimes reduce exposure.

Question 10. What should an app do when a network request fails?

  1. Close immediately without explanation
  2. Show a clear error and offer an appropriate retry
  3. Delete local user data
  4. Repeat requests infinitely without delay
Show correct answer and explanation

Correct answer: B. Show a clear error and offer an appropriate retry

Network failures are expected in mobile environments. Clear feedback, bounded retries and preservation of user input make the application more reliable.