subject

A programmer has two lists of random words, list1 and list2. He has written a program that is intended to create a list, finalList, of all the words found in list1 and list2 in alphabetical order with no repeated words. His program makes use of the following procedures:Alphabetize(list)Returns a list that contains the elements of list in alphabetical order. Join (list 1, list2)Returns a list with the elements of list1 followed by the elements of list2RemoveDuplicates (list)Returns a list with the same elements in the same order as list, but with any duplicate elements removed. The programmer's program is as follows:list1 ← RemoveDuplicates (list1)list2 ← RemoveDuplicates (list2)finalList ← Join (list1, list 2)finalList ← Alphabetize (finalList)What will be the contents of finalList after running this program?finalList, will contain all the words found in list1 and list2 with no repeated words, but these may not be in alphabetical order. As intended, finalList, will contain all the words found in list1 and list2 in alphabetical order with no repeated words. finalList, will contain all the words found in list1 and list2 in alphabetical order, but it may contain repeated words. finalList, will contain all the words found in list1 and list2 but they may not be in alphabetical order and also contain repeated words.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
When determining the classification of data, which one of the following is the most important consideration? a. processing systemb. valuec. storage mediad. accessibility
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
You know the right answer?
A programmer has two lists of random words, list1 and list2. He has written a program that is intend...
Questions
question
Chemistry, 02.07.2021 20:50
question
Mathematics, 02.07.2021 20:50
question
Mathematics, 02.07.2021 20:50
question
Mathematics, 02.07.2021 20:50
question
Mathematics, 02.07.2021 20:50
Questions on the website: 13722359