9781111969752_TB_ch06 - Chapter 6 Arrays TRUE\/FALSE 1 Many newer programming languages such as C Java and C use subscript 1 to access the first element

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

This preview shows page 1 - 3 out of 8 pages.

Chapter 6: ArraysTRUE/FALSE1.Many newer programming languages such as C++, Java, and C# use subscript 1 to access the first element of the array.ANS: FPTS:1REF:2142.You use subscripts 1 through 10 to access the elements in a ten element array.ANS: FPTS:1REF:2143.Many newer programming languages such as C++, Java, and C# use the bracket notation for arrays.ANS: TPTS:1REF:2144.Declaring a named constant makes code easier to modify and understand.ANS: TPTS:1REF:2245.A parallel array is an array that stores another array in each element.ANS: FPTS:1REF:2306.Parallel arrays must contain the same data type.ANS: FPTS:1REF:2307.You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array.ANS: TPTS:1REF:2348.Arrays cannot be used if you need to search for a range of values.ANS: FPTS:1REF:2379.When you have a five element array and use subscript 8, your subscript is said to be out of bounds.ANS: TPTS:1REF:24310.The forloop is a good tool when working with arrays because you frequently need to process every element of an array from beginning to end.ANS: TPTS:1REF:244a.listc.setb.accumulationd.recordMULTIPLE CHOICE1.An array is a(n) ____ of values in computer memory.
ANS: APTS:1REF:2142.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 ____.5.Array elements all have the same ____ in common.a.pointerc.valueb.memory locationd.data typeANS: DPTS:1REF:2146.Array subscripts are always a sequence of ____.7.In all languages, subscript values must be sequential ____.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 ____.a.creating the arrayc.accumulating the arrayb.declaring the arrayd.populating the arrayANS: DPTS:1REF:215

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture