ref
Representing yeah pronounced with the mouth snapped closed at the end. Compare nope and welp.
yep
by 1889, American English, variant of yes or yeah, altered for emphasis, or possibly influenced by nope.