Microsoft
98-361 · Question #348
98-361 Question #348: Real Exam Question with Answer & Explanation
Sign in or unlock 98-361 to reveal the answer and full explanation for question #348. The question stem and answer options stay visible for context.
Question
You are reviewing a C# program. The program contains the following class: public struct Rectangle { public double Length {get; set; public double Width { get; set; } } The program executes the following code as part of the Main method: Rectangle r1, r2; r1 = new Rectangle { Length = 10.0, Width = 20.0 }; r2 = r1; r2.Length = 30; Console.WriteLine(r1.Length); What will be the output when this code is executed?
Options
- A10
- B20
- C30
- D40
Unlock 98-361 to see the answer
You've previewed enough free 98-361 questions. Unlock 98-361 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.