Podcast
Questions and Answers
What is an array?
What is an array?
- A collection of elements with different data types
- A collection of elements with no specific data type
- A collection of elements with dynamic data types
- A collection of a fixed number of elements with the same data type (correct)
In which form are the elements arranged in a one-dimensional array?
In which form are the elements arranged in a one-dimensional array?
- Matrix form
- Tabular form
- List form (correct)
- Hierarchical form
What is the syntax for declaring a one-dimensional array?
What is the syntax for declaring a one-dimensional array?
- ArraySize Datatype ArrayName[];
- ArrayName = [ArraySize] Datatype;
- ArrayName [ArraySize] Datatype;
- Datatype ArrayName [ArraySize]; (correct)
What is the range of the array index?
What is the range of the array index?
What does the array index value specify?
What does the array index value specify?