PGCP-ACCMCE (CCE Modules Exam)•20 Questions
Advanced Web Programming Practice MCQs
Topic Covered in this Question Set
Web Architecture, Internet Protocols and HTTP
Click on an option to check your answer immediately. Full solution & explanation provided for every question.
Interactive Practice Mode
Advanced Web Programming Free MCQs
Select an option to test your knowledge with real exam questions and instant explanations.
Total20
Correct0
Wrong0
Progress: 0 of 20 answered0% Accuracy
Q1 of 20
Which service resolves a host name such as www.example.com to an IP address?
Q2 of 20
A browser opens https://shop.example.com:8443/books/42?format=pdf#reviews. Which part of this URL is kept by the browser and not sent to the server?
Q3 of 20
Which HTTP method retrieves a representation and is defined as safe, meaning its intended meaning is read-only?
Q4 of 20
Which HTTP method asks for the same response headers as GET but without the response body?
Q5 of 20
Which method is ordinarily used to create or completely replace the resource at a known URI such as /api/books/42?
Q6 of 20
A client sends DELETE /api/books/42 twice. The first response is 204 No Content and the second is 404 Not Found. Which statement is correct?
Q8 of 20
A POST /api/books request successfully creates a new book. Which status code is the most appropriate response?
Q9 of 20
A client requests GET /api/books/999, but no book with id 999 exists. Which status code should the server return?
Q10 of 20
An unhandled exception in the application code aborts processing of an otherwise valid request. Which status code describes this outcome?
Q11 of 20
Which header states the media type of the body actually enclosed in a request or response, such as application/json?
Q12 of 20
Which request header tells the server which response media types the client can process?
Q13 of 20
Which protocol provides the encryption, integrity protection and server authentication in HTTPS?
Q14 of 20
Which HTTP version introduced binary framing and multiplexing of many streams over one TCP connection?
Q16 of 20
After login, where does a browser conventionally keep a server-issued session identifier so that it is sent automatically with later requests?
Q17 of 20
Which of the following is web server software that accepts HTTP requests and serves responses?
Q18 of 20
In https://shop.example.com/books?author=rao&sort=price, which URL component carries the filtering parameters?
Q20 of 20
Does serving a site over HTTPS remove the need for server-side input validation?
Need to review the concepts?
Read Free Study Notes →Read Advanced Web Programming Study Notes
Review complete topic notes, syntax guides, code examples, and summary tables.