Podcast
Questions and Answers
Which of the following is NOT a characteristic of an array?
Which of the following is NOT a characteristic of an array?
- An array stores data at contiguous memory locations
- An array can store primitive types of data
- An array is a group of same data types
- An array is a derived data type (correct)
What is the purpose of initializing an array?
What is the purpose of initializing an array?
- To set the size of the array
- To define the data type of the array
- To assign initial values to the elements of the array (correct)
- To allocate memory for the array
Which type of array is used to store the salaries of a group of employees in an organization?
Which type of array is used to store the salaries of a group of employees in an organization?
- One-dimensional array (correct)
- Two-dimensional array
- Multidimensional array
- None of the above
What is the lowest address in an array?
What is the lowest address in an array?
How many types of arrays are there?
How many types of arrays are there?