212k views
1 vote
Which of the following is true with regard to defensive programming? Preconditions should never be visible to callers. Program code frequently assumes that input will be valid and that algorithms will behave as expected. You should never guard assumptions. Information hiding dictates that we never document assumptions.

1 Answer

2 votes

Answer:

The correct point about defensive programming is that the "program code frequently assumes that input will be valid and that algorithms will behave as expected".

Step-by-step explanation:

User Jacob Fike
by
6.5k points