Answer on Question#38160 – Math - Other
(B) is recursive and is a deterministic CFL.
One can easily design a deterministic push down automata which scans the input left to right, when a 0 is encountered it stacks it, and moves to the right. When a 2 is encountered it switches from a stacking to a pop state and so long as a 1 comes in the input it pops a 0. When the input is exhausted and the stack is empty, it goes to a final state.