It's been awhile since I've done anything basketball related (ie watched or played it) but I believe they are referring to a foul.
A coach or player can get a foul for the reasons you stated, or doing something like yelling at the referee and questioning his call. I'm not sure if there would be a fine involved or not, especially at high school level.