0
Alien head

programming languages Online Quiz - 90

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

Web security is very important by default on any website. By default, a .net website is configuesd with which type of authentication?

  1. Anonymous

  2. Basic

  3. Integreted windows authentication

  4. 1 & 3


Correct Option: D

Whst is the name given to the type of assembly that contains localized resources

  1. Spoke

  2. Hub

  3. Sputnik

  4. Satellite


Correct Option: D

How does asp.net store session IDs by default?

  1. In Cache

  2. Cookies

  3. In Global variable

  4. URL Strings


Correct Option: B

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

What is difference between interface and abstract class

  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

What is default access modifier for top level class , which are not nested in other classes

  1. Public

  2. Private

  3. Protected

  4. Internal


Correct Option: D

Give some examples of generic classes.

  1. List ,HashSet

  2. Queue

  3. Stack

  4. LinkedList

  5. All of Above


Correct Option: E

Which of following statement correctly declares a 2 dimensional array in c#.

  1. int[,] myarray

  2. int[][] myarray

  3. int[2] myarray

  4. none of above


Correct Option: B

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

If method is marked as protected internal who can access it?

  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

What is the size for double data type in c#

  1. 1 Byte

  2. 2 Byte

  3. 4 Byte

  4. 8 Byte

  5. 16 Byte


Correct Option: D

What is the last stage of the webforms cycle?

  1. Event Handling

  2. Page_Load

  3. Validate

  4. Page_Unload


Correct Option: D

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

  1. True

  2. False


Correct Option: B

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

What is difference between interface and abstract class

  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

What is default access modifier for top level class , which are not nested in other classes

  1. Public

  2. Private

  3. Protected

  4. Internal


Correct Option: D

Give some examples of generic classes.

  1. List ,HashSet

  2. Queue

  3. Stack

  4. LinkedList

  5. All of Above


Correct Option: E

Which of following statement correctly declares a 2 dimensional array in c#.

  1. int[,] myarray

  2. int[][] myarray

  3. int[2] myarray

  4. none of above


Correct Option: B

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

If method is marked as protected internal who can access it?

  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
+ View questions