View Count: 0
Duration: 50 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 25 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 50 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 32 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 62
Closely related data can be handled more efficiently in memory when grouped together into a ___________ 
Options:
  1. Collection
  2. Database
  3. File
  4. Class
View Answer/Explanation:
a
Explanation:
Collection is an object in memory and is used for managing other objects in memory.

Question No: 2 of 62
Which of the following are benefits of the Collection 
Options:
  1. a. Collection have built-in sorting facility.
  2. b. They provide best performance because they are indexed.
  3. c. We have to manage memory of collections as we require.
  4. d. Collections cannot be readonly or of fixed size.
  5. e. We can easily iterate through the collection.
View Answer/Explanation:
a b e
Explanation:
Collections have built in functions so that reducing code to sort the elements,whenever we added elements to the collection object automatically indexed it gives best performance and easly iterate through collection.

Question No: 3 of 62
Every collection class must implement ____________ interface? 
Options:
  1. IEnumerator
  2. IEnumerable
  3. IList
  4. IDictionary
View Answer/Explanation:
b
Explanation:
IEnumerable is parent interface for all collection classes. It used to fetch an enumerator which can be used for iterating through all the items in a collection.

Question No: 4 of 62
Array is a collection? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Every array in .net is inherited from System.Array and thus all types of arrays in .net are collections.

Question No: 5 of 62
foreach statement can be used only on those objects which have implemented _________ interface 
Options:
  1. ICollection
  2. IEnumerable
  3. IEnumerator
  4. IList
View Answer/Explanation:
b
Explanation:
When foreach is used on an object, it internally calls IEnumerable.GetEnumerator for iterating to all the items in the collection.

Question No: 6 of 62
Which of the following interface(s) are implemented by ArrayList 
Options:
  1. IList
  2. ICollection
  3. IDictionary
  4. IEnumerator
  5. IEnumerable
View Answer/Explanation:
a b e
Explanation:
IList is inherited from ICollection, ICollection is inherited from IEnumerable, thus ArrayList has to implement ICollection and IEnumerable along with IList.

Question No: 7 of 62
___________ implements the IList interface? 
Options:
  1. Stack
  2. ArrayList
  3. Queue
  4. Hashtable
View Answer/Explanation:
b
Explanation:
ArrayList implements the IList interface.

Question No: 8 of 62
What would be the capacity of ArrayList with 1 item added to it. 
Options:
  1. 1
  2. 2
  3. 4
  4. 16
View Answer/Explanation:
c
Explanation:

Question No: 9 of 62
What is the output of the following program as printed on console window
class Program
{
    static void Main(string[] args)
    {
        ArrayList al = new ArrayList();
        al.Add(1);
        al.Add('1');
        al.Add("1");
        foreach (string s in al)
        {
            Console.Write(s);
        }
    }
} 
Options:
  1. Compilation Error
  2. Runtime Exception
  3. 1 1 1
  4. 1 '1' "1"
View Answer/Explanation:
b
Explanation:
In ArrayList any time of item can be added. This is because the parameter is of type object.

Question No: 10 of 62
Numbers of items which can be added to ArrayList are fixed and decided by its Capacity which cannot be changed (true/false) 
Options:
  1. False
  2. True
View Answer/Explanation:
a
Explanation:
Capacity doubles as and when required to accomodate more number of items in the collection.

  1