Bob and Maria were sitting at/in the back of the class.
In/at the back of the bus?
I would use "at" for both of those.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
While there is a strong tendency to prefer "at the back of" in British English, there is a weak tendency in American English to prefer "in the back of". Both varieties of English use both forms.
CJ