- The elements of the list "months" are given below:What is the output of the following block? (Hint: think about case sensitivity.)
- The following code segment is intended to display the difference in the sums of two non-empty lists of integers, list1 and list2.Which of the following changes will reduce the number of operations performed by the program without making it incorrect?
- 17 We use a _______ search for an ordered list.a. sequentialb. binaryc. bubbled. insertion
- 14. In ______ sort, the smallest item moves to the beginning of the unsorted list. There is no one-to-one swapping.a. selectionb. bubblec. insertiond. every
- 11. The items are divided into two lists (sorted and unsorted) _____ sort.a. only in a selectionb. only in a bubblec. only in an insertiond. in selection, bubble, or insertion
- 10. _______ is a basic algorithm that arranges data according to its value.a. Inquiryb. Sortingc. Searchingd. Recursion
- 18. _______ is a process in which an algorithm calls itself.a. Insertionb. Searchingc. Recursiond. Iteration
- 16. We use a _______ search for an unordered list.a. sequentialb. binaryc. bubbled. insertion
- 12. In _______ sort, the item that goes into the sorted list is always the first item in the unsorted list.a. selectionb. bubblec. insertiond. every
- 15. _______ is a basic algorithm in which we want to find the location of a target in a list of items.a. Sortingb. Searchingc. Productd. Summation
- 1_______ is a step-by-step method for solving a problem or doing a task.a. A constructb. A recursionc. An iterationd. An algorithm
- 3. The _______construct tests a condition.a. sequenceb. decisionc. repetitiond. flow
- 9._______ is a basic algorithm that multiplies a list of numbers.a. Summationb. Productc. Smallestd. Largest
- 2. There are ______ basic constructs in computer -science.a. oneb. twoc. threed. four
- 4. The _______ construct uses a set of actions one after another.a. sequenceb. decisionc. repetitiond. flow
- 6._______ is a pictorial representation of an algorithm.a. A UML diagramb. A programc. Pseudocoded. An algorithm
- 8. _______ is a basic algorithm that adds a list of numbers.a. Summationb. Productc. Smallestd. Largest
- 13. In _______ sort, the smallest item from the unsorted list is swapped with the item at the beginning of the unsorted list.a. selectionb. bubblec. insertiond. every
- 7. _______ is an English-language-like representation of code.a. A UML diagramb. A programc. Pseudocoded. An algorithm
- 5. The _______ construct handles repeated actions.a. sequenceb. decisionc. repetitiond. flow