1z1-808 Exam Question 331

Given the code fragment:

And given the requirements:
1. Process all the elements of the array in the reverse order of entry.
2. Process all the elements of the array in the order of entry.
3. Process alternating elements of the array in the order of entry.
Which two statements are true? (Choose two.)
  • 1z1-808 Exam Question 332

    Given:

    What is the result?
  • 1z1-808 Exam Question 333

    Given:
    public class Natural {
    private int i;
    void disp() {
    while (i <= 5) {
    for (int i = 1; i <= 5; ) {
    System.out.print(i + " ");
    i++;
    }
    i++;
    }
    }
    public static void main (String args[]) {
    new Natural().disp();
    }
    }
  • 1z1-808 Exam Question 334

    Given:

    What is the result?
  • 1z1-808 Exam Question 335

    Which two statements are true for a two-dimensional array?