What do you know about array types in programming?
- 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
You should read it
- Beginners of computer programming need to focus on what?
- Multiple choice questions about programming with P1 prize
- Set of multiple choice questions for programming with P15 prize
- Set of multiple choice questions about programming with P10 prize
- Set of multiple choice questions for programming with prizes
- Set of multiple choice questions about programming with P7 prize
- Set of multiple-choice questions on award-winning programming P5
- Set of multiple choice questions about programming with P6
May be interested
- Test about program structurea set of questions about the structure of the program helps readers gain more useful knowledge. invite your reference.
- You have confidence in your network administration knowledge P9a set of multiple choice questions on network administration helps you to update more and more new and useful knowledge for your work and study.
- Multiple choice quiz about Python - Part 1python is an object-oriented, high-level, powerful, easy-to-learn programming language. to help you read more interesting knowledge about python programming language, below the network administrator will send you a very interesting multiple choice questionnaire on this topic. please try.
- Multiple choice quiz about Python - Part 2to help readers add to their interesting knowledge of python objects and classes, below the network administrator will send you multiple choice questions on this topic. please try.
- Multiple choice quiz about Python - Part 3today's topic quantrimang wants to challenge you is about file and exception handling in python. let's try the following 15 questions!
- Multiple choice quiz about Python - Part 4continue python's thematic quiz, part 4 goes back to the topic core data type - standard data types in python. let's try with quantrimang to try the 10 questions below.