Test Bank for C How to Program, 8th Edition, Paul J. Deitel
Chapter 66.1 Introduction
6.1 Arrays are data structures consisting of related data items of the same __________.
1. a) sort order
2. b) subscript
3. c) type
4. d) element
ANS: (c) 6.2 Arrays and structures are __________ entities in that they remain the same size
throughout program execution.
1. a) dynamic
2. b) automatic
3. c) register
4. d) static
ANS: (d) 6.3 Lists, queues, stacks and trees are __________ data structures that may grow and
shrink as programs execute.
1. a) flexible
2. b) automatic
3. c) dynamic
4. d) static
ANS: (c)6.2 Arrays6.4 An array is not ________.(a) a consecutive group of memory locations(b)
indexed by integers(c) pointer-based(d) a dynamic entityANS: (d) 6.5 Which of the following
is false?(a) the first element of an array is the zeroth(b) the last element of an array is the array size
– 1(c) the position number contained within square brackets is called a subscript(d) a subscript
cannot be an expression.ANS: (d) 6.6 An array is a group of memory locations related by the fact
that they all have __________ array name and __________ type.
1. a) different, different
2. b) same, different
3. c) different same
4. d) same, same
ANS: (d) 6.7 The first element in every array is the __________ element.
1. a) null
2. b) 1
3. c) 0
4. d) empty
ANS: (c) 6.8 Which statement is false?
1. a) The brackets used to enclose the subscript of an array are not an operator in C.
2. b) To refer to a particular element in an array, we specify the name of the array and the position number of the
element in the array.
3. c) The position number within an array is more formally called a subscript.