Tag: programming languages

Questions Related to programming languages

  1. Convert.ToString() handle null values but ToString() don't

  2. ToString() output as per format supplied

  3. Convert.ToString() only handle null values

  4. ToString() handle null values but Convert.ToString() don't


Correct Option: A
  1. a interger type to double

  2. a reference type to a value type

  3. a value type to a reference type

  4. a double type to interger


Correct Option: C
  1. Different parameter data types

  2. Different number of parameters

  3. Different order of parameters

  4. All of these


Correct Option: D
  1. StringBuilder is more efficient when there is a large amount of string manipulation

  2. Strings are immutable, so each time a string is changed, a new instance in memory is created.

  3. StringBuilder is mutable; when you modify an instance of the StringBuilder class, you modify the actual string, not a copy

  4. Strings are mutable in .Net


Correct Option: D
  1. It is available to classes that are within the same assembly and derived from the specified base class.

  2. It is available within the class definition

  3. It is the most permissive access level

  4. It is the least permissive access level


Correct Option: A

What is the .NET collection class that allows an element to be accessed using a unique key?

  1. HashTable

  2. ArrayList

  3. SortedList

  4. All of above


Correct Option: A
  1. The method is public

  2. The method can be derived

  3. The method is static

  4. The method can be over-ridden


Correct Option: D
  1. Globalization

  2. Localization

  3. Impersonation

  4. Unicode program


Correct Option: A

Is it possible to store multiple data types in System.Array?

  1. True

  2. False


Correct Option: B