Identify the correct sentence:
ক) The room was darkened by switching off all the lights.
খ) The room was darkened switching off all the lights.
গ) The room was darkened to switch off all the lights.
ঘ) Switching off all the lights the room was darkened.