MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2025 PYQ

Q Which of the following pairs of methods will cause a compile-time error due to incorrect method overloading?

Question ID
#24163
Subchapter
ICSE Computer Application - Class X - 2025 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A void test(int a, int b) and void test(double a, double b)
  • B void test(int a, double b) and void test(double a, int b)
  • C void test(int a, double b) and void test(int a)
  • D void test(int a) and int test(int a)
Correct Answer: D

Explanation

(d) void test(int a) and int test(int a)
Explanation: Method overloading is based on method signatures (method name + parameter list). Return type differences (void vs. int) do not differentiate overloaded methods, leading to a compilation error.

Share This Question

Share this MCQ with your friends or study group.