Start learning →

ICSE Class 10 User-Defined Methods and Constructors — practice questions

Explore 96 free User-Defined Methods and Constructors questions in ICSE Class 10 Computer Applications. Open each question or exercise to read its content, reference answers and available explanation.

Practise User-Defined Methods and Constructors with Quill →

User-Defined Methods and Constructors questions and exercises with answers

Showing questions 1–30 of 96.

What type of method serves to read the data values of an object?Read the answer and worked solution →Which method category is designed to alter the stored data of an object?Read the answer and worked solution →What do constructors usually not return in most programming languages?Read the answer and worked solution →What kind of method possesses a signature but lacks an implementation body?Read the answer and worked solution →When can a static method be executed relative to class instances?Read the answer and worked solution →What allows multiple routines with the same name but distinct code?Read the answer and worked solution →In what order does Java evaluate arguments during a function call?Read the answer and worked solution →How does the Java community commonly describe Java's parameter passing?Read the answer and worked solution →What defines the set of rules for evaluating expressions in a language?Read the answer and worked solution →What term describes a subclass making an implemented method abstract again?Read the answer and worked solution →To what are static methods designed to be relevant across a program?Read the answer and worked solution →Why are static methods specifically designated with the term static?Read the answer and worked solution →Which characteristic applies to the static method Math.max() in Java?Read the answer and worked solution →On what target entity are class methods directly invoked?Read the answer and worked solution →What design advantages do accessor and mutator abstractions provide?Read the answer and worked solution →When does the compiler resolve which overloaded method to invoke in Java?Read the answer and worked solution →How does function overloading differ from dynamic polymorphism?Read the answer and worked solution →How are multiple constructors in a class implemented in object languages?Read the answer and worked solution →What practical benefit arises from overloading constructors in a program?Read the answer and worked solution →Which evaluation family evaluates arguments before function execution?Read the answer and worked solution →Under call by value, what remains unchanged in the scope of the caller?Read the answer and worked solution →Which error occurs when default values make method selection ambiguous?Read the answer and worked solution →On what criteria does a compiler select an overloaded function to call?Read the answer and worked solution →What design property makes code easier to maintain and re-use via methods?Read the answer and worked solution →What is the primary role of a constructor in OOP?Read the answer and worked solution →Which explicit return type do Java constructors specify?Read the answer and worked solution →What name must a constructor in Java always share?Read the answer and worked solution →Which keyword directly triggers constructor invocation in Java?Read the answer and worked solution →How many arguments does a parameterized constructor accept?Read the answer and worked solution →What does the Java compiler supply when no constructor is written?Read the answer and worked solution →

Worked practice questions

What type of method serves to read the data values of an object?

  1. Accessor method
  2. Mutator method
  3. Abstract method
  4. Virtual method
Show answer and solution

Correct answer: A. Accessor method

Accessor methods retrieve and return the internal data values of an object.

Open this question →

Which method category is designed to alter the stored data of an object?

  1. Mutator method
  2. Accessor method
  3. Abstract method
  4. Static method
Show answer and solution

Correct answer: A. Mutator method

Mutator methods modify or update the state data stored inside an object.

Open this question →

What do constructors usually not return in most programming languages?

  1. Memory pointers
  2. Return values
  3. Class fields
  4. Method names
Show answer and solution

Correct answer: B. Return values

Constructors initialize newly created instances and do not return values.

Open this question →

How to practise

  1. Choose a User-Defined Methods and Constructors question and try to work out your answer.
  2. Open the question to check the correct answer and read its worked solution.
  3. Continue in the app for bite-sized lessons, explanations and review with Quill. You can start without creating an account.

Put it into practice

Continue with User-Defined Methods and Constructors practice for ICSE Class 10. Read explanations as you go. No signup form needed to start.

Practise User-Defined Methods and Constructors →

More Computer Applications topics