Java Program Output Based Questions In Python