Which of the following statement is correct about an Array?a.Array elements are stored at contiguous memory locations.b.Index is used to locate the elements.c.It is a non-linear data structure.d.It can store the elements of same variable type
Question
Which of the following statement is correct about an Array?a.Array elements are stored at contiguous memory locations.b.Index is used to locate the elements.c.It is a non-linear data structure.d.It can store the elements of same variable type
Solution
The correct statement about an Array is:
a. Array elements are stored at contiguous memory locations. b. Index is used to locate the elements. d. It can store the elements of same variable type.
The statement c. "It is a non-linear data structure." is incorrect. An array is a linear data structure, not a non-linear one.
Similar Questions
Arrays are best data structures#a) for relatively permanent collections of datab) for the size of the structure and the data in the structure are constantly changingc)for both of above situationd) for none of above situatione)for linear collections of data
Which of the following statements about arrays in C is not true:Group of answer choicesThe first element in the array is at index 0An array can be of any type, including another arrayThe compiler will generate an error if access is made to values outside the defined index range of the arrayAn array can be used to store large quantities of dataAn array can be passed to a function and its elements modified from within the function
. Each data item in a record may be a group item composed of sub-items; those items which areindecomposable are calleda) elementary itemsb) atomsc) scalars#d) all of the abovee) none of the above98. The difference between linear array and a record isa) An array is suitable for homogeneous data but the data items in a record mayhave different data typeb) In a record, there may not be a natural ordering in opposed to linear array.c) A record form a hierarchical structure but a linear array does not#d) All of abovee) none of the above99. Binary search algorithm cannot be applied to#a) sorted linked listb) sorted binary treesc) sorted linear arrayd) pointer arraye) all of the above100. When new data are to be inserted into a data structure, but there is no available space; thissituation is usually calleda) underflow#b) overflowc) housefulld) saturatede) out of bounds101. The situation when in a linked list START=NULL is
What are the advantages of arrays?a.Objects of mixed data types can be storedb.Elements in an array cannot be sortedc.Index of first element of an array is 1d.Easier to store elements of same data type
Which of these best describes an array?a.A data structure that shows a hierarchical behaviourb.Container of objects of similar typesc.Arrays are immutable once initialisedd.Array is not a data structure
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.