Question

18. Which of the following are allowed to contain duplicate elements? arrays lists sets the keys of a map the values of a map
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answers are

1.Arrays

2.lists

5.the value of map.

Explanation:

Because above array,list and map value allow to store duplicate value in it. but set and the key of a map cannot Store the duplicate elements.Array Store the duplicate values, list store the duplicate elements,and the value of map is alos contain the duplicate elements.and set cannot Store the duplicate elements as well as the keay of map cannot be duplicate.

Add a comment
Know the answer?
Add Answer to:
18. Which of the following are allowed to contain duplicate elements? arrays lists sets the keys...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Which of the following statements about a map in Java is incorrect? a map cannot contain...

    Which of the following statements about a map in Java is incorrect? a map cannot contain duplicate keys a map can contain a null value both key and value must be reference types a map cannot contain duplicate values

  • C# code Arrays and Linked Lists: Write C++/Java/C#/Python code to declare an array of linked lists...

    C# code Arrays and Linked Lists: Write C++/Java/C#/Python code to declare an array of linked lists of any primitive type you want. (Array of size 2020) (This could be based on MSDN libraries or the lab) – you do not need to instantiate any of the linked lists to contain any actual values. Paste your code for that here (this should only be one line) Based on your code or the lab from 4 or your doubly linked list from...

  • Make a function dict build(keys, values) which takes as argument two lists, one containing keys, one...

    Make a function dict build(keys, values) which takes as argument two lists, one containing keys, one values to be put into a dictionary (in order). If the lists are of the same length put them into a dictionary form, and return the dictionary from the function. Otherwise return the keyword None from the function. For example: Test print(di ct_build(['a', 'b' , 'c'], [1,2,3])={ 'a': 1, 'b': 2, 'c': 3 r example: Result ildCC'a', 'b', 'c'], [1,2,3])-= { 'a': 1, 'b':...

  • Parallel Arrays are two arrays, often containing elements of different datatypes that are synced with a...

    Parallel Arrays are two arrays, often containing elements of different datatypes that are synced with a common index. For this problem you are going to create a function called FindHighest that will accept two parameters: names and calls. The names list will contain the names of individuals that work on a help desk. The calls list will contain the number of calls they received in one day. Your function will return back to main the name of the person who...

  • Suppose you have two data sets, each of which contain n comparable elements. As an basic...

    Suppose you have two data sets, each of which contain n comparable elements. As an basic operation, you may ask one set to tell you the kth largest element of that set, for a value k you choose. Give an algorithm that, with O(log n) queries, determines the median value of the union of the two sets.

  •      program will enter data into two single dimension arrays (do not st...

         program will enter data into two single dimension arrays (do not store duplicate values in arrays)      program will find the union and intersection of the two arrays using one function      program will find the symmetric difference of two arrays      program will display the union, intersection, and symmetric difference   */     short* input_data(short size);   // function to dynamically allocate and array and enter data into the array void display_data(short *data, short size); // function to display data in an array void get_union_intersection(short...

  • Which of the following sets does not contain the element 9? QUESTION 1 Which of the...

    Which of the following sets does not contain the element 9? QUESTION 1 Which of the following sets does not contain the element 9? {x E Z+ x is the square of a positive integer} {{9}, {9}} {x € Z- xis a positive odd integer) {9.9. 19.9}}

  • Which of the following sets of quantum numbers are not allowed? For the sets that are...

    Which of the following sets of quantum numbers are not allowed? For the sets that are incorrect, state the restriction that forbids it. For the sets that are correct, give the orbital designation (eg. 1s, 2px). Correct/ incorrect restriction or orbital designation n,l ,ml, ms i) 5 3 +1 0 ii) 2 2 -1 -1/2 iii) 7 5 -4 -1/2 iv) 1 0 -1 +1/2 b) How many electrons in an atom can have the following quantum numbers? i) n...

  • which of the following sets of quantum numbers is not allowed? Question 1 of 25 Which...

    which of the following sets of quantum numbers is not allowed? Question 1 of 25 Which of the following sets of quantum numbers is not allowed? A) n = 2, 1 = 0, ml = 0 B) n = 3,1 = 2 ml = 0 c)n = 2, 1 = 2, ml = 2 D) n = 3, e = 1, me = -1 E) n = 4,2 = 2, ml = 1 DELL

  • IN C++ ADD COMMENTS AS MUCH AS POSSIBLE Exercise 1: Duplicate the Arrays Suppose you are...

    IN C++ ADD COMMENTS AS MUCH AS POSSIBLE Exercise 1: Duplicate the Arrays Suppose you are developing a program that works with arrays of integers, and you find that you frequently need to duplicate the arrays. Rather than rewriting the array-duplicating code each time you need it, you decide to write a function that accepts an array and its size as arguments. Creates a new array that is a copy of the argument array, and returns a pointer to the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT