Sematec .Net Fundamentals Quiz

10 Questions | Total Attempts: 1525

SettingsSettingsSettings
Sematec .Net Fundamentals Quiz - Quiz

این 10 سوال مهم ترین بخش های درس را مورد آزمایش قرار می دهد. اگر نمره پایین تر 70 را کسب کنید، نیاز به مطالعه این درس دارید


Questions and Answers
  • 1. 
    Which of the following converts a type to a long data type in C#?
    • A. 

      ToInt64

    • B. 

      ToSbyte

    • C. 

      ToSingle

    • D. 

      ToInt32

  • 2. 
    Which of the following parameter type should have a value before passing to the method?
    • A. 

      Reference parameters

    • B. 

      Value parameters

    • C. 

      Output parameters

    • D. 

      None of the above

  • 3. 
    Which of the following is true about catch block in C#?
    • A. 

      A program catches an exception with an exception handler at the place in a program where you want to handle the problem

    • B. 

      The catch keyword indicates the catching of an exception.

    • C. 

      Both of the above.

    • D. 

      None of the above

  • 4. 
    What is the difference between the Debug class and Trace class?
    • A. 

      Use Debug class for debug builds, use Trace class for both debug and release builds

    • B. 

      Both are same

    • C. 

      Use Trace class for debug builds, use Debug class for both debug and release builds

    • D. 

      None of above

  • 5. 
    Which of the following keyword you should use to create method that takes a variable number of arguments?
    • A. 

      Ref

    • B. 

      Out

    • C. 

      Params

    • D. 

      Default

  • 6. 
    What are the different ways a method can be overloaded?
    • A. 

      Different parameter data types

    • B. 

      Different number of parameters

    • C. 

      Different order of parameters

    • D. 

      All of the above

  • 7. 
    Which of the following options is correct about Enum?
    • A. 

      It is used to initialize variables

    • B. 

      It is used to define new data type

    • C. 

      It is used to define variables

    • D. 

      None

  • 8. 
    Which of the following options is correct about local variable?
    • A. 

      It must be declared within a method

    • B. 

      It represents a class object

    • C. 

      It can be used anywhere in the program

    • D. 

      It must accept a class

  • 9. 
    Which of the window in Visual Studio you can use to change variable values during debugging C# application?
    • A. 

      Analyzing Window

    • B. 

      Call Stack Window

    • C. 

      Output Window

    • D. 

      Immediate Window

  • 10. 
    Which statement you can use to increase length of an array dynamically?
    • A. 

      Array.Rebound

    • B. 

      Array.IndexOf

    • C. 

      Array.Resize

    • D. 

      Array.Sort

Back to Top Back to top