Tag: programming languages

Questions Related to programming languages

  1. Access is limited to current assembly

  2. Access is limited to the containing class or types derived from containing class

  3. Access is limited to the containing type

  4. Access is limited to current assembly or types derived from the containing class.


Correct Option: D

How can you sort the elements of the array in descending order

  1. By calling ReverseSort()

  2. By calling SortReverse()

  3. By calling Descend()

  4. By calling Sort() and then Reverse() method


Correct Option: D
  1. int[,] myarray

  2. int[][] myarray

  3. int[2] myarray

  4. none of above


Correct Option: B
  1. List ,HashSet

  2. Queue

  3. Stack

  4. LinkedList

  5. All of Above


Correct Option: E
  1. An abstract class may only contain on complete method

  2. An interface may contain complete or incomplete method

  3. A class may inherit several interfaces , A class may inherit only one abstract class.

  4. A class implementation an abstract class has to implement all methods of abstract class , but same is not required in case of an interface.

  5. All


Correct Option: C

Does this code compile? Public interface MyInterface { string MyProp { get; } }

  1. Yes

  2. No, because the interface name does not start with 'I'

  3. No, because MyProp is not declared as public

  4. No, because interfaces can't contain property declaration


Correct Option: A

The default type of enum is integer and has default value 1

  1. True

  2. False


Correct Option: B

What is the last stage of the webforms cycle?

  1. Event Handling

  2. Page_Load

  3. Validate

  4. Page_Unload


Correct Option: D