Any ultrasound machine that is capable of 3/4D imaging is based on 2D scanning. So they would generally use both, and give you images in 3D, because that's what parents want.
At 31 weeks it should be pretty clear, but it all really comes down to the skills of the sonographer. It's still possible to make a mistake, but pretty unlikely at 31 weeks, everything is well formed by then.