Both people do pedal. The chain connects the pedals for both riders so they go in unison. It makes it somewhat easier because you have twice the force applied.
A two-seat bicycle has two seats and two sets of pedals. If both people use their pedals at the same time the bike will work better, but you do not have to both pedal. The person in frount has to pedal at all times.