# Which of the following would be the best example of a

• Notes
• 19
• 100% (4) 4 out of 4 people found this document helpful

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:

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?
____

Subscribe to view the full document.

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

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern