In Cars 2: The Video Game for the PS3, Wii, and Xbox 360, you can enter a cheat code in the cheats menu to unlock all modes and tracks.
To unlock all modes and tracks, enter 959595 as a code in the cheats menu.