Sample questions
Question 1Easy
In the bare workflow, what does a developer have that a managed Expo project generates for them?
- The package.json file
- The node_modules folder
- The App.tsx entry file
- The ios and android folders
Answer: D. The ios and android folders
Explanation
Bare projects keep and edit the native folders directly. In managed projects they are generated from configuration.
Step-by-step solution
- A bare workflow project keeps its ios and android folders and edits them directly.
- A managed Expo project generates those folders from configuration.
- So option D, the ios and android folders, is the correct answer.
Why the other options are wrong
- A. package.json exists in both kinds of project.
- B. Node_modules is installed in both kinds of project.
- C. App.tsx is an ordinary entry file, not a native folder.
Tip: In a managed project the native folders are generated; in a bare project you own and edit them.
Question 2Easy
What is EAS Build used for?
- Building app binaries in the cloud
- Running unit tests in the browser
- Hosting a REST API backend
- Writing native modules in JavaScript
Answer: A. Building app binaries in the cloud
Explanation
EAS Build compiles Android and iOS binaries on hosted machines, so you do not need Xcode locally to produce an iOS build.
Step-by-step solution
- EAS Build is Expo's hosted build service.
- It compiles Android and iOS binaries on cloud machines.
- So option A, building app binaries in the cloud, is the correct answer.
Why the other options are wrong
- B. Unit tests run in a test runner; EAS Build does not run them in a browser.
- C. Hosting a REST API backend is not what EAS Build does.
- D. Native modules are written in Kotlin, Java, Swift or Objective-C, not JavaScript.
Tip: Use EAS Build when you need Android or iOS binaries without setting up the native toolchains locally.
Question 3Easy
- The command that publishes apps to the stores
- A Go language port of React Native
- A paid plan for faster cloud builds
- A store app that runs projects with no native build
Answer: D. A store app that runs projects with no native build
Explanation
Expo Go is installed from the store and loads your JS bundle, so you can try a project without compiling native code. It only includes the native modules bundled into it.
Step-by-step solution
- Expo Go is a store app.
- It loads your JavaScript bundle, so no native build is needed to try a project.
- Option D is the correct answer; it only includes the native modules built into it.
Why the other options are wrong
- A. Publishing to stores is not what Expo Go does.
- B. Go is a programming language; Expo Go is not a port of React Native.
- C. Expo Go is not a paid plan for cloud builds.
Tip: Expo Go is for quick tries; a project with extra native code needs its own build.
Question 4Easy
Which file holds an Expo app's name, icon and bundle identifier?
- metro.config.js
- babel.config.js
- tsconfig.json
- app.json (or app.config.js)
Answer: D. app.json (or app.config.js)
Explanation
Expo reads app configuration from app.json or a dynamic app.config.js and uses it to generate native settings.
Step-by-step solution
- Expo reads the app name, icon and bundle identifier from its app configuration.
- This configuration lives in app.json or a dynamic app.config.js.
- Option D is the correct answer.
Why the other options are wrong
- A. metro.config.js configures the Metro bundler.
- B. babel.config.js configures Babel transforms.
- C. tsconfig.json configures TypeScript.
Tip: Put the app name, icon and bundle identifier in app.json or app.config.js.
Question 5Medium
What does npx expo prebuild do?
- Uploads the JS bundle to the app stores for review
- Removes all native code so the app runs in Expo Go
- Downloads a prebuilt app binary from Expo's servers
- Generates native folders from app config and plugins
Answer: D. Generates native folders from app config and plugins
Explanation
Prebuild (Continuous Native Generation) creates native projects from app.json and config plugins, so they can be regenerated instead of hand-edited.
Step-by-step solution
- Npx expo prebuild generates the native android and ios folders.
- It reads app.json and the config plugins to create them.
- So option D is the correct answer.
Why the other options are wrong
- A. Uploading to the stores is a separate step, not what prebuild does.
- B. Prebuild creates native folders; it does not remove native code for Expo Go.
- C. Prebuild generates the native project locally; it does not download a binary.
Tip: Prebuild output can be regenerated, so keep native changes in app config and plugins.
Question 6Medium
What is an Expo config plugin?
- A Babel plugin that minifies the JavaScript bundle
- A runtime plugin that hot-swaps native modules
- Code that edits native config files during prebuild
- A VS Code extension for editing app.json
Answer: C. Code that edits native config files during prebuild
Explanation
Config plugins modify the generated native projects (manifest entries, plist keys, Gradle settings) so native setup stays declarative.
Step-by-step solution
- A config plugin is code that runs during prebuild.
- It edits generated native files, such as the Android manifest or iOS plist keys.
- Option C is the correct answer.
Why the other options are wrong
- A. A Babel plugin transforms JavaScript code; it is not a config plugin.
- B. Config plugins run at build time; they do not swap modules at runtime.
- D. A VS Code extension is an editor tool, not an Expo config plugin.
Tip: Use config plugins to change native settings without hand-editing the native folders.
Question 7Medium
Can Expo SDK libraries such as expo-camera be used in a bare React Native app?
- Yes, after installing Expo modules support
- No, they work only in managed Expo projects
- Only on iOS, never on Android
- Only when the app runs inside Expo Go
Answer: A. Yes, after installing Expo modules support
Explanation
Bare apps can add Expo's module system and then use individual Expo packages like any other native library.
Step-by-step solution
- Expo modules support can be added to a bare React Native app.
- After that, individual Expo packages such as expo-camera work like other native libraries.
- So option A is the correct answer.
Why the other options are wrong
- B. Expo packages can be used in bare apps once Expo modules support is added.
- C. Expo packages are not limited to iOS.
- D. Expo Go is not needed; the packages are compiled into the app.
Tip: Expo SDK packages are native libraries; they need Expo modules support, not Expo Go.
Question 8Medium
A project needs a library with custom native code that Expo Go does not include. What is the usual approach?
- Keep using Expo Go and add the library to package.json
- Make a development build that includes it
- Rewrite the library's native code in JavaScript
- Load the library in a WebView inside Expo Go
Answer: B. Make a development build that includes it
Explanation
Expo Go can only run native code it already contains. A development build is your own debug app with your chosen native modules compiled in.
Step-by-step solution
- Expo Go only runs the native modules it already contains.
- A library with custom native code therefore needs a build that includes it.
- A development build compiles the chosen native modules in, so option B is the correct answer.
Why the other options are wrong
- A. Adding the library to package.json does not add its native code to Expo Go.
- C. Rewriting native code in JavaScript is not a general fix; the native code is still needed.
- D. A WebView does not give the app the library's native functions.
Tip: When Expo Go lacks a native module, make a development build that includes it.
Question 9Hard
What does the Expo Modules API let developers do?
- Write native modules in JavaScript that compile to C++
- Write native modules in Swift and Kotlin with a DSL
- Ship native modules as OTA updates without new builds
- Use native modules inside Expo Go without rebuilding
Answer: B. Write native modules in Swift and Kotlin with a DSL
Explanation
The Expo Modules API provides a declarative Swift/Kotlin API for defining functions, events and views, and it supports the new architecture.
Step-by-step solution
- The Expo Modules API gives a DSL.
- Native code is written in Swift and Kotlin.
- It simplifies writing native modules.
Why the other options are wrong
- A. Native code is not written in JS.
- C. Native changes need a new build.
- D. Expo Go cannot load custom native code.
Tip: Expo Modules = Swift + Kotlin DSL.
Question 10Hard
What is the purpose of runtimeVersion in Expo updates?
- To choose which JavaScript engine the update runs on
- To set how often the app checks the update server
- To send updates only to builds with matching native code
- To pick the React Native version the update installs
Answer: C. To send updates only to builds with matching native code
Explanation
An OTA bundle that expects native modules missing from an older binary would crash. runtimeVersion ties updates to compatible builds.
Step-by-step solution
- Each native build embeds a runtimeVersion.
- An update is only delivered to builds whose runtimeVersion matches.
- This stops JS updates reaching apps with incompatible native code.
Why the other options are wrong
- A. The engine is chosen by the build, not runtimeVersion.
- B. Check frequency is a separate setting.
- D. It does not pick a React Native version.
Tip: Native change means bump runtimeVersion.
Practise all 13 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →