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. Guaranteed defect removal
B. Increased code size
C. Eliminated test planning
D. Reduced manual effort

2 Which type of testing commonly benefits from automation?

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

3 How can automated tools improve test consistency?

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

4 Which benefit is provided by faster automated test execution?

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

5 What is a test tool?

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

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

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

7 What does a test management tool commonly help organize?

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

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

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

9 What is software test automation?

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

10 What does an automated test script usually contain?

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

11 What is the purpose of an automated test assertion?

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

12 When should an automated test report a failure?

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

13 What is random testing?

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

14 What is one purpose of random testing?

Random Testing Easy
A. To replace all planned test cases
B. To discover unexpected behavior
C. To remove the need for test results
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 project's meeting schedule
C. The application's brand color
D. The random seed used

16 Which statement about random testing is correct?

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

17 What is a common initial cost of test automation?

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

18 Why do automated test scripts require maintenance?

Realities of Using Test Tools and Automation Easy
A. Test results never remain available
B. Automation prevents software updates
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 execute repetitive test cases
B. It cannot produce execution reports
C. It cannot compare expected results
D. It cannot replace all human judgment

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

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

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. Guaranteed discovery of every defect
B. Reduced repetitive execution effort
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. Proof that the product is defect-free
B. Improved traceability of execution
C. Replacement of all exploratory testing activities across the project
D. Removal of environmental differences

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 tool guarantees production will match the test environment
B. The workload no longer requires test data
C. The workload is difficult to create manually
D. The tool can identify every usability problem

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. Avoiding the need to define expected results
C. Allowing the tool to redesign the calculation algorithm when a mismatch occurs
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. Test management tool
B. Static analysis tool
C. Load generation tool
D. User-interface capture 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. Service virtualization tool
B. Static analysis 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. Service virtualization
C. Code coverage measurement
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. Record every test again after each minor interface change
B. Centralize element locators
C. Duplicate scripts for each release
D. Increase fixed waiting periods

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. Rerun every failure until it passes
C. Disable asynchronous behavior throughout the entire application under test
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 one-time test of an experimental prototype
B. A subjective review of visual attractiveness
C. A test whose expected result changes during every execution
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. Ignore duplicate-account failures
B. Add reliable test-data cleanup
C. Run the test only once
D. Use the production database so that account records are shared consistently

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. Generate values using the date input grammar
B. Remove all invalid input cases
C. Generate longer arbitrary byte sequences without considering the accepted format
D. Use only one known valid date

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. Shrink the sequence while preserving the failure
C. Replace the failure with a manual test summary
D. Discard the sequence and generate new tests until a shorter failure appears

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. Require the application team to replace all custom controls before any evaluation
B. Run a proof of concept
C. Automate every existing test
D. Select the tool with the most features

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. A permanent budget for replacing the application whenever tests fail
B. Office lighting during execution
C. The number of manual defects previously found
D. Script development and maintenance

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. Some testing requires human judgment and exploration
C. Manual tests always detect more defects
D. Automated tests cannot execute regression scenarios

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 product must be rolled back
B. The tool has found hidden performance defects
C. The testware requires maintenance
D. The interface update should be classified as a production incident regardless of requirements

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. 30 executions
B. 24 executions
C. 22 executions
D. 23 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 eliminate the need for human regression analysis
B. It will remove the test environment scheduling constraint
C. It will reduce execution effort but may not shorten the release cycle
D. It will shorten the release cycle by exactly eight hours

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. Percentage of testers using the same IDE
D. Mutation score for the automated regression suite

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. Complete elimination of manual defect investigation
B. Lower cost of locating changes associated with failures
C. Higher probability that every failure is reproducible
D. Guaranteed detection of defects before code integration

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. Classify the defect as invalid because tracing suppresses it
B. Replace concurrency tests with static requirements reviews
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. The surviving mutations must be functionally equivalent changes
C. The coverage tool proves that all requirements were exercised
D. Branches execute, but assertions may not distinguish incorrect behavior

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. Longer fixed delays between all recorded user actions
B. Pixel-perfect screenshot comparison for every interaction
C. Automatic duplication of scripts for each deployment
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. All requirements and tests were created by one project role
B. Links are versioned and validated against current requirement semantics
C. The tool stores requirements and defects in separate databases
D. Every linked test contains the same number of procedural steps

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. Add retries around each checkout operation in every script
C. Separate reusable workflow logic from externally supplied test data
D. Run all scripts concurrently to reduce total execution time

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. Poll for the required observable state until a bounded timeout
B. Disable the assertion when the server load is high
C. Increase every fixed delay in the suite to six seconds
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 only through browsers because users use the UI
B. Verify the rule mainly at service level and keep a thin browser path
C. Duplicate every service-level case as an identical browser case
D. Remove service-level tests after the browser case first passes

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. Add a global delay before every customer account modification
B. Give each test isolated data and independent cleanup responsibilities
C. Order tests according to their historical pass percentages
D. Execute failed tests repeatedly until one attempt succeeds

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,977 inputs
B. 14,978 inputs
C. 15,000 inputs
D. 19,956 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. Generator version, initial state, environment, and thread schedule
B. Source file size, test author, execution date, and code formatting
C. Requirement priority, defect severity, reviewer, and release label
D. CPU price, monitor resolution, keyboard type, and repository size

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. Restrict generation to one previously successful protocol message
B. Discard every input that reaches a state visited by an earlier test
C. Generate longer uniform byte strings without using protocol structure
D. Generate grammar-valid messages and randomly mutate selected constraints

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. Replace randomized generation with one fixed transaction sequence
C. Treat the invalid reduced sequence as proof of the original defect
D. Constrain shrinking so candidate sequences preserve required preconditions

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. Stop regression testing because the feature will be retired
C. Keep testing manually because automation would cost more overall
D. Automate because sunk development costs should be ignored

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 license negotiation completed before technical compatibility testing
B. A workshop measuring how quickly users memorize the product menus
C. A comparison based primarily on the vendor's total customer count
D. A time-boxed pilot using representative systems and predefined criteria

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. Passing automated tests prove only that the environment is available
B. Shared formulas guarantee independence between code and expected results
C. Automation cannot execute tests involving numerical calculations
D. Automation can consistently apply an incorrect test oracle

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. Stabilize the process and automate durable interfaces and rules first
C. Replace maintainers whenever the recorded workflows become obsolete
D. Freeze all scripts and ignore subsequent business rule changes