Create a command-line quiz application which asks the user a series of multiple-choice questions relating to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Principles of Information Systems
ISBN: 978-0324665284
9th edition
Authors: Ralph M. Stair, George W. Reynolds
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The JoFe Computers and Accessory Company produces two types of laptop computer bags. Version A costs $32, takes 4 hours of labor, and sells for $50. Version B costs $38, takes 6 hours of labor, and...
-
Explain why the tertiary amine (CH3)3N boils so much lower than its primary isomer CH3CH2CH2NH2.
-
Demand has grown at Dairy May Farms, and it is considering expanding. One option is to expand by purchasing a very large farm that will be able to meet expected future demand. Another option is to...
-
The horizontal portion of the wire in Figure P28.76 has a length \(\ell=0.100 \mathrm{~m}\), and position \(\mathrm{P}\) is a perpendicular distance \(d=30.0 \mathrm{~mm}\) above the center of the...
-
Because of the large number of devices in today's PC chips, finned heat sinks are often used to maintain the chip at an acceptable operating temperature. Two fin designs are to be evaluated, both of...
-
What industry is Airbnb in? Is Airbnb in a risky industry? Why/when Airbnb begin its operations? Has Airbnb announced an IPO, or possibly a SPAC deal, since it received its initial funding? If now...
-
? Determine the remaining values in the above tables on a piece of scrap paper. TBL-2E0Q uses MRP and EOQ 100 units. For TBL 2POQ, calculate the POO interval (round up). Select the correct answer...
-
A $16,000 loan is taken out and will be repaid over an amortization period of 17 years. The loan repayments are made on a SEMI-ANNUAL basis (not monthly). The rate of interest charged on the loan is...
-
An agent with wealth level Yo = $100 lives for two periods. In period 1, he invests $20 in a risk free bond, consumes some of his wealth and invests the rest of his wealth in the stock market...
-
1. For the following cable system, the sag at B and D is 4 ft. Determine the tension at the support E and the maximum sag. A Ax Ay 4 m 10' 5 -3 m B hB 3 kN 10 B hc 10' 300# 2kN ho 300# (Source:...
-
At the beginning of January 2020, the ledger of Powermix Company showed Cash of P750,000 and R. Manalo Capital of P750,000. Powermix completed the following transactions in the month of January:...
-
After several years of designing and selling her own stationery, Susan has decided to expand her stationery company by moving into a large building and hiring staff. Operating under the banner of...
-
Develop a professional development plan. Professional development is not limited to your college education, your work and your career. Your professional development should also include your plans for...
-
Refer to the situation described inBE 18-13, but assume a 2-for-1 stock split instead of the 5% stock dividend. Prepare the journal entry to record the stock split if it is to be effected in the form...
-
Why is the analyzing step of the process crucial to the success of a MedImmune proposal? In the discussion, draw students attention to the intersection of medical, legal, and social issues. Why is...
-
How does the Clinical Trial Application guide described in the example make the composing process for a new document easier? How is it informed by the evaluation process? What metaphors or analogies...
-
What are the advantages and disadvantages of the following other options: making an announcement on the companys internal website, sending a memo to each employee, sending an email to each employee,...
Study smarter with the SolutionInn App