ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 123 - CTAL-TTA discussion

Report
Export

A unit test should be deterministic. Which option correctly describes the meaning of 'deterministic' as a characteristic of a unit test9

SELECT ONE OPTION

A.
It should be small so that many tests can be run in a short period of time
Answers
A.
It should be small so that many tests can be run in a short period of time
B.
Whenever it is run under the same conditions, it should produce the same results.
Answers
B.
Whenever it is run under the same conditions, it should produce the same results.
C.
it should not depend on any other test.
Answers
C.
it should not depend on any other test.
D.
It should only test the functionality related to it.
Answers
D.
It should only test the functionality related to it.
Suggested answer: B

Explanation:

A unit test being 'deterministic' means that whenever it is run under the same conditions, it should produce the same results. This characteristic is crucial for reliable, repeatable testing outcomes that are not influenced by external factors or previous test states .

asked 18/09/2024
Cornelius Paul
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first