The BC558 is a PNP transistor hence the collector and emitter will be closed (Forward biased) when the base pin is held at ground and will be opened (Reverse biased) when a signal is provided to base pin.
PIC16F877A Development Learning Board PIC USB Programmable MCU Controller System Core Board Module HJ-5G Experimental Platform Description: PIC16F877A Development Learning
The 2SD1947, 2SD-1947, D1947, 1947 is a 100V 10A NPN Silicon Transistor, TO-220F Package , Applications High Gain current, low Uce Voltage Saturation, Integrated Diode, Manufactured By TOSHIBA.