@peirof It's not very difficult to test on whatever slicer you favour.
On my PrusaSlicer the answer to case B is 11 layers, 1.98 high. It even shows you that in the user interface (no need to read gcode):
eb76d7d1-fc0a-4221-818e-d4c9e0d577ad-image.png
Reading through the gcode, this is the last Z change (note that the gode has zero-based counting, so layer 10 is the 11th layer):
...
G1 X-49.24 Y-49.159 E.02829
;LAYER_CHANGE
;Z:1.98
;HEIGHT:0.18
; layer change to layer 10 = 1.98mm
;;;
G1 Z1.98 F10800
G10 ; retract
G1 X-49.383 Y-50.135
G1 X49.383 Y-50.135
...
Case C is 9 layers, 2.07 high:
0df89e8f-6c8a-4711-8adc-ff02914c5e75-image.png
and
...
G1 X-49.254 Y-49.194 E.03431
;LAYER_CHANGE
;Z:2.07
;HEIGHT:0.23
; layer change to layer 8 = 2.07mm
;;;
G1 Z2.07 F10800
G10 ; retract
G1 X-49.399 Y-50.151
G1 X49.399 Y-50.151
...