Question and answer generator and validator