Which entity types can generally use either the cash or accrual method of accounting for tax purposes?

a. Sole proprietorship
b. Partnership
c. C corporation
d. S corporation