This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following method signatures correctly defines 3 integer parameters?
void Multiply(int a, b, c)
void Multiply(int a, int b, int c)
void Multiply(int a; int b; int c)
Given the method signature, void Print(string name, string number = "", bool member = false), which of the following options correctly uses named and optional arguments?
void Print(string name, string number = "", bool member = false)
Print("Tony", member: true);
Print(number: "555", member: false)
Print("Tony", false)
Given the following method signature, void SetHealth(string health), why don't operations inside the method affect the original input string health?
void SetHealth(string health)
health
The string data type is pass by value.
string
The method code must be incorrect.
Strings can't be altered once assigned. They can only be overwritten with a new value.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?