A unit test should be deterministic. Which option correctly describes the meaning of 'deterministic' as a characteristic of a unit test9
SELECT ONE OPTION
Suggested Answer: B
Get Premium CTAL-TTA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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 .
17 comments · newest first
SH
Sheldon
23 days ago
True, we need broader criteria for unit tests.
JO
Jolene
28 days ago
I feel like D is too narrow in focus.
JO
Joye
1 month ago
Exactly! Without that, tests are useless.
DA
Darrin
1 month ago
Right, B really emphasizes reliability.
SH
Sheldon
1 month ago
C is important, but it doesn't capture the essence of deterministic.
JO
Jolene
2 months ago
Option A sounds good too, but it’s not the main point.
JO
Joye
2 months ago
Agreed! Tests need to give the same results every time.
DA
Darrin
2 months ago
I think B is the best choice. Consistency is key in testing.
MA
Margart
2 months ago
C is also crucial, but it doesn't define deterministic.
BE
Becky
2 months ago
Wait, can tests really be completely deterministic? Seems tricky.
BI
Billye
2 months ago
A is important too, but not what deterministic means.
AS
Ashanti
3 months ago
Totally agree with B! Deterministic means same results every time.
KA
Karl
3 months ago
B is the correct answer! Tests need to be consistent.
ER
Ernest
3 months ago
I know that a unit test shouldn't rely on others, but I don't think that's what 'deterministic' means. I might need to double-check my notes on this.
DA
Dana
3 months ago
I practiced a similar question last week, and I think it was about consistency in test results. That makes me lean towards option B again.
TR
Tran
3 months ago
I'm a bit unsure about this one. I feel like all the options touch on important aspects of unit tests, but I can't quite recall which one specifically defines 'deterministic.'
VI
Viola
4 months ago
I remember discussing how a deterministic test should always give the same output if the input and environment are unchanged. So, I think option B makes sense.