exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 102 discussion

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

You are developing an application that includes the following code segment:

You need to implement both Start() methods in a derived class named UseStart that uses the Start() method of each interface.
Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
  • E. Option E
  • F. Option F
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️
B:
Implementing Multiple Interfaces
A class can implement multiple interfaces using the following syntax:
C#
public class CDAndDVDComboPlayer : ICDPlayer, IDVDPlayer
If a class implements more than one interface where there is ambiguity in the names of members, it is resolved using the full qualifier for the property or method name. In other words, the derived class can resolve the conflict by using the fully qualified name for the method to indicate to which interface it belongs
In C#, both inheritance and interface implementation are defined by the : operator, equivalent to extends and implements in Java. The base class should always be leftmost in the class declaration.

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
Xavios
Highly Voted 5 years, 7 months ago
answer C, D
upvoted 30 times
...
dosper
Highly Voted 5 years, 4 months ago
C,D are correct.
upvoted 18 times
...
tjoy
Most Recent 3 years, 10 months ago
ANswer is B& C testing in VS
upvoted 1 times
...
vethman
3 years, 10 months ago
See full question: https://www.briefmenow.org/microsoft/which-two-code-segments-should-you-use-16/ FINAL ANSWER: C + D
upvoted 1 times
...
DaGrooveNL
3 years, 10 months ago
FINAL ANSWER: C and ?? Can't see the other possible answers (picture is incomplete)
upvoted 2 times
...
ziro
4 years ago
B (it needs to be public) D
upvoted 2 times
Jay456
3 years, 11 months ago
When an interface is explicitly mentioned it is public by default. I learned that yesterday from question 79 @ https://www.examtopics.com/exams/microsoft/70-483/view/35/
upvoted 5 times
AyeshaKhalid
3 years, 11 months ago
you are also going to take exam?
upvoted 1 times
TomasRafaj
3 years, 10 months ago
Probably he is doing it just for fun :D I guess everyone goes or most of us
upvoted 1 times
...
...
...
...
dominikeps
4 years, 9 months ago
bro its C and D. got damnit
upvoted 13 times
...
XXXX
4 years, 10 months ago
D) var starter = new UseStart(); ((IHome)starter).Start(); ((IOffice)starter).Start();
upvoted 13 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