-
Question 1. Array is a data type that represents a range of convenient elements for:
-
Insert element
-
Access to any element
-
Delete an element
-
Insert element and delete element
-
-
Question 2. What is an indirect array variable declaration?
-
Declare the array of records
-
Declare the array of characters
-
Declare two-dimensional array
-
Declare via existing array type
-
-
Question 3. Which of the following is a valid array declaration?
-
bearing: ARRAY [0.10] OF INTEGER;
-
bearing: ARRAY [0.10]: INTEGER;
-
bearing: INTEGER OF ARRAY [0.10];
-
bearing: ARRAY (0.10): INTEGER;
-
-
Question 4. What does the above program do?
Var a: array [0.50] of real;
k: = 0;
for i: = 1 to 50 due
if a [i]> a [k] then k: = i;-
Find the smallest element in the array;
-
Find the largest element in the array;
-
Find the index of the largest element in the array
-
Find the index of the smallest element in the array
-
-
Question 5. Which of the following is the 10th element of the array?
Var m: array [0.10] of integer;
-
a [10];
-
a (10);
-
a [9];
-
a (9);
-
-
Question 6. Which of the following two-dimensional array declarations is wrong?
-
var m: array [1.10] of array [0.9] of integer;
-
var m: array [1.20,1.40] of real;
-
var m: array [1.9; 1.9] of integer;
-
var m: array [0.10,0.10] of char;
-
-
Question 7. Which of the following statements about array type is appropriate?
-
Is a set of integers
-
The maximum length of the array is 255
-
Is a finite sequence of elements of the same type
-
Arrays cannot contain characters
-
-
Question 8. To declare the element number of the array in PASCAL, the programmer needs:
-
Declaring a constant is the number of elements of the array
-
Declare the start and end indexes of the array
-
Declare the end index of the array
-
No need to declare anything, the system will determine itself
-
-
Question 9. Which of the following statements about the index of the array is most suitable?
-
Used to access any element in the array
-
Used to manage the size of the array
-
Used in loop with array
-
Use in the loop with arrays to manage the size of the array
-
-
Question 10. Which of the following statements about arrays is incorrect?
-
Index of array does not necessarily start from 1
-
Can build multidimensional array
-
String characters can also be viewed as an array type
-
The maximum length of the array is 255
-
5 ★ | 1 Vote