797836 wrote:Sir, yes Sir!
Now tell me how we can do the randomization
and how we can label the questions which is been answered?This depends on your data storrage. Ideally you'd have a database holding the questions. Then you could simpla add a table that stores the question ID, the user id and the ID of the answer (when given). this way you can later track wich user passed and wich failed.
To make it clear, I am working on a project that requires me to create a class containing 20 questions and then I have to randomly select 5 questions with the respective answers in objectives (4 of them)Is there some good reason why you didn't mention that 11 days ago when you first asked for help? Or is it possible that you are still discovering requirements? In which case asking for a solution is considerably premature.
797836 wrote:Excellent. Being a proper developer you should now be capable to pick it up and implement it. Or at least be able to come up with a start.
Thanks. Honestly I was working on the requirements as we havent got the exact requirement which we are looking for.Now we got the exact picture of what we need to do.
UserAnswer( userId, questionId, answerId)