We must pick the element that shows dual, metal-like and non-metal-like, chemical behaviour.
- Argon is a noble gas with a complete outer shell, it barely reacts with anything, so it shows neither strong metallic nor non-metallic chemical behaviour.
- Xenon is also a noble gas, forming only a few compounds under special conditions, it is not classed as a metalloid.
- Carbon is firmly a non-metal, forming acidic oxides and covalent bonds typical of non-metals only.
- Boron forms an acidic oxide like a non-metal but has a partly metallic lustre and network covalent structure, placing it right on the metal to non-metal borderline, which is the definition of a metalloid.
So boron, option A, is the element that behaves both as a metal and a non-metal.