Quiz
chapter 8 multiple choice
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (20)
1This algorithm uses a loop to step through each element of an array, starting with the first element, searching for a value.
- Astep-by-step search
- Bbinary search
- Csequential search
- Delemental search
2This is typically the last subscript in an array.
- A0
- BThe size of the array minus one
- C-1
- D99
3A three-dimensional array can be thought of as ______ of two-dimensional arrays.
- AColumns
- BPages
- CLines
- DRows
- Enone of the answers
4Many programming languages perform this, which means they do not allow a program to use an invalid array subscript.
- Atype compatibility checking
- Bbounds checking
- Csyntax checking
- Dmemory checking
5This is a number that identifies a storage location in an array.
- Aidentifer
- Bsubscript
- Celement
- Dsize declarator
6 In the following declaration what is the data type of the elements of the array?
Declare Integer numbers [SIZE]- Anumbers
- BInteger
- CSIZE
- DDeclare
- Enone of the answers
7What is the subscript for the data value 92 in the example given below?
Declare Integer score [5] = 83, 92, 78, 94, 71- Atwo
- Bnone of the answers
- Cone
- DA
- EB
8This is an individual storage location in an array.
- Aelement
- Bcubby hole
- Csize declarator
- Dbin
9This is typically the first subscript in an array.
- AThe size of the array minus one
- B0
- C-1
- D1
10Every element in an array is assigned a unique number known as a ______________.
- Asubscript
- Bcharacter
- Cnumber
- Dinteger
- Enone of these answers
11To make programs easier to maintain, many programmers use these to specify the size of an array.
- ADeclare Integer retailPrice[SIZE]
- BDeclare String retailPrice[SIZE]
- CDeclare Real retailPrice[SIZE]
- Dnone of the answers
- Eall of the answers
12Two- dimensional arrays can be thought of as containing ___________.
- ARows and columns
- BLines and pages
- CRows and pages
- DLines and columns
13You typically think of a two-dimensional array as containing
- Achapters and pages
- Blines and statements
- Chorizontal and vertical elements
- Drows and columns
14Which is the simplest search technique to use to find an item in an array?
- ABinary
- BSequential
- CBubble
- DSelect
- ENone of the answers
15Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables.
- AArray
- BVariable
- CLoop
- DConstant
- ENone of the answers
16The expression score[5] is pronounced _____________________.
- AScore sub 4
- BScore sub 5
- CScore of 4
- DScore 5
- EScore of 5
17 When working with arrays most programming languages perform ____________ which means they do not allow programs to use invalid subscripts.
- Abitwise data execution
- Bbuffer overrun protection
- Csubscript binding
- DNone of these
- Earray bounds checking
18This appears in an array declaration and specifies the number of elements in the array.
- Ainitialization value
- Bsize declarator
- Carray name
- Dsubscript
19 How many subscripts do you need to access one element in a two-dimensional array?
- AThree
- BTwo
- CFour
- DOne
- ENone of these answers
20Some programming languages provide this specialized loop that steps through an array retrieving the value of each element.
- ARepeat Get
- BNone of the answers
- CWhile Each
- DFor Each
- EStep Loop
Information
- Description
- Computer Science Quiz on chapter 8 multiple choice, created by Naina Minhas on 10/12/2022.
- Author
- Naina Minhas
- Language
- English
- Views
- 2
- Tags
- Rating
- No ratings yet Rate this quiz