Bird
0
0

Which of the following expressions correctly concatenates three strings a, b, and c in C#?

easy🧠 Conceptual Q2 of 15
C Sharp (C#) - Strings and StringBuilder
Which of the following expressions correctly concatenates three strings a, b, and c in C#?
Aa + b + c
Ba & b & c
Cconcat(a, b, c)
Da - b - c
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct concatenation operator

    In C#, the + operator is used to concatenate strings.
  2. Step 2: Check the options

    Only a + b + c uses + to join the three strings correctly. The others use invalid operators or functions.
  3. Final Answer:

    a + b + c -> Option A
  4. Quick Check:

    String concatenation uses + operator [OK]
Quick Trick: Use + to join multiple strings in C# [OK]
Common Mistakes:
MISTAKES
  • Using & which is not a string operator in C#
  • Trying to use a non-existent concat function
  • Using subtraction operator - mistakenly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

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