A few years ago this was essentially true, but advances in software have made it go the way of the horse and buggy. Avail yourself to study the recent advances in Machine Learning. What you find may change your mind about computers just executing programmed instructions. They have reached a point where we don't know what they are doing, or how.
It would be interesting to see how one of these ‘self learning’ robots dealt with the banana scenario.