Bird
0
0

Which StringBuilder method is used to remove characters from the current instance?

easy🧠 Conceptual Q1 of 15
C Sharp (C#) - Strings and StringBuilder
Which StringBuilder method is used to remove characters from the current instance?
AErase
BRemove
CCut
DDelete
Step-by-Step Solution
Solution:
  1. Step 1: Identify StringBuilder methods for modifying content

    The StringBuilder class provides a method called Remove to delete characters from a specified position.
  2. Step 2: Confirm method name correctness

    There is no Delete, Cut, or Erase method in StringBuilder. The correct method is Remove.
  3. Final Answer:

    Remove -> Option B
  4. Quick Check:

    Remove method = Remove [OK]
Quick Trick: Use Remove to delete characters by index in StringBuilder [OK]
Common Mistakes:
MISTAKES
  • Confusing Remove with Delete
  • Using non-existent methods like Cut or Erase

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes