Skip to content

Computer Science · Class 11 · ISC

User-Defined Methods

Method definition and invocation, parameters and arguments, return types, call by value, and overloading.

5questions

Board PYQs
0
Practice
5
Topics
0
  • Most common: 3 marks

Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)

5 questions

  • Practice question

    3 marks

    What is method overloading? State the conditions under which two methods are said to be overloaded.

    User-Defined MethodsMediumShort answer

  • Practice question

    3 marks

    Write a Java method that takes an integer and returns true if it is a palindrome.

    User-Defined MethodsMediumApplication based

  • Practice question

    3 marks

    Distinguish between a formal parameter and an actual parameter, and explain call by value.

    User-Defined MethodsMediumShort answer

  • Practice question

    3 marks

    What is the significance of the keyword static in a method declaration?

    User-Defined MethodsMediumShort answer

  • Practice question

    3 marks

    Explain the difference between a pure and an impure method.

    User-Defined MethodsMediumShort answer