| 17. | Which of the following statements are correct about functions and subroutines used in C#.NET? 1 A function cannot be called from a subroutine. 2 The ref keyword causes arguments to be passed by reference. 3 While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method. 4 A subroutine cannot be called from a function. 5 Functions and subroutines can be called recursively. |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
| 18. | A function returns a value, whereas a subroutine cannot return a value.
|
|||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 19. | 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. |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 20. | What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 21. | Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
