Examlex

Solved

What Is the Output of the Following Code Fragment

question 12

Multiple Choice

What is the output of the following code fragment?
Int array[4][4],index1,index2;
Forindex1=0;index1<4;index1++)
Forindex2=0;index2<4;index2++)
Array[index1][index2]=index1 + index2;
Forindex1=0;index1<4;index1++)
{
Forindex2=0;index2<4;index2++)
Cout << array[index1][index2] << " ";
Cout << endl;
}


Definitions:

South Atlantic

The portion of the Atlantic Ocean lying between the eastern coasts of South America and the western coasts of Africa.

Mid-Ocean Ridges

Underwater mountain ranges formed by plate tectonics, where new oceanic crust is created through volcanic activity.

Ocean Basins

The underwater depressions of the Earth's surface that contain the bulk of the planet's ocean water.

Abyssal Plains

Vast, flat areas of the deep ocean floor, situated at depths between 3,000 and 6,000 meters below sea level.

Related Questions