Which areas speak which is clear, there is a hard language boundary. One side everything in German, the other side everything in French (or Italian), with very few bilingual areas.
See map here: https://upload.wikimedia.org/wikipedia/commons/9/9f/Map_Languages_CH.png
German speaking: Zürich, Luzern, Bern, Berner Oberland (Lauterbrunnen, Mürren, Thun)
French: Geneva, Lausanne
Italian: The south side of the Alps, Lugano, Bellinzona.
Note the spellings: Luzern. Lucerne is the French spelling, which is also used in English (for historical reasons).
Signs and trains are always in the language of the place, you will only see road signs or trains going to Luzern, even if getting on the train in (French speaking) Geneva.
The inverse works, getting a train from Zürich to Geneva, it will list the French spelling (Genève), but the announcements will be in German (Genf), French (Genève) and if you are lucky English (Geneva).
German / Swiss German
The official language is official German, mostly the same as in Germany, with a few differences (analogous to the differences between US English and British English). All signs and printed matter (Menus, price lists) will be in official German.
Example of differences: In the US you have an elevator, in the UK it is a lift
In Germany you have a Fahrstuhl , in Switzerland you have a Lift.
In Germany you buy a Fahrschein to travel on a train, In Switzerland a Billette.
Swiss German is a spoken dialect. It varies greatly from place to place. German TV has to subtitle it, it is that difficult to understand.
If they hear you are a foreigner, they will switch to "proper German", or even switch to English.
Just remember "Grüetzi", or "Bonjour".