Question: Which of the following statements should be added to the subroutine fun( ) if the C#.NET code snippet given below is to output 9 13?

Options

A : Console.WriteLine(base.i + " " + i);

B : Console.WriteLine(i + " " + base.i);

C : Console.WriteLine(mybase.i + " " + i);

D : Console.WriteLine(i + " " + mybase.i);

Click to view Correct Answer

Previous || Next

Inheritance - General Questions more questions

Which of the following statements are correct about subroutines used....

A function can be used in an expression, whereas a....

Which of the following statements are correct about the C#.NET....

What will be the output of the C#.NET code snippet....

Which of the following can be facilitated by the Inheritance....

Which of the following statements are correct about the C#.NET....

What will be the size of the object created by....

Which statement will you add in the function fun() of....

What will be the output of the C#.NET code snippet....

Which of the following should be used to implement a....

Attributes - General Questions more Online Exam Quiz

.NET Framework - General Questions

Enumerations - General Questions

Exception Handling - General Questions

Functions and Subroutines - General Questions

Interfaces - General Questions

Namespaces - General Questions

Operators - General Questions

Polymorphism - General Questions

Properties - General Questions