You have been asked to write an application that automatically grades a quiz. The quiz has 15 multiple-choice questions. The correct answers are: 1.A, 2.C, 3.A, 4.B, 5.B, 6.D, 7.D, 8.A, 9.C, 10.A, 11.B, 12.C, 13.D, 14.C, 15.B The program will start by creating a list holding the quiz answers key shown above. It will then prompt the user for the student name and their answers file and read them into a separate list. It will finally compare the key vs. answers lists to calculate & display: Number of correct answers Number of incorrect answers Questions incorrectly answered. Whether the student has passed or failed the quiz A student must correctly answer 11 out of 15 questions to pass. The user can grade as many students as they wish.
Using introduction to Python
You have been asked to write an application that automatically grades a quiz. The quiz has 15 multiple-choice questions. The correct answers are:
1.A, 2.C, 3.A, 4.B, 5.B, 6.D, 7.D, 8.A, 9.C, 10.A, 11.B, 12.C, 13.D, 14.C, 15.B
The
Number of correct answers
Number of incorrect answers
Questions incorrectly answered.
Whether the student has passed or failed the quiz
A student must correctly answer 11 out of 15 questions to pass.
The user can grade as many students as they wish.
Notes
- The file containing the student’s answers is organized as 15 lines. Each line contains the answer to the corresponding question. The responses are single character strings, from A to D, uppercase.
- Must use functional decomposition in your program implementation.
- Use Exception Handling to catch file processing errors such as IOError, FileNotFoundError, etc.
- You may use the A001Quiz.txt, B002Quiz.txt, and C003Quiz.txt files attached to t for testing purposes.
A001Quiz.txt :
A
C
C
B
B
C
D
A
B
B
B
C
D
D
B
B002Quiz.txt:
A
A
C
B
B
C
C
A
B
B
B
C
C
D
B
C003Quiz.txt:
A
C
A
B
B
D
D
A
C
A
B
C
D
D
B



Trending now
This is a popular solution!
Step by step
Solved in 2 steps

your code does not run Exception Handling correctly like shown in my 2nd picture . Can you please fix it ?
can u please send screenshot of code for the alignement/ indentation
thank you








