0

programming languages Online Quiz - 114

Description: programming languages Online Quiz - 114
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

What an interface could be

  1. private

  2. protected

  3. Both

  4. None


Correct Option: C

I defined an equals method, but Hashtable ignores it. Why?

  1. You forgot the hashCode method

  2. You didn't handle circular references properly

  3. Could be any / both of above

  4. None of above


Correct Option: C

PHP is a widely used -------- language

  1. mark up

  2. object based

  3. content based

  4. general purpose


Correct Option: D

What JSON stands for?

  1. Java Objects Notation

  2. JavaScript Object Notation

  3. JavaScript Object Oriented Notation

  4. Java Objects Node


Correct Option: B

JSON was invented by

  1. Smith Jackson

  2. Brian McRowell

  3. Douglas Crockford

  4. Michale Scwzhenar


Correct Option: C

Brackets used in JSON are

  1. Angled

  2. Square

  3. Round

  4. Squiggly


Correct Option: B,D

JSON is a text format that is completely language independent

  1. True

  2. False


Correct Option: A

JSON is

  1. Superset of JavaScript

  2. Subset of Javascript

  3. Not related to Javascript

  4. Union of Java and Javascript


Correct Option: B

The number of forms that can be added to a aspx page is

  1. 1

  2. 2

  3. 3

  4. More than 3


Correct Option: A

What Namespace does the Web page belong in the .NET Framework class hierarchy?

  1. System.Web.UI.Page

  2. System.Windows.UI.Page

  3. System.Web.Page

  4. System.Windows.Page


Correct Option: A
  1. Session.Close ( )

  2. Session.Discard ( )

  3. Session.Abandon ( )

  4. Session.Exit ( )


Correct Option: C

Which Namespace allows us to implement the form authentication ?

  1. System.Web.Ui.Forms.Security

  2. System.Web.Configuration

  3. System.Web.Services

  4. System.Web.Security


Correct Option: D

What is the Full Form of WSDL ?

  1. Web System Description Language

  2. Web Service Description Language

  3. Web Service Definition Language

  4. Web System Definition Language


Correct Option: B

Select the output of the statement < form method=post action=”test.aspx” >

  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.

null is a keyword?

  1. True

  2. False


Correct Option: B

A class is a subclass of itself?

  1. True

  2. False


Correct Option: A

What is a daemon thread?

  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

Which is/are true?

  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

How can you sort a ArrayList?

  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
- Hide questions