adplus-dvertising

Welcome to the Arrays and Strings MCQs Page

Dive deep into the fascinating world of Arrays and Strings with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Arrays and Strings, a crucial aspect of C# programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Arrays and Strings, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C# programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Arrays and Strings. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C# programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Arrays and Strings. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Arrays and Strings MCQs | Page 13 of 16

Explore more Topics under C# programming

Q121.
What will be the output of the given set of code?
static void Main(string[] args)
 {
     int[] x = {65, 66, 67, 68, 69, 70};
     fun(x);
     Console.ReadLine();
 }
 static void fun(params int[] b )
 {
     int i;
     for (i = 5; i > 0 ; i--)
     {
         b[i] = b[i] + 32;
         Console.WriteLine(Convert.ToChar(b[i]));
     }
 }
Discuss
Answer: (c).f, e, d, c, b
Discuss
Answer: (c).objects of built in data type
Q123.
Select the namespace in which string class is built?
Discuss
Answer: (a).System.Text
Q124.
Select the interfaces defined by the string class?
Discuss
Answer: (d).All of the mentioned
Q125.
Choose the constructor type used to build strings from character array:
Discuss
Answer: (b).public String(char[ ] value, int startIndex, int length)
Q126.
Select the operators used for checking the equality in strings:
Discuss
Answer: (a).!=
Discuss
Answer: (d).All of the mentioned
Q128.
Select the output for given set of code:
static void Main(string[] args)
{
    string s1 = "Hello" + "c" + "Sharp";
    Console.WriteLine(s1);
    Console.ReadLine();
}
Discuss
Answer: (a).Hello c Sharp
Discuss
Answer: (d).All of the mentioned
Q130.
Which string operation does the below mentioned method define?

public static string Concat(string str0, string str1)
Discuss
Answer: (d).all of the mentioned

Suggested Topics

Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!