exam questions

Exam 98-361 All Questions

View all questions & answers for the 98-361 exam

Exam 98-361 topic 1 question 76 discussion

Actual exam question from Microsoft's 98-361
Question #: 76
Topic #: 1
[All 98-361 Questions]

You are developing an application that tracks tennis matches. A match is represented by the following class:

A match is created by using the following code:

How many times is the Location property on the newly created Match class assigned?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JamieS
7 months, 2 weeks ago
This threw me, but 2 is correct as the parameterless (default) constructor is implicitly called. https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/how-to-initialize-objects-by-using-an-object-initializer
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...