Beginner
C#
Q27 / 100
What is string interpolation in C#?
Correct! Well done.
Incorrect.
The correct answer is B) Embedding expressions in a string literal using $"Hello {name}"
B
Correct Answer
Embedding expressions in a string literal using $"Hello {name}"
Explanation
$"Hello, {user.Name}! You are {age} years old." compiles to string.Format() calls at compile time.
Progress
27/100