ASP.NET Web Controls and HTTP Status Codes

Quiz covering ASP.NET server controls, web form programming, and HTTP protocol status codes for web developers

16 Questions Published

Questions

Question 1 True/False

204 code specifies request was sucessful but does not require the return of an entity-body

  1. True
  2. False
Question 2 True/False

300 code speicifies requested resource has multiple possibilities, each with different locations

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

HTML status code 305 specifies

  1. The resource has permanently moved to a different URI.
  2. The server has refused to fulfill the request.
  3. The document/file requested by the client was not found.
  4. The requested resource can only be accessed through the proxy specified in the location field.
Question 4 Multiple Choice (Single Answer)

HTML Code 412 specifies

  1. The server will not accept the request without a valid Content-Length header field.
  2. A precondition specified in one or more Request-Header fields returned false.
  3. The document/file requested by the client was not found.
  4. The request first requires authentication with the proxy.
Question 5 Multiple Choice (Single Answer)

HTML status code 502 specifies

  1. Not Implemented
  2. Internal Server Error
  3. Bad Gateway
  4. HTTP Version Not Supported
Question 6 Multiple Choice (Single Answer)

HTML code 205 specifies ___________ .

  1. The client failed to sent a request in the time allowed by the server.
  2. The request was successful but the User-Agent should reset the document view that caused the request.
  3. The requested response is at a different URI and should be accessed using a GET command at the given URI.
  4. Reserved for future use.
Question 7 Multiple Choice (Single Answer)

500 error code is used to speicify

  1. HTTP Version Not Supported
  2. The upstream server failed to send a request in the time allowed by the server.
  3. The server received an invalid response from the upstream server while trying to fulfill the request.
  4. The request was unsuccessful due to an unexpected condition encountered by the server.
Question 8 Multiple Choice (Single Answer)

302 code is used for specifying

  1. The requested resource has been found under a different URI but the client should continue to use the original URI.
  2. Reserved for future use.
  3. The request was successful and a new resource was created.
  4. The syntax of the request was not understood by the server.
Question 9 Multiple Choice (Single Answer)

HTML status code 100 specifies

  1. The requested response is at a different URI and should be accessed using a GET command at the given URI.
  2. The method specified in the Request-Line is not allowed for the specified resource.
  3. Tells the client that the first part of the request has been received and that it should continue with the rest of the request or ignore if the request has been fulfilled.
  4. The expectation given in the Expect request-header could not be fulfilled by the server.
Question 10 Multiple Choice (Single Answer)

The variable accessed using this object has scope of which type?

  1. session
  2. application
  3. request
  4. page
Question 11 Multiple Choice (Single Answer)

When the Web page is loaded in the browser, the cursor is already placed inside of the TextBox, ready to start typing. Using which of the following methods, you can place the cursor inside the TextBox?

  1. Focus
  2. AutoPostBack
  3. Submit
  4. Selected
Question 12 Multiple Choice (Single Answer)

Consider two button server controls being specified with the same 'OnCommand' event. How does the event differentiate between the two buttons being clicked?

  1. Using runat property
  2. Using Text property
  3. Using CommandName property.
  4. Using ID property
Question 14 Multiple Choice (Single Answer)

What is Drupal ?

  1. Programming Language
  2. Content Management System
  3. Scripting Language
  4. Operating System
Question 15 True/False

Are both CheckBox server control and checkBoxList server control, the same?

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

Drupal is written in which programming language ?

  1. Java
  2. c#
  3. PHP
  4. ASP.net