Compatibility summary
You will need a travel adapter in Cocos (Keeling) Islands; plug types used there differ from Switzerland.
Plug comparison
Switzerland plug types: C J
Cocos (Keeling) Islands plug types: I
There is no common plug type between Switzerland (C J) and Cocos (Keeling) Islands (I). You need a travel adapter.
Voltage comparison
Switzerland: 230V, 50Hz
Cocos (Keeling) Islands: 230V, 50Hz
Voltage difference is within a range many devices tolerate; check your appliance label.