Collection Classes on C# related Questions and Answers

Question 1 : In a HashTable Key cannot be null, but Value can be.
1. TRUE
2. FALSE

View Answer   Discuss with Members

Question 3 : Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?
1. arr.Count
2. arr.GrowSize
3. arr.MaxIndex
4. arr.Capacity
5. arr.UpperBound
View Answer   Discuss with Members

Question 4 : 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?
1. 4
2. 8
3. 16
4. 32
5. 64
View Answer   Discuss with Members

Question 5 : Which of the following is NOT an interface declared in System.Collections namespace?
1. IComparer
2. IEnumerable
3. IEnumerator
4. IDictionaryComparer
5. IDictionaryEnumerator
View Answer   Discuss with Members

Question 6 : A HashTable t maintains a collection of names of states and capital city of each state. Which of the following is the correct way to find out whether ''Kerala'' state is present in this collection or not?
1. t.ContainsKey(''Kerala'');
2. t.HasValue(''Kerala'');
3. t.HasKey(''Kerala'');
4. t.ContainsState(''Kerala'');
5. t.ContainsValue(''Kerala'');
View Answer   Discuss with Members

Question 7 : How many enumerators will exist if four threads are simultaneously working on an ArrayList object?
1. 1
2. 2
3. 3
4. 4
5. Depends upon the Project Setting made in Visual Studio.NET.
View Answer   Discuss with Members


View 1 - 7 of 7 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter