Tag: programming languages

Questions Related to programming languages

Abstract methods should override in non abstract child class. If the child class is also abstract class then abstract methods overriding is not mandatory.

  1. True

  2. False


Correct Option: A

Structure

  1. Structures can be used as a base for other structures.

  2. A structure can implement one or more interfaces.

  3. Structure members can be methods, fields, indexers, properties, operator methods, and events.

  4. Structures can also define constructors, but not destructors. And you cannot define a default (parameterless) constructor for a structure.


Correct Option: B,C,D

Generic Constraints

  1. Can not use in structs

  2. A derivation constraint

  3. A default constructor constraint

  4. A reference/value type constraint


Correct Option: B,C,D

C# allows you to define static methods that use generic type parameters

  1. True

  2. False


Correct Option: A

A delegate defined in a class can take advantage of the generic type parameter of that class

  1. True

  2. False


Correct Option: A

.NET allows you to have serializable generic types

  1. True

  2. False


Correct Option: A

You can not use generics in structs.

  1. True

  2. False


Correct Option: B

INDEXES CAN NOT BE MANIPULATED BY PERFORM/SET/SEARCH STATEMENTS ?

  1. True

  2. False


Correct Option: B