There's no evidence professors habitually whistle or sing when passing students. This seems unlikely and out of character for most academics. Professors, like any professionals, may occasionally hum absentmindedly, but it's not a documented occupational behavior. If a specific professor does this, it's a personal quirk, not a general trait.