Start learning →

ICSE Class 10 String Handling and Wrapper Classes — practice questions — page 2

Explore 96 free String Handling and Wrapper Classes questions in ICSE Class 10 Computer Applications. Open each question or exercise to read its content, reference answers and available explanation.

Practise String Handling and Wrapper Classes with Quill →

String Handling and Wrapper Classes questions and exercises with answers

Showing questions 31–60 of 96.

Which class provides a mutable string alternative in Java?Read the answer and worked solution →Why are immutable strings advantageous in concurrent programming?Read the answer and worked solution →How are string functions implemented in OO languages?Read the answer and worked solution →What information does the string length function return?Read the answer and worked solution →What value does length("hello world") evaluate to?Read the answer and worked solution →What condition is evaluated by a string equality check?Read the answer and worked solution →What outcome does a string inequality comparison verify?Read the answer and worked solution →What text modification does trim or strip perform?Read the answer and worked solution →What task is carried out by the indexOf method on a string?Read the answer and worked solution →Which backward search routine does lastIndexOf mirror?Read the answer and worked solution →Which symbol appends two strings together via concatenation?Read the answer and worked solution →What algebraic properties describe string concatenation?Read the answer and worked solution →What structural subset describes both prefixes and suffixes?Read the answer and worked solution →What sequence describes the reverse of a character string?Read the answer and worked solution →What ordering system compares strings based on an alphabet?Read the answer and worked solution →Which characters commonly enclose string literals in source code?Read the answer and worked solution →Which symbol prefixes escape sequences in string literals?Read the answer and worked solution →How many bytes does a 5-character null-terminated string occupy?Read the answer and worked solution →Match wrapper pairs: 1. int: p. Integer 2. char: q. Character 3. double: r. DoubleRead the answer and worked solution →Match box actions: 1. Box: p. Wrap to obj 2. Unbox: q. Prim val 3. Auto: r. ImplicitRead the answer and worked solution →Match static parse: 1. Int: p. parseInt 2. Byte: q. parseByte 3. Long: r. parseLongRead the answer and worked solution →Match wrapper traits: 1. State: p. Immutable 2. Mem: q. Heap object 3. Kind: r. Non-primRead the answer and worked solution →Match storage forms: 1. Array: p. Primitive 2. List: q. Obj refs 3. Wrap: r. BridgeRead the answer and worked solution →Match numeric wraps: 1. Float: p. Real 32 2. Double: q. Real 64 3. Num: r. SuperclassRead the answer and worked solution →Match bool wraps: 1. bool: p. Primitive 2. Bool: q. Class obj 3. Val: r. True falseRead the answer and worked solution →Match pack origins: 1. Lang: p. Wrappers 2. Util: q. List sets 3. Math: r. BigIntegerRead the answer and worked solution →Match auto features: 1. J2SE: p. Ver 5.0 2. Auto: q. Code add 3. Gen: r. CompilerRead the answer and worked solution →Match unbox logic: 1. Fun: p. intValue() 2. Auto: q. Auto run 3. Prim: r. ExtractedRead the answer and worked solution →Match compare rules: 1. ==: p. Reference 2. Eq: q. Value check 3. Prim: r. PrimitivesRead the answer and worked solution →Match list entries: 1. Val: p. int prim 2. Box: q. Auto wrap 3. Node: r. IntegerRead the answer and worked solution →

Worked practice questions

Which class provides a mutable string alternative in Java?

  1. StringTokenizer
  2. StringComponent
  3. StringReference
  4. StringBuilder
Show answer and solution

Correct answer: D. StringBuilder

StringBuilder provides an unsynchronized, mutable alternative to the String class.

Open this question →

Why are immutable strings advantageous in concurrent programming?

  1. Faster memory freeing
  2. Zero object overhead
  3. Simpler thread safety
  4. Direct hardware access
Show answer and solution

Correct answer: C. Simpler thread safety

Immutable strings eliminate data races across threads and simplify concurrent code.

Open this question →

How are string functions implemented in OO languages?

  1. Global utility routines
  2. Methods of string objects
  3. Hardware CPU instructions
  4. External compiler plugins
Show answer and solution

Correct answer: B. Methods of string objects

In object-oriented systems, string operations are implemented as methods of string objects.

Open this question →

How to practise

  1. Choose a String Handling and Wrapper Classes 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 String Handling and Wrapper Classes practice for ICSE Class 10. Read explanations as you go. No signup form needed to start.

Practise String Handling and Wrapper Classes →

More Computer Applications topics