Concept:A transistor is a three-layer semiconductor device with two p-n junctions.Explanation:A bipolar junction transistor has three regions: emitter, base, and collector.These regions form two p-n junctions: one between the emitter and base, and one between the base and collector.Answer:The number of p-n junctions in a transistor is 2.