cs335 past exam answer checking