Step 1: Use Gauss's law.
According to Gauss's law,
\[
\phi=\frac{q_{\text{enclosed}}}{\varepsilon_0}.
\]
So, electric flux depends only on the net charge enclosed by the Gaussian surface.
Step 2: Find the net charge enclosed by surface \(A\).
From the figure, surface \(A\) encloses the charges
\[
+q,\quad -2q,\quad +3q,\quad -5q.
\]
Therefore,
\[
q_A=q-2q+3q-5q.
\]
\[
q_A=-3q.
\]
Hence,
\[
\phi_A=\frac{-3q}{\varepsilon_0}.
\]
Step 3: Find the net charge enclosed by surface \(B\).
From the figure, surface \(B\) encloses charges whose net value is
\[
q_B=4q.
\]
Hence,
\[
\phi_B=\frac{4q}{\varepsilon_0}.
\]
Step 4: Find the ratio of fluxes.
\[
\frac{\phi_A}{\phi_B}
=
\frac{\frac{-3q}{\varepsilon_0}}{\frac{4q}{\varepsilon_0}}.
\]
Canceling \(q\) and \(\varepsilon_0\), we get
\[
\frac{\phi_A}{\phi_B}
=
-\frac{3}{4}.
\]
Step 5: Final conclusion.
Therefore,
\[
\boxed{-\frac{3}{4}}
\]
Hence, the correct option is
\[
\boxed{(4)}
\]