Step 1: Count oxygen atoms
Two moles of $\text{CO}_2$ contain 4 oxygen atoms and three moles of water contain 3, a total of 7 atoms of oxygen.
Step 2: Convert to molecules
7 atoms is $\dfrac{7}{2}=3.5$ molecules of $\text{O}_2$, so 3.5 mol.
Step 3: Compare the options
The value 7 is the number of oxygen atoms, not molecules, so only option (D) is right.
Final Answer:
The oxygen needed is 3.5 mol, so option (D) is correct.
\[ \boxed{\text{(D) }3.5} \]