Correct option is (d) To generate a square wave
Explanation: The tone() function is used to generate a square wave of 50% duty cycle. It accepts a maximum of 3 arguments; the pin number, the frequency, and the duration of the wave. If no duration is specified then the wave is continued to be generated until the noTone() function is invoked within the code.