C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
C# Fundamentals - Lesson 8: Strings Quiz
Answer all questions to test your understanding
1
Are strings mutable or immutable in C#?
Mutable
Immutable
Both
Depends on the version
2
Which class should you use for heavy string manipulation?
String
StringBuilder
StringBuffer
StringWriter
3
What is string interpolation?
Concatenating strings with +
Embedding expressions inside strings using $
Splitting strings into parts
Converting strings to numbers
4
Which method splits a string into an array of substrings?
Split()
Substring()
IndexOf()
Replace()
5
What does the Trim() method do to a string?
Removes all spaces
Removes leading and trailing spaces
Removes only leading spaces
Removes only trailing spaces
Submit Quiz