Ask Question

Which of the following is a true statement?

a. Message body in reachable by the main program.

b. Two methods can have the same header.

c. Formal and actual parameters may have the samenames.

d. Local variables are recognized by the mainprogram.

+2
Answers (2)
  1. 13 May, 06:53
    0
    Answer: D. Local variables are recognized by the main program

    Explanation: Local variables can be accessed in the function that they are defined within. If you require the variables which should be accessible by every function in a particular program the they should be defined globally in the program. Therefore local variables are recognized by the main program throughout.
  2. 13 May, 07:03
    0
    d. Local variables are recognized by the main program.

    Explanation:

    Local variables are recognized by the main program, is a true statement.

    However, message body in reachable by the main program, two methods can have the same header, and formal and actual parameters may have the same names are NOT true statements.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is a true statement? a. Message body in reachable by the main program. b. Two methods can have the same header. c. ...” 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