A moderate intensity quake today shook several parts of Punjab, Chandigarh and Haryana.