Which of the following array initialization

This preview shows page 11 - 14 out of 19 pages.

59. Which of the following array initialization statements is valid? a. int ary {5} = {1 2 3 4 5}; d. int ary [5] = {1, 2, 3}; b. int ary {5} = {1, 2, 3, 4, 5}; e. int ary [5] = [1 3 4 5 6]; c. int ary [5] = {1 2 3 4 5}; ____ 60. Which of the following statements about assigning values to arrays is false? ____ 61. Which of the following statements about passing arrays to a function is false? ____ 62. The sort in which the smallest element from the unsorted sublist is swapped with the element at the beginning of the unsorted sublist is: ____ 63. The sort in which the first element from the unsorted sublist is transferred to the sorted sublist at its sorted location is: a. selection sort d. exchange sort b. bubble sort e. binary sort c. insertion sort ____ 64. Given the following array, what would be the array order after two passes of the selection sort? {22 38 57 26 91 10 63}
Image of page 11

Subscribe to view the full document.

____ 65. Given the following array, what would be the array order after two passes of the selection sort? {22 38 57 26 91 10 63} ____ 66. Which of the following statements about sequential searches is true?
Image of page 12
____
Image of page 13

Subscribe to view the full document.

Image of page 14
You've reached the end of this preview.
  • Spring '11
  • ColinArchibald
  • Array, following statements, REF, c. C

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern