you do realize you code will execute the branch 0 (answers), where all loop will be executed and only then it will pass to branch 1. So, your code doesn’t do what you want.
Are both arrays of the same size? If so, then just use a single for loop to iterate both the answers and questions arrays.