Class A unsporting (taunting, fighting, profanity): 2 free throws + possession to the opposing team; 2 in a game = ejection; Class B (delay-of-game, illegal substitution, hanging on rim without play continuation): 1 free throw + possession; Class C (administrative — coach conduct, scorebook error...
Why people argue about this
People often think that a technical foul is only for blatant unsportsmanlike behavior like arguing with the referee, but in reality, it can be awarded for less obvious infractions like excessive time-wasting or failing to shake hands after a game, which leads to confusion about when and how they apply.