Ask 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 different types.

A. True

B. False

+4
Answers (1)
  1. 19 October, 01:39
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers