Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Project description Multiple Choice Quiz The aim of this project is to make a multiple-choice quiz using Python

Project description Multiple Choice Quiz The aim of this project is to make a multiple-choice quiz using Python

Computer Science

Project description

Multiple Choice Quiz

The aim of this project is to make a multiple-choice quiz using Python. The quiz contains 10 questions about Norway as attached in the appendix. When the user runs the code, first he/she should be asked to enter a username and password as login information (consider PGR211 as the username and Python as the password).
Note that the login information should be kept in a dictionary, and the dictionary should be passed to a function called Jogin_info along with the username and password entered by the user to check whether or not the login is successful. If yes, the user should see the first question and should be able to enter his/her answer to that question. Then, the second question should be visible to the user to answer, and so on. If the login is not successful, the message “Invalid username and/or password” must be printed and the user should be
able to enter a new username and a password until they are valid, and the login is successful. At the end, the program should report the number of correct and wrong answers for the quiz and print the correct answers for those questions answered wrong by the user. In order to print the correct answers for those questions, the program should print the question itself, the (wrong) answer entered by the user as well as the correct answer for that question.

Note: The code must be completely written using the concept of OOP (Object Oriented Programming).

Q1. What is the capital of Norway?
a. Bergen
b. Oslo
c. Stavanger
d. Trondheim
Q2. What is the currency of Norway?
a. Euro
b. Pound
c. Krone
d. Deutsche Mark
Q3. What is the largest city in Norway?
a. Oslo
b. Stavanger
c. Bergen
d. Trondheim

Q4. When is constitution day (the national day) of Norway?
a. 27'° May
b. 17 May
c. 17" April
d. 27" April
Q5. What color is the background of the Norwegian flag?
a. Red
b. White
c. Blue
d. Yellow
Q6. How many countries does Norway border?
a. |
b. 2
c. 3
d. 4

Q7. What is the name of the university in Trondheim?
a. UiS
b. UiO
c. NMBU
d. NINU
Q8. How long is the border between Norway and Russia?
a. 96km
b. 196 km
c. 296 km
d. 396 km
Q9. Where in Norway is Stavanger?
a. North
b. South
c. South-west
d. South-east
Q10. From which Norwegian city did the world famous composer Edvard Grieg come?
a. Oslo
b. Bergen
c. Stavanger
d. Troms¢

Option 1

Low Cost Option
Download this past answer in few clicks

13.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE