Electronic configuration of element A(atomic number =17) is 2,8,7. So it accepts one electron to complete its octet. Therefore ‘A’ is non-metal.
Additional information:
Non-metals are the elements which form negative ions by the gain of electron(s).
Chlorine(atomic number =17) has 7e in the outermost shell. So it accepts one electron to complete its octet.