Which of the following would be the best example of a

This preview shows page 9 - 12 out of 19 pages.

49. Which of the following would be the best example of a counter-controlled loop? a. Print a number backward. b. Validate data read from the keyboard. c. Print a calendar. d. Print the sum of the digits in an integer. ____ 50. Which of the following would be the best example of a post-test loop? ____ 51. Which of the following would be the best example of an event-controlled loop? ____ 52. The statement that terminates a loop and continues with the statement immediately following the loop is:
Image of page 9

Subscribe to view the full document.

____ 53. Which of the following statements about recursion is false? a. It is a looping process. b. It requires a base case to terminate the recursion. c. Its solution is generally shorter than a non-recursive solution. d. It is more efficient than iterative solutions. e. It is not available in all languages. ____ 54. Which of the following is not a standard measure of algorithm efficiency? ____ 55. Which of the following measures of algorithm efficiency is the most efficient? ____ 56. Which of the following statements about array declaration is false? ____ 57. Which of the following statements about arrays is true? a. The number of elements in a fixed-size array is determined when the program is executing. b. To process all of the elements in an array, a for loop is typically used. c. An arrays name is a symbolic reference for the address to the last byte of the array. d. An index of 5 represents an offset of 5 bytes in an array of integers. e. C uses subscripts to access individual elements in an array. ____ 58. Which of the following statements about initializing an array is false?
Image of page 10
____
Image of page 11

Subscribe to view the full document.

Image of page 12
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