12th Class Computers Science Sample Paper Python Revision Tour-Sample Paper-1

  • question_answer
     What will be the output of the given statement, if value of n is 6 
     
     

    A) Buzz Fizz!          

    B) Buzz

    C) Fizz                  

    D) Buzz Fizz! Buzz Fizz!

    Correct Answer: A

    Solution :

    [a] If you use "if..elif...else" then if one of the condition is true then that "if statement" will be executed. Other than that none of the statement will be checked. Here, only first condition is True so the answer is Buzz Fizz!


You need to login to perform this action.
You will be redirected in 3 sec spinner