Question: When one of a method's parameters is optional, it means that a . no arguments are required in a call to the method b .
When one of a method's parameters is optional, it means that
a no arguments are required in a call to the method
b a default value will be assigned to the parameter if no argument is sent for it
c a default value will override any argument value sent to it
d you are not required to use the parameter within the method body
Which of the following is an illegal method declaration?
a private static void CreateStatementint acctNum, double balance
b private static void CreateStatementint acctNum double balance
c private static void CreateStatementint acctNum double balance
d All of these are legal.
Assume you have declared a method as follows: private static double ComputeBilint acct, double price, double discount Which of the following is a legal method call?
a ComputeBi;
c ComputeBi;
b ComputeBil;
d None of the above is legal.
Assume you have declared a method as follows: private static double CalculateDiscountint acct double price double discount Which of the following is a legal method call?
a CalculateDiscount;
b CalculateDiscount ;
c CalculateDiscount ;
d None of the above is legal.
Assume you have declared a method as follows: private static double DisplayDatastring name double amount
Which of the following is an illegal method call?
a DisplayDataname : "Albert";
b DisplayDataamount : name : "Albert";
c DisplayDataamount : ;
d All of these are legal.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
