1. The total electric flux over any Gaussian surface enclosing charge Q is : Q / 0
SO : Q / 40 = 1/4th the flux = E.dA = ER2 ( Area of the disk is R2 )
SO : E = Q / 40R2 ----------------- (1)
BUT : E at the axis for the disk is given by : ( 2Q / 40R2 ) * ( 1 - a / (a2 + R2) ) ------------------ (2)
FROM (1) and (2) : a = R / 3
2. Given the rod is having a total charge of Q. So half the rod has Q/2 charge.
Only half the rod is inside the cube. SO : As per Gauss's law , the flux over the cubical surface is 1/ 0 times the total charge enclosed by the cube which is Q/2. SO : Flux over the entire surface is Q/20