News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Mcq Answers for C#

  1. Trace is enabled for both Release and Debug initial configurations

  2. Trace can be controlled both by preprocessor directives, and compiler directives

  3. To change the severity levels which generate output, you must recompile your program

  4. All of the Above

Answer: Answer is a
Further Reading:

Useful resources, Trace Class


  1. #define

  2. #line

  3. #include

  4. #error

  5. #pragma

Answer: Answer is c
Further Reading:

#include is not a valid C# preprocessor directive. Useful resources, C# Preprocessor Directives


  1. public static void Main() {}

  2. public static int Main() {}

  3. public static int Main(string[] args) {}

  4. public static int Main(string cmdline) {}

  5. private static int Main(string[] args) {}

Answer: Answer is d
Further Reading:

Main can either have a void or int return type and it can be declared with or without string[] parameter that contains command line argument. We can’t pass a simple string variable as Main method argument. Useful resources, Main


  1. Assigning a GUID to each exposed interface and implementation via the System.Runtime.InteropServices.GuidAttribute

  2. Enabling an unsafe code

  3. Registering the server assembly  with the system using RegAsm.exe

  4. Registering the server assembly  with the system using RegSvc32.exe

Answer: Answer is a, c
Further Reading:

Useful resources, Managed COM answered by jmsigler2


  1. Start

  2. Continue

  3. Pause

  4. Restart

Answer: Answer is d
Further Reading:

Useful resources, ServiceController Class


  1. C# does not support the use of "*" to indicate a pointer

  2. Pointers are a type derived from System.Object

  3. Pointers can be used as out and ref type parameters

  4. Pointer references are tracked by the garbage collector.

Answer: Answer is c
Further Reading:

Useful resources, Pointer types


  1. separating an item's public interface from the actual implementation

  2. embedding content as a resource into an executable program

  3. providing a short summary description of complex operations

  4. a technique using base and derived classes

Answer: Answer is a

  1. sorted by Key

  2. sorted by Element

  3. not sorted

Answer: Answer is c
Further Reading:

Useful resources, OrderedDictionary Class


  1. class SampleClass 
    {
    } 
    class SampleClass 
    {
    }
    
  2. class SampleClass 
    {
    } 
    class SampleClass<T,U> 
    {
    }
    
  3. class SampleClass where T : class 
    { 
    } 
    class SampleClass where T : struct 
    { 
    }
    
  4. class SampleClass 
    {
    } 
    class SampleClass where T : class 
    { 
    }
    
Answer: Answer is c

  1. One method may handle events from different sources

  2. A single event can be handled by multiple methods

  3. Event handlers can be dynamically added and removed at runtime

  4. Event handlers must be members of the same class as raised the event

  5. All of the above

Answer: Answer is c
Further Reading:

Useful resources, Handling and Raising Events


Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;