Tag: programming languages

Questions Related to programming languages

  1. cannot be instantiated

  2. can be called from non static

  3. can be instantiated

  4. 1 & 2

  5. 2 & 3


Correct Option: D
  1. Conventional Language Runtime

  2. Clarified Language Runtime

  3. Common Language Runtime

  4. Clear Language Runtime


Correct Option: C
  1. Any changes made to the parameter will be reflected in the variable.

  2. The out parameters is used to return values in the same variables, that you pass an an argument of a method

  3. A variable to be sent as OUT parameter must be initialized

  4. 1 & 2

  5. 2 & 3

  6. 1 & 3


Correct Option: D
  1. Delegates

  2. Structures

  3. Interfaces

  4. Enumerations

  5. All the above

  6. 2 & 3


Correct Option: E
  1. The purpose of constructors is to initialize class members

  2. Constructors can have return values

  3. Constructors always have the same name as the class

  4. None of the above


Correct Option: B
  1. Virtual keyword is used before Base class

  2. Override keyword is used before Derived class

  3. overload keyword is used before Derived class

  4. 1 & 2

  5. 1 & 3


Correct Option: D
  1. Structure is a value type and Class is a reference type

  2. Class is a value type and Structure is a reference type

  3. Structs can't have destructors, but classes can have destructors

  4. Class can have implementation inheritance, but Structs cannot have it

  5. Structs can have implementation inheritance, but Class cannot have it


Correct Option: A,C,D
  1. has no implementation

  2. only has definitions

  3. must be implemented by class or struct

  4. All the above

  5. 1 & 2


Correct Option: D
  1. Either code from derived type or code in the same assembly

  2. Only members within the same type

  3. Only derived types or members of the same type.

  4. Only code within the same assembly


Correct Option: A