To code an LED as output in Arduino, there are 3 places to edit your code:
At the top of your sketch, define the pin you will use for the LED.
In the void setup() function, add a pinMode statement to initialise the pin as OUTPUT.
In the void loop() function, add statements to turn the LED on and off as required.
To code BUZZER output in Arduino, there are 3 places to edit your code:
At the top of your sketch, define the pin you will use for the buzzer.
In the void setup() function, add a pinMode statement to initialise the pin as OUTPUT.
In the void loop() function, add tone statements to turn make sound with the buzzer as required.
Extending your learning:
Servos are used to precisely control rotational movements. Attach a servo and code using the servo library. A sample servo implementation can be found here.