C# Questions & Answers – Searching and Modifying Strings

This section of our 1000+ C# multiple choice questions focuses on searching and modification of strings in C# Programming Language. 1. Which of these methods of class String is used to separate a substring from a String object? a) substring() b) Substring() c) SubString() d) None of the mentioned 2. What will be the output … Read more

advertisement

C# Questions & Answers – Comparison of Strings

This section of our 1000+ C# multiple choice questions focuses on comparison of two strings in C# Programming Language. 1. Which of these methods of class String is used to compare two String objects for their equality? a) equals() b) Equals() c) isequal() d) Isequal() 2. Which of these methods is used to compare two … Read more

advertisement

C# Questions & Answers – String Class with Description

This set of C# Multiple Choice Questions & Answers (MCQs) focuses on “String Class with Description”. 1. What is the String in C# meant for? a) Variable b) Character Array c) Object d) Class 2. What does the term ‘immutable’ means in term of string objects? a) We can modify characters included in the string … Read more

advertisement

C# Questions & Answers – Basic Operation on Strings

This section of our 1000+ C# multiple choice questions focuses on basic operation on strings in C# Programming Language. 1. Which of the following string() method are used to compare two strings with each other? a) CopyTo() b) Copy() c) Compare() d) CompareTo() 2. Choose the base class for string() method: a) System.Array b) System.char … Read more

advertisement

C# Multiple Choice Questions – Array

This section of our 1000+ C# multiple choice questions focuses on array and it’s properties in C# Programming Language. 1. What will be the output of the following C# code? static void Main(string[] args){ int i, j; int[, ] arr = new int[ 3, 3]; for (i = 0; i < 3; ++i) { for … Read more

advertisement

C# Questions & Answers – Destructors in Class

This section of our 1000+ C# multiple choice questions focuses on destructors in class in C# Programming Language. 1. Which operator among the following signifies the destructor operator? a) :: b) : c) ~ d) & 2. The method called by clients of a class to explicitly release any resources like network, connection, open files … Read more

advertisement

C# Questions & Answers – Constructors in Class

This section of our 1000+ C# multiple choice questions focuses on constructors in class in C# Programming Language. 1. Number of constructors a class can define is? a) 1 b) 2 c) Any number d) None of the mentioned 2. The correct way of defining constructor of the given class as and when objects of … Read more

advertisement

C# Questions & Answers – Methods in Class

This section of our 1000+ C# multiple choice questions focuses on methods in class in C# Programming Language. 1. What will be the output of the following C# code? static void Main(string[] args) { int a = 5; int s = 0, c = 0; Mul (a, ref s, ref c); Console.WriteLine(s + "t " … Read more

advertisement

C# Questions & Answers – Reference Variables and Assignment

This set of C# Multiple Choice Questions & Answers (MCQs) focuses on “Reference Variables and Assignment”. 1. Which reference modifier is used to define reference variable? a) & b) ref c) # d) $ 2. What will be the output of the following C# code? static void Main(string[] args) { int a = 5; fun1 … Read more

advertisement

C# Questions & Answers – Fundamentals of Class

This section of our 1000+ C# multiple choice questions focuses on fundamentals of class in C# Programming Language. 1. What will be the output of the following C# code? class sample { public int i; public int[] arr = new int[10]; public void fun(int i, int val) { arr[i] = val; } } class Program … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.