Mobile and cross-platform development: React Native, Flutter, PWAs and native apps – Front End interview prep

261 interview-style multiple-choice questions on Mobile and cross-platform development: React Native, Flutter, PWAs and native apps, organized by topic: concepts, scenarios, code to read and tradeoffs, each with a short explanation. Learn the 66 key terms with the flashcards first, then test yourself.

Take the practice test · Flashcards · All study tools

What it covers

  1. 14.1 Choosing native, cross-platform, hybrid or PWA
  2. 14.2 React Native fundamentals and the New Architecture
  3. 14.3 Expo, builds and over-the-air updates
  4. 14.4 Flutter and Dart
  5. 14.5 Native iOS and Android: Swift, SwiftUI, Kotlin and Compose
  6. 14.6 App lifecycle, performance and threading
  7. 14.7 PWAs and the mobile web
  8. 14.8 Permissions, storage, security and deep links
  9. 14.9 Testing, release and app store distribution

Key terms

14.1 Choosing native, cross-platform, hybrid or PWA

Native app
App built with the platform's own language and SDK
Cross-platform
One codebase targeting several platforms
PWA
Installable, offline-capable web app
WebView
Embedded browser view inside a native app
Hybrid app
A web app in a native WebView shell
TWA
Publishes a PWA on Google Play
Brownfield
Adding cross-platform screens to a native app
Server-driven UI
Layouts sent by the server

14.2 React Native fundamentals and the New Architecture

React Native
Framework that renders React components as native views
Expo
Toolchain and framework built around React Native
FlatList
Virtualized list component in React Native
OTA update
Updating an app's JavaScript without an app store release
New Architecture
Fabric, Turbo Modules and JSI
JSI
Lets JS call native code directly
Hermes
React Native's default JS engine
Metro
React Native's JavaScript bundler
Reanimated
Animations as UI-thread worklets
FlashList
A recycling list for long lists

14.3 Expo, builds and over-the-air updates

Expo Go
A sandbox app for trying Expo projects
Development build
Your app's debug build with its native code
CNG
Native folders generated from config
Config plugin
Code that edits native config during prebuild
Runtime version
Matches OTA updates to compatible builds
EAS Update
Expo's OTA update service

14.4 Flutter and Dart

Flutter
Google's UI toolkit that renders its own widgets with Dart
Main (UI) thread
Thread that handles input and drawing
ANR
Android's Application Not Responding dialog
Keychain / Keystore
Secure storage for secrets on iOS and Android
Hot reload
Injects code changes while keeping state
Widget
Flutter's building block for UI
Isolate
Dart's unit of parallelism, with separate memory
Platform channel
Messages between Dart and native code
pubspec.yaml
Flutter's dependency and asset file
Impeller
Flutter's rendering engine

14.5 Native iOS and Android: Swift, SwiftUI, Kotlin and Compose

@State
SwiftUI view-owned state
@Observable
Swift macro for observable classes
Actor
Swift type isolating mutable state
Composable
A Compose function that emits UI
State hoisting
Moving state up, passing callbacks down
ViewModel
Holds UI state across configuration changes

14.6 App lifecycle, performance and threading

Frame budget
Time per frame at a refresh rate
Cold start
Launching an app with no process running
Baseline Profile
Precompiled hot code paths on Android
Process death
System killing a background app's process
Doze
Android battery mode deferring background work

14.7 PWAs and the mobile web

Maskable icon
An icon with padding for OS shape masks
App shell
Cached minimal UI loaded instantly
Network-first
Try the network, fall back to cache
Background Sync
Retries sends when back online
Workbox
Google's service worker libraries

14.8 Permissions, storage, security and deep links

Universal link
HTTPS link that opens an iOS app
App Link
Verified Android HTTPS deep link
APNs
Apple Push Notification service
ATS
iOS App Transport Security
Play Integrity
Checks requests come from a genuine app
Scoped storage
Limits Android apps to their own files

14.9 Testing, release and app store distribution

Web app manifest
JSON file describing an installable web app
Stale-while-revalidate
Serve from cache, then refresh it in the background
TestFlight
Apple's beta-testing service
Code signing
Cryptographic proof of an app's publisher and integrity
XCUITest
Apple's UI testing framework
Espresso
Android View UI testing
Golden test
Image comparison of a rendered widget
Staged rollout
Releasing to a percentage of users
dSYM
iOS debug symbols for crash reports
versionCode
Android build number that must increase

Sample practice questions

  1. What is the main tradeoff between fully native apps (Swift/Kotlin) and cross-platform frameworks?

    1. There's no tradeoff; both approaches produce identical apps
    2. Native apps can't use the camera, while cross-platform apps can
    3. Native: best platform access, two codebases; cross-platform: shared code
    4. Cross-platform apps can't be published to the app stores at all

    Answer: C. Native: best platform access, two codebases; cross-platform: shared code Teams pick based on skills, performance needs and how much platform-specific UI they want.

  2. How does React Native render its UI?

    1. It renders HTML and CSS inside a hidden WebView
    2. It draws every pixel itself on a canvas, like a game engine
    3. Components map to real native views, not HTML in a WebView
    4. It streams the rendered UI from a server as video

    Answer: C. Components map to real native views, not HTML in a WebView `<View>` and `<Text>` become platform views like `UIView` and `android.view.View`.

  3. What is Expo?

    1. A separate programming language designed for mobile apps
    2. A competitor to React that renders UIs without using JSX
    3. A framework and toolset for React Native, with cloud builds and OTA updates
    4. Apple's official tool for testing iOS apps on real devices

    Answer: C. A framework and toolset for React Native, with cloud builds and OTA updates The React Native team recommends starting new apps with a framework like Expo.

  4. How does Flutter render its UI?

    1. It maps each widget to a native iOS or Android view
    2. It draws its own widgets with its own engine (Impeller)
    3. It opens the device's default browser
    4. It renders HTML and CSS inside a WebView

    Answer: B. It draws its own widgets with its own engine (Impeller) Owning the rendering gives consistent pixels across platforms.

  5. Which language is used for modern native iOS development?

    1. Kotlin, with Jetpack Compose
    2. Dart, with the Flutter SDK
    3. Swift, with SwiftUI or UIKit
    4. C#, with Xamarin.iOS only

    Answer: C. Swift, with SwiftUI or UIKit Objective-C is the older language still found in legacy code.

  6. Why must long-running work, like parsing a large file, stay off the UI thread on mobile?

    1. The UI thread doesn't have permission to read files
    2. The main thread only runs while on battery power
    3. It freezes the UI, and Android may show an ANR dialog
    4. The app stores reject apps that create extra threads

    Answer: C. It freezes the UI, and Android may show an ANR dialog Use background threads, isolates, workers or async I/O.

  7. What is a Progressive Web App (PWA)?

    1. A mini-app that can only run inside another host app
    2. An installable, offline-capable website using a manifest and service worker
    3. A website that only works on desktop browsers, not on phones
    4. A native Android app written in Java and distributed through Google Play

    Answer: B. An installable, offline-capable website using a manifest and service worker PWAs avoid app stores but get less native API access, especially on iOS.

  8. How should an app request a sensitive permission like location?

    1. All at once on first launch, before the user does anything
    2. When the feature needs it, with a reason, handling denial
    3. Only by mentioning it in the app store listing
    4. Never; apps get all permissions automatically at install

    Answer: B. When the feature needs it, with a reason, handling denial Both iOS and Android require usage descriptions and let users revoke permissions at any time.

  9. What must happen before an app update reaches users on the App Store or Google Play?

    1. Users must download the source and compile it
    2. The update must be emailed to each user to install
    3. Nothing; changes appear instantly on all phones
    4. A signed build is uploaded and passes store review

    Answer: D. A signed build is uploaded and passes store review Review times vary, which is one reason OTA updates for JavaScript are popular.

  10. What is a hybrid WebView app (like Cordova or Capacitor)?

    1. A native app that never loads any web content
    2. A server that streams a video of the app to the phone
    3. An app that renders native widgets directly from Dart code
    4. A web app in a native shell's WebView, with plugins for device features

    Answer: D. A web app in a native shell's WebView, with plugins for device features It reuses web skills, but complex UIs may feel less native.

Practice all 261 questions

More Front End