exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 3 question 6 discussion

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

You need to create a method that can be called by using a varying number of parameters.
What should you use?

  • A. Method overloading
  • B. Derived classes
  • C. Named parameters
  • D. Enumeration
  • E. Interface
  • F. Lambda expressions
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Method overloading means creating two or more methods on the same type that differ only in the number or type of parameters but have the same name.
Overloading is one of the most important techniques for improving usability, productivity, and readability of reusable libraries. Overloading on the number of parameters makes it possible to provide simpler versions of constructors and methods. Overloading on the parameter type makes it possible to use the same member name for members performing identical operations on a selected set of different types.

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
lh2607
Highly Voted 4 years, 11 months ago
A = correct.
upvoted 7 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 ...