Quick -Quiz

 If you want to add 200 questions to your code, you need to make the following modifications:

  1. Update the MAX_QUESTIONS constant to 200:

    c
    #define MAX_QUESTIONS 200
  2. Increase the size of the contents array in the main() function to accommodate more questions. For example:

    c
    char contents[10000] = ""; // Increased size to accommodate more questions
  3. Increase the size of the question array in the exam() function to handle longer questions. For example:

    c
    char question[1000] = ""; // Increased size to accommodate longer questions
  4. Increase the size of the options array in the exam() function to handle longer answer options. For example:

    c
    char options[4][200] = {0}; // Increased size to accommodate longer answer options

Make sure to adjust the sizes according to the actual length of your questions and answer options. Additionally, ensure that the file you're reading from contains the additional 100 questions.

Comments