Are motorized bicycles suitable for uphill?

I primarily want a bicycle for going up the mountains, where I go it's so steep you have to set the lowest gear possible or even just walk. Would a gasoline bike stand any chance in such conditions, given that the small torque? What should I look for for such conditions - a bigger sprocket, a higher volume (100cc+?)