Misapprehension 12: With respect to coverage, the programming language is irrelevant

Is the number of test cases needed for a certain coverage measure dependent from the programming language or not? Let’s consider the decision “A and B” in both the Pascal programming language and in the C programming language.

Are Pascal and C equivalent with respect to coverage?

Are Pascal and C equivalent with respect to coverage?

The figure above lists all the possible test cases in the particular programming languages. To get 100% simple condition coverage for instance, you need only two test cases in the case of Pascal (i.e. no. 2 and no. 3), whereas in case of C you need three test cases (no. I, II, and III). This is because Pascal is a programming language featuring complete evaluation, and C is not.