> What determines which scanning option will be used?
It is up to the client to chose. If, for example, the client has a preferred network (or several), it may actively probe for that network.
If the client doesn't have a preferred network, it may passively listen for the available networks so the user can chose.
The client can also do both -- probe for a known network and listen for other available networks. This is typically what a PC will do.