The petty cash book is a ledger that records small transactions and expenses made in cash by a company. It has both debit and credit balances because it records cash payments made (debit) and cash received (credit) for small expenses such as stationery, postage, and other miscellaneous expenses. Therefore, the correct answer is "both debit and credit balances."