Since you asked so nicely...
The statements that have been repeatedly mentioned on here that Civilian RADAR systems are passive and only Military are Active are incorrect
ATC operates on two systems, Primary and Secondary RADAR.
Primary is the system that actually detects the aircraft as it comes into range, it relies purely on the reflection of the radio waves that it emits. This is your typical RADAR system that people think of. The downside of this is the range and lack of positive id of an particular airframe, all the operator sees is a "blip" on the screen.
Secondary RADAR or Secondary Surveillance RADAR (SSR), works to overcome this. A SSR ground station fires an interrogation pulse which is detected by the Aircrafts on board system (aka Transponder), the aircraft frames a response (this response contains the unique 4 digit code assigned to it by ATC, along with its pressure altitude) and sends it back to the ground station.
The ground station processes this reply and overlays it on the blip that is on the consoles operator screen, this allows ATC to positively ID the airframe.
SSR has a greater range in theory than that of Primary RADAR do to the interrogation / reply process.
SSR came about from the Military and the need to positively identify whether an airframe was friendly or not. It was developed into the civilian system in use today post war.
As you can see, both systems are active, in that both systems transmit, and then await a reply. Whether that reply is the reflected energy off the airframe (Primary RADAR) or its the framed data from the transponder (SSR). No reply, no data to display. Neither system would work in a passive manner.
So what can be done from inside the cockpit? Well basically, the SSR side of the system can be disabled usually by the selection of one rotary switch. This will remove the ID and height information from the console operators screen, but not the "blip" as this cannot be "switched off", as long as the airframe is in range of the ground transmitter it will show up.
This is likely why the airframe has reportedly ascended to 45,000 ft for a period of time, to get out of useful Primary RADAR range thus making the aircraft "disappear"
How then did they figure out where it went and how high etc? Well the aircraft is fitted with other systems that feed data back to ground stations about the aircrafts location and performance etc. This is what airlines use to track the progress of the flight to confirm it will arrive on time / early / late etc this system can also report back data regarding maintenance and faults. But yes this system too can be turned off.
Some modern airliners also have a satellite system on board which provide internet, media and other data services.
It is my understanding that what the "authorities" are saying is that it was turned off, but the satellite uplink wasn't, which resulted in the aircraft being "pinged" at regular intervals. Using this "ping" they claim that they have extrapolated approximate positions and heights as it travelled.
I firmly believe that there is more to this story than is being revealed. Hence the numerous conspiracies out there.
There ya go, does that help? I thought this was a car forum, not an aviation technical one.