Purpose of capacitor across transformer in AC-DC
Question 0 Yes, the yellow part is transformer, actually "the transformer" the one that does the job i.e. scales the voltage from mains 240V to something about 20V. The black transformer is common-mode suppressor -