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

  • question_answer
    How many times the word "Study" printed in the following code:  
     

    A) 7 times             

    B) 5 times

    C) 6 times    

    D) Generate error in for loop

    Correct Answer: C

    Solution :

    [c] In the given loop (for) you will use word [3:9] i.e., from ''CBSE 2021'' it will run for ''E 2021'' and it will contain 6 characters, so loop will execute 6 time.         


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