Start learning →

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

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

Where does the compiler-inserted default constructor reside?Read the answer and worked solution →What default value do boolean fields receive upon construction?Read the answer and worked solution →What initial value do reference fields receive by default?Read the answer and worked solution →What parameter type does a copy constructor require?Read the answer and worked solution →What purpose does a copy constructor serve in a program?Read the answer and worked solution →Does Java generate a default copy constructor automatically?Read the answer and worked solution →Which call invokes another constructor within the same class?Read the answer and worked solution →Where must a this() call be placed inside a constructor?Read the answer and worked solution →Which keyword accesses a superclass constructor in Java?Read the answer and worked solution →What term denotes a constructor accepting zero arguments?Read the answer and worked solution →Where does a Java constructor allocate reference objects?Read the answer and worked solution →Which modifiers should not be applied to Java constructors?Read the answer and worked solution →What is the final task executed by a Java constructor?Read the answer and worked solution →What distinguishes overloaded constructors in the same class?Read the answer and worked solution →How must overloaded methods differ in formal signature?Read the answer and worked solution →Where must immutable objects be initialized in OOP?Read the answer and worked solution →What can constructor overloading enforce for object creation?Read the answer and worked solution →What state does a properly written constructor leave in an object?Read the answer and worked solution →Match method roles: 1. Read: p. Accessor 2. Change: q. Mutator 3. Manage: r. ManagerRead the answer and worked solution →Match param terms: 1. Value: p. By value 2. Formal: q. Declared 3. Actual: r. Pass argRead the answer and worked solution →Match return kinds: 1. Void: p. No return 2. Value: q. Yield sum 3. Object: r. Ref sumRead the answer and worked solution →Match method scopes: 1. Static: p. Class 2. Inst: q. Per object 3. Priv: r. Local callRead the answer and worked solution →Match call mechanics: 1. Copy: p. Value pass 2. Link: q. Reference 3. Ret: r. Back jumpRead the answer and worked solution →Match method parts: 1. Name: p. Identifier 2. In: q. Input list 3. Body: r. StatementsRead the answer and worked solution →Match header terms: 1. Mod: p. Specifier 2. Ret: q. Type tag 3. Sig: r. Name paramsRead the answer and worked solution →Match state changes: 1. Pure: p. No side fx 2. Impure: q. Mutates 3. Query: r. InspectRead the answer and worked solution →Match overload rules: 1. Name: p. Identical 2. Param: q. Different 3. Ret: r. No effectRead the answer and worked solution →Match param traits: 1. Count: p. Arity 2. Order: q. Sequence 3. Type: r. DatatypeRead the answer and worked solution →Match eval styles: 1. Val: p. Eager eval 2. Ref: q. Alias pass 3. Share: r. Obj refRead the answer and worked solution →Match mutator roles: 1. Set: p. Update val 2. Check: q. Validate 3. Hide: r. EncapsuleRead the answer and worked solution →

Worked practice questions

Where does the compiler-inserted default constructor reside?

  1. In the .class file
  2. In the .java file
  3. In the .html file
  4. In the .json file
Show answer and solution

Correct answer: A. In the .class file

The compiler-generated default constructor exists inside the compiled .class file.

Open this question →

What default value do boolean fields receive upon construction?

  1. null
  2. true
  3. zero
  4. false
Show answer and solution

Correct answer: D. false

Default initialization sets boolean fields to false in a class.

Open this question →

What initial value do reference fields receive by default?

  1. zero
  2. null
  3. void
  4. true
Show answer and solution

Correct answer: B. null

Uninitialized reference type variables default to a null value in Java.

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