Example (applying Stokes' theorem to a frustum)
We will integrate $\v F=(0,xz,0)$ along the surface $S$ $$ z^2 = x^2+y^2,\qquad a\leq z\leq b.$$
For the surface integral, use cylindrical polars to parametrise the surface: $$ \v x(\rho, \phi) = (\rho\cos\phi, \rho\sin\phi, \rho), \qquad a\leq\rho\leq b, 0\leq \phi\leq 2\pi. $$ Tangent vectors $$ \pdvd x\rho = (\cos\phi, \sin\phi, 1),\quad \pdvd x\phi=\rho(-\sin\phi,\cos\phi,0)$$ so $$ d\v S = \pdvd x\rho\times\pdvd x\phi\,d\rho\,d\phi = \rho(-\cos\phi, -\sin\phi, 1)\,d\rho\,d\phi. $$ Hence $$ \begin{align*} \int_S (\nabla\times\v F)\cdot d\v S &= \int_0^{2\pi}\int_a^b \,(-x,0,z)\cdot(-\cos\phi,-\sin\phi,1)\rho\,d\rho\,d\phi \\ &= \int_0^{2\pi} \int_a^b\rho^2(1+\cos^2\phi)\,d\rho\,d\phi \\ &= \pi(b^3-a^3). \end{align*} $$
The boundary of $S$ consists of two circles, $C_a:\rho=z=a$ and $C_b:\rho=z=b$. Integrating anti-clockwise around circle $\rho=z=R$ gives $$\v x(\phi) = R(\cos\phi, \sin\phi, 1) \implies d\v x = R(-\sin\phi, \cos\phi,0)\,d\phi$$ $$\oint_{C_R} \v F\cdot d\v x = \int_0^{2\pi} (0,R^2\cos\phi,0)\cdot R(-\sin\phi,\cos\phi,0)\,d\phi = \pi R^3.$$
To use consistent orientation, since $d\v S$ points inwards, $C_b$ should go anti-clockwise and $C_a$ should go clockwise, so $$ \int_{\partial S} \v F\cdot d\v x = \pi(b^3-a^3). $$