how to write examination(multiple choice) script in unix

Hi,

I am unable to get idea, how to write the script like multiple choice exam model script , how to specify the welcome to the exam(name) and if he select
option then it has to enter into the exam , then choosing the answers,next question and going to previous question.

Thanks & Regards

Pal Reddy