+1 vote
in Software Architecture by (75.2k points)
What is precondition?

(a) It is an assertion that must be true at the initiation of an operation

(b) It is an assertion that must be true upon completion of an operation

(c) It is a statement that must be true at a designated point in a program

(d) None of the mentioned

I had been asked this question by my school teacher while I was bunking the class.

I would like to ask this question from Operation Specification topic in chapter Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct option is (a) It is an assertion that must be true at the initiation of an operation

To explain I would say: A precondition is an assertion that must be true at the initiation of an operation and A post condition is an assertion that must be true upon completion of an operation.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...