The modulus of $ z $ is:
$$ |z| = \sqrt{ 3 }$$To find modulus of a complex number $ z = a + bi $ we use formula:
$$ |z| = \sqrt{a^2 + b^2} $$In this example we have $ a = \sqrt{ 3 } $ and $ b = 0 $ so:
$$ \begin{aligned}|z| &= \sqrt{ \left( \sqrt{ 3 } \right)^{ 2 } + 0^2 } \\[1 em]|z| &= \sqrt{ 3 + 0 } \\[1 em]|z| &= \sqrt{ 3 } \\[1 em] \end{aligned} $$