Ask Question
7 March, 03:34

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

+2
Answers (1)
  1. 7 March, 06:29
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers