Mobile App Design Technology & Digital Applications 2 — Questions and Answers
Question 1: Which mobile architecture pattern separates the app into Model, View, and ViewModel components?
- MVC
- MVVM (Correct answer)
- MVP
- VIPER
Correct answer: MVVM
MVVM (Model-View-ViewModel) uses a ViewModel to expose data streams and handle UI logic, keeping the View passive.
Question 2: What is the primary purpose of an API gateway in a mobile app backend?
- Store user data locally
- Act as a single entry point routing requests to microservices (Correct answer)
- Render UI components server-side
- Compress images before upload
Correct answer: Act as a single entry point routing requests to microservices
An API gateway serves as a unified entry point that routes client requests to appropriate backend microservices and handles cross-cutting concerns.
Question 3: In mobile development, what does 'lazy loading' refer to?
- Loading all assets at app startup
- Deferring resource or data loading until it is actually needed (Correct answer)
- Caching data permanently on device
- Preloading the next screen before navigation
Correct answer: Deferring resource or data loading until it is actually needed
Lazy loading defers the loading of non-critical resources until the moment they are required, improving initial load performance.
Question 4: Which protocol is most commonly used for real-time bidirectional communication in mobile apps?
- HTTP/1.1
- FTP
- WebSocket (Correct answer)
- SMTP
Correct answer: WebSocket
WebSocket provides full-duplex communication over a single TCP connection, making it ideal for real-time features like chat and live updates.
Question 5: What is the role of a Content Delivery Network (CDN) in mobile app performance?
- Encrypting user passwords
- Serving static assets from geographically closer servers (Correct answer)
- Managing push notification delivery
- Compiling app code at runtime
Correct answer: Serving static assets from geographically closer servers
A CDN distributes static assets across edge servers worldwide so users receive content from the nearest location, reducing latency.
Question 6: Which local storage option on iOS uses key-value pairs and is best for small preference data?
- Core Data
- SQLite
- UserDefaults (Correct answer)
- Keychain
Correct answer: UserDefaults
UserDefaults provides a simple key-value store intended for user preferences and small amounts of non-sensitive data.
Question 7: What is 'deep linking' in the context of mobile apps?
- Linking to pages deep within a website's sitemap
- A URL that opens a specific screen inside an installed app (Correct answer)
- Connecting to a database at a low network layer
- Embedding hyperlinks inside PDF documents
Correct answer: A URL that opens a specific screen inside an installed app
Deep linking uses URLs or URIs to navigate users directly to a specific content screen within an installed mobile application.
Which mobile architecture pattern separates the app into Model, View, and ViewModel components?