How do i create questions that will pop up on the screen when a spawned item is picked up?

So i am using c++ code and i need that every time the player picks up a spawned item a question pops up, like a riddle and only if they get it correct can they actually take the item, and once a question has been used it cant be used again. How exactly would i store these questions and answers and how exactly would i visually represent this, im not really sure what to use.