Question
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.
a.
1, 2
b.
2, 3
c.
3, 4
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? 1. An argument passed to a ref parameter need not be initialized first. 2. Variables passed as out arguments need to be...
Similar Questions
Discover Related MCQs
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!