Ready to test your Knowledge?
Try out our new practice tests completely free!
exam preparation banner icon

Programming Logic and Design Comprehensive

Computing

Quiz 6 :

Arrays

Quiz 6 :

Arrays

search
arrow
An array is a(n)____ of values in computer memory.
Free
Multiple Choice
Answer:

Answer:

A

arrow
In all languages,subscript values must be sequential ____.
Free
Multiple Choice
Answer:

Answer:

D

arrow
You use subscripts 1 through 10 to access the elements in a ten element array.
Free
True False
Answer:

Answer:

False

arrow
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.
True False
Answer:
arrow
All array elements have the same group ____.
Multiple Choice
Answer:
arrow
The number of elements in an array is called the ____ of the array.
Multiple Choice
Answer:
arrow
Providing array values is sometimes called ____.
Multiple Choice
Answer:
arrow
A program contains an array that holds all the names of the days of the week.Which of the following is true?
Multiple Choice
Answer:
arrow
Many newer programming languages such as C++,Java,and C# use subscript 1 to access the first element of the array.
True False
Answer:
arrow
Declaring a named constant makes code easier to modify and understand.
True False
Answer:
arrow
A parallel array is an array that stores another array in each element.
True False
Answer:
arrow
A(n)____ is another name for a subscript.
Multiple Choice
Answer:
arrow
When you have a five element array and use subscript 6,your subscript is said to be out of bounds.
True False
Answer:
arrow
Many newer programming languages such as C++,Java,and C# use the square bracket notation for arrays.
True False
Answer:
arrow
Suppose that you have declared a numeric array named numbers,and two of its elements are numbers[1] and numbers[5].You know that ____.
Multiple Choice
Answer:
arrow
Array elements all have the same ____ in common.
Multiple Choice
Answer:
arrow
An array can be used to replace ____.
Multiple Choice
Answer:
arrow
Arrays cannot be used if you need to search for a range of values.
True False
Answer:
arrow
You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array.
True False
Answer:
arrow
Parallel arrays must contain the same data type.
True False
Answer:
Showing 1 - 20 of 60