9781111969752_TB_ch06 - Chapter 6 Arrays TRUE/FALSE 1 Many...

Info icon This preview shows pages 1–3. Sign up to view the full content.

Chapter 6: Arrays TRUE/FALSE 1. Many newer programming languages such as C++, Java, and C# use subscript 1 to access the first element of the array. ANS: F PTS: 1 REF: 214 2. You use subscripts 1 through 10 to access the elements in a ten element array. ANS: F PTS: 1 REF: 214 3. Many newer programming languages such as C++, Java, and C# use the bracket notation for arrays. ANS: T PTS: 1 REF: 214 4. Declaring a named constant makes code easier to modify and understand. ANS: T PTS: 1 REF: 224 5. A parallel array is an array that stores another array in each element. ANS: F PTS: 1 REF: 230 6. Parallel arrays must contain the same data type. ANS: F PTS: 1 REF: 230 7. You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array. ANS: T PTS: 1 REF: 234 8. Arrays cannot be used if you need to search for a range of values. ANS: F PTS: 1 REF: 237 9. When you have a five element array and use subscript 8, your subscript is said to be out of bounds. ANS: T PTS: 1 REF: 243 10. The for loop is a good tool when working with arrays because you frequently need to process every element of an array from beginning to end. ANS: T PTS: 1 REF: 244 MULTIPLE CHOICE 1. An array is a(n) ____ of values in computer memory. a. list c. set b. accumulation d. record
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

ANS: A PTS: 1 REF: 214 2. A(n) ____ is another name for a subscript. 3. The number of elements in an array is called the ____ of the array. 4. All array elements have the same group ____. a. subscript c. memory location b. name d. value ANS: B PTS: 1 REF: 214 5. Array elements all have the same ____ in common. a. pointer c. value b. memory location d. data type ANS: D PTS: 1 REF: 214 6. Array subscripts are always a sequence of ____. 7. In all languages, subscript values must be sequential ____. a. characters c. real numbers b. fractions d. integers ANS: D PTS: 1 REF: 214 8. A program contains an array that holds all the names of the days of the week. Which of the following is true? 9. Providing array values is sometimes called ____.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '15
  • Array, pts, REF, B.

{[ 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