Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a command-line quiz application which asks the user a series of multiple-choice questions relating to HTTP client and server networking which will provide
Create a command-line quiz application which asks the user a series of multiple-choice questions relating to HTTP client and server networking which will provide instant feedback to the user's answers whereby you will demonstrate your understanding on HTTP client-server networking. You need to provide evidence of the project being your own work, meaning you need to display this information in each question. 1.1 Create a directory to store the following set of questions and answers: (4 Marks) Question What is the difference between HTTP and HTTPS? What are the common HTTP methods supported by most web servers? What is a status code in HTTP? Wat is a request header in HTTP? What is a response header in HTTP? Answer HTTPS is encrypted and secured using digital certificates, while HTML is not. GET and HEAD are the only two methods that every general web server supports. A message a website 's server sends to the browser to indicate whether or not that request can be fulfilled. An HTTP header that can be used in an HTTP request to provide information about the request context, so that the server can tailor the response. An HTTP header that can be used in an HTTP response and that doesn't relate to the content of the message. 1.2 Create a function that displays the questions in the form of multiple-choice options and waits for the user to input their answer. The function should then compare the user's answer with the correct answer and provide feedback on whether the answer was correct or incorrect. (7 Marks) 1.3 Use the built-in http.server module to create a simple HTTP server that will serve the quiz questions over the network. (3 Marks) 1.4 Create a client application that connects to the server using the built-in http.client module to read the quiz questions and display them to the user. (5 Marks) 1.5 When the user answers a question, the client must send their answer back to the server to compare it with the correct answer and return feedback on whether the answer was correct or incorrect. The client should display the feedback to the server and the process should be repeated until all the questions have been answered. (5 Marks) 1.6 Provide the output of each question in this project, be sure to include your name and student number as a comment in each section.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started