Sample code for setting up question and answers for test

I’ve been away for some months and am now just able to get back to XOJO. I remember there was some sample code somewhere that showed how to read questions and answers from a file and show them on the screen formatted correctly. Some Questions needed a yes no answer, others were multiple choice and so on. Can anyone point me in the right direction.