The correct option is A Foregut and midgut
The malpighian tubules are the excretory organ of cockroach which excretes nitrogenous products and other remains of metabolites. It is present at the junction of the midgut and hindgut. These are fine, yellow-coloured and branched threads present in bundles, approximately about 150 in number.