--:--









Quiz for Request & Response Handling

Course: JAVA | Subject: Java | Topic: Servlets & JSP



Logo

Q1: Which interface is used to handle HTTP requests in servlets?

Logo

Q2: Which method retrieves request parameters?

Logo

Q3: Which interface is used to construct a response to a client?

Logo

Q4: Which method sets the content type of the response?

Logo

Q5: What is the default content type in a servlet response?

Logo

Q6: Which method sends a redirect response to the client?

Logo

Q7: Which method is used to forward a request to another resource?

Logo

Q8: Which method writes data directly to the response?

Logo

Q9: Which object is used to read form input from a GET request?

Logo

Q10: Which method returns a cookie sent by the client?

Logo

Q11: Which method retrieves the HTTP method of the request?

Logo

Q12: Which method sends binary data to client?

Logo

Q13: How are query string parameters accessed in a servlet?

Logo

Q14: Which method sets a response header manually?

Logo

Q15: Which method returns request header information?

Logo

Q16: Which HTTP status code indicates a redirect?

Logo

Q17: Which method returns the full URL of the request?

Logo

Q18: How do you access request attributes set by another servlet?

Logo

Q19: Which method is used to include content from another resource?

Logo

Q20: Which header is used to identify the client browser?

Are you ready to start test? Set your time limit