C Sharp Strings Questions and Answers
C# Strings are one of the most important topics in programming interviews and technical tests. This page features C# programming questions and answers focused on string manipulation, methods, immutability, and performance optimization. These C# strings questions with answers are ideal for students preparing for TCS, Infosys, Wipro, and Capgemini placement exams. Understanding string operations in C# helps programmers efficiently manage text data and avoid common pitfalls related to memory and performance.
C Sharp Strings
Showing 10 of
32 questions
31. Which method converts an object to its string representation?
- ToString()
- ToText()
- GetString()
- ConvertToString()
32. What does "ABC".ToCharArray() return?
- Character array
- Byte array
- String array
- Integer array