In a parliamentary democracy, such as Australia and New Zealand, the head of government (prime minister) is chosen by

responses
The popular vote
the religious leader
the head of the state
the elected parliament

the elected parliament