Start learning →

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

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

Match method types: 1. Final: p. Constant 2. Static: q. Shared 3. Abs: r. Body-freeRead the answer and worked solution →Match invoke paths: 1. Early: p. Compile 2. Vcall: q. Dynamic 3. Over: r. OverloadRead the answer and worked solution →Match pass side-fx: 1. Prim: p. Unchanged 2. Obj: q. Field edit 3. Ref: r. Local slotRead the answer and worked solution →Match accessor traits: 1. Read: p. Inspect 2. Const: q. Unchanged 3. Ret: r. Yields valRead the answer and worked solution →Match overload keys: 1. Sig: p. Name params 2. Ret: q. Ignored 3. Cast: r. Type promoRead the answer and worked solution →Match strict models: 1. Value: p. Deep copy 2. Ref: q. Exact slot 3. Share: r. Ptr valRead the answer and worked solution →Match method checks: 1. Formal: p. Decl var 2. Actual: q. Arg val 3. Test: r. Type checkRead the answer and worked solution →Match dispatch gates: 1. Static: p. Compile 2. Dyn: q. Vtable run 3. Poly: r. Multi formRead the answer and worked solution →Match purity rules: 1. Pure: p. Constant 2. Impure: q. Side-fx 3. Void: r. ProcedureRead the answer and worked solution →Match overload traps: 1. Clash: p. Ambiguity 2. Cast: q. Promotion 3. Vararg: r. Low rankRead the answer and worked solution →Match memory frames: 1. Push: p. Call frame 2. Pop: q. Return exit 3. Heap: r. Arg objectRead the answer and worked solution →Match method bodies: 1. Abs: p. Empty semi 2. Native: q. Platform 3. Def: r. Default impRead the answer and worked solution →Match builder kinds: 1. Zero: p. Default 2. Arg: q. Parameter 3. Copy: r. Clone objRead the answer and worked solution →Match ctor traits: 1. Name: p. Class name 2. Return: q. No type 3. Call: r. New wordRead the answer and worked solution →Match trigger actions: 1. New: p. Create 2. Alloc: q. Heap mem 3. Init: r. SetupRead the answer and worked solution →Match default traits: 1. Supply: p. Compiler 2. Body: q. Empty run 3. Arg: r. Zero paramRead the answer and worked solution →Match param features: 1. Arg: p. Input val 2. Set: q. Assign 3. Pass: r. Call siteRead the answer and worked solution →Match method vs ctor: 1. Ctor: p. No return 2. Func: q. Ret type 3. Inv: r. Direct callRead the answer and worked solution →Match copy methods: 1. Old: p. Given obj 2. New: q. Fresh copy 3. Field: r. DuplicateRead the answer and worked solution →Match overload kinds: 1. Ctor: p. Init forms 2. Func: q. Names 3. Sig: r. Unique argsRead the answer and worked solution →Match ctor overload: 1. Name: p. Same class 2. Args: q. Varied 3. Pick: r. Arg matchRead the answer and worked solution →Match init flow: 1. Super: p. Parent 2. This: q. Peer ctor 3. Body: r. Code runRead the answer and worked solution →Match access scopes: 1. Pub: p. Any class 2. Priv: q. Singleton 3. Prot: r. SubclassesRead the answer and worked solution →Match ctor roles: 1. Alloc: p. Heap 2. Init: q. Fields 3. Rules: r. InvariantRead the answer and worked solution →Match default rules: 1. None: p. Auto added 2. Made: q. Suppressed 3. Zero: r. No argsRead the answer and worked solution →Match copy modes: 1. Low: p. Ref copy 2. Deep: q. New copies 3. Clone: r. DuplicateRead the answer and worked solution →Match ctor syntax: 1. Name: p. Class tag 2. Void: q. Forbidden 3. Static: r. BarredRead the answer and worked solution →Match signature keys: 1. Kind: p. Data types 2. Order: q. Sequence 3. Count: r. Arg sumRead the answer and worked solution →Match chaining rules: 1. This: p. Peer ctor 2. Line: q. First line 3. Cycle: r. ForbiddenRead the answer and worked solution →Match hierarchy ctors: 1. Base: p. Parent run 2. Top: q. Root Object 3. Auto: r. ImplicitRead the answer and worked solution →

Worked practice questions

Match method types: 1. Final: p. Constant 2. Static: q. Shared 3. Abs: r. Body-free

  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

Final methods prohibit overriding, static methods execute without receiver instances, and abstract methods define declarations without bodies.

Open this question →

Match invoke paths: 1. Early: p. Compile 2. Vcall: q. Dynamic 3. Over: r. Overload

  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

Static methods are resolved statically, virtual methods invoke dynamically at runtime, and overloaded calls resolve at compile time.

Open this question →

Match pass side-fx: 1. Prim: p. Unchanged 2. Obj: q. Field edit 3. Ref: r. Local slot

  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

Passing primitive values shields caller variables from alteration, passing object references permits mutating object fields, but rebinding references stays local.

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