Question 59Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

In OOP, what does the term "method signature" refer to?ओओपी में, "विधि हस्ताक्षर" शब्द क्या दर्शाता है?

ओओपी में, "विधि हस्ताक्षर" शब्द क्या दर्शाता है?
  1. AThe name of the methodविधि का नाम
  2. BThe return type of the methodविधि का वापसी प्रकार
  3. CThe parameters of the methodविधि के पैरामीटर
  4. DThe combination of method name and parameter typesविधि नाम और पैरामीटर प्रकारों का संयोजन
Show answerHide answer

Correct answer: (D) The combination of method name and parameter typesविधि नाम और पैरामीटर प्रकारों का संयोजन

Explanation

A method signature is the method's name together with its parameter list (number, types and order). In Java and C++ the return type is not part of it, which is why overloads must differ in parameters.Method signature मेथड का नाम और उसकी पैरामीटर सूची (संख्या, प्रकार और क्रम) है। Java और C++ में return type इसका हिस्सा नहीं होता, इसीलिए overload के पैरामीटर अलग होने चाहिए।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 59 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.