Unit 1: Mobile Testing Basics - Practice Quiz

CSE379 — Mobile Automated Testing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which factor commonly makes mobile application testing challenging?

Mobile Testing Challenges Easy
A. Unlimited network speed
B. Different screen sizes
C. One fixed device model
D. A single operating system

2 Which issue can affect the behavior of a mobile application during testing?

Mobile Testing Challenges Easy
A. Network changes
B. File name length
C. Monitor brightness
D. Keyboard color

3 What is the main purpose of a mobile testing strategy?

Mobile Testing Strategy Easy
A. To plan testing activities
B. To increase device screen size
C. To replace application developers
D. To design application logos

4 Which testing activity checks whether an application works after a code change?

Mobile Testing Strategy Easy
A. Device formatting
B. Battery charging
C. Regression testing
D. Color testing

5 What is a real device in mobile testing?

Real Devices Easy
A. A test script file
B. A browser plug-in
C. A virtual machine only
D. A physical mobile phone

6 Which benefit is provided by testing on a real device?

Real Devices Easy
A. Testing actual hardware behavior
B. Avoiding every operating system version
C. Guaranteeing zero application defects
D. Removing all test execution time

7 What is an emulator commonly used to imitate?

Simulators and Emulators Easy
A. A project management tool
B. A mobile device environment
C. A source code editor
D. A database table

8 Which statement best describes a simulator?

Simulators and Emulators Easy
A. It models device behavior
B. It only installs desktop software
C. It replaces the application source code
D. It is always a physical phone

9 What is Appium primarily used for?

What is Appium? Easy
A. Editing video files
B. Automating mobile applications
C. Designing network cables
D. Creating mobile hardware

10 Which types of mobile applications can Appium automate?

What is Appium? Easy
A. Only database applications
B. Only desktop applications
C. Only command-line applications
D. Native, hybrid, and mobile web apps

11 Which component receives commands from an Appium client?

How Appium works? Architecture Overview Easy
A. The computer monitor
B. The Appium server
C. The device battery
D. The application icon

12 In Appium architecture, what is the role of a driver?

How Appium works? Architecture Overview Easy
A. To communicate with a platform
B. To create test requirements
C. To display application advertisements
D. To charge the mobile device

13 Which file is commonly used to install an Android application?

Mobile App Installation Easy
A. TXT file
B. CSS file
C. MP3 file
D. APK file

14 What is usually required before testing an application on a mobile device?

Mobile App Installation Easy
A. The operating system must be removed
B. The application must be installed
C. The device must be disconnected
D. The test code must be deleted

15 What is a native mobile application?

Types of Mobile Apps Easy
A. An app without any user interface
B. An app that runs only on paper
C. An app built for one platform
D. An app that requires no operating system

16 Which application combines web content with native features?

Types of Mobile Apps Easy
A. A firmware application
B. A hybrid application
C. A spreadsheet application
D. A command-line application

17 Which setup can be used to run Appium tests locally?

Setup Possibilities Easy
A. A monitor without an operating system
B. A computer with Appium installed
C. A printer with no connection
D. A calculator without software

18 Which Appium driver is commonly used for Android automation?

UiAutomator2 Vs Espresso Driver Easy
A. SafariDriver
B. ChromeDriver only
C. UiAutomator2
D. InternetExplorerDriver

19 Where can users find official Appium documentation?

Important Appium links Easy
A. A music streaming page
B. A computer game forum
C. A device wallpaper gallery
D. The Appium documentation website

20 What is one important characteristic of Appium 2.0?

Appium 2.0 Overview and the Installation Easy
A. It runs without any server
B. It supports no mobile platforms
C. It uses separately installed drivers
D. It works only with physical keyboards

21 A test passes consistently on Wi-Fi but fails on a mobile network. Which testing challenge should be investigated first?

Mobile Testing Challenges Medium
A. The app's icon resolution
B. Network variability and latency
C. The emulator's keyboard layout
D. The device's screen brightness

22 A team has limited time and must select devices for regression testing. Which approach provides the most practical coverage?

Mobile Testing Strategy Medium
A. Select devices by usage, OS, and risk
B. Test every available device equally
C. Test only the newest flagship device
D. Use only virtual devices for all tests

23 Why should a mobile test suite include at least some testing on physical devices before release?

Real Devices Medium
A. Physical devices remove all test maintenance
B. Physical devices reveal hardware-dependent behavior
C. Physical devices always execute tests faster
D. Physical devices eliminate the need for automation

24 A developer wants to run many Android configurations quickly during early UI testing. Which option is generally most suitable?

Simulators and Emulators Medium
A. A large pool of physical devices
B. A desktop browser session
C. A production handset only
D. An Android emulator farm

25 Which statement best describes Appium's main purpose?

What is Appium? Medium
A. It hosts applications in a public app store
B. It automates mobile applications through a WebDriver-based interface
C. It compiles Android application source code
D. It replaces Android Studio's build system

26 In a typical Appium test, what is the role of the Appium server?

How Appium works? Architecture Overview Medium
A. It sends commands between the client and platform driver
B. It designs the application's screen layouts
C. It permanently stores the application's user data
D. It converts Java code into Android bytecode

27 A test must start with a fresh installation of an Android application. Which capability is most directly relevant?

Mobile App Installation Medium
A. The test method's visibility modifier
B. The emulator's wallpaper setting
C. The source control branch name
D. The application package or APK path

28 An application is built with web technologies, runs inside a native container, and accesses device features through plugins. What type of app is it?

Types of Mobile Apps Medium
A. Hybrid application
B. Desktop application
C. Native application
D. Progressive web page

29 Which setup is most appropriate for running automated Android tests in a CI pipeline without attaching a physical phone?

Setup Possibilities Medium
A. An unconfigured Java installation
B. A configured Android emulator
C. A mobile browser without an app
D. A screenshot editing tool

30 A test needs to automate an Android application and interact with system UI such as permission dialogs. Which driver is generally the better choice?

UiAutomator2 Vs Espresso Driver Medium
A. Desktop Chrome driver
B. Safari driver
C. UiAutomator2 driver
D. Espresso driver

31 Which situation favors using the Espresso driver for Android automation?

UiAutomator2 Vs Espresso Driver Medium
A. Controlling unrelated applications across the device
B. Testing only the device's notification shade
C. Automating an iOS application from Android Studio
D. Testing an app's internal views with synchronization

32 Which resource is the most appropriate starting point for checking official Appium command and configuration details?

Important Appium links Medium
A. A general-purpose spreadsheet template
B. An unrelated device review site
C. The official Appium documentation
D. A random application screenshot

33 What is a significant change in Appium 2.0 compared with the traditional bundled approach?

Appium 2.0 Overview and the Installation Medium
A. All platform drivers are permanently built in
B. Mobile automation no longer uses clients
C. Drivers can be installed separately
D. Android applications need no package identifier

34 After installing the Appium server package, which command is commonly used to install the Android UiAutomator2 driver in Appium 2?

Installing Appium 2.0 server Medium
A. adb appium install driver
B. npm android enable uiautomator2
C. appium driver install uiautomator2
D. appium server add android

35 A 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

36 Why 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

37 A 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

38 Which 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

39 An 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

40 A 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

41 A 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

42 A 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

43 An 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

44 A 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

45 Which 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

46 A Java test calls element.click() during an Android UiAutomator2 session. Which sequence best represents the command flow?

How Appium works? Architecture Overview Hard
A. Java client → emulator kernel → Appium plugin → UiAutomator2 server
B. Java client → Android Studio → ADB compiler → application database
C. Java client → Appium server → UiAutomator2 driver → device automation
D. Java client → application APK → Appium server → Android Studio

47 A 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

48 An 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

49 A 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

50 A 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

51 A 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

52 After 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

53 A 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?

Installing Appium 2.0 server Hard
A. appium driver install uiautomator2
B. adb install uiautomator2-server.apk
C. appium plugin install android-sdk
D. npm install android-driver --save

54 Android 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

55 Android 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

56 A 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

57 A 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

58 A 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

59 A 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

60 An 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