Skip to main content

Language semantics checkpoint

Challenge on lesson: Checkpoint: language semantics

CHALLENGE
Difficulty: advanced+25 XP

Implement static string Classify(int input) in class Solution. Rules: return "default" for 0, "negative" below 0, "small" for 1โ€“99, otherwise "large". Then decide the boxing behavior questions in the second test by returning the exact values shown.

Back to lesson: Checkpoint: language semantics