Choose The Correct Type Of Variable Scope For The Following C #51
Choose the correct type of variable scope for the following C# defined variables.</p> <pre><code class="language-csharp" line="1"> class ABC { static int m; int n; void fun (int x , ref int y, out int z, int[] a) { int j = 10; } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Scope and Lifetime of Variables - Quiz No.1.
Choose the correct type of variable scope for the following C# defined variables.
class ABC { static int m; int n; void fun (int x , ref int y, out int z, int[] a) { int j = 10; } }
m = static variable, n = local variable, x = output parameter, y = reference parameter, j = instance variable, z = output parameter, a[0] = array element
m = static variable, n = instance variable, x = value parameter, y = reference parameter, j = local variable, z = output parameter , a[0] = array element
m = static variable, n = instance variable, x = reference parameter, y = value parameter, j = local variable, z = output parameter, a[0] = array element
m = local variable, n = instance variable, x = reference parameter, y = value parameter, j = static variable, z = output parameter, a[0] = array element