A pilot may be requested to squawk a given code by an air traffic controller, via the radio, using a phrase such as "Cessna 123AB, squawk 0363".
An air traffic controller can request a pilot to announce a designated code via radio. This is done by the pilot responding with a phrase such as "Cessna 123AB, acknowledge as 0363."