C# Tutorials for Beginners Pdf | Methods, Operator Interview Questions - 1
Question: 1
What is called method invocation?
The process of activating a method is known as calling the method or method invocation.
It is done using the dot operator.
Question: 2
What is the use of ref keyword?
The C# allows a called method to modify the value of a passed argument if it is necessary.
If we want the called method to modify the value of a supplied argument and return the modified value, we should pass the argument using its reference.
Question: 3
What is the use of out keyword?
Output parameters are used to pass results back to the calling method.
It is achieved by declaring the parameters with an “out” keyword.
It does not create new storage location.
Question: 4
What are the four possible types of parameters available?
In C#, there are four possible types of parameters available.
Value Parameter
Reference Parameter
Output Parameter
Parameter Array
Gross Domestic Product and Its Growth Class 10 Questions Pdf More
Industrial Cluster in Tamil Nadu TNPSC Questions Pdf More
Food and Security TNPSC Questions Pdf More
Economics Food Security and Nutrition Class 10 Questions Pdf More
Class 10th Social Indian Constitution Pdf More
Environment and Biodiversity MCQ Quiz More
Synonyms & Antonyms Quiz for Competitive Exams like SSC, Bank, UPSC More
1000+ Difficult Mathematical Puzzles with Solutions More
Signals and Systems Quiz Questions and Answers Pdf More
Interview Puzzles with Answers Pdf More