Question 41
MediumWhen is state transition testing most useful?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
IT Fundamentals
When is state transition testing most useful?
When testing static web pages
For performance testing
When the system behaves differently depending on its current state, such as an ATM card being blocked after three wrong PINs
For code reviews
Sign up free to see the answer and a step-by-step explanation.
In integration testing, what is the difference between a stub and a driver?
A stub calls the module under test; a driver is a database
A stub stands in for a called module that is not ready; a driver calls the module under test
They are the same
Both are hardware devices
Sign up free to see the answer and a step-by-step explanation.
Which approach to integration testing mainly needs stubs?
Top-down integration
Bottom-up integration
Big-bang integration only
Unit testing
Sign up free to see the answer and a step-by-step explanation.
What does code coverage measure?
How many developers wrote the code
How fast the code runs
How many comments the code has
How much of the code is executed by the tests
Sign up free to see the answer and a step-by-step explanation.
What is test-driven development (TDD)?
Testing only after release
Letting testers write all the code
Skipping unit tests
Writing a failing test first, then the code to pass it, then refactoring
Sign up free to see the answer and a step-by-step explanation.
What is mutation testing?
Changing requirements every week
Testing on mobile devices only
Making small changes to the code to check whether the tests detect them
Testing with random users
Sign up free to see the answer and a step-by-step explanation.
Which of these is non-functional testing?
Checking that login accepts a valid password
Performance testing
Checking that the cart total is correct
Checking that a form saves data
Sign up free to see the answer and a step-by-step explanation.
What does compatibility testing check?
That the software works across browsers, devices, operating systems and screen sizes
That the code compiles
That the team gets along
That the database has indexes
Sign up free to see the answer and a step-by-step explanation.
How is defect density usually expressed?
Number of defects per size of the software, such as per 1,000 lines of code (KLOC)
Defects per tester
Defects per day
Defects per meeting
Sign up free to see the answer and a step-by-step explanation.
What is the difference between a test scenario and a test case?
They are identical
A test case is broader than a scenario
A scenario is only for automation
A scenario is a high-level situation to test; a test case gives detailed steps, data and the expected result
Sign up free to see the answer and a step-by-step explanation.