Determine the result of code segments.