Unit 1: Automated Testing and Test Tools - Practice Quiz

CSE376 — Automated Testing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is a major benefit of automating repetitive software tests?

The Benefits of Automation and Tools Easy
A. Increased code size
B. Eliminated test planning
C. Guaranteed defect removal
D. Reduced manual effort

2 Which type of testing commonly benefits from automation?

The Benefits of Automation and Tools Easy
A. Regression testing
B. User interviewing
C. Requirements negotiation
D. Informal discussion

3 How can automated tools improve test consistency?

The Benefits of Automation and Tools Easy
A. By rewriting the application each time
B. By selecting a new tester each time
C. By following the same steps each time
D. By changing the requirements each time

4 Which benefit is provided by faster automated test execution?

The Benefits of Automation and Tools Easy
A. Fewer requirements to review
B. Permanent prevention of defects
C. Earlier feedback on changes
D. Automatic approval of releases

5 What is a test tool?

Test Tools Easy
A. A method that removes all defects
B. Software that supports testing activities
C. Hardware that replaces the application
D. Documentation that defines business goals

6 Which tool is mainly used to record and manage reported defects?

Test Tools Easy
A. Defect tracking tool
B. Source code compiler
C. Database design tool
D. Presentation editor

7 What does a test management tool commonly help organize?

Test Tools Easy
A. Network cables and routers
B. Test cases and results
C. Employee salaries and taxes
D. Product advertisements and sales

8 Which tool measures how much program code is exercised by tests?

Test Tools Easy
A. Defect tracking tool
B. Code coverage tool
C. Requirements editor
D. Screen capture tool

9 What is software test automation?

Software Test Automation Easy
A. Removing testing from software development
B. Allowing users to rewrite requirements
C. Replacing developers with test scripts
D. Using software to execute testing tasks

10 What does an automated test script usually contain?

Software Test Automation Easy
A. Employee roles and contracts
B. Marketing goals and schedules
C. Test actions and expected checks
D. Project salaries and expenses

11 What is the purpose of an automated test assertion?

Software Test Automation Easy
A. To compare actual and expected results
B. To assign tasks to development teams
C. To select the project's programming language
D. To estimate the product's selling price

12 When should an automated test report a failure?

Software Test Automation Easy
A. When the tool opens successfully
B. When every expected check passes
C. When an expected check does not pass
D. When the test starts on schedule

13 What is random testing?

Random Testing Easy
A. Testing only documented user workflows
B. Testing only previously fixed defects
C. Testing with randomly selected inputs
D. Testing without executing the software

14 What is one purpose of random testing?

Random Testing Easy
A. To remove the need for test results
B. To replace all planned test cases
C. To discover unexpected behavior
D. To prove the software has no defects

15 What information can help reproduce a failed randomized test?

Random Testing Easy
A. The tester's job title
B. The random seed used
C. The application's brand color
D. The project's meeting schedule

16 Which statement about random testing is correct?

Random Testing Easy
A. It can complement planned testing
B. It makes expected results unnecessary
C. It always finds every existing defect
D. It guarantees complete test coverage

17 What is a common initial cost of test automation?

Realities of Using Test Tools and Automation Easy
A. Eliminating all maintenance work
B. Avoiding staff training completely
C. Buying tools and creating scripts
D. Removing every existing test case

18 Why do automated test scripts require maintenance?

Realities of Using Test Tools and Automation Easy
A. Automation prevents software updates
B. Test results never remain available
C. Tools always delete their own scripts
D. The tested software can change

19 Which statement describes a realistic limitation of test automation?

Realities of Using Test Tools and Automation Easy
A. It cannot replace all human judgment
B. It cannot execute repetitive test cases
C. It cannot compare expected results
D. It cannot produce execution reports

20 What should a team consider before selecting a test tool?

Realities of Using Test Tools and Automation Easy
A. Compatibility with project needs
B. Popularity of the tool's logo
C. Location of the tool's company
D. Number of colors in its interface

21 A team must execute the same 600 regression tests on three browser versions before every weekly release. Which benefit most strongly supports automating these tests?

The Benefits of Automation and Tools Medium
A. Reduced repetitive execution effort
B. Guaranteed discovery of every defect
C. Elimination of test maintenance
D. Automatic correction of failed requirements

22 An automated suite runs overnight and produces timestamped logs, screenshots, and pass/fail results. Which testing benefit is demonstrated most directly?

The Benefits of Automation and Tools Medium
A. Replacement of all exploratory testing activities across the project
B. Removal of environmental differences
C. Proof that the product is defect-free
D. Improved traceability of execution

23 A performance tool simulates 5,000 concurrent users accessing an application. Why is using a tool especially beneficial in this situation?

The Benefits of Automation and Tools Medium
A. The workload is difficult to create manually
B. The workload no longer requires test data
C. The tool can identify every usability problem
D. The tool guarantees production will match the test environment

24 A calculation test must be repeated with 2,000 input combinations. What is the main advantage of using data-driven automation?

The Benefits of Automation and Tools Medium
A. Reusing one test flow with many datasets
B. Allowing the tool to redesign the calculation algorithm when a mismatch occurs
C. Avoiding the need to define expected results
D. Converting all invalid inputs into valid inputs

25 A manager wants to record requirements, connect them to test cases, schedule executions, and summarize defects. Which category of tool is most appropriate?

Test Tools Medium
A. Load generation tool
B. Static analysis tool
C. User-interface capture tool
D. Test management tool

26 A tool examines source code without running it and reports unreachable code and possible null dereferences. What type of tool is being used?

Test Tools Medium
A. Static analysis tool
B. Service virtualization tool
C. Test data generator
D. Dynamic test tool

27 During integration testing, a payment service is unavailable and expensive to access. Which tool capability would best allow testing to continue?

Test Tools Medium
A. A complete production clone that permanently replaces all controlled test doubles
B. Code coverage measurement
C. Service virtualization
D. Configuration management

28 A coverage tool reports that a test suite executed 75 of 100 executable statements. What statement coverage was achieved?

Test Tools Medium
A.
B.
C.
D.

29 A web application's layout changes frequently, causing many recorded scripts to fail even though the behavior remains correct. Which improvement would most reduce maintenance?

Software Test Automation Medium
A. Duplicate scripts for each release
B. Record every test again after each minor interface change
C. Increase fixed waiting periods
D. Centralize element locators

30 An automated test sometimes fails because it checks a result before an asynchronous request finishes. What is the best correction?

Software Test Automation Medium
A. Wait for a specific completion condition
B. Disable asynchronous behavior throughout the entire application under test
C. Rerun every failure until it passes
D. Add the same long delay after every action

31 A team is selecting its first set of test cases for automation. Which candidate is generally the most suitable?

Software Test Automation Medium
A. A test whose expected result changes during every execution
B. A one-time test of an experimental prototype
C. A subjective review of visual attractiveness
D. A stable, frequently repeated regression test

32 An automated test creates a customer account but leaves the account in the database. Later runs fail because the username already exists. Which design change is most appropriate?

Software Test Automation Medium
A. Use the production database so that account records are shared consistently
B. Add reliable test-data cleanup
C. Ignore duplicate-account failures
D. Run the test only once

33 A random test generator occasionally exposes a crash, but the team cannot reproduce it. What should the framework record to improve reproducibility?

Random Testing Medium
A. The tester's screen resolution
B. Every previously successful build and its complete deployment history
C. Only the final pass/fail count
D. The random seed and generated inputs

34 A random input generator sends arbitrary byte sequences to a date field, but most cases are rejected immediately by basic validation. How can the test become more effective?

Random Testing Medium
A. Use only one known valid date
B. Generate longer arbitrary byte sequences without considering the accepted format
C. Generate values using the date input grammar
D. Remove all invalid input cases

35 A random test executes 10,000 valid transaction sequences without crashing. Which conclusion is justified?

Random Testing Medium
A. All possible transaction sequences were tested
B. The system is free from transaction defects
C. The random generator proved every requirement correct under all environments
D. No failure occurred in the sampled sequences

36 A random-testing tool finds a failure using a 300-step action sequence. Which follow-up technique would best help developers diagnose it?

Random Testing Medium
A. Add unrelated actions to increase coverage
B. Discard the sequence and generate new tests until a shorter failure appears
C. Replace the failure with a manual test summary
D. Shrink the sequence while preserving the failure

37 A company buys a popular automation tool, but adoption fails because it does not support the application's custom controls. What should have been done before purchase?

Realities of Using Test Tools and Automation Medium
A. Automate every existing test
B. Select the tool with the most features
C. Run a proof of concept
D. Require the application team to replace all custom controls before any evaluation

38 A manager estimates automation cost using only license fees. Which additional cost is most important to include?

Realities of Using Test Tools and Automation Medium
A. The number of manual defects previously found
B. Script development and maintenance
C. Office lighting during execution
D. A permanent budget for replacing the application whenever tests fail

39 After automating 80% of regression tests, a team plans to eliminate all manual testing. Why is this approach risky?

Realities of Using Test Tools and Automation Medium
A. Automation tools permanently prevent testers from reviewing any generated result
B. Manual tests always detect more defects
C. Automated tests cannot execute regression scenarios
D. Some testing requires human judgment and exploration

40 An automated suite reports many failures after a planned interface update, but investigation shows that the product works correctly. What do these results primarily indicate?

Realities of Using Test Tools and Automation Medium
A. The tool has found hidden performance defects
B. The testware requires maintenance
C. The interface update should be classified as a production incident regardless of requirements
D. The product must be rolled back

41 A regression suite requires 12 staff-hours per manual execution. Automation requires 180 staff-hours initially, then 1.5 staff-hours for execution supervision and 2.5 staff-hours for maintenance per run. Ignoring other costs, what is the minimum number of executions needed for automation to become less expensive than manual testing?

The Benefits of Automation and Tools Hard
A. 24 executions
B. 23 executions
C. 22 executions
D. 30 executions

42 A tool reduces regression execution from ten hours to two hours, but test results still require three hours of human investigation. Releases are delayed mainly because the shared test environment is available only once per week. Which conclusion best evaluates the tool's likely benefit?

The Benefits of Automation and Tools Hard
A. It will shorten the release cycle by exactly eight hours
B. It will eliminate the need for human regression analysis
C. It will reduce execution effort but may not shorten the release cycle
D. It will remove the test environment scheduling constraint

43 A team reports that automation increased executed test cases by 400%, while escaped defects remained unchanged. Which additional metric would best determine whether automation improved fault-detection effectiveness rather than merely test throughput?

The Benefits of Automation and Tools Hard
A. Average duration of each planning meeting
B. Total number of automation source files
C. Mutation score for the automated regression suite
D. Percentage of testers using the same IDE

44 Two automated suites have equal maintenance cost. Suite X runs every commit and detects failures after 15 minutes; Suite Y runs nightly and detects the same failures with slightly higher diagnostic accuracy. When rapid feedback is the primary economic objective, which benefit most strongly favors Suite X?

The Benefits of Automation and Tools Hard
A. Lower cost of locating changes associated with failures
B. Higher probability that every failure is reproducible
C. Guaranteed detection of defects before code integration
D. Complete elimination of manual defect investigation

45 A concurrency defect disappears whenever a detailed tracing tool is enabled because the tool changes thread timing. What is the most appropriate response?

Test Tools Hard
A. Replace concurrency tests with static requirements reviews
B. Classify the defect as invalid because tracing suppresses it
C. Use lower-overhead tracing and compare evidence from multiple runs
D. Increase tracing detail until the failure becomes deterministic

46 A coverage tool reports 100% branch coverage, but mutation testing shows that most altered conditions survive. Which interpretation is most defensible?

Test Tools Hard
A. Branch coverage subsumes the fault detection measured by mutation testing
B. Branches execute, but assertions may not distinguish incorrect behavior
C. The coverage tool proves that all requirements were exercised
D. The surviving mutations must be functionally equivalent changes

47 A capture-and-replay GUI suite fails after each deployment because controls receive new generated identifiers, although labels and business behavior remain stable. Which tool capability would most directly reduce this maintenance problem?

Test Tools Hard
A. Automatic duplication of scripts for each deployment
B. Longer fixed delays between all recorded user actions
C. Pixel-perfect screenshot comparison for every interaction
D. Semantic object recognition with configurable locator strategies

48 A test management tool claims 100% requirements coverage because every requirement has at least one linked test. Which condition is necessary before this figure can support a meaningful audit conclusion?

Test Tools Hard
A. Every linked test contains the same number of procedural steps
B. Links are versioned and validated against current requirement semantics
C. All requirements and tests were created by one project role
D. The tool stores requirements and defects in separate databases

49 An automated suite contains the same checkout workflow in 80 scripts, each with different test data. A minor workflow change requires editing every script. Which redesign best addresses the underlying automation problem?

Software Test Automation Hard
A. Record a new independent script for each existing data set
B. Separate reusable workflow logic from externally supplied test data
C. Run all scripts concurrently to reduce total execution time
D. Add retries around each checkout operation in every script

50 A UI test intermittently fails because it checks an element exactly two seconds after submitting a request whose completion time varies between one and five seconds. Which synchronization strategy is most robust?

Software Test Automation Hard
A. Increase every fixed delay in the suite to six seconds
B. Poll for the required observable state until a bounded timeout
C. Disable the assertion when the server load is high
D. Retry the entire suite whenever the assertion fails

51 A business rule can be verified through either a browser test or a service-level test. Both detect the same rule violation, but the browser test is slower and more fragile. Which allocation is most appropriate?

Software Test Automation Hard
A. Verify the rule mainly at service level and keep a thin browser path
B. Verify the rule only through browsers because users use the UI
C. Remove service-level tests after the browser case first passes
D. Duplicate every service-level case as an identical browser case

52 Tests pass individually but fail unpredictably when the suite runs in parallel because several tests modify the same customer account. Which architectural correction best addresses the root cause?

Software Test Automation Hard
A. Execute failed tests repeatedly until one attempt succeeds
B. Order tests according to their historical pass percentages
C. Add a global delay before every customer account modification
D. Give each test isolated data and independent cleanup responsibilities

53 Each independent random input has probability of exposing a particular defect. What is the minimum number of inputs required to obtain at least a 95% probability of exposing it once?

Random Testing Hard
A. 14,978 inputs
B. 19,956 inputs
C. 15,000 inputs
D. 14,977 inputs

54 A randomized concurrent test logs its pseudo-random seed, but replaying that seed does not reproduce the failure. Which additional information is most critical for reproducibility?

Random Testing Hard
A. Requirement priority, defect severity, reviewer, and release label
B. Generator version, initial state, environment, and thread schedule
C. CPU price, monitor resolution, keyboard type, and repository size
D. Source file size, test author, execution date, and code formatting

55 Uniformly random byte strings almost never pass a structured protocol parser's initial validation, so deeper states remain untested. Which generation strategy best improves defect discovery while retaining randomness?

Random Testing Hard
A. Discard every input that reaches a state visited by an earlier test
B. Generate longer uniform byte strings without using protocol structure
C. Generate grammar-valid messages and randomly mutate selected constraints
D. Restrict generation to one previously successful protocol message

56 A property-based test finds a failure for a valid transaction sequence, but its shrinker reduces the sequence to one that violates the test's preconditions and no longer demonstrates the original fault. What is the best correction?

Random Testing Hard
A. Disable shrinking and retain every generated sequence indefinitely
B. Treat the invalid reduced sequence as proof of the original defect
C. Constrain shrinking so candidate sequences preserve required preconditions
D. Replace randomized generation with one fixed transaction sequence

57 A stable feature is scheduled for retirement after four more regression cycles. Automating it requires 60 hours, while each remaining manual cycle costs 12 hours and each automated cycle would cost 3 hours in maintenance and supervision. What is the best economic decision?

Realities of Using Test Tools and Automation Hard
A. Automate because execution time is lower for every future cycle
B. Automate because sunk development costs should be ignored
C. Stop regression testing because the feature will be retired
D. Keep testing manually because automation would cost more overall

58 A vendor demonstrates near-perfect automation on a small sample application. Before organization-wide purchase, which evaluation provides the strongest evidence of suitability?

Realities of Using Test Tools and Automation Hard
A. A workshop measuring how quickly users memorize the product menus
B. A time-boxed pilot using representative systems and predefined criteria
C. A license negotiation completed before technical compatibility testing
D. A comparison based primarily on the vendor's total customer count

59 An automated suite reports all tests passing, yet a tax calculation is wrong in production. Investigation shows that each script compared the result with a value computed using the same faulty formula as the application. Which limitation does this illustrate?

Realities of Using Test Tools and Automation Hard
A. Automation can consistently apply an incorrect test oracle
B. Automation cannot execute tests involving numerical calculations
C. Passing automated tests prove only that the environment is available
D. Shared formulas guarantee independence between code and expected results

60 A team automates an unstable approval process while business rules are changing weekly. Script maintenance rapidly consumes more effort than manual execution. Which action best addresses the situation?

Realities of Using Test Tools and Automation Hard
A. Add more scripts immediately to increase the automation percentage
B. Replace maintainers whenever the recorded workflows become obsolete
C. Stabilize the process and automate durable interfaces and rules first
D. Freeze all scripts and ignore subsequent business rule changes