What is a transistor?

Question: What is a transistor?

Choices:

A chemical element
An electronic component
A computer file type
A car part

Correct answer:

An electronic component