These are the examples of perfective and imperfective aspects of Russian verbs.
Спрашивать, просить - imperfective
Спросить, попросить - perfective.
Also, there is a difference in meaning. Спрашивать и спросить - to ask about some information, whereas просить и попросить - to ask someone to do something.
Удачи :)