Explore topic-wise MCQs in Csharp.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of these method of class String is used to obtain length of String object?$

A. get()
B. Sizeof()
C. Lengthof()
D. Length()
Answer» B. Sizeof()
2.

Which of these constructors is used to create an empty String object?$

A. String()
B. String(void)
C. String(0)
D. None of the mentioned
Answer» C. String(0)
3.

4 0

A. 3 0
B. 3 4
C. 4 3
Answer» D.