Deck 9: Introduction to Arrays
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/30
العب
ملء الشاشة (f)
Deck 9: Introduction to Arrays
1
What is the value of LIST(4)after the instructions corresponding to the following pseudocode are executed?
DOWHILE POS
ENDDO
A)4
B)6
C)7
D)undefined
DOWHILE POS
ENDDO
A)4
B)6
C)7
D)undefined
undefined
2
A single-level table is the same as a one-dimensional array.
True
3
A dimension statement is used to define the
A)array name
B)minimum size of the array
C)maximum size of the array
D)both a and c
A)array name
B)minimum size of the array
C)maximum size of the array
D)both a and c
D
4
What is the value of GRID(3,3)after the instructions corresponding to the following pseudocode are executed?
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)5
B)6
C)7
D)none of the above
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)5
B)6
C)7
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
5
Using the term SCORE(I),which item below represents the array name?
A)SCORE
B)SCORE(I)
C)I
D)both a and b
A)SCORE
B)SCORE(I)
C)I
D)both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
6
The DIM statement defines the maximum size of an array and is executed at the beginning of the program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
7
A subscript can have more than one value at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
8
DAY is a seven-member one-dimensional array.Its contents are shown as follows:
What is the subscripted variable name that should be used to refer to the location containing Tuesday?
A)3
B)DAY(3)
C)DAY
D)both a and b
What is the subscripted variable name that should be used to refer to the location containing Tuesday?
A)3
B)DAY(3)
C)DAY
D)both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
9
DAY is a seven-member one-dimensional array.Its contents are shown as follows:
Which item below can be used to refer to the location containing "Friday"?
A)6
B)DAY(6)
C)DAY
D)both a and b
Which item below can be used to refer to the location containing "Friday"?
A)6
B)DAY(6)
C)DAY
D)both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
10
DAY is a seven-member one-dimensional array.Its contents are shown as follows:
What is the content of DAY(7)?
A)7
B)"Saturday"
C)"Sunday"
D)none of the above
What is the content of DAY(7)?
A)7
B)"Saturday"
C)"Sunday"
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
11
Select the subscripted variable name that should be used to refer to the Mth position of the array named N.
A)N(M)
B)M(N)
C)M
D)N
A)N(M)
B)M(N)
C)M
D)N
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
12
What is the value of POS after the instructions corresponding to the following pseudocode are executed?
DOWHILE POS
ENDDO
A)9
B)10
C)11
D)12
DOWHILE POS
ENDDO
A)9
B)10
C)11
D)12
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
13
What is the value of LIST(5)after the instructions corresponding to the following pseudocode are executed?
DOWHILE POS
ENDDO
A)5
B)7
C)8
D)undefined
DOWHILE POS
ENDDO
A)5
B)7
C)8
D)undefined
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
14
Using the term SCORE(I),which reference below represents the subscript?
A)SCORE
B)SCORE(I)
C)I
D)both b and c
A)SCORE
B)SCORE(I)
C)I
D)both b and c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is the value of GRID(5,4)after the instructions corresponding to the following pseudocode are executed?
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)7
B)8
C)9
D)undefined
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)7
B)8
C)9
D)undefined
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
16
The position of an item in an array is specified using a
A)subscripted variable
B)vector
C)subscript
D)dimension statement
A)subscripted variable
B)vector
C)subscript
D)dimension statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
17
An example of a simple variable is POS.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
18
A matrix is an example of a one-dimensional array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
19
What is the value of GRID(3,1)after the instructions corresponding to the following pseudocode are executed?
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)4
B)5
C)6
D)undefined
R = 1
DOWHILE
C = 2
DOWHILE
GRID R , C = R + C \\
C = C + 1
ENDDO
R = R + 2
ENDDO
A)4
B)5
C)6
D)undefined
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
20
Using the term SCORE(I),which of the following items represents the subscripted variable name?
A)SCORE
B)SCORE(I)
C)I
D)both a and b
A)SCORE
B)SCORE(I)
C)I
D)both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
21
In row-major order,the first subscript varies the most rapidly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
22
Tables are not widely used in problem solving.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
23
Nested loops are often used in algorithms that process multi-dimensional arrays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
24
In row-processing logic,all members of the first row of an array are accessed first.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
25
Most programming languages store and process data groups in column-major order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
26
The Rth value in the one-dimensional array GRADE is referred to by GRADE(R).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
27
Given the term GRID(ROW,COLUMN),GRID is the array name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
28
A variable name can be used as both a subscript and a counter in the same program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
29
The number of elements in a two-dimensional array can be computed by adding the number of rows and the number of columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
30
Given the term MONTH(I),I is the subscripted variable name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck