
(a) Half disk (charge $3C$), and fourth part of rod (charge $2C$) and charge of $- 7C$ are inside the cubical surface, so net charge inside the surface $= 3 + 2 - 7 = - 2C$
$\therefore$ Flux through the surface $\phi = \frac{1}{\varepsilon_{0}}(Q) = \ \frac{- 2C}{\varepsilon_{0}}$