

MCQOPTIONS
Saved Bookmarks
1. |
What is the functionality of the following piece of Java code?Assume: ‘a’ is a non empty array of integers, the Stack class creates an array of specified size and provides a top pointer indicating TOS(top of stack), push and pop have normal meaning. |
A. | print alternate elements of array |
B. | duplicate the given array |
C. | parentheses matching |
D. | reverse the array |
Answer» E. | |