Start learning →

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

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 91–96 of 96.

Worked practice questions

Match memory steps: 1. Zero: p. Clear mem 2. Field: q. Set value 3. Ctor: r. Body logic

  1. 1-p, 2-q, 3-r
  2. 1-p, 2-r, 3-q
  3. 1-q, 2-p, 3-r
  4. 1-r, 2-p, 3-q
Show answer and solution

Correct answer: A. 1-p, 2-q, 3-r

Object creation clears memory with default zero values, assigns explicit field initializers, and executes constructor body statements.

Open this question →

Match bad ctors: 1. Return: p. Has type 2. Loop: q. Self chain 3. Mod: r. Non-access

  1. 1-p, 2-q, 3-r
  2. 1-p, 2-r, 3-q
  3. 1-q, 2-p, 3-r
  4. 1-r, 2-p, 3-q
Show answer and solution

Correct answer: A. 1-p, 2-q, 3-r

Invalid constructor definitions include adding return types, creating circular this() invocation loops, or applying final/static modifiers.

Open this question →

Match copy traits: 1. Param: p. Same type 2. Hand: q. Code copy 3. Auto: r. No default

  1. 1-p, 2-q, 3-r
  2. 1-p, 2-r, 3-q
  3. 1-q, 2-p, 3-r
  4. 1-r, 2-p, 3-q
Show answer and solution

Correct answer: A. 1-p, 2-q, 3-r

In Java, copy constructors accept an instance of the same class, require manual field assignment, and are never generated by default.

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