The correct answer is: B. Board of directors.
The board of directors is responsible for the management of a public company. This includes the decision of how many shares to issue and to whom. The board of directors is elected by the shareholders of the company.
The other options are incorrect because:
- Shareholders do not have the authority to allot shares. They can only vote on the board of directors, who are responsible for making this decision.
- The managing director is an employee of the company and does not have the authority to make decisions about the company's shares.
- The government does not have the authority to allot shares in a public company. This is a decision that is made by the board of directors.