Aliensbrain
  • Home
  • Topics
  • Quizzes
  • Notebooks
  • Community
  • Sign in
  • programming languages Online Quiz - 53
  • What is the output of the following code for exampleprint(1)?...

What is the output of the following code for exampleprint(1)? static void exampleprint(int inputitem) { if (inputitem == 0) { System.out.print("*"); } else { System.out.print("["); exampleprint(inputitem - 1); System.out.print(","); exampleprint(inputitem - 1); System.out.println("]"); } }

technology programming languages
  1. *

  2. [,]

  3. ,,*

  4. None of the Above


Show answer
Correct Option: B

Find more quizzes:

© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy