1. Question: What is the name of the C# command line compiler?

    A
    csc.exe

    B
    cc.exe

    C
    cs.exe

    D
    cse.exe

    Note: Not available
    1. Report
  2. Question: C# is not called a strongly typed language.

    A
    True

    B
    False

    Note: Answer B because its type rules (whether enforced statically or dynamically ) are very strict
    1. Report
  3. Question: The .NET framework consists of a runtime called the Common Language Runtime (CLR)

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: Dynamic binding defers binding _____

    A
    the process of resolving types and members - from compile time to runtime.

    B
    the process of resolving types and members - from runtime time to compil time.

    C
    the process of resolving types and members functions - from compile time to runtime.

    D
    none

    Note: Not available
    1. Report
  5. Question: Which is not value type in C#?

    A
    String

    B
    DateTime

    C
    Struct

    D
    None

    Note: Not available
    1. Report
  6. Question: Which are reference types in C#?

    A
    String

    B
    DateTime

    C
    enum

    D
    Class

    E
    Struct

    Note: Not available
    1. Report
  7. Question: Which of the following string literal is valid for backslash?

    A
    string s1="\\\\server\\fileshare\\helloworld.cs";

    B
    string s1=@"\\server\fileshare\helloworld.cs"

    C
    string s1="\\server\fileshare\helloworld.cs"

    D
    string s1=@"\/\/server\/fileshare\/helloworld.cs"

    E
    None

    Note: Not available
    1. Report
  8. Question: Which of the following expression causes a compile-time error in C#?

    A
    short x=1, y=1; short z=(short) (x+y);

    B
    short z=1+2;

    C
    short x=1, y=1; short z=x+y;

    D
    short z=2000+4333;

    Note: The 8-bit and 16-bit integer types are byte, sbyte, short, and ushort. These types lack their own arithmetic operators, so C# implicitly converts them to larger types as required. In this case, x and y are implicitly converted to int.
    1. Report
  9. Question: Which of the following is not default value in C#.net?

    A
    null

    B
    0

    C
    '\0'

    D
    false

    E
    ""

    Note: Not available
    1. Report
  10. Question: Which of the following statement is not correct in term of double and decimal?

    A
    Double is useful for scientific computations

    B
    Decimal is useful for financial computations

    C
    Decimal is for man-made measurements.

    D
    Double is for real-world measurements.

    E
    none

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd