The correct option is D 8
Maximum number of electrons in a shell is '2n2', where 'n' is the principal quantum number.
For L shell, the principal quantum number is '2'.
So, the number of electrons will be 2(2)2 which corresponds to 8 electrons.
Hence, option B is the correct answer.