Does the altitude affect bouncing a basketball?

Yes, the higher the altitude the higher pressure on the outside of the ball and so the greater the tension of the ball since the particules inside will be pushing out. Therefore it will bounce better.