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
- 14.1 Choosing native, cross-platform, hybrid or PWA
- 14.2 React Native fundamentals and the New Architecture
- 14.3 Expo, builds and over-the-air updates
- 14.4 Flutter and Dart
- 14.5 Native iOS and Android: Swift, SwiftUI, Kotlin and Compose
- 14.6 App lifecycle, performance and threading
- 14.7 PWAs and the mobile web
- 14.8 Permissions, storage, security and deep links
- 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
What is the main tradeoff between fully native apps (Swift/Kotlin) and cross-platform frameworks?
- There's no tradeoff; both approaches produce identical apps
- Native apps can't use the camera, while cross-platform apps can
- Native: best platform access, two codebases; cross-platform: shared code
- 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.
How does React Native render its UI?
- It renders HTML and CSS inside a hidden WebView
- It draws every pixel itself on a canvas, like a game engine
- Components map to real native views, not HTML in a WebView
- 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`.
What is Expo?
- A separate programming language designed for mobile apps
- A competitor to React that renders UIs without using JSX
- A framework and toolset for React Native, with cloud builds and OTA updates
- 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.
How does Flutter render its UI?
- It maps each widget to a native iOS or Android view
- It draws its own widgets with its own engine (Impeller)
- It opens the device's default browser
- 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.
Which language is used for modern native iOS development?
- Kotlin, with Jetpack Compose
- Dart, with the Flutter SDK
- Swift, with SwiftUI or UIKit
- C#, with Xamarin.iOS only
Answer: C. Swift, with SwiftUI or UIKit Objective-C is the older language still found in legacy code.
Why must long-running work, like parsing a large file, stay off the UI thread on mobile?
- The UI thread doesn't have permission to read files
- The main thread only runs while on battery power
- It freezes the UI, and Android may show an ANR dialog
- 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.
What is a Progressive Web App (PWA)?
- A mini-app that can only run inside another host app
- An installable, offline-capable website using a manifest and service worker
- A website that only works on desktop browsers, not on phones
- 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.
How should an app request a sensitive permission like location?
- All at once on first launch, before the user does anything
- When the feature needs it, with a reason, handling denial
- Only by mentioning it in the app store listing
- 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.
What must happen before an app update reaches users on the App Store or Google Play?
- Users must download the source and compile it
- The update must be emailed to each user to install
- Nothing; changes appear instantly on all phones
- 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.
What is a hybrid WebView app (like Cordova or Capacitor)?
- A native app that never loads any web content
- A server that streams a video of the app to the phone
- An app that renders native widgets directly from Dart code
- 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.
More Front End
- HTML semantics & accessibility
- CSS: box model, Flexbox, Grid
- JavaScript fundamentals
- Async JavaScript & the event loop
- TypeScript
- React: components, hooks & rendering
- State management: Redux, Zustand, context
- Angular and Vue basics
- Browser internals & rendering
- Web performance
- Build tools & bundlers
- Front-end testing
- Front-end security