The correct answer is: D. No improvement
The sentence "You ought not behave like that" is grammatically correct and conveys the intended meaning. The word "ought" is used to express a moral obligation or duty, and the negative form "ought not" is used to express a prohibition or disapproval. In this case, the speaker is telling the listener that they should not behave in a certain way.
The other options are all incorrect. Option A, "ought to not behave," is ungrammatical. Option B, "ought not to behave," is the same as the original sentence, but it is unnecessarily wordy. Option C, "ought not to have behaved," is grammatically correct, but it expresses a different meaning. In this case, the speaker is telling the listener that they should not have behaved in a certain way in the past.
Therefore, the correct answer is: D. No improvement