(a) The balloons acquire the same kind of charge on rubbing, so they repel each other.
(b) When a charged balloon is brought near an uncharged wall, induction occurs, and the wall acquires a charge opposite to that of the balloon. As the balloon and the wall now have opposite charges, they are attracted to each other.