is it possible to generate random questions from the database? if yes how?

We can’t write your program for you.  I wonder if this can help get you started?

http://stackoverflow.com/questions/2279706/select-random-row-from-an-sqlite-table

You could always load in all the records into a table then shuffle the table too.

Rob

Thank you

Is there a way to the record (choices of the question) on a button, when it can be pressed and if it is correct it will display it on the simulator and go to another question with different choices and if it is incorrect it will display it on the simulator