Tag: programming languages

Questions Related to programming languages

  1. Use Abstract class

  2. Use Private Constructor

  3. Both of the above

  4. Use Sealed class


Correct Option: C
  1. No difference

  2. S.ToString() handles null values

  3. Convert.ToString(S) handles null values

  4. I don't know.


Correct Option: C
  1. Yes, but the actual collection is not deterministic

  2. No.

  3. Yes, and the actual collection is deterministic

  4. I don't know.


Correct Option: C
  1. Public Inheritance

  2. Protected Inheritance

  3. Private Inheritance

  4. Virtual Inheritance


Correct Option: C
  1. new operator cannot be overloaded

  2. void *operator new(size_t,int);

  3. void operator new;

  4. void *operator new;


Correct Option: D
  1. nothing wrong will complie fine.

  2. class cannot inherit from struct

  3. struct cannot inherit from class

  4. struct cannot have constructor


Correct Option: A