Quiz App
Decks
Folders
Edit Question
Back
Prompt
Question type
multiple_choice
short_answer
Accepted answer
Preview
The two subclasses overlap because values from 5 through 10 belong to both intervals. Therefore the data definition does not uniquely determine which subclass values such as 7 belong to. cond chooses the first true clause, so if Integer[-10,10] is checked first, 7 will always be handled by that branch. The data definition should normally be redesigned so the subclasses are unambiguous.
Optional reference answer for graders — supports Markdown. Free-text answers are never auto-graded.