Home / C# Programming / Functions and Subroutines :: Discussion

Discussion :: Functions and Subroutines

  1. Which of the following statements are correct?

    1. An argument passed to a ref parameter need not be initialized first.
    2. Variables passed as out arguments need to be initialized prior to being passed.
    3. Argument that uses params keyword must be the last argument of variable argument list of a method.
    4. Pass by reference eliminates the overhead of copying large data items.
    5. To use a ref parameter only the calling method must explicitly use the ref keyword.

  2. A.
    1, 2
    B.
    2, 3
    C.
    3, 4
    D.
    4, 5
    E.
    None of these

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment