Mobile App Developer question bank
563 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- Android activity start order
- Network calls on the main thread
- Safely unwrapping a Swift optional
- Kotlin Elvis operator
- StatelessWidget or StatefulWidget
- When to ask for permissions
- Showing a long list
- Where to store an auth token
- Kotlin val with a mutable list
- Swift struct assignment copies
- Swift class shared reference
- Kotlin data class equality
- Compose modifier order
- Layering views in SwiftUI
- Flutter hot reload vs restart
- Why list items need keys
- What AndroidManifest.xml is for
- Crash when asking for the camera
- Why use dp and points
- Sharing text to any app
- Reading another app's files
- Saving a theme preference
- Decoding JSON with extra keys
- launch vs async in coroutines
- What await means in Swift
- What a push token is for
- Play Console rejects the build version
- Why apps are code signed
- Icon button read as just button
- Minimum touch target size
- Dart null-aware operators
- Calling setCount twice
- Testing speed on a debug build
- Supporting dark mode properly
- lateinit or by lazy
- A chain of safe calls
- What !! does on null
- What let returns
- Configuring an object with apply
- object declaration
- Where to put a factory function
- == versus === in Kotlin
- A click callback type
- What suspend means
- Sorting 2 lakh items
- Reading a file with withContext
- delay versus Thread.sleep
- Two suspend calls in a row
- A Flow that never runs
- One request per keystroke
- Launching in GlobalScope
- Making a composable reusable
- Counter jumps back to zero
- Showing 5,000 orders
- Two buttons sharing a row
- Getting a repository into a ViewModel
- Room as the source of truth
- State down, events up
- Auto-incrementing IDs in Room
- Room query in onCreate
- Replacing SharedPreferences
- Opening your own settings screen
- App Not Responding dialog
- NetworkOnMainThreadException
- Sync every 5 minutes
- Letting users pick a photo
- Colours from the user’s wallpaper
- Smoothly expanding a card
- Dart final versus const
- What a BuildContext is
- Reading the screen width
- Expanded inside a Row
- ListView.builder for a long feed
- Role of pubspec.yaml
- Future or Stream
- The Dart cascade operator
- Validating a Flutter form
- Cleaning up a TextEditingController
- Animating a size change simply
- Hero animation between screens
- Flutter build for Google Play
- Testing on a real device
- What flutter doctor reports
- Text outside a Text component
- Default flexDirection in React Native
- What flex: 1 does
- Why React Native uses Hermes
- What Metro does
- What EAS Build is for
- Platform-specific component files
- Using Platform.select
- Content under the notch
- Choosing a touch component
- Saving an object in AsyncStorage
- iOS build fails after adding a library
- Detecting app moving to background
- End-to-end tests for a React Native app
- TypeScript in new React Native apps
- Remote image does not appear
- How Flutter and React Native draw UI
- Picking a framework for a React team
- Generating JSON code in Dart
- Integer division in Dart
- String interpolation with an expression
- Required named parameters
- Material 3 theming from one colour
- Adapting to available width
- Platform-looking switches
- Speeding up mobile CI builds
- Static checks for a Flutter codebase
- Measuring test coverage in Flutter
- Expo Go and custom native code
- onPause versus onStop
- iOS app moved to the background
- viewDidLoad or viewWillAppear
- Cold start versus warm start
- Tabs that forget their scroll position
- Minimum text contrast
- Margins that work in RTL
- Points to pixels on a @3x iPhone
- Icons that stay sharp
- Loading images in a feed
- Where to keep a cart of products
- Files vanish from the cache folder
- Spinner that never stops
- Splash screens on Android 12 and later
- Right keyboard for a phone number
- Who actually delivers a push
- Sending one alert to many users
- Badge shows the wrong number
- Daily reminder without a server
- Users disable all notifications
- Runtime permissions on Android
- Google Play Data safety section
- Secret key in the app code
- HTTP request blocked on iOS
- Blocking screenshots of sensitive screens
- Logging the login request
- Copying a one-time password
- A standard for mobile app security
- What to clear on logout
- Validation only in the app
- Google Play release tracks
- Reading crash-free users
- Finding where users give up
- Urgent fix waiting in review
- Rejected for app completeness
- Why cut a release branch
- Sharing test builds with QA
- Writing release notes
- let compared with var
- What guard let is for
- Giving an optional a default
- Type of an optional chain
- Force unwrapping nil
- Short form of if let
- A switch without default
- What try? returns
- Reading a missing key
- Putting a struct in a Set
- Summing with reduce
- A computed property
- Changing a struct inside a method
- Marking UI code with @MainActor
- Mapping with a key path
- Closing a sheet from inside it
- ForEach over a custom struct
- viewDidLoad vs viewWillAppear
- Using a SwiftUI view in UIKit
- Fetching data with async/await
- HTTP request blocked
- Refresh token in UserDefaults
- Localising strings in Xcode
- Previewing a SwiftUI view
- Surviving screen rotation
- remember vs rememberSaveable
- @State vs @Binding in SwiftUI
- Offline-first data flow
- React Native New Architecture
- Reliable background upload
- Verified links that open the app
- Out of memory with images
- Exposing UI state from a ViewModel
- LaunchedEffect keyed on Unit
- collectAsStateWithLifecycle benefit
- Owning an @Observable model
- SwiftUI .task when leaving a screen
- Updating UI from a detached task
- viewModelScope after the screen closes
- Blocking file read in a coroutine
- Room DAO returning a Flow
- Room version bump without migration
- const constructors in Flutter
- setState called after dispose
- FutureBuilder refetching on rebuild
- Listener without effect cleanup
- Unreadable iOS crash stack traces
- Timer counter stuck at one
- Relying on silent pushes for sync
- Notifications missing on Android 13
- Duplicate posts in an infinite feed
- Retry policy after an outage
- Avoiding repeated config downloads
- Flaky UI test timing
- Unit testing a ViewModel
- Turning off a feature without a release
- What fastlane match solves
- Release build breaks JSON parsing
- also compared with apply
- Adding a subclass to a sealed type
- Modelling loading and error
- When const val is allowed
- Changing a copied data class
- How many times map runs
- Smart cast refused
- Thread safety of by lazy
- Reacting to property changes
- When coroutineScope returns
- One widget load fails
- Time for two async calls
- Giving up after 3 seconds
- StateFlow did not emit
- Snackbar shows again after rotation
- Stale search results
- When combine first emits
- Channel vs SharedFlow
- Speeding up a slow collector
- Adding to a list in state
- Value stuck after the id changes
- Mixed item types in a LazyColumn
- Cleaning up a sensor listener
- Launching from a click handler
- Passing a value deep without parameters
- Content hidden under the top bar
- Passing an order to the detail screen
- Type-safe routes in Navigation Compose
- Choosing a Hilt scope
- Do you need use cases
- Keeping a search query after process death
- Adding a token to every request
- Sync scheduled twice
- User denied the camera once
- Counting build variants
- Activity stored in a ViewModel
- Analytics logged dozens of times
- Sharing a PDF with another app
- Clicking a button in a Compose test
- Sharing code with iOS
- Checking app integrity
- Reading a late variable too early
- Getting a result back from a screen
- Yellow and black overflow stripes
- ListView inside a Column
- Caret version range in pubspec
- Should an app commit pubspec.lock
- Loading data in initState
- How isolates share data
- Adding a method to String
- Returning two values with a record
- Reusing behaviour with a mixin
- Factory constructor for a singleton
- context.watch or context.read
- ref.watch versus ref.read in Riverpod
- Bloc or Cubit
- Calling native code from Flutter
- What Impeller changes
- Dev, staging and prod builds
- Passing config with dart-define
- What a golden test checks
- Taps ignored on empty space
- What expo prebuild does
- Limits of over-the-air updates
- Keyboard covers the input
- navigate versus push in a stack
- Passing a callback as a route param
- Refreshing when a screen regains focus
- Mapping URLs to screens
- What Fabric is
- Why use react-native-gesture-handler
- Why teams adopt MMKV
- Remote images flicker on scroll
- console.log in production builds
- What autolinking does
- Handling the Android back button
- Layout ignores device rotation
- Requesting the right image size
- Large text breaks the layout
- Querying in React Native Testing Library
- Native module undefined in Jest
- Debugging a modern React Native app
- Sharing screens with the web
- What Kotlin Multiplatform shares
- Adding Flutter to an existing app
- React Native in a native app
- How Dart is compiled in Flutter
- Running two API calls together
- What an async* function returns
- Closing a StreamController
- Updating an immutable state class
- Using BuildContext after an await
- Protecting routes with go_router
- Collapsing header plus a list
- Localizing a Flutter app
- Labelling a custom-painted chart
- App lifecycle in Flutter
- Shrinking a React Native Android app
- EXPO_PUBLIC variables and secrets
- Unreadable JS stack traces in crashes
- Expo push token or FCM token
- Faking a repository in a Dart test
- setState called during build
- Effect runs on every render
- What a ViewModel survives
- Why SceneDelegate exists
- State hoisting in Jetpack Compose
- The @Observable macro in SwiftUI
- What triggers an ANR
- Supporting Dynamic Type on iOS
- Supporting Arabic in a UAE app
- Formatting dates for users
- Layouts for tablets and foldables
- Converting dp to pixels
- Room query on the main thread
- Why move to DataStore
- Slow filter on a local table
- Inserting 5,000 rows slowly
- Showing data instantly on open
- Optimistic like button
- Which app process is killed first
- Shrinking bundled images
- Background jobs delayed for some users
- Podcast stops when the screen locks
- Pushes stop after a reinstall
- Asking for push without a prompt
- Reply from the notification
- Push payload too large
- APNs key or certificate
- Explaining why after a denial
- Permission permanently denied
- Which iOS location permission to ask
- User grants only approximate location
- Choosing a profile photo on Android
- Using the advertising identifier on iOS
- OAuth login from a mobile app
- Cleartext HTTP fails on Android
- Trusting a debug proxy only in debug
- What R8 obfuscation gives you
- Encrypting a local database
- Sensitive data in device backups
- Deep link sets the payment amount
- Adding a free analytics SDK
- Card number in the app switcher
- TestFlight internal and external testers
- How iOS phased release works
- Upload rejected for the same version
- Play target API requirement
- Paying for groceries in an iOS app
- Account deletion in the app
- Making users update
- Obfuscated Android crash traces
- Remote config on first launch offline
- Asking for a store rating
- CI build differs from a laptop build
- Choosing devices to test on
- Reading an associated value
- Returning some View from two branches
- Constraining a generic function
- When @escaping is needed
- Order of defer blocks
- Result in a completion handler
- JSON key differs from property
- Floating-point money errors
- Adding past Int8.max
- Getting the first character
- Parsing numbers from text
- Reacting when a value changes
- private or fileprivate
- Passing a value to change it
- Why delegates are weak
- Two async let calls
- Downloading a list of images
- Calling into an actor
- Cancelling a long loop
- Reading a file line by line
- Binding to an @Observable model
- Opening a deep link three screens in
- Data loaded again and again
- Sorting inside body
- Showing a sheet for a tapped order
- Showing SwiftData results
- Wrapping a UIKit view in SwiftUI
- Saving a draft when the app leaves
- Handling the APNs device token
- Swift Testing assertions
- Images reload while scrolling
- Combine sink never fires
- Testing process death
- Too many recompositions
- Memory leak with a closure
- Offline edit conflicts
- Jank when parsing a big JSON
- Crash spike during a release
- Certificate pinning trade-off
- Slow cold start
- Collecting a cold Flow twice
- Polling loop that ignores cancellation
- One failing request in coroutineScope
- Actor reentrancy in an image cache
- Task vs Task.detached
- unowned self in a network callback
- When a Swift array is copied
- derivedStateOf for a scroll button
- Wrong row expanded after insert
- Stale callback in a long effect
- PendingIntent crash on Android 12
- Foreground service fails on Android 14
- Exported activity loading any URL
- Keychain read fails in background
- When a BGAppRefreshTask runs
- Swapped Flutter tiles keep colors
- Dart microtask and event order
- Animation stutters while JS is busy
- Memoized rows still re-render
- Stopping cheaters calling the API
- Parallel token refresh logs users out
- Duplicate orders from offline retries
- FCM handler skipped in background
- Deep link lost after login
- Extension on a subclass
- Property declared in the class body
- Data class holding an array
- Checking a generic type at runtime
- return inside forEach
- Assigning list types
- Mixing up two Long IDs
- Why viewModelScope uses Main.immediate
- Handler on a child coroutine
- Suspending in finally after cancel
- Why WhileSubscribed(5000)
- Where flowOn applies
- Exception inside collect
- Locking around a suspend call
- Child list never skips
- Back goes to the login screen
- Loading orders with their items
- Two DataStores for one file
- Refreshing an expired token
- Notification opens with old data
- App Links fail from Play Store
- Content under the status bar
- Back handler stopped working
- Testing a 30-second retry
- Decryption fails after new fingerprint
- Recomposing on every scroll pixel
- Manifest receiver never fires
- Observer called twice after back
- ViewModel needs a runtime ID
- Collecting a Flow in a Fragment
- Widget, element and render trees
- Listening to a stream twice
- Sealed classes and exhaustive switch
- Overriding == without hashCode
- When InheritedWidget dependents rebuild
- AnimationController and vsync
- Why teams use Pigeon
- Calling a C library from Dart
- Reading the performance overlay
- A spinner repaints the whole screen
- Fading a widget cheaply
- shrinkWrap lists inside a scroll view
- Obfuscating a Flutter release
- pumpAndSettle times out
- Jumping to row 800 in a FlatList
- Tuning FlatList windowSize
- State leaking in FlashList rows
- OTA update crashes older installs
- Turbo Modules and Codegen
- What JSI enables
- Bridgeless mode in React Native
- Why Reanimated stays smooth
- Reading a shared value during render
- Fast Refresh loses state
- Search results from an old query
- Selected row does not highlight
- canOpenURL returns false on iOS
- Old library on the New Architecture
- Flutter web renderers
- Plugin call fails in a background isolate
- List<dynamic> is not a List<String>
- dynamic versus Object?
- Flutter's layout rule
- Container ignores its width
- Photo grid uses too much memory
- Blocking back with unsaved changes
- Heavy work during a screen transition
- What an error boundary does not catch
- Reading the React Native perf monitor
- Fixed-height rows in a Flutter list
- Resetting a form when the user changes
- Turning a callback API into a Future
- Metro cannot find a shared package
- Using SavedStateHandle
- App killed during a slow launch
- Speeding up first launch on Android
- Duplicate screens from notification taps
- Toolbar under the status bar on Android 15
- Core Data objects across threads
- Readers blocked by a writer
- Large downloads in Documents on iOS
- Downloads that continue after the app closes
- Periodic sync every 5 minutes
- Trusting a connectivity check
- Replaying queued offline actions
- App killed in the background on iOS
- Deleted items come back after sync
- Trusting the phone's clock
- Changing a channel's importance
- Images in iOS push notifications
- Alarm app on Android 14
- Requesting background location
- Gallery app on Android 13
- User selects "Limited" photo access
- Apple privacy manifest
- Login page inside a WebView
- Detecting a stolen refresh token
- Relying on jailbreak detection
- Exposing native code to a WebView
- Attacker installs a CA certificate
- Overlay tricks the user into tapping
- Biometric login that can be bypassed
- Reading roles from a JWT in the app
- Lost the Android upload key
- Renaming a field in the API
- Play vitals thresholds
- Shrinking the install with feature modules
- Fastest fix for a live bug
- Rolling back a bad release
- New Play developer account cannot publish
- Raising the minimum OS version
- Extension method that is not a requirement
- some Shape or any Shape
- Closure capture list
- Typed throws
- imageURL is always nil
- Date decoding fails on milliseconds
- Counting an emoji
- Passing a class into a Task
- Global cache in Swift 6
- Using nonisolated in an actor
- Turning a delegate into an AsyncSequence
- Bridging a callback with a continuation
- Blocking inside an async function
- How if works in a SwiftUI body
- What the $ prefix gives
- Rows showing the wrong data
- Wrong photo in a reused cell
- sync on the main queue
- Universal links open Safari
- App rejected for UserDefaults use
- @State ignores the new value
- Importing 50,000 rows in SwiftData
- Which views update with @Observable
- Search that restarts on new text