What is the result of the following code?num x = 4num y = 3num i = 0num j = 0while i < x j = 0 while j < y print i, j j = j + 1 endfor i = i + 1endfor
A. 0, 0
0, 1
0, 2
1, 0
1, 1
1, 2
2, 0
2, 1
2, 2
3, 0
3, 1
3, 2
4, 0
4, 1
4, 2
B. 0, 0
0, 1
1, 0
1, 1
2, 0
2, 1
3, 0
3, 1
4, 0
4, 1
C. 0, 0
0, 1
0, 2
1, 0
1, 1
1, 2
2, 0
2, 1
2, 2
3, 0
3, 1
3, 2
D. 0, 0
0, 1
1, 0
1, 1
2, 0
2, 1
3, 0
3, 1
Answer: C
You might also like to view...
A class called employee contains a member function called get_pay that returns the pay of the employee. The pay is a data member of employee. Write the first line of the implementation of this function.
What will be an ideal response?
Which data structure uses skew and split?
a. AA-tree b. AVL tree c. B-tree d. red-black tree e. none of the above
The process used by the Java compiler to remove generic notation and substitute actual type arguments for formal type parameters is called
A) erasure B) removal C) substitution D) masking
A ____ is a basic unit of programming logic; each structure is a sequence, selection, or loop.
A. structure B. block C. program D. subprogram