Multiple choice technology programming languages

Which is not a collection type in VB.Net

  1. Hashtable

  2. ArrayList

  3. Heap

  4. Stack

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

VB.NET provides collection types like Hashtable, ArrayList, Stack, and Queue. Heap is not a collection type - it's a memory structure used internally by the runtime for allocation, not a class you instantiate for data storage.

AI explanation

To answer this question, you need to understand the collection types in VB.Net.

Option A) Hashtable - This option is a collection type in VB.Net. A Hashtable is a collection of key-value pairs.

Option B) ArrayList - This option is a collection type in VB.Net. An ArrayList is a dynamic array that can store any type of data.

Option C) Heap - This option is not a collection type in VB.Net. The heap is a memory structure used for dynamic memory allocation, but it is not a built-in collection type.

Option D) Stack - This option is a collection type in VB.Net. A Stack is a data structure that follows the Last-In-First-Out (LIFO) principle.

The correct answer is C) Heap. This option is not a collection type in VB.Net.