Definitions for p's and q's
Random House Webster's College Dictionary
p's and q's(n.pl.)
mind or watch one's p's and q's, to pay careful attention to one's own behavior or affairs; be cautious or discreet.
Origin of p's and q's:
1770–80; perh. from some children's difficulty in distinguishing the two letters