Mock Test 2

  1. You need to write an application in which you create a class that establishes a connection with SQL Server and reads records in a certain table. We need to ensure the following in the class:
    • The class should automatically release all the connections after the operation is complete.
    • The class should support iteration.

Which of the following interfaces would you implement in the class?

    1. IEnumerator
    2. IEquatable
    3. IComparable
    4. IDisposable
  1. If you need to write a function that could be called with a varying number of parameters, what would you use?
    1. Interface
    2. Method overriding
    3. Method overloading
    4. Lamda expressions
  1. You are writing an application in which you need to reverse a string. Which of the following code snippets ...

Get Programming in C#: Exam 70-483 (MCSD) Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.