What is the read/write complexity of the following program?

int N = 0, M = 10;
for (int x = 0; x <= M; x++ ) {
writeToDisk(""something"");
for (int y = 0; y <= N; y++ ) {
Math.random();
}
}
a. O(M)
b. O(M*N)
c. O(N^2)
d. O(1)


a. O(M)

Computer Science & Information Technology

You might also like to view...

What is a prompt?

What will be an ideal response?

Computer Science & Information Technology

As with the margin property, you can specify any or all of the ____ padding values.

A. two B. four C. one D. three

Computer Science & Information Technology

A program called PowerPoint Presenter displays presentations on computers on which PowerPoint is not installed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

State the three primary uses of Oracle Data Dictionary.

What will be an ideal response?

Computer Science & Information Technology