Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JavaScript Please explain 1. Which ONE of the following statements about the HTTP protocol is FALSE? a. HTTP is a protocol that world-wide-web applications commonly
JavaScript
Please explain
1. Which ONE of the following statements about the HTTP protocol is FALSE? a. HTTP is a protocol that world-wide-web applications commonly use. b. Both HTTP GET and POST can transport user data. C. HTTP protocol servers must use PORT 3000. d. HTTP is meant to be stateless (has no notion of previous messages). e. A single HTTP POST message may require several lower level TCP/IP messages. 2. Given the following typed into a browser address field: http://localhost:3000/canvasWith Timer.html Which ONE of the following is FALSE about what the URL means? a. The request must use the HTTP protocol. b. canvasWithTimer.html may or may not be an actual HTML file on the server. c.localhost generally refers to the computer the browser is running on. d. The :3000 specifies that the server is listening on port 3000. e. To access the server on a remote machine (e.g., OpenStack), we must replace the :3000 with an IP address. 3. Which ONE of the following is FALSE about JSON encoding? a. JSON strings must use quotes to describe object property names. b. Not all Javascript objects can be converted to JSON. C. JSON.stringify() will turn Javascript functions into strings. d. JSON.stringify() will turn Javascript numbers into strings. e. JSON string notation is similar to Javacript literal object notation. Given two Javascript objects X and Y which ONE of the following best describes the difference between the two Javascript expressions: X == Y/line 1 X === Y //line 2 a. Line 2 is illegal as there is no === operator in Javascript. b. Line 1 is used when X and Y are Javascript objects but line 2 is used when X and Y are JSON strings. c. Line 1 is always preferable to line 2. d. Line 2 compares without type casting or type conversion. Line 1 allows type conversion e. Line 2 is not legal because === should only be used for comparisons between strings. 5. Which HTTP request method should you choose when attempting to change a resource on a server? a. DELETE b. GET C. HEAD d. UPDATE e. PUTStep 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