Title: Module 9 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 9 - Arrays

Q: Access the individual elements in an array by using their ________.
- Sizes
- Numbers
- Integers
- Subscripts
- None of these
A: Subscripts

Q: A partially filled array is normally used with ________.
- a library function that performs array insertions
- an accompanying variable that holds a copy of the last item stored in the array
- an accompanying integer variable that holds the number of items that are actually stored in the array
- a warning to the user that some of the elements contain invalid values
- None of these
A: an accompanying integer variable that holds the number of items that are actually stored in the array

Q: Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables.
- Constant
- Variable
- Array
- Loop
- None of these
A: Array

Q: What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
- Size
- Size declarator
- Number
- Number declarator
- None of these
A: Size declarator

Q: Which of the following arguments must be passed when passing an array as an argument?
- The array itself
- An integer that specifies the number of elements in the array
- The data type of the array
- The array itself and An integer that specifies the number of elements in the array
- The array itself and The data type of the array
A: The array itself and An integer that specifies the number of elements in the array

Q: ________ arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript.
- Sequential
- Binary
- Parallel
- Linear
- None of these
A: Parallel

Q: Some programming languages provide this specialized loop that steps through an array, retrieving the value of each element.
- While Each
- For Each
- Repeat Get
- Step Loop
- None of these
A: For Each

Q: Which is the simplest search technique to use to find an item in an array?
- Sequential
- Binary
- Bubble
- Select
- None of these
A: Sequential

Q: In the following declaration, what is the data type of the elements of the array?
- SIZE
- numbers
- Integer
- Declare
- None of these
A: Integer

Q: A three-dimensional array can be thought of as ________ of two-dimensional arrays.
- Rows
- Columns
- Lines
- Pages
- None of these
A: Pages

Q: Two-dimensional arrays can be thought of as containing ________.
- Rows and columns
- Lines and pages
- Rows and lines
- Lines and columns
- Rows and pages
A: Rows and columns

Q: How many subscripts do you need to access one element in a two-dimensional array?
- One
- Two
- Three
- Four
- None of these
A: Two

Q: What is the term used for the value that is searched for in a search algorithm?
- stringValue
- searchValue
- matchValue
- flag
- None of these
A: searchValue

Q: What is the subscript for the data value 92 in the example given below?
- One
- Two
- A
- B
- None of these
A: One

Q: Which of the following statement is true about the statement below?
- This is an array declaration.
- This is an array initialization.
- This is an array size establishment.
- This is an array declaration and initialization.
- This is an array declaration and size establishment.
A: This is an array declaration and initialization.

Q: True/False: Array bounds checking happens at runtime, which is while the program is running.
- True
- False
A: True

Q: True/False: In a sequential search algorithm, the Boolean variable used as a flag is initialized to TRUE.
- True
- False
A: False

Q: True/False: The first step in calculating the average of the values in an array is to get the total of the values.
- True
- False
A: True

Q: True/False: If array name contains a list of names, name[1] is the name of the first person.
- True
- False
A: False

Q: True/False: When processing the data in a two-dimensional array, each element has two subscripts.
- True
- False
A: True