exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 83 discussion

Actual exam question from Microsoft's 70-483
Question #: 83
Topic #: 1
[All 70-483 Questions]

You are creating a class named Game.
The Game class must meet the following requirements:
✑ Include a member that represents the score for a Game instance.
✑ Allow external code to assign a value to the score member.
✑ Restrict the range of values that can be assigned to the score member.
You need to implement the score member to meet the requirements.
In which form should you implement the score member?

  • A. protected field
  • B. public static field
  • C. public static property
  • D. public property
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
justpassingexam
4 years, 9 months ago
I guess public static property complies on these rules too
upvoted 1 times
lomanov
4 years, 8 months ago
No, see the first rule.
upvoted 5 times
...
Epit2021
4 years, 5 months ago
The key word being 'instance'
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago