Finite Automata

Answer & solution
Official answer: B
Approach: Enumerate paths ending in each accepting state and track the parity before and after the epsilon jump.
1. Derivation. The initial epsilon choice reaches state2 or 4. State2 accepts an even number of 0s; after an odd number of 0s the machine is in 3 and can take epsilon to accepting 5, after which an even number of 1s returns to 5. The direct state4 branch accepts an odd number of 1s. Thus the language is(00)* + 0(00)*(11)* + 1(11)*. The pure even/odd zero cases together equal 0*, so it can be written 0*+(1+0(00)*)(11)*, option B.
2. Explanation and checks. Staying in the upper component accepts an even zero count; reaching 3 requires an odd zero count and jumping to 5 then permits an even one count. Starting at 4 instead requires an odd one count. A misses the accepted word 0. C wrongly accepts 11 (take ε from (00)* and one pair of ones), whereas the NFA cannot accept pure even-positive ones. D misses ε, which is accepted via 1→2. These witnesses isolate B beyond merely manipulating algebraic expressions.