Tag: programming languages

Questions Related to programming languages

  1. Session.Close ( )

  2. Session.Discard ( )

  3. Session.Abandon ( )

  4. Session.Exit ( )


Correct Option: C
  1. System.Web.Ui.Forms.Security

  2. System.Web.Configuration

  3. System.Web.Services

  4. System.Web.Security


Correct Option: D
  1. Web System Description Language

  2. Web Service Description Language

  3. Web Service Definition Language

  4. Web System Definition Language


Correct Option: B
  1. Transfers all the form data to test.aspx with HTTP headers

  2. Transfers all the form data to test.aspx with out HTTP headers

  3. Calls Post method on test.aspx

  4. Transfers all the form data from test.aspx to others


Correct Option: A
Explanation:

To understand the output of the statement ``, the user needs to know the basics of HTML forms.

This HTML statement creates a form that will be submitted to the URL specified in the action attribute, in this case, "test.aspx". The method attribute specifies how the form data will be submitted to the server.

Now, let's go through each option and explain why it is right or wrong:

A. Transfers all the form data to test.aspx with HTTP headers: This option is partially correct. The form data will be transferred to test.aspx, but the HTTP headers will also be included in the request. The method attribute is set to "post", which means that the form data will be sent in the request body. This is more secure than sending the data in the URL, which is what happens when method is set to "get".

B. Transfers all the form data to test.aspx without HTTP headers: This option is incorrect. The HTTP headers will be included in the request, regardless of the method attribute value.

C. Calls Post method on test.aspx: This option is partially correct. The method attribute is set to "post", which means that the HTTP POST method will be used to submit the form data to test.aspx.

D. Transfers all the form data from test.aspx to others: This option is incorrect. The statement `` creates a form that submits data to test.aspx, not from test.aspx.

Therefore, the correct answer is: A. Transfers all the form data to test.aspx with HTTP headers.

  1. main thread is a daemon thread.

  2. garbage collector thread is a daemon thread.

  3. All user defined threads are daemon thread.

  4. None of above.


Correct Option: B
  1. 'Composition' and 'Aggregation' both are 'association'.

  2. 'Composition' is a stronger form of 'Aggregation'.

  3. 'Aggregation' is a stronger form of 'Composition'.

  4. A 'Composition' adds a lifetime responsibility to 'Aggregation'.


Correct Option: A,B,D
  1. Both HashMap and Hashtable will allow null as key and value.

  2. HashMap is not Synchronized and Hashtable is Synchronized.

  3. The iterator in the HashMap is fail-safe, but enumerator for the Hashtable is not fail-safe.

  4. Hashtable will be faster than HashMap.


Correct Option: B,C
  1. By creating an implementation of the java.lang.Comparable interface.

  2. java.util.Collections.sort()

  3. java.utils.Arrays.sort()

  4. By creating an implementation of the java.lang.Comparator interface.


Correct Option: A,B,D