21 Equality & Strings questions from the C# bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
B.the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
C.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
D.redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
Answer + AI explanation with Pro
2. Which term means: "the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents"?
Mid
A.Ref parameter
B.Reference equality default
C.StringBuilder
D.String interning
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Reference equality default — the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
B.Reference equality default — an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
C.Reference equality default — a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
D.Reference equality default — the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
Answer + AI explanation with Pro
4. What is String immutability?
Mid
A.the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
B.redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
C.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
D.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
Answer + AI explanation with Pro
5. Which term means: "the property that text instances cannot be changed after creation, so any apparent modification produces a new instance"?
Mid
A.String immutability
B.Reference equality default
C.Ref parameter
D.StringBuilder
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.String immutability — the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
B.String immutability — redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
C.String immutability — an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage
D.String immutability — the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
Answer + AI explanation with Pro
7. What is String interning?
Mid
A.the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
B.redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
C.a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
D.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
Answer + AI explanation with Pro
8. Which term means: "the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance"?
Mid
A.String immutability
B.Equals override
C.String interning
D.StringBuilder
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.String interning — the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
B.String interning — the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
C.String interning — a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
D.String interning — an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
Answer + AI explanation with Pro
10. What is StringBuilder?
Mid
A.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
B.a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
C.the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
D.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
Answer + AI explanation with Pro
11. Which term means: "a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time"?
Mid
A.String interning
B.StringBuilder
C.Out parameter
D.Reference equality default
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.StringBuilder — the property that text instances cannot be changed after creation, so any apparent modification produces a new instance
B.StringBuilder — an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage
C.StringBuilder — the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
D.StringBuilder — a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
Answer + AI explanation with Pro
13. What is Out parameter?
Senior
A.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
B.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
C.redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
D.the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
Answer + AI explanation with Pro
14. Which term means: "an argument modifier requiring the called method to assign the variable before returning, used to produce additional results"?
Senior
A.Out parameter
B.Reference equality default
C.StringBuilder
D.Equals override
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Out parameter — an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
B.Out parameter — redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
C.Out parameter — the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
D.Out parameter — an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage
Answer + AI explanation with Pro
16. What is Ref parameter?
Senior
A.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
B.an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage
C.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
D.a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
Answer + AI explanation with Pro
17. Which term means: "an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage"?
Senior
A.String immutability
B.Reference equality default
C.Ref parameter
D.Equals override
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.Ref parameter — an argument modifier passing a variable by reference and requiring it be initialized beforehand, letting the method read and modify the caller's storage
B.Ref parameter — an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
C.Ref parameter — the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
D.Ref parameter — redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
Answer + AI explanation with Pro
19. What is Equals override?
Mid
A.the runtime optimization of storing a single shared copy of identical literal text so equal compile-time literals reference the same instance
B.an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
C.a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
D.redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
Answer + AI explanation with Pro
20. Which term means: "redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity"?
Mid
A.String immutability
B.Reference equality default
C.Equals override
D.Out parameter
Answer + AI explanation with Pro
21. Which statement is correct?
Mid
A.Equals override — an argument modifier requiring the called method to assign the variable before returning, used to produce additional results
B.Equals override — the behavior whereby the == operator on most classes compares whether two operands point to the same instance rather than comparing their contents
C.Equals override — redefining the inherited content-comparison method (and the matching hash method) so instances are considered equal based on their values rather than identity
D.Equals override — a mutable buffer type for efficiently composing text through many append operations without allocating a new instance each time
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Equality & Strings question come with Pro.