If you realise this experiment at home you get result:
To respond to this question, you need some notions of physics and more specifically about pressure. The ambient air exercise pressure on every surface , it's the atmospheric pressure. Likewise water exercise pressure on any oject in it.
When you put your "empty" glass in your pot, your glass isn't fully empty: there is some air in it. As such,when outside water, the pressure inside and outside your glass is the same. When you put your glass in your pot, the pressure inside your glass and at the entry of it is different: there is some water pressure added. Which will make some water go into it. This will push the air in the glass into a smaller space and augment it's pressure. The water will stop moving in when the pressure at the bottom of the glass outside and inside of it is the same
To obtain the other results you need some specific environements.
For Case A: you could do the experiment in an environnement without any air: the only pressure left would be the pressure from water. As such the level of water inside and outside the glass would be the same.
For Case D: As for case A you do your experiment in the void. But after that you move your pot in an environement with some air. There is still no air in the glass, but there is an additionnal air pressure on the outside which push more water in.
For Case B: It is the opposite of case D; do the experiment in a normal environnement then move it to the void. Note that you need to have sufficiently few water in the pot or you will get answer C anyway.