What is the output of the following function call? Show your work to justify your answer.
System.out.print(Quiz(2));
void Quiz( int n ) {
if (n > 0) {
System.out.print("0");
Quiz(n - 1);
System.out.print("1");
Quiz(n - 1);
}
}.
What is the output of the following function call Show your work to.pdf
1. What is the output of the following function call? Show your work to justify your answer.
System.out.print(Quiz(2));
void Quiz( int n ) {
if (n > 0) {
System.out.print("0");
Quiz(n - 1);
System.out.print("1");
Quiz(n - 1);
}
}