[SOLVED] Driver’s license exam

30.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

4.9/5 - (14 votes)

The local Driver’s License Office has asked you to write a program that grades the written portion of the driver’s license exam. The exam has 20 multiple choice questions.
Here are the correct answers:
(A,C,A,A,D,B,C,A,C,B,A,D,C,A,D,C,B,B,D,A)
Your program should store these correct answers in a list.The program should read the students answers for each of the 20 questions from a text file and store them in another list. After students answers have been read from the file, the program should display a message indicating whether student passed or failed. Must answer atleast 15 to pass. It should then display total number of correct answered questions, total number incorrect answered questions, and a list showing the question numbers of the incorrectly answered questions.
requirements:
use python code
use of functions and value returning functions- use 3
read file contents into list using a loop

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.