Narrative:

Left bowman field VFR to north, then west around class C airspace. Approximately 10 mins after leaving, noticed that transponder was set to XXXX. Set transponder to 1200 and continued flight. Pilot was somewhat distraction by nervous passenger. Set transponder to altitude and confirmed with checklist, but missed the code.

Google
 

Original NASA ASRS Text

Title: A C182 PLT DEPARTED SDF VFR WITH AN INCORRECT XPONDER CODE.

Narrative: LEFT BOWMAN FIELD VFR TO N, THEN W AROUND CLASS C AIRSPACE. APPROX 10 MINS AFTER LEAVING, NOTICED THAT XPONDER WAS SET TO XXXX. SET XPONDER TO 1200 AND CONTINUED FLT. PLT WAS SOMEWHAT DISTR BY NERVOUS PAX. SET XPONDER TO ALT AND CONFIRMED WITH CHKLIST, BUT MISSED THE CODE.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.