"how is the government elected in parliament"

The federal government is part of the federal Parliament. After a federalĀ election, the party (or coalition of parties) with the support of the majority of members elected to the House of Representatives becomes the government.

To remain in office the government must keep the support of the majority in the House of Representatives.

Although government is formed in the House of Representatives, there are also members of the government in the Senate. The government may or may not hold the majority of seats in the Senate.

diagram to help explain how is the government elected in parliament