98%(246)240 out of 246 people found this document helpful
This preview shows page 1 - 4 out of 77 pages.
Programming Logic and Design, 8eSolutions 6-Programming Logic and Design, 8th EditionChapter 6REVIEW QUESTIONS1.A subscript is a(n) _____.a.element in an arrayb.alternate name for an arrayc.number that represents the highest value stored within an arrayd.number that indicates the position of an array element2.Each element in an array must have the same _____ as the others.3.Suppose you have declared a numeric array named valuesthat has 13 elements. Which of the following must be true?4.The subscripts of any array are always _____.1
Programming Logic and Design, 8eSolutions 6-5.Suppose that you have declared a numeric array named numbers, and two of its elements are numbersand numbers. You know that _____.a.the two elements hold the same valueb.the array holds exactly four elementsc.there are exactly two elements between those two elementsd.the two elements are at the same memory location6.Suppose that you have declared a numeric array named numbers, and two of its elements are numbersand numbers. You know that _____.7.Suppose that you want to write a program that inputs customer data and displays a summary of the number of customers who owe more than $1000 each, in each of 12 sales regions. Customer data variables include name, zipCode, balanceDue, and regionNumber. At some point during record processing, you would add 1 to an array element whose subscript would be represented by _____.8.A program contains a seven-element array that holds the names of the days of the week. At the start of the program, you display the day names using a subscript named dayNum. You display the same array values again at the end of the program, where you _____ as a subscript to the array.2