Multiple choice

In a consistent language, which of the following is correct?

  1. Similar situations are handled in a different way.

  2. Similar situations are handled in a similar way.

  3. Different situations are handled in a similar way.

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A consistent language follows the principle that similar situations should be handled in the same way - this reduces confusion and makes the language predictable. This is a fundamental design principle in programming language design and software engineering. Options A and C contradict consistency, while D is incorrect since B is valid.