Qualcomm Interview Question

Swap bits in a number. How do you set or reset a bit.