Most airplanes are equipped with a device called a transponder, which responds to the radar sweep by sending out digital codes. In the most common mode, these include a code for the altitude the aircraft is flying and a 4-digit code that is entered by the pilot.
Airplanes that do not have transponders operate under stiff limitations in controlled airspace.
Air Traffic Control keeps track of airplanes by asking the pilot to enter a specific arbitrary code. For example, if an approach controller tells you "Cessna Umptey-4-7-Charlie, squawk zero-fower-fower-six," it means you are to enter 0-4-4-6 on the transponder code dials.
Then the controllers get a little cluster of information about your flight that follows you around the screen, instead of just a blip (bright dot) on the radar.
There are several standard codes for various situations. For example, all VFR flights not otherwise assigned squawk 1-2-0-0, which some pilots call "squawking a dozen." And others.
Try an Internet search on "transponder code."