MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a dictionary data structure?
A
Abstract Data Type made up of associated pairs
B
Queue that hold alphanumeric characters
C
a type of array
D
Abstract Data Type that holds Strings
Explanation: 

Detailed explanation-1: -A dictionary is an abstract data type that defines an unordered collection of data as a set of key-value pairs. Each key, which must be unique, has an associated value. Typically, the keys in a dictionary must be simple types (such as integers or strings) while the values can be of any type.

Detailed explanation-2: -A dictionary is a general-purpose data structure for storing a group of objects. A dictionary has a set of keys and each key has a single associated value.

Detailed explanation-3: -A data dictionary is a collection of descriptions of the data objects or items in a data model to which programmers and others can refer. Often, a data dictionary is a centralized metadata repository.

Detailed explanation-4: -A dictionary (also known as an associative array in some programming languages), is a collection of key-value pairs where each unique key maps onto a value.

There is 1 question to complete.