Uploaded May 2021 | Updated November 2026, 3 hours ago
A student asked on one of the facebook groups if he could pay us $100 to do his assignment for him. The post was soon removed! We are all happy to help and give advice and examples but I think that was a bit far.
On the off chance that someone did do it for him here's my example. This is a 5 question Multiple Choice Quiz using parallel arrays. There is validation for the input to convert to capital letters and validation the the input is A B C or D.
If you want to make a longer quiz you only need populate the different arrays with the question, correct answer and ABCD options. The code uses the length of these arrays to determine how many questions there are.
A student asked on one of the facebook groups if he could pay us $100 to do his assignment for him. The post was soon removed! We are all happy to help and give advice and examples but I think that was a bit far.
On the off chance that someone did do it for him here's my example. This is a 5 question Multiple Choice Quiz using parallel arrays. There is validation for the input to convert to capital letters and validation the the input is A B C or D.
If you want to make a longer quiz you only need populate the different arrays with the question, correct answer and ABCD options. The code uses the length of these arrays to determine how many questions there are.










