Deck 8: Arrays
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/46
العب
ملء الشاشة (f)
Deck 8: Arrays
1
What type of error occurs when a loop iterates one time too few or one time too many?
A)Run time error
B)Off-by-one error
C)Validation error
D)Syntax error
E)All of the above
A)Run time error
B)Off-by-one error
C)Validation error
D)Syntax error
E)All of the above
B
2
Processing a large number of items in a(n)________ is usually easier than processing a large number of items stored in separate variables.
A)Constant
B)Variable
C)Array
D)Loop
E)None of the above
A)Constant
B)Variable
C)Array
D)Loop
E)None of the above
C
3
How many subscripts do you need to access one element in a two-dimensional array?
A)One
B)Two
C)Three
D)Four
E)None of the above
A)One
B)Two
C)Three
D)Four
E)None of the above
B
4
Every element in an array is assigned a unique number known as a ______________.
A)subscript
B)integer
C)character
D)number
E)None of the above
A)subscript
B)integer
C)character
D)number
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
5
What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
A)Size
B)Size declarator
C)Number
D)Number declarator
E)None of the above
A)Size
B)Size declarator
C)Number
D)Number declarator
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
6
________________ arrays are two or more arrays that hold related data,and the elements are accessed using a common subscript.
A)Sequential
B)Binary
C)Parallel
D)Linear
E)None of the above
A)Sequential
B)Binary
C)Parallel
D)Linear
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
7
When working with arrays most programming languages perform ____________,which means they do not allow programs to use invalid subscripts.
A)array bounds checking
B)buffer overrun protection
C)bitwise data execution
D)subscript binding
E)None of these
A)array bounds checking
B)buffer overrun protection
C)bitwise data execution
D)subscript binding
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
8
A partially filled array is normally used with __________.
A)a library function that performs array insertions
B)an accompanying variable that holds a copy of the last item stored in the array
C)an accompanying integer variable that holds the number of items that are actually stored in the array
D)a warning to the user that some of the elements contain invalid values
E)None of the above
A)a library function that performs array insertions
B)an accompanying variable that holds a copy of the last item stored in the array
C)an accompanying integer variable that holds the number of items that are actually stored in the array
D)a warning to the user that some of the elements contain invalid values
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following statement is true about the statement below?
Declare Integer score [5] = 83,92,78,94,71
A)This is an array declaration.
B)This is an array initialization.
C)This is an array size establishment.
D)This is an array declaration and initialization.
E)This is an array declaration and size establishment.
Declare Integer score [5] = 83,92,78,94,71
A)This is an array declaration.
B)This is an array initialization.
C)This is an array size establishment.
D)This is an array declaration and initialization.
E)This is an array declaration and size establishment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
10
Two- dimensional arrays can be thought of as containing ___________.
A)Rows and columns
B)Lines and pages
C)Rows and pages
D)Lines and columns
E)Rows and pages
A)Rows and columns
B)Lines and pages
C)Rows and pages
D)Lines and columns
E)Rows and pages
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which is the simplest search technique to use to find an item in an array?
A)Sequential
B)Binary
C)Bubble
D)Select
E)None of the above
A)Sequential
B)Binary
C)Bubble
D)Select
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
12
What is the subscript for the data value 92 in the example given below?
Declare Integer score [5] = 83,92,78,94,71
A)One
B)Two
C)A
D)B
E)None of the above
Declare Integer score [5] = 83,92,78,94,71
A)One
B)Two
C)A
D)B
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
13
Access the individual elements in an array by using their _____________.
A)Sizes
B)Numbers
C)Integers
D)Subscripts
E)None of the above
A)Sizes
B)Numbers
C)Integers
D)Subscripts
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
14
The expression score[5] is pronounced _____________________.
A)Score of 5
B)Score 5
C)Score sub 5
D)Score of 4
E)Score sub 4
A)Score of 5
B)Score 5
C)Score sub 5
D)Score of 4
E)Score sub 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is the term used for the value that is searched for in a search algorithm?
A)stringValue
B)searchValue
C)matchValue
D)flag
E)None of the above
A)stringValue
B)searchValue
C)matchValue
D)flag
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
16
In the following declaration,what is the data type of the elements of the array?
Declare Integer numbers [SIZE]
A)SIZE
B)numbers
C)Integer
D)Declare
E)None of the above
Declare Integer numbers [SIZE]
A)SIZE
B)numbers
C)Integer
D)Declare
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
17
A three-dimensional array can be thought of as ______ of two-dimensional arrays.
A)Rows
B)Columns
C)Lines
D)Pages
E)None of the above
A)Rows
B)Columns
C)Lines
D)Pages
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following array declarations would be best suited for storing the retail prices?
A)Declare String retailPrice[SIZE]
B)Declare Real retailPrice[SIZE]
C)Declare Integer retailPrice[SIZE]
D)All of the above
E)None of the above
A)Declare String retailPrice[SIZE]
B)Declare Real retailPrice[SIZE]
C)Declare Integer retailPrice[SIZE]
D)All of the above
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
19
Some programming languages provide this specialized loop that steps through an array,retrieving the value of each element.
A)While Each
B)For Each
C)Repeat Get
D)Step Loop
E)None of the above
A)While Each
B)For Each
C)Repeat Get
D)Step Loop
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following arguments must be passed when passing an array as an argument?
A)The array itself
B)An integer that specifies the number of elements in the array
C)The data type of the array
D)A and B
E)A and C
A)The array itself
B)An integer that specifies the number of elements in the array
C)The data type of the array
D)A and B
E)A and C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
21
Arrays,like variables,can only hold one value at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
22
Arrays are designed to store and process a ________ of data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
23
To calculate the total of the values in an array,a loop is used with an accumulator variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
24
Unlike variables,arrays need to be initialized separately from the declaration.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
25
In a sequential search algorithm,the Boolean variable used as a flag is initialized to TRUE.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
26
Variables work well in many situations,but they have limitations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
27
Programming languages perform array ________ checking,which means they do not allow a program to use an invalid array subscript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
28
One of the advantages of two- or more dimensional arrays is that the data values can be of two or more data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
29
Multiple-dimensional arrays can be used to model data that occurs in multiple sets.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
30
An ______ allows you to store a group of items of the same data type together in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
31
Array bounds checking happens at runtime,which is while the program is running.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
32
All the values in an array must be of the same _____________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
33
Passing an array as an argument requires that you pass ___________ argument(s).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
34
The ______________ search algorithm stops when the item is found or the end of the array is reached.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
35
Subscripts are used to identify specific elements in an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
36
By using the same _____________,a relationship can be established with the data stored between two or more arrays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
37
If array name contains a list of names,name[1] is the name of the first person.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
38
The storage locations in an array are known as _________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
39
When processing the data in a two-dimensional array,each element has two subscripts.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
40
The first step in calculating the average of the values in an array is to get the total of the values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
41
Loops are used to total the values in a numeric array,by which process the loop steps through the array adding the value of each array element to the ____________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
42
The first step in finding the highest value in an array is to create a ____________ to hold the highest value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
43
The first subscript in a one-dimensional array is ________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
44
Declaring a two-dimensional array requires _______ size declarators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
45
A ___________________ array is like several identical arrays put together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck
46
If the subscripts of an array go from 0 through 9,then the size of the array is ________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 46 في هذه المجموعة.
فتح الحزمة
k this deck