1. When an array name is passed to a function, what is actually being passed?A) the address of the arrayB) a copy of the array is made in the parameter variable of he functionC) depends - sometimes an address is being passed (pass by reference), sometimes pass by value (a copy is being made)D) None of these2. Array elements must be ________ before a binary search can be performed.A) summedB) sortedC) set to zeroD) positive numbersE) None of these3. Using a linear search to find a value that is stored in the last element of an array of 20,000 elements, ________ element(s) must be compared.A) only halfB) only the firstC) 2000D) 20,000E) None of these4. The advantage of a linear search is its:A) complexityB) simplicityC) speedD) efficiencyE) None of these5. To access an array element, use the array name and the element's:A) subscriptB) data typeC) nameD) valueE) None of these6. The name of an array stores the ________ of the first array element.A) element numberB) data typeC) valueD) memory addressE) None of these7. How many elements does the following array have?int bugs[1000];A) 1001B) 1000C) 999D) cannot tell from the code8. What will the following code display?int numbers[4] = { 99, 87 };cout << numbers[3] << endl;A) 0B) garbageC) 87D) This code will not compile.9. A two-dimensional array of characters can contain:A) uninitialized elementsB) strings of different lengthsC) strings of the same lengthD) All of theseE) None of these10. An array of string objects that will hold 5 names would be declared using which statement?A) string names5;B) string names[5];C) string names(5);D) String[5] names;E) None of these will work.11. A two-dimensional array can have elements of ________ data type(s).A) twoB) fourC) oneD) Any of theseE) None of these12. What will the following code display?int numbers[ ] = { 99, 87, 66, 55, 101 };for (int i = 1; i < 4; i++)cout << numbers[i] << endl;A) 99876655101B) 876655C) 876655101D) Nothing. This code has an error.13. To assign the contents of one array to another, you must use:A) the equality operator with the array namesB) the assignment operator with the array namesC) a loop to assign the elements of one array to the other arrayD) Any of theseE) None of these14. A two-dimensional array is like ________ put together.A) two arrays of different typesB) several identical arraysC) an array and a functionD) two functionsE) None of these15. The amount of memory used by an array depends upon the array's data type and the number of elements in the array.A) TrueB) False16. Given the following declaration, where is 77 stored in the scores array?int scores[ ]={83, 62, 77, 97};A) scores [4]B) scores [0]C) scores [1]D) scores [2]17. The statementdouble money[25.00];is a valid C++ array definition.A) TrueB) False18. An array with no elements is:A) automatically furnished one value -- the null terminatorB) legal in C++C) automatically furnished one element, with a value of zeroD) illegal in C++E) None of these19. If an array is partially initialized, the uninitialized elements will be set to zero.A) TrueB) False20. An array can store a group of values, but the values must be:A) each of a different data typeB) integersC) constantsD) the same data typeE) None of these21. A binary search begins with the ________ element of an array.A) middleB) lastC) firstD) largestE) None of these22. The advantage of a linear search is its:A) complexityB) simplicityC) speedD) efficiencyE) None of these23. Before you can perform a bubble sort, the data must be stored in descending order.A) TrueB) False24. Define a two dimensional array named settings large enough to hold the table of data below. Initialize the array with the values in the table.12 24 32 21 4214 67 87 65 9019 1 24 12 825. Write a function called displayArray7. The function should accept as two dimensional array as an argument and display its contents on the screen. The function should work with any of the following arrays: