The example being considered is about an example implementation of a Question Bank service. The QB is a single source of questions meant for exams. There is a facility to call the service for getting the questions. For the demo, it is also good to have a facility where only a part of the questions are to be delivered, and accordingly, the questions are organized based on chapters. For instance, if questions are required from Chapter 1, they can be sent across in a URL and the questions will be delivered accordingly.

To keep the demo implementation simple, let us have the questions hard-coded into memory rather than the ideal case of serving it from a database. There are two parts to the demo—one the service ...

Get Web Technology: Theory and Practice now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.