When the demanded quantity of a good is equal to the supplied quantity, the market is at equilibrium , not experiencing a shortage or a surplus.

So, for your MCQ:

When the demanded goods quantity is equal to supplied good’s quantity, then____.

None of the given options (shortage, surplus, government investing) describes this situation; it is called market equilibrium.

Therefore, the correct choice is: d. none of these