Arrays and Pointers Mcqs
Our collections of Multiple choice questions and answers focuses on study of ” Arrays and Pointers ” in Data Structures. These questions are chosen from a collection of most authoritative and best reference books on Data Structures. Our aim is to prepare an individual for competitive exams like NTS | GAT | ECAT | Data Warehouse jobs | Data Mining | DB administration jobs Software House and Computer Programmer jobs | University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate knowledge on Arrays and Pointers comprehensively.
2. A collection of objects that need not be of same type, are stored in an
Domain
Aggregate
Structure
Module
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3. A double sub-scripted array declared as int a[ 3 ][ 5 ]; has how many elements?
15
13
10
8
4. A matrix having a larger number of elements with zero value than the number of nonzero elements is said to be a_______.
Diagonal matrix
Sparse matrix
Triangular matrix
None of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5. A matrix having irregular numbers of items in each row is known as___________.
Uniform matrix
Ragged matrix
Square matrix
None of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6. A programmer can access a particular element of an array by using one or more_________.
Indices
Subscripts
Single-dimensional array
Both (a) and (b)
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7. A search is said to be successful or unsuccessful depending on whether the data item is_________.
Found or not
Not Found
It is irrelevant
None of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8. A three-dimensional array can be declared as follows:
Int A[1]
Int A[2][2]
Int A[3][3][3],
None of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9. A three-dimensional array is defined as an array in which ______ subscript values are used to access an individual array element.
Three
Two
One
None of the above
10. A variable P is called pointer if
P contains the address of an element in DATA
P points to the address of first element in DATA
P can store only memory addresses
P contain the DATA and the address of DATA
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11. A …………………… does not keep track of address of every element in the list.
Stack
String
Linear array
Queue
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12. Alter method of using an array is called
Aggregate array
Vector
Built-in array
User defined array
13. An adjacency matrix representation of a graph cannot contain information of :
Nodes
Edges
Direction of edges
Parallel edges
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14. An array can be initialized in how many ways?
Two
Three
One
None of the above
15. An array can be____________type.
Single dimension
Two-dimensional
Three-dimensional
All of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question