What is the output of the following code?

```
#include
using namespace std;

int main()
{
int matrix[4][4] =
{{1, 2, 3, 4},
{4, 5, 6, 7},
{8, 9, 10, 11},
{12, 13, 14, 15}};

int sum = 0;

for (int i = 0; i < 4; i++)
cout << matrix[i][1] << " ";

return 0;
}
```

a. 1 3 8 12
b. 3 6 10 14
c. 4 5 6 7
d. 1 2 3 4
e. 2 5 9 13


e. 2 5 9 13

Computer Science & Information Technology

You might also like to view...

Use the example schema (16.4) on page 703 to design a query for finding the names of all managers (employees with Title = ’manager’) whose salary is more than |S20,000, but assume that there are three warehouses. Also assume that the total number of employees is 100,000, that 5000 of them make over |S20,000, that the total number of managers is 50, and that 90% of the managers make more than |S20,000.

What will be an ideal response?

Computer Science & Information Technology

Which of the following would NOT be considered part of document or paragraph layout?

A) Font style B) Indents C) Line spacing D) Margins

Computer Science & Information Technology

When writing code, and several objects are being referenced at one time, it is necessary to put periods in between each object, called ________

A) separators B) indicators C) regulators D) parameters

Computer Science & Information Technology

Which of the following statements about queue insertion is true?

A. Queue insertion takes place at the front of the queue. B. If there is not enough room in memory for another node, the queue is in an overflow state.     C. When a node is inserted, only the front pointer needs to be adjusted. D. Queue insertion requires a search algorithm to locate the insertion position within the list. E. Each node in a queue points to its predecessor.

Computer Science & Information Technology