Appium 2 provides driver management through the appium driver command, and UiAutomator2 is installed using its driver name.
Incorrect! Try again.
35A terminal reports that the appium command is not recognized after installation. What should be checked first?
Installing Appium 2.0 server
Medium
A.Whether the phone has maximum brightness
B.Whether the npm binary directory is in PATH
C.Whether the APK contains a splash screen
D.Whether the test uses landscape mode
Correct Answer: Whether the npm binary directory is in PATH
Explanation:
A missing or incorrect PATH entry can prevent the shell from locating globally installed command-line tools such as Appium.
Incorrect! Try again.
36Why is configuring JAVA_HOME important when preparing an Android automation environment?
Setup JAVA JDK
Medium
A.It selects the application's launch activity
B.It uploads tests to the Play Store
C.It changes the Android device resolution
D.It identifies the installed JDK location
Correct Answer: It identifies the installed JDK location
Explanation:
JAVA_HOME allows Android and related build tools to locate the Java Development Kit required for compiling and running automation components.
Incorrect! Try again.
37A build tool fails even though Java appears to be installed. Which verification is most useful?
Setup JAVA JDK
Medium
A.Clear the application's notification history
B.Open the device camera application
C.Run java -version and javac -version
D.Change the emulator wallpaper
Correct Answer: Run java -version and javac -version
Explanation:
Checking both commands confirms that Java is available and that the JDK compiler, rather than only a runtime, is configured.
Incorrect! Try again.
38Which Android Studio component is required to create and manage Android Virtual Devices?
Setup Android Studio
Medium
A.AVD Manager
B.Logcat filter
C.Layout Inspector only
D.Version control window
Correct Answer: AVD Manager
Explanation:
The Android Virtual Device Manager creates, configures, starts, and manages emulator profiles used for Android testing.
Incorrect! Try again.
39An emulator starts, but Appium cannot find it through ADB. Which action is the most relevant first check?
Setup Android Studio
Medium
A.Reinstall the test framework's assertions
B.Change the app's text color
C.Open the Android Studio project editor
D.Run adb devices and inspect its status
Correct Answer: Run adb devices and inspect its status
Explanation:
adb devices shows whether the emulator is connected and authorized, helping identify the device-detection problem.
Incorrect! Try again.
40A team wants fast feedback on every commit but deep compatibility coverage nightly. Which strategy is most suitable?
Mobile Testing Strategy
Medium
A.Run one long manual test once per quarter
B.Run the full device matrix for every developer action
C.Run only exploratory testing before every release
D.Run a small smoke suite per commit and a broad matrix nightly
Correct Answer: Run a small smoke suite per commit and a broad matrix nightly
Explanation:
Layering tests balances rapid feedback with broader coverage, allowing critical checks to run frequently and expensive compatibility tests on a schedule.
Incorrect! Try again.
41A mobile checkout test passes on Wi-Fi but intermittently fails on a real device when switching from 5G to a weak cellular connection. The failure occurs because a request is retried after the UI timeout. Which change best addresses the underlying mobile-specific risk?
Mobile Testing Challenges
Hard
A.Mock every checkout response in all test environments
B.Model network transitions and assert retry-state behavior
C.Run the scenario only through a stable Wi-Fi connection
D.Increase every UI wait to a fixed 60-second delay
Correct Answer: Model network transitions and assert retry-state behavior
Explanation:
The defect is tied to changing network conditions and retry behavior. Testing explicit transitions and observable retry states addresses the risk without hiding it behind long waits or mocks.
Incorrect! Try again.
42A team supports 40 Android device models, 8 OS versions, 6 locales, and 3 network profiles. Running every combination before each merge is impractical. Which strategy provides the strongest balance of speed and risk coverage?
Mobile Testing Strategy
Hard
A.Select combinations randomly for every continuous integration run
B.Test only the newest OS on the most popular device
C.Run all combinations nightly and skip pre-merge mobile tests
D.Use risk-weighted pairwise coverage plus critical-device journeys
Correct Answer: Use risk-weighted pairwise coverage plus critical-device journeys
Explanation:
Pairwise selection reduces combinatorial growth, while risk weighting and dedicated critical journeys retain coverage for high-impact devices and workflows.
Incorrect! Try again.
43An animation-heavy application is smooth on an emulator but drops frames only after 15 minutes on selected physical phones. Which real-device characteristic is most likely absent from the emulator-based result?
Real Devices
Hard
A.Thermal throttling under sustained hardware load
B.APK manifest parsing during application launch
C.XPath translation by the automation server
D.WebDriver capability negotiation over HTTP
Correct Answer: Thermal throttling under sustained hardware load
Explanation:
Physical devices can reduce CPU or GPU performance as temperature rises. Emulators generally do not reproduce the phone's actual thermal envelope and throttling behavior.
Incorrect! Try again.
44A defect depends on an Android application's ARM-native library, but the test passes on an x86 Android virtual device. What is the most defensible next action?
Simulators and Emulators
Hard
A.Switch the Appium session from native to web context
B.Repeat the test with a larger virtual-device display
C.Replace the native library with a browser-compatible library
D.Run on ARM hardware or a matching ARM system image
Correct Answer: Run on ARM hardware or a matching ARM system image
Explanation:
Native binaries can behave differently across CPU architectures or use translation layers on x86 images. Matching the production architecture is necessary to validate the suspected defect.
Incorrect! Try again.
45Which statement most accurately describes Appium's role in a mobile automation stack?
What is Appium?
Hard
A.It virtualizes mobile hardware and executes applications inside containers
B.It compiles mobile test scripts directly into application bytecode
C.It translates WebDriver commands through platform-specific automation drivers
D.It instruments every application with a proprietary testing runtime
Correct Answer: It translates WebDriver commands through platform-specific automation drivers
Explanation:
Appium is a WebDriver-based automation server. It routes standardized client commands to drivers such as UiAutomator2, Espresso, or XCUITest.
Incorrect! Try again.
46A Java test calls element.click() during an Android UiAutomator2 session. Which sequence best represents the command flow?
The client serializes the WebDriver command, Appium routes it to UiAutomator2, and the driver uses its on-device automation components to perform the interaction.
Incorrect! Try again.
47A test engineer must reinstall an Android APK while preserving existing application data and automatically granting its declared runtime permissions. Which command best matches that requirement?
Mobile App Installation
Hard
A.adb shell pm clear app.apk
B.adb install -r -g app.apk
C.adb push app.apk /data/app
D.adb install -d -t app.apk
Correct Answer: adb install -r -g app.apk
Explanation:
-r reinstalls the APK while retaining application data, and -g grants the runtime permissions declared in the manifest.
Incorrect! Try again.
48An Appium test can inspect native navigation controls, but the login form appears as one opaque element until the test changes context. What application architecture does this most strongly indicate?
Types of Mobile Apps
Hard
A.A hybrid application embedding a web view
B.A progressive web application without a native shell
C.A native application using only custom-drawn controls
D.A native application compiled for another CPU architecture
Correct Answer: A hybrid application embedding a web view
Explanation:
A hybrid app combines native UI with embedded web content. Appium must switch from the native context to an available web-view context to inspect the form's DOM elements.
Incorrect! Try again.
49A test suite must run Android sessions concurrently on four locally connected devices through one Appium server. Beyond selecting a unique device identifier, which configuration is essential for UiAutomator2 sessions?
Setup Possibilities
Hard
A.Assign a shared chromedriverPort to every session
B.Assign the same mjpegServerPort to each session
C.Assign a different automationName to every device
D.Assign a distinct systemPort to each session
Correct Answer: Assign a distinct systemPort to each session
Explanation:
Each parallel UiAutomator2 session needs a unique systemPort so its host-side communication channel does not collide with another session.
Incorrect! Try again.
50A test must open the application, approve an Android system permission dialog, interact with the notification shade, and then return to the application. Which driver is generally the better fit?
UiAutomator2 Vs Espresso Driver
Hard
A.Espresso, because it bypasses Android accessibility completely
B.UiAutomator2, because it can automate across applications
C.Espresso, because it controls all Android processes directly
D.UiAutomator2, because it requires application source code
Correct Answer: UiAutomator2, because it can automate across applications
Explanation:
UiAutomator2 is suited to black-box and cross-application interactions, including many system UI surfaces. Espresso is primarily synchronized with UI inside the application under test.
Incorrect! Try again.
51A capability that worked in an older Appium project now fails after a driver upgrade. Which source combination should be consulted first to distinguish Appium server behavior from driver-specific behavior?
Important Appium links
Hard
A.The Android design guide and the WebDriver tutorial
B.The Appium documentation and the installed driver's repository
C.The Java language specification and the npm home page
D.The Selenium blog and the Android device user manual
Correct Answer: The Appium documentation and the installed driver's repository
Explanation:
Core behavior is documented at appium.io, while driver-specific capabilities and changes are maintained in repositories such as appium/appium-uiautomator2-driver.
Incorrect! Try again.
52After upgrading from Appium 1 to Appium 2, requests sent to /wd/hub/session return an unknown-command or routing error under the default server configuration. What is the most likely cause?
Appium 2.0 Overview and the Installation
Hard
A.Appium 2 requires every request to use an Android SDK path
B.Appium 2 accepts only direct driver commands without an HTTP path
C.Appium 2 disables W3C session creation unless a plugin is installed
D.Appium 2 uses / rather than /wd/hub as its default base path
Correct Answer: Appium 2 uses / rather than /wd/hub as its default base path
Explanation:
Appium 2 changed the default base path from /wd/hub to /. A client can use the new URL, or the server can be started with a compatible base-path option.
Incorrect! Try again.
53A clean machine has Node.js and the Appium 2 server installed globally. Starting appium succeeds, but creating an Android session fails because no matching driver is installed. Which command addresses the missing component?
Appium 2 separates the server from drivers. The UiAutomator2 driver must be installed explicitly with Appium's extension command.
Incorrect! Try again.
54Android command-line tools work in one terminal, but Appium reports that JAVA_HOME is invalid. The variable currently points to /opt/jdk-17/bin/java. What correction is required?
Setup JAVA JDK
Hard
A.Set JAVA_HOME to /opt/jdk-17/bin/javac
B.Set JAVA_HOME to /opt/jdk-17/bin
C.Set JAVA_HOME to /opt/jdk-17
D.Set JAVA_HOME to /opt/jdk-17/lib
Correct Answer: Set JAVA_HOME to /opt/jdk-17
Explanation:
JAVA_HOME must reference the JDK root directory, not the java executable or the bin directory. The executable is normally found through $JAVA_HOME/bin.
Incorrect! Try again.
55Android Studio can launch an emulator, but adb devices is unavailable in a new shell and Appium cannot discover the Android SDK. Which environment configuration is most appropriate?
Setup Android Studio
Hard
A.Set ANDROID_HOME to the emulator binary and add tools to JAVA_HOME
B.Set ANDROID_HOME to Android Studio and add gradle to PATH
C.Set ANDROID_HOME to the SDK root and add platform-tools to PATH
D.Set ANDROID_HOME to platform-tools and add the SDK root to PATH
Correct Answer: Set ANDROID_HOME to the SDK root and add platform-tools to PATH
Explanation:
Appium needs the SDK root, while the shell needs the SDK's platform-tools directory on PATH to locate adb.
Incorrect! Try again.
56A banking app has 1,200 UI tests, but releases are delayed and failures frequently come from unstable selectors. Which test-portfolio change best preserves confidence while improving feedback speed?
Mobile Testing Strategy
Hard
A.Run the complete UI suite repeatedly until every test passes
B.Replace assertions with visual screenshots for all user flows
C.Move business-rule coverage downward and retain critical UI journeys
D.Convert all unit tests into end-to-end tests on real devices
Business rules are faster and more stable at unit or service layers. A smaller set of critical mobile UI journeys should validate integration, platform behavior, and essential workflows.
Incorrect! Try again.
57A session is created with appium:automationName set to UiAutomator2, but the server has only the Espresso driver installed. At what architectural stage should the failure occur?
How Appium works? Architecture Overview
Hard
A.During new-session routing when Appium cannot match a driver
B.During element lookup after Espresso returns an empty hierarchy
C.During APK compilation when Android Studio selects a build variant
D.During test teardown when the server removes the application
Correct Answer: During new-session routing when Appium cannot match a driver
Explanation:
Appium chooses a driver while processing the new-session capabilities. If the requested automation driver is not installed, session creation fails before application interactions begin.
Incorrect! Try again.
58A team tests its own Android application and needs interactions to wait automatically for UI-thread and asynchronous task idleness. The tests do not leave the application process. Which driver characteristic most strongly favors Espresso?
UiAutomator2 Vs Espresso Driver
Hard
A.Its synchronization with application instrumentation and idling resources
B.Its use of browser DOM selectors for every native control
C.Its unrestricted control of notification and settings applications
D.Its ability to run without access to an application package
Correct Answer: Its synchronization with application instrumentation and idling resources
Explanation:
Espresso runs through Android instrumentation and is designed to synchronize with the app's UI activity and registered idling resources, reducing timing-related waits.
Incorrect! Try again.
59A team pins the Appium server version in package.json but allows developers to install any UiAutomator2 driver version globally. Why can session behavior still differ across machines?
Appium 2.0 Overview and the Installation
Hard
A.Appium 2 replaces the Android SDK whenever the server is restarted
B.Appium 2 downloads a different Java JDK for each new session
C.Appium 2 compiles capabilities according to the connected device model
D.Appium 2 drivers are versioned and installed separately from the server
Correct Answer: Appium 2 drivers are versioned and installed separately from the server
Explanation:
Pinning only the Appium package does not pin separately managed drivers. Reproducible setups must also control the versions of installed drivers and plugins.
Incorrect! Try again.
60An Android APK cannot be installed over an existing app because the new build was signed with a different certificate. The test must start with the new build, and preserving old app data is unnecessary. What is the correct remediation?
Mobile App Installation
Hard
A.Use adb install -r to bypass certificate verification
B.Change JAVA_HOME to the keystore's parent directory
C.Uninstall the existing package before installing the new APK
D.Start Appium with a different WebDriver base path
Correct Answer: Uninstall the existing package before installing the new APK
Explanation:
Android does not permit an update signed by a different certificate. Removing the existing package clears the signature conflict, although it also removes that package's local data.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →