1. Question: Which is the constructor in the following class?
    public class UnitConverter{
    
      int ratio;
      public int Convert(){}
      public UnitConverter(){}
    
    }

    A
    ratio

    B
    Convert()

    C
    UnitConverter()

    D
    none

    E
    Convert and UnitConverter

    Note: Not available
    1. Report
  2. Question: How do you call static member function getCustomers() from the class Customer?

    A
    Customer.getCustomers();

    B
    Customer obj=new Customer(); obj.getCustomers();

    C
    obj=new Customer(); obj.getCustomers();

    D
    getCustomers()

    E
    var obj=new Customer(); obj.getCustomers();

    Note: Not available
    1. Report
  3. Question: Which of the following group is the correct suffixes for numeric literals?

    A
    float - f, long - l, uint - u, ulong - ul, double - d, decimal - m

    B
    float - f, long - l, uint - u, ulong - ul, double - f, decimal - f

    C
    float - f, long - l, uint - u, ulong - ul, double - f, decimal - m

    D
    float - f, long - l, uint - u, ulong - l, double - d, decimal - m

    E
    float - d, long - l, uint - u, ulong - ul, double - d, decimal - m

    Note: Not available
    1. Report
  4. Question: Which of the following is the correct way for numeric conversion in C#?

    A
    float y=343.45f; int x=(float)y;

    B
    float y=343.45f; int x=float y;

    C
    float y=343.45f; int x={float}y;

    D
    float y=343.45f; int x=[float]y;

    Note: Not available
    1. Report
  5. Question: Which operator is used to check the overflow value in a variable?

    A
    checked

    B
    overflow

    C
    check

    D
    none

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