Certification Exam My Exam Experience

The question types which I didn’t encounter in SYBEX or Enthuware

my oca experience- the question types which I didn’t encounter in SYBEX or Enthuware
Written by Mushfiq Mammadov

Note: I know that it is not legal to share actual exam questions. Therefore all examples have been changed in the following post and similar codes have been used.


• The inner for loops form which I saw until actual exam was: Two dimensional array was given, the lengths of the first and second element were used for outer and inner iteration, respectively, for example:

int count=0;
int[][] arr = new int[3][4];
for(int i=0; i<arr.length; i++)
    for(int j=0; j<arr[i].length; j++)
        if(j<2) count++;

But in actual exam instead of two-dimensional array one-dimensional String array was given and String length was used for inner loop iteration, for example:

    int count=0;
    String[] arr = {"one", "three", "five", "seven"};
    for(int i=0; i<arr.length; i++)
        for(int j=0; j<arr[i].length(); j++)
            if(arr[i].length() == 5) count++;

It was similar but much harder than the example shown above;

• There was an array question in Grid form. Probably everbody knows the game of Tic-tac-toe. You imagine grid (3×3) as two-dimensional array and you have to find in which index you should draw X to make X winner;

• There were some questions about import but the answer options of one of them were weird. I had seen no similar questions in SYBEX and Enthuware. (Read about it in detail)

About the author

Mushfiq Mammadov

Leave a Comment


This site uses Akismet to reduce spam. Learn how your comment data is processed.