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

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 firstelement of the array.PTS:1REF:214
2.You use subscripts 1 through 10 to access the elements in a ten element array.PTS:1REF:214
3.Many newer programming languages such as C++, Java, and C# use the bracket notation for arrays.PTS:1REF:214
4.Declaring a named constant makes code easier to modify and understand.PTS:1REF:224
5.A parallel array is an array that stores another array in each element.PTS:1REF:230
6.Parallel arrays must contain the same data type.PTS:1REF:230
7.You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array.PTS:1REF:234
8.Arrays cannot be used if you need to search for a range of values.PTS:1REF:237
9.When you have a five element array and use subscript 8, your subscript is said to be out of bounds.PTS:1REF:243
10.Theforloop is a good tool when working with arrays because you frequently need to process everyelement of an array from beginning to end.PTS:1REF:244
MULTIPLE CHOICE1.An array is a(n) ____ of values in computer memory.
We have textbook solutions for you!
/Discrete-Mathematics-With-Applications-5th-Edition-9781337694193-337/
The document you are viewing contains questions related to this textbook.
Chapter 11 / Exercise 2
Discrete Mathematics With Applications
Epp
Expert Verified
PTS:1REF:214
2.A(n) ____ is another name for a subscript.PTS:1REF:214
3.The number of elements in an array is called the ____ of the array.a.widthc.heightb.sized.depthANS: BPTS:1REF:214
4.All array elements have the same group ____.PTS:1REF:214
5.Array elements all have the same ____ in common.PTS:1REF:214
6.Array subscripts are always a sequence of ____.PTS:1REF:214
7.In all languages, subscript values must be sequential ____.a.charactersc.real numbersb.fractionsd.integersANS: DPTS:1REF:214
8.A program contains an array that holds all the names of the days of the week. Which of the followingis true?PTS:1REF:214
9.Providing array values is sometimes called ____.PTS:1REF:215

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 8 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Array, pts, REF, B
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Discrete Mathematics With Applications
The document you are viewing contains questions related to this textbook.
Chapter 11 / Exercise 2
Discrete Mathematics With Applications
Epp
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture