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?
- Activity
- BroadcastReceiver
- ContentProvider
- 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?
- To store all user passwords
- To declare components, permissions and app metadata
- To render every button
- 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?
- The network cannot transmit on mobile devices
- Blocking the main thread can freeze the user interface
- The requests would automatically be encrypted
- 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?
- A request to perform an operation, such as opening another screen
- A declaration of screen pixel density only
- A database index
- 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?
- It guarantees zero bugs
- It improves maintainability and testability
- It eliminates the need for tests
- 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?
- Request every available permission at startup
- Request only permissions needed for a user-facing feature
- Never explain permission use
- 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?
- To encrypt images
- To track the sequence of destinations and support back navigation
- To allocate CPU registers
- 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?
- Hard-code the same pixel coordinates everywhere
- Use responsive layouts and scalable dimensions
- Disable landscape layouts permanently
- 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?
- Tokens are not sensitive
- A stolen token may let an attacker impersonate a session
- Tokens are always public information
- 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?
- Close immediately without explanation
- Show a clear error and offer an appropriate retry
- Delete local user data
- 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.
