Understanding Unit Testing
Which type of test is focused on checking small, specific functions or components in isolation from the rest of the application?
- A. Unit Test
- B. Manual Test
- C. Integration Test
- D. UI Test
- E. Beta Test
Purpose of Snapshot Tests
What is the goal of a snapshot test in app development, for example, when testing a user interface layout?
- A. To compare the current UI to a saved reference image
- B. To check background process speed
- C. To measure app download size
- D. To monitor manual click events
- E. To analyze user feedback
Automated vs. Manual Testing
Which statement best describes manual testing in the context of app releases?
- A. Testing performed by humans without automation scripts before releasing the app
- B. Tests automatically triggered after every code push
- C. Code that is generated by a testing framework
- D. A type of test only suitable for databases
- E. Testing using only server logs
CI and its Benefits
In a continuous integration (CI) setup, why is it useful to run tests automatically before changes are merged?
- A. To quickly catch bugs early before they reach production
- B. Only to increase server costs
- C. To delay developer workflows intentionally
- D. So testers can skip their tasks
- E. Because code cannot be changed otherwise
UI Testing Objectives
What is the main purpose of UI (User Interface) tests in app development?
- A. To verify that the user interface works as expected for real users
- B. To test only the server response times
- C. To check code formatting standards
- D. To monitor battery usage statistics
- E. To compare CPU performance
Post-submit vs. Pre-submit Tests
What is the difference between pre-submit and post-submit tests in a software workflow?
- A. Pre-submit tests run before merging changes, while post-submit tests run afterward
- B. Post-submit tests happen before coding begins
- C. Pre-submit and post-submit tests are always the same
- D. Pre-submit refers to code reviews, not testing
- E. Post-submit tests are written only by managers
Culture of Testing
Why is fostering a culture of writing unit tests important in a development team?
- A. It helps ensure code quality and catch bugs early
- B. It guarantees faster internet speeds
- C. It changes the programming language automatically
- D. It increases the number of meetings required
- E. It eliminates the need for all other test types
Tracking Down Issues
When a UI test fails after a code change, what is a common first step in triaging the breakage?
- A. Identifying if the failure was caused by the recent change
- B. Automatically restarting the app
- C. Deleting all test cases
- D. Sending error messages to all users
- E. Ignoring the failure
Reverse Dependency Tree
What does running tests defined by the 'reverse dependency tree of affected files' mean?
- A. Running tests on parts of the code that depend on the files you changed
- B. Deleting all unrelated files
- C. Backing up all dependencies nightly
- D. Only testing user interface files
- E. Ignoring dependency relationships
Reducing Manual Testing
Why might a team want to reduce the amount of manual testing required before releasing an app update?
- A. To speed up release cycles and rely on more automated checks
- B. To make releases more random
- C. To avoid releasing any new features
- D. To increase the amount of paperwork
- E. To prevent automated tests from running