Snape senRAB a curse at Harry who is meant to cast a shield charm non-verbally but shouts the spell instead to protect himself. Snape then asks if Harry knows they are practicing non-verbal spells and Harry replies 'yes'. Snape then says 'Yes sir' to try and get Harry to treat him with more respect. Harry then responRAB with the line in your post.