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
Error Report!
1000+ Structural Engineering Objective Type Questions and Answers More
Civil Engineering RCC Structures Design Interview Questions & Answers More
1000+ Structural Engineering MCQ Questions and Answers Pdf More
1000+ Strength of Materials Quiz Questions and Answers More
1000+ Strength of Materials Viva Questions and Answers More
1000+ Computer Study Material for Competitive Exams Pdf More
Biology Objective Type Questions and Answers More
Indian Research Station GK Quiz Questions and Answers 2019-2020 More
TRB, TET, TNPSC Online Test More
100+ Physics Hydrostatics Questions and Answers More