Ask Question
5 March, 20:41

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.

+5
Answers (2)
  1. 5 March, 21:34
    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. 6 March, 00:30
    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?
Get 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 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