To rap means to hit something with short, quick movements. People often rap on doors to get attention.
He rapped on the door once.
Please rap your fingers on the table.
A rap can mean a quick negative comment about someone's actions. It is like a small punishment or blame.
He got a rap for being late.
The teacher gave her a rap today.
To rap can mean talking in a casual and friendly way, often quickly and clearly.
We rapped about school after class.
She rapped with her friend for hours.
To rap can mean to say something quickly or smartly, especially a joke or a sharp remark.
He rapped a joke during the meeting.
She rapped a quick answer to him.