Will previous long stay of 5 or 6 months in B1 visa affects H1b visa interview or port of entry for a H1 position.

Suppose, i did stay for 5 or 6 months in B1 visa and , then got through the H1b visa processing.

Will this be questioned during further H1b visa interview at counsulate or at the port of entry while moving for a H1b position.

Yes, you may be asked about your trip. Please have an explanation ready.