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, 22.06.2019 03:40
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 23.06.2019 10:30
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
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
Mathematics, 19.11.2020 18:20
question
Arts, 19.11.2020 18:20
question
History, 19.11.2020 18:20
Questions on the website: 13722367