HackerRank Mapping Concepts Quiz-1

Question 1

Time: 00:00:00
Which of the following is true about the Mapping in data structures?

 

i: It is an abstract data type 

ii: It is majorly used for fast lookups or searching data

iii: It stores data in the form of key and value pairs where every key is unique

iv: Key and values can be of any data type mainly int, float, string, etc

 i and ii

 i and ii

 ii and iii

 ii and iii

iii and i

iii and i

 All the above 

 All the above 

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
 In programming language the implementation of mapping is the same ?

Yes

Yes

No

No

Differ on conditions

Differ on conditions

a and b

a and b

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
 If data is already stored in a map data type, the data can then be viewed as?

only the list of keys

only the list of keys

only the list of values

only the list of values

both keys and values as matching pairs

both keys and values as matching pairs

All of the above

All of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
The type of map data is called an associative array because it is like an array:-

 

it is a collection of values

it is a collection of values

having not a single value like an Int or a String

having not a single value like an Int or a String

each unique key is associated with a value, making it an associative array

each unique key is associated with a value, making it an associative array

All

All

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
In Java different Java classes implement the map data type:-

 

HashMap

HashMap

HashTable

HashTable

TreeMap

TreeMap

All are java classes

All are java classes

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
What do u mean by HashMap?

the keys and values are not ordered

the keys and values are not ordered

it is a type of data structure used in computation to efficiently store data

it is a type of data structure used in computation to efficiently store data

the making of hash tables has two key parts: hashing and collisions.

the making of hash tables has two key parts: hashing and collisions.

All are true 

All are true 

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What do u mean by TreeMap?

 it does not allow null keys or values and synchronized

 it does not allow null keys or values and synchronized

 the keys and values are not ordered

 the keys and values are not ordered

 the values are ordered by the key

 the values are ordered by the key

 None

 None

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
How to map the memory blocks to a cache?

Mapping functions

Mapping functions

Hash functions

Hash functions

 HashTable functions

 HashTable functions

TreeMap functions

TreeMap functions

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
What is true about direct address mapping

mapping successive blocks of memory to successive blocks of cache

mapping successive blocks of memory to successive blocks of cache

mapping successive blocks of cache to successive blocks of memory

mapping successive blocks of cache to successive blocks of memory

mapping successive of data to successive blocks of memory

mapping successive of data to successive blocks of memory

none of the above

none of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
A few examples where one can use the form of map data are:?

 

 Student ID numbers and last names 

 Student ID numbers and last names 

 Postal codes and names of cities 

 Postal codes and names of cities 

Driving licenses and last names 

Driving licenses and last names 

 All mention  

 All mention  

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Completed

0/0

Accuracy

0%