Hint : (a) Ge is group 14 element and In is group 13 element. Therefore, an electron deficit hole is created. Thus semiconductor is p-type.
(b) Since B is group 13 element and Si is group 14 element, there will be a free electron, thus, it is n-type semiconductor