Pergunta de entrevista da empresa Pason Systems

Is a BJT better as an amplifier or a switch, and why?