Which best describes the two main functions of transistors in circuits? resisting and amplifying measuring and switching resisting and measuring switching and amplifying