# 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.

Structure

Aggregate

Domain

Array

Domain

Aggregate

Structure

Module

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

## 5. A matrix having irregular numbers of items in each row is known as___________.

Uniform matrix

Ragged matrix

Square matrix

None of the above

## 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)

## 7. A search is said to be successful or unsuccessful depending on whether the data item is_________.

Found or not

It is irrelevant

None of the above

## 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

## 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

Stack

String

Linear array

Queue

## 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

## 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

0Shares
Scroll to Top