Vidyalelo
C# Programming · Q50

Exception Handling in C Sharp

Programming · C# Programming · question 50

Q50

What will be the output of the following C# code? class number int length = 60; public int number1 get return length; class Program public static void Main(string[] args) number p = new number(); int l; l = p.number1 + 40; int k = l * 3 / 4; Console.WriteLine(k); Console.ReadLine();

A.
30
B.
75
Answer
C.
80
D.
0

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board