How can I silence a call or alarm in locked state?

If the turning control is enabled, you can silence a call and alarm by flipping the device screen side down to a flat surface. The turning control settings can be found in Menu > Settings > Phone > Sensor settings > Turning control.

You may also answer a call with a swipe in the direction of the Answer arrow or use the appropriate screen button to silence an alarm.