Ask Question
5 September, 20:00

A declaration for a method that receives two or more arguments must list the type for each parameter separately only if the parameters have different types.

A. True

B. False

+5
Answers (1)
  1. 5 September, 20:20
    0
    Option B (false) is the correct answer for the above question.

    Explanation:

    A method or function is a part of the program which is designed to perform some task. To use the function a user needs to declare the body of the function which is the collection of the task. Some of the functions can take value from the other function which is called the argument of the function. When the user declares the function body they need to define the variable type of all variable (either it is the same type or a different type) which is used to store the value of the argument. But the question statement states that if the argument variable is different type then only it needs to declare the type of the variable, which is not correct because it is defined as above. Hence False is the correct answer which is stated from option B.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A declaration for a method that receives two or more arguments must list the type for each parameter separately only if the parameters have ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers