Question
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.
a.
1, 2, 4
b.
2, 3, 5
c.
3, 5
d.
4, 5
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. 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...
Similar Questions
Discover Related MCQs
Q. A function returns a value, whereas a subroutine cannot return a value.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!