CDCDAC Prep
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?

Open topic in App →
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?

Open topic in App →
Q3 of 20

Which HTTP method retrieves a representation and is defined as safe, meaning its intended meaning is read-only?

Open topic in App →
Q4 of 20

Which HTTP method asks for the same response headers as GET but without the response body?

Open topic in App →
Q5 of 20

Which method is ordinarily used to create or completely replace the resource at a known URI such as /api/books/42?

Open topic in App →
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?

Open topic in App →
Q7 of 20

Which HTTP method is NOT idempotent by definition?

Open topic in App →
Q8 of 20

A POST /api/books request successfully creates a new book. Which status code is the most appropriate response?

Open topic in App →
Q9 of 20

A client requests GET /api/books/999, but no book with id 999 exists. Which status code should the server return?

Open topic in App →
Q10 of 20

An unhandled exception in the application code aborts processing of an otherwise valid request. Which status code describes this outcome?

Open topic in App →
Q11 of 20

Which header states the media type of the body actually enclosed in a request or response, such as application/json?

Open topic in App →
Q12 of 20

Which request header tells the server which response media types the client can process?

Open topic in App →
Q13 of 20

Which protocol provides the encryption, integrity protection and server authentication in HTTPS?

Open topic in App →
Q14 of 20

Which HTTP version introduced binary framing and multiplexing of many streams over one TCP connection?

Open topic in App →
Q15 of 20

What does it mean to say that HTTP is stateless?

Open topic in App →
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?

Open topic in App →
Q17 of 20

Which of the following is web server software that accepts HTTP requests and serves responses?

Open topic in App →
Q18 of 20

In https://shop.example.com/books?author=rao&sort=price, which URL component carries the filtering parameters?

Open topic in App →
Q19 of 20

What does a 3xx status code such as 301 or 304 generally indicate?

Open topic in App →
Q20 of 20

Does serving a site over HTTPS remove the need for server-side input validation?

Open topic in App →
Need to review the concepts?

Read Advanced Web Programming Study Notes

Review complete topic notes, syntax guides, code examples, and summary tables.

Read Free Study Notes →