adplus-dvertising

Welcome to the Collection Classes and Mathematical Functions MCQs Page

Dive deep into the fascinating world of Collection Classes and Mathematical Functions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Collection Classes and Mathematical Functions, a crucial aspect of C# programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Collection Classes and Mathematical Functions, 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 Collection Classes and Mathematical Functions. 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 Collection Classes and Mathematical Functions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Collection Classes and Mathematical Functions MCQs | Page 2 of 5

Explore more Topics under C# programming

Q11.
Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of the Collection on adding fifth element to it?
Discuss
Answer: (b).8
Q12.
Which of the following is an ordered collection class?

1. Map
2. Stack
3. Queue
4. BitArray
5. HashTable
Discuss
Answer: (b).2 and 3 only
Q13.
Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?
Discuss
Answer: (a).arr.Count
Q14.
Which of the following statements are correct about a HashTable collection?

1. It is a keyed collection.
2. It is a ordered collection.
3. It is an indexed collection.
4. It implements a IDictionaryEnumerator interface in its inner class.
5. The key - value pairs present in a HashTable can be accessed using the Keys and Values properties of the inner class that implements the IDictionaryEnumerator interface.


Discuss
Answer: (d).1, 4 and 5 only
Discuss
Answer: (c).IEnumerator e;
e = st.GetEnumerator();
while (e.MoveNext())
Console.WriteLine(e.Current);
Discuss
Answer: (d).They use efficient algorithms to manage the collection, thereby improving the performance of the program.
Q17.
Which among the following is not the ordered collection class?
Discuss
Answer: (a).BitArray
Q18.
Which among the following is not an interface declared in System.Collection namespace?
Discuss
Answer: (a).IDictionaryComparer
Q19.
Which among the following is the correct way to find out the number of elements currently present in an ArrayListCollection called arr?
Discuss
Answer: (b).arr.Count
Q20.
Which statement is correct about the C#.NET code snippet given below?
Stack st = new Stack();
st.Push("Csharp");
st.Push(7.3);
st.Push(8);
st.Push('b');
st.Push(true);
Discuss
Answer: (c).Perfectly workable code
Page 2 of 5

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!