In a programmable voltage supply, using operational amplifiers, the output voltage is usually altered by varying R2 with series switches, generally relays.
When transistors are used as switches, they require isolated transformer drive, adding to size and cost. Read full article