If I understand your question correctly, you have a many-to-may situation. In that case you should use a structure like:
- Subject table, contains different subjects such as cs, electronics, and so on
- Question table contains individual questions
- SubjectQuestion table contains questions linked to subject.
This way one subject can have multiple questions and one question can be usied for multiple subjects. The principle is called junction table, for more information, see
Junction table - Wikipedia, the free encyclopedia[
^]